MindFormal v1.0.0One Mind

MindFormal.Tools.A630PaperPrograms.Certificates

Complete primitive certificates, with preparation kept in the same probability space. An operation event includes its physical paper effect, deadline and exit state. The estimates condition on the complete prefix; they never replace that prefix by the returned label or assume independence.

def MindFormal.A630PaperPrograms.completePrefix {Ω : Type u_1} (entry : Set Ω) (operation : ℕ → Set Ω) :
ℕ → Set Ω
Equations
Instances For
    def MindFormal.A630PaperPrograms.firstFailure {Ω : Type u_1} (entry : Set Ω) (operation : ℕ → Set Ω) (n : ℕ) :
    Set Ω
    Equations
    Instances For
      noncomputable def MindFormal.A630PaperPrograms.actualError {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (entry : Set Ω) (operation : ℕ → Set Ω) (n : ℕ) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.A630PaperPrograms.completePrefix_measurable {Ω : Type u_1} [MeasurableSpace Ω] {entry : Set Ω} {operation : ℕ → Set Ω} (he : MeasurableSet entry) (ho : ∀ (n : ℕ), MeasurableSet (operation n)) (n : ℕ) :
        MeasurableSet (completePrefix entry operation n)
        theorem MindFormal.A630PaperPrograms.prefix_mass_step {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (entry : Set Ω) (operation : ℕ → Set Ω) (ho : ∀ (n : ℕ), MeasurableSet (operation n)) (n : ℕ) :
        μ.real (completePrefix entry operation (n + 1)) = μ.real (completePrefix entry operation n) * (1 - actualError μ entry operation n)
        theorem MindFormal.A630PaperPrograms.exact_prefix {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (entry : Set Ω) (operation : ℕ → Set Ω) (ho : ∀ (n : ℕ), MeasurableSet (operation n)) (n : ℕ) :
        μ.real (completePrefix entry operation n) = μ.real entry * ∏ j ∈ Finset.range n, (1 - actualError μ entry operation j)

        TM1.1, including initialization and zero-probability prefixes. After a null prefix the chosen ratio is zero; its later factors are immaterial.

        theorem MindFormal.A630PaperPrograms.conditional_prefix_lower {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (entry : Set Ω) (operation : ℕ → Set Ω) (ho : ∀ (n : ℕ), MeasurableSet (operation n)) (p : ℕ → ℝ) (hp : ∀ (j : ℕ), p j ∈ Set.Icc 0 1) (cert : ∀ (j : ℕ), 0 < μ.real (completePrefix entry operation j) → actualError μ entry operation j ≤ p j) (n : ℕ) :
        μ.real entry * ∏ j ∈ Finset.range n, (1 - p j) ≤ μ.real (completePrefix entry operation n)
        theorem MindFormal.A630PaperPrograms.product_error_sum (p : ℕ → ℝ) (hp : ∀ (j : ℕ), p j ∈ Set.Icc 0 1) (n : ℕ) :
        1 - ∏ j ∈ Finset.range n, (1 - p j) ≤ ∑ j ∈ Finset.range n, p j
        theorem MindFormal.A630PaperPrograms.complete_error_bill {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (entry : Set Ω) (operation : ℕ → Set Ω) (he : MeasurableSet entry) (ho : ∀ (n : ℕ), MeasurableSet (operation n)) (p₀ : ℝ) (hp₀ : p₀ ∈ Set.Icc 0 1) (hentry : 1 - p₀ ≤ μ.real entry) (p : ℕ → ℝ) (hp : ∀ (j : ℕ), p j ∈ Set.Icc 0 1) (cert : ∀ (j : ℕ), 0 < μ.real (completePrefix entry operation j) → actualError μ entry operation j ≤ p j) (n : ℕ) :
        μ.real (completePrefix entry operation n)ᶜ ≤ 1 - (1 - p₀) * ∏ j ∈ Finset.range n, (1 - p j) ∧ 1 - (1 - p₀) * ∏ j ∈ Finset.range n, (1 - p j) ≤ min 1 (p₀ + ∑ j ∈ Finset.range n, p j)

        TM1.2: every physical/preparation/entry failure belongs to the complete events. The two upper bounds concern the all-correct prefix, not actual terminal error after arbitrary recovery.

        theorem MindFormal.A630PaperPrograms.fixed_error_budget {p : ℝ} (hp : p ∈ Set.Icc 0 1) (n : ℕ) :
        1 - (1 - p) ^ n ≤ ↑n * p