NLAlib.Ops.iter_exactly
Library · theorem
The rounds of a counted loop add their exact counts and take the largest workspace.
NLAlib.Ops.iter_exactly {Op Tst K : Type} {f : ℕ → Ops.St Op Tst K → Option (Ops.St Op Tst K)}
{c : ℕ → Ops.Count Op Tst} {p : ℕ → ℕ}
(h : ∀ (i : ℕ) (a b : Ops.St Op Tst K), a.cur ≤ a.peak → f i a = some b → a.Exactly b (c i) (p i))
{k : ℕ} {s s' : Ops.St Op Tst K} (hs : s.cur ≤ s.peak) (hk : Ops.iter f k s = some s') :
s.Exactly s' (∑ i ∈ Finset.range k, c i) ((Finset.range k).sup p)Import NLAlib.Ops.StraightCount.