NLAlib.Ops.ConditionalRuns.link
Library · theorem
Linking, total correctness with accounting. If the algorithm runs within B, M under the induced interpretation, the linked program runs under the lower interpretation within the pushed-forward counts and the same workspace, with the same postcondition.
NLAlib.Ops.ConditionalRuns.link {Op₁ Op₂ Tst K : Type} {T : Ops.Table Op₁ Op₂ Tst}
{I : Ops.Interp Op₂ Tst K} {W₂ : Op₂ → List ℕ → ℕ} {κ : Op₁ → List ℕ → Ops.Count Op₂ Tst}
{W₁ : Op₁ → List ℕ → ℕ} (hacc : T.Accounts I W₂ κ W₁) {τ : Ops.Tape K} {s : Ops.Stmt Op₁ Tst}
{ρ : Ops.Env} {m : Ops.Mem K} {B : Ops.Count Op₁ Tst} {M : ℕ} {Q : Ops.Mem K → Prop}
(h : Ops.ConditionalRuns (I.link T) W₁ τ s ρ m B M Q) :
Ops.ConditionalRuns I W₂ τ (Ops.Stmt.link T s) ρ m ((Ops.Count.push κ) B) M QImport NLAlib.Ops.Transfer.