NLA-lib Explorer

NLAlib.Ops.Profile.Refines.measureReal_not_runs_le_of

Library · theorem

A bound on the failure probability of the algorithm, for every interpretation satisfying the contracts, is a bound for the linked program.

NLAlib.Ops.Profile.Refines.measureReal_not_runs_le_of {Op Lo Tst K Ω : Type}
  {P : Ops.Profile Op Lo Tst} {Base : Ops.Interp Lo Tst K → Prop} {Ck : Ops.Interp Op Tst K → Prop}
  {I : Ops.Interp Lo Tst K} {ξ : Ω → Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K}
  {B : Ops.Count Op Tst} {M : ℕ} (h : P.Refines Base Ck) {mΩ : MeasurableSpace Ω} {μ : Measure Ω}
  [IsFiniteMeasure μ] {Q : Ω → Ops.Mem K → Prop} {δ : ℝ}
  (hT :
    ∀ (J : Ops.Interp Op Tst K),
      Ck J →
        (∀ (o : Op), J.TapeLocal o (P.win o)) →
          μ.real {ω | ¬Ops.ConditionalRuns J P.ws (ξ ω) s ρ m B M (Q ω)} ≤ δ)
  (hI : Base I) (hloc : ∀ (o : Lo), I.TapeLocal o (P.winLo o)) :
  μ.real
      {ω |
        ¬Ops.ConditionalRuns I P.wsLo (ξ ω) (Ops.Stmt.link P.table s) ρ m
            ((Ops.Count.push P.cost) B) M (Q ω)} ≤
    δ

Full source on GitHub

Import NLAlib.Ops.Law.