NLAlib.Ops.Table.AccountsW.of_runsFromWL
Library · theorem
The weighted accounting certificate from the liberal judgment: the body of every implementation, in its frame and from every state, adds counts of weight at most t o d within the workspace of its operation. This is what the rules of RunsFromWL prove.
NLAlib.Ops.Table.AccountsW.of_runsFromWL {Tst K Op₁ Op₂ A : Type} [AddCommMonoid A] [PartialOrder A]
[IsOrderedAddMonoid A] {T : Ops.Table Op₁ Op₂ Tst} {I : Ops.Interp Op₂ Tst K}
{W₂ : Op₂ → List ℕ → ℕ} {w₂ : Ops.Count Op₂ Tst →+ A} {t : Op₁ → List ℕ → A}
{W₁ : Op₁ → List ℕ → ℕ}
(himpl :
∀ (o : Op₁) (R : Ops.Impl Op₂ Tst),
T o = Sum.inl R →
∀ (τ : Ops.Tape K) (d : List ℕ) (a : List (ℕ × ℕ)) (st : Ops.St Op₂ Tst K),
d.length = R.nd →
a.length = R.nin + R.nout →
Ops.RunsFromWL I W₂ τ R.body (Ops.Env.frame d a) st (W₁ o d) fun c x ↦ w₂ c ≤ t o d)
(hkept :
∀ (o : Op₁) (o' : Op₂),
T o = Sum.inr o' → ∀ (d : List ℕ), w₂ (Ops.Count.one o' d) ≤ t o d ∧ W₂ o' d ≤ W₁ o d) :
T.AccountsW I W₂ w₂ t W₁Import NLAlib.Ops.Counted.