NLA-lib Explorer

NLAlib.Ops.Algorithm.measure_failure_le

Library · theorem

Outer measure of complete actual failure is bounded by reference failure, without additional measurability assumptions on the supplied postcondition.

NLAlib.Ops.Algorithm.measure_failure_le {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
  {model : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P} (A : Ops.Algorithm model S)
  {d : Fin r → ℕ} (hd : P.valid d) (x : P.Input d) (I : Ops.Interp Op Tst K)
  (hI : model.contracts d x I) {Omega : Type} (tape : Omega → Ops.Tape K) (R : Omega → Prop)
  (Q : Omega → Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop)
  (hPost :
    ∀ (omega : Omega) (c : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst) (m : Ops.Mem K),
      S.good d x (tape omega) c m → R omega → Q omega c m)
  [MeasurableSpace Omega] (mu : Measure Omega) :
  mu {omega | ¬S.Accepts A.program I model.resources (tape omega) d x (Q omega)} ≤
    mu {omega | ¬R omega}

Full source on GitHub

Import NLAlib.Ops.Probability.