NLA-lib Explorer

NLAlib.Ops.RandomizedClaim.ofReference

Library · def

A claim from a reference event: under the law, some event of the sample space has failure probability at most the bound, and together with the output condition of the specification it gives the accuracy event. The transfer is NLAlib.Ops.Algorithm.measureReal_failure_le.

NLAlib.Ops.RandomizedClaim.ofReference {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 →
                      ∃ R,
                        (∀ (ω : Ω) (c : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst) (m : Ops.Mem K),
                            S.good d x (tape ω) c m → R ω → event d x (tape ω) c m) ∧
                          μ.real {ω | ¬R ω} ≤ bound d x)
  (hreal : ∀ (d : Fin r → ℕ), P.valid d → ∀ (x : P.Input d), admits d x → (law d x).Realizable) :
  Ops.RandomizedClaim A

Full source on GitHub

Import NLAlib.Ops.Randomized.