NLAlib.Ops.fail_subset
Library · theorem
Probability. The interpretation is fixed before the sample ω; the tape, the start and the postcondition may depend on it. The failure event of the linked program is inside the failure event of the algorithm under the induced interpretation, so a bound on the probability of the latter bounds the former.
NLAlib.Ops.fail_subset {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₁) {Ω : Type} {τ : Ω → 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} :
{ω | ¬Ops.ConditionalRuns I W₂ (τ ω) (Ops.Stmt.link T s) ρ (m ω) ((Ops.Count.push κ) B) M (Q ω)} ⊆
{ω | ¬Ops.ConditionalRuns (I.link T) W₁ (τ ω) s ρ (m ω) B M (Q ω)}Import NLAlib.Ops.Transfer.