NLA-lib Explorer

NLAlib.Ops.Algorithm.FailsAtMost

Library · def

The statement of a randomized claim. For every admitted size and input satisfying admits, every interpretation satisfying the contracts of the model and interprets, and every finite measure and random tape with the law law: the probability that the counted run of the certified program fails, exceeds a resource bound of the specification, or ends with a count and memory outside event, is at most bound.

NLAlib.Ops.Algorithm.FailsAtMost {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 → ℝ) : Prop

Full source on GitHub

Import NLAlib.Ops.Randomized.