NLAlib.Ops.PWrites.seq
Library · theorem
Sequence: under a measurable interpretation whose operations read the tape only in their windows, the failure probabilities of the two parts add. The bound of the second part must be nonnegative: a negative bound is met vacuously when its precondition is empty, and the sum would then undercut the first part.
NLAlib.Ops.PWrites.seq {Op Tst K : Type} [Inhabited K] [MeasurableSpace K] {law : ℕ → Measure K}
{I : Ops.Interp Op Tst K} {ρ : Ops.Env} {Pre Post : Ops.Mem K → Prop} (hI : I.IsMeasurable)
{win : Op → List ℕ → ℕ} (hloc : ∀ (o : Op), I.TapeLocal o (win o)) {c₁ c₂ : Ops.Stmt Op Tst}
{F₁ F₂ : Ops.Fp} {Mid : Ops.Mem K → Prop} {φ₁ φ₂ : ℝ} (hφ₂ : 0 ≤ φ₂)
(h₁ : Ops.PWrites law I c₁ ρ F₁ Pre Mid φ₁) (h₂ : Ops.PWrites law I c₂ ρ F₂ Mid Post φ₂) :
Ops.PWrites law I (c₁.seq c₂) ρ (F₁ ⊔ F₂) Pre Post (φ₁ + φ₂)Import NLAlib.Ops.Logic.Probabilistic.