NLA-lib Explorer

NLAlib.Ops.Algorithm.runsLaw

Library · theorem

Statistical properties observe the same successful format-checked execution, with the specified resource model fixed before the tape sample.

NLAlib.Ops.Algorithm.runsLaw {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
  {M : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P} {Ω α : Type}
  (A : Ops.Algorithm M S) {d : Fin r → ℕ} (hd : P.valid d) (x : P.Input d) (I : Ops.Interp Op Tst K)
  (hI : M.contracts d x I) (ξ : Ω → Ops.Tape K) (obs : Ops.Mem K → α) {Φ : (Ω → α) → Prop}
  (hΦ :
    ∀ (X : Ω → α),
      (∀ (ω : Ω), ∃ c m', c ≤ S.budget d ∧ S.good d x (ξ ω) c m' ∧ obs m' = X ω) → Φ X) :
  ∃ X,
    (∀ (ω : Ω),
        ∃ c m',
          A.program.run I M.resources P.formats (ξ ω) d (P.initial d x) = some m' ∧
            c ≤ S.budget d ∧ S.good d x (ξ ω) c m' ∧ obs m' = X ω) ∧
      Φ X

Full source on GitHub

Import NLAlib.Ops.Law.