NLAlib.Ops.link_total
Library · theorem
Linking a theorem proved for every interpretation meeting contracts Ck: it holds for the linked program as soon as the induced interpretation meets Ck, that is, the implementations meet their specifications.
NLAlib.Ops.link_total {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 ℕ → ℕ}
{Ck : Ops.Interp Op₁ Tst K → Prop} {τ : 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}
(hT : ∀ (J : Ops.Interp Op₁ Tst K), Ck J → Ops.ConditionalRuns J W₁ τ s ρ m B M Q)
(hk : Ck (I.link T)) (hacc : T.Accounts I W₂ κ W₁) :
Ops.ConditionalRuns I W₂ τ (Ops.Stmt.link T s) ρ m ((Ops.Count.push κ) B) M QImport NLAlib.Ops.Transfer.