NLA-lib Explorer

NLAlib.Ops.PWrites.measureReal_not_conditionalRuns_le

Library · theorem

Random tape

The bridge to the law-level statements of Ops/Law (PL6): if every successful run from m is within the counts B and the workspace M, the run misses the counted postcondition (NLAlib.Ops.ConditionalRuns) with probability at most \varphi. This is the hypothesis shape of NLAlib.Ops.Profile.Refines.measureReal_not_runs_le_of, so the bound transfers through linking.

NLAlib.Ops.PWrites.measureReal_not_conditionalRuns_le {Op Tst K : Type} [Inhabited K]
  [MeasurableSpace K] {law : ℕ → Measure K} {I : Ops.Interp Op Tst K} {c : Ops.Stmt Op Tst}
  {ρ : Ops.Env} {F : Ops.Fp} {Pre Post : Ops.Mem K → Prop} {φ : ℝ}
  (h : Ops.PWrites law I c ρ F Pre Post φ) {m : Ops.Mem K} (hm : Pre m) {W : Op → List ℕ → ℕ}
  {B : Ops.Count Op Tst} {M : ℕ}
  (hcost :
    ∀ (τ : Ops.Tape K) (m' : Ops.Mem K),
      Ops.eval I τ c ρ m = some m' → Ops.ConditionalRuns I W τ c ρ m B M fun x ↦ x = m')
  {Ω : Type} [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape K} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω |
        ¬Ops.ConditionalRuns I W (ξ ω) c ρ m B M fun m' ↦
            Ops.Store.EqOff F m.store m'.store ∧ Post m'} ≤
    φ

Full source on GitHub

Import NLAlib.Ops.Logic.Probabilistic.