NLA-lib Explorer

NLAlib.Ops.RandomizedClaim.holds_exec

Library · theorem

A randomized claim read with the evaluator: under the claim's law and all its assumptions, canonical execution fails, violates a resource bound or misses the accuracy event with at most the claimed probability. Tape-law realizability remains the claim's field realizable.

NLAlib.Ops.RandomizedClaim.holds_exec {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
  {M : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P} {A : Ops.Algorithm M S}
  (C : Ops.RandomizedClaim A) (d : Fin r → ℕ) (hd : P.valid d) (x : P.Input d) (hx : C.admits d x)
  (I : Ops.Interp Op Tst K) (hI : M.contracts d x I) (hInt : C.interprets d x I) (Ω : Type)
  [MeasurableSpace Ω] (μ : Measure Ω) [IsFiniteMeasure μ] (tape : Ω → Ops.Tape K)
  (hLaw : C.law d x Ω μ tape) :
  μ.real
      {ω |
        ¬∃ st,
            Ops.exec A.program I M.resources P.formats (tape ω) d (P.initial d x) = some st ∧
              st.peak ≤ S.scratch d ∧
                st.cost ≤ S.budget d ∧
                  M.resources.work st.cost ≤ S.work d ∧
                    M.resources.span st.cost ≤ S.span d ∧
                      P.initialBytes d x + st.peak ≤ S.memory d ∧
                        C.event d x (tape ω) st.cost st.mem} ≤
    C.bound d x

Full source on GitHub

Import NLAlib.Ops.Reference.Probability.