NLAlib.Ops.RandomizedClaim.ofWp
Library · def
A claim from the program logic: under the law, the memory semantics of the certified program misses a total postcondition that gives the accuracy event with probability at most the bound. The transfer is NLAlib.Ops.Algorithm.measureReal_not_accepts_le_of_wp.
NLAlib.Ops.RandomizedClaim.ofWp {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)
(law : (d : Fin r → ℕ) → P.Input d → Ops.TapeModel K)
(admits : (d : Fin r → ℕ) → P.Input d → Prop)
(interprets : (d : Fin r → ℕ) → P.Input d → Ops.Interp Op Tst K → Prop)
(event :
(d : Fin r → ℕ) →
P.Input d → Ops.Tape K → Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop)
(bound : (d : Fin r → ℕ) → P.Input d → ℝ)
(h :
∀ (d : Fin r → ℕ),
P.valid d →
∀ (x : P.Input d),
admits d x →
∀ (I : Ops.Interp Op Tst K),
model.contracts d x I →
interprets d x I →
∀ (Ω : Type) [inst : MeasurableSpace Ω] (μ : Measure Ω) [IsFiniteMeasure μ]
(tape : Ω → Ops.Tape K),
law d x Ω μ tape →
μ.real
{ω |
¬Ops.Wp Ops.Mode.total I (tape ω) A.program.body
(Ops.Program.environment d)
(fun m ↦
∀ (c : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst),
event d x (tape ω) c m)
(P.initial d x)} ≤
bound d x)
(hreal : ∀ (d : Fin r → ℕ), P.valid d → ∀ (x : P.Input d), admits d x → (law d x).Realizable) :
Ops.RandomizedClaim AImport NLAlib.Ops.Randomized.