NLAlib.Ops.ConditionalRunsW.link
Library · theorem
Linking a run whose postcondition sees the counts. Under a weighted certificate, the linked program runs within the same workspace, and the weight of its counts is at most the weight of counts c₁ of the algorithm that satisfy the postcondition. A bound on the weight of the algorithm's counts, whatever it depends on, is a bound on the weight of the program's.
NLAlib.Ops.ConditionalRunsW.link {Op₁ Op₂ Tst K 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 ℕ → ℕ} (hacc : T.AccountsW I W₂ w₂ t W₁) {τ : Ops.Tape K} {s : Ops.Stmt Op₁ Tst}
{ρ : Ops.Env} {m : Ops.Mem K} {M : ℕ} {Q : Ops.Count Op₁ Tst → Ops.Mem K → Prop}
(h : Ops.ConditionalRunsW (I.link T) W₁ τ s ρ m M Q) :
Ops.ConditionalRunsW I W₂ τ (Ops.Stmt.link T s) ρ m M fun c m' ↦
∃ c₁, w₂ c ≤ (Ops.Count.upper w₂ t) c₁ ∧ Q c₁ m'Import NLAlib.Ops.Transfer.