MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch15.ContractCompletion.HeldBounds

structure MindFormal.ContractCompletion.HeldBounds {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} (B : OwnBox E H) :
Type u_2

Independent, arbitrary-state coefficient tests for the constant-target reference. The box retains the actual II/III writes and every input/focus mode; neither a target bound nor a value error on a solution is a field.

Instances For
    def MindFormal.ContractCompletion.HeldBounds.Eₓ {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) (i : Fin N) :
    Equations
    Instances For
      noncomputable def MindFormal.ContractCompletion.HeldBounds.reference {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) (t : ℝ) (i : Fin N) :
      Equations
      Instances For
        noncomputable def MindFormal.ContractCompletion.HeldBounds.Dbar {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) (t : ℝ) :
        Equations
        Instances For
          def MindFormal.ContractCompletion.HeldBounds.E_D {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) :
          Equations
          Instances For
            theorem MindFormal.ContractCompletion.HeldBounds.uniform_bill {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) (d_in d_T b : ℝ) (hin : ∀ (i : Fin N), D.d_in i ≤ d_in) (hT : ∀ (i : Fin N), D.d_T i ≤ d_T) (hb : ∀ (i : Fin N), B.allowance (Sum.inr (Sum.inl i)) ≤ b) :
            D.E_D ≤ 2 * (d_in + d_T + 4 * b) + D.d_v

            The printed uniform allowance (1.5) is the specialization of the two coordinate allowances, rather than an assumption that their errors agree.

            theorem MindFormal.ContractCompletion.HeldBounds.matches_count {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) (F : AffineSupportFamily E) (k : ℕ) (hk : k ≤ F.cap) (ha : D.accept = F.accept) (hd : D.refuse = F.refuse) (targets : ∀ (i : Fin N), D.target i = F.target (↑k) i) (starts : ∀ (i : Fin N), 0 ≤ D.start i) (t : ℝ) (ht : 0 ≤ t) :
            D.Dbar t = ContractCount.comparison (F.A D.read t (D.start F.accept) (D.start F.refuse) (D.endpoint_value F.accept) (D.endpoint_value F.refuse)) (F.B D.read t) F.d₀ F.d₁ F.P F.L ↑k

            Match the complete finite-count family to the very reference used in the moving-state error bound. Starts and endpoint banks are the same named quantities; only the reference, not the actual learning history, is held.

            theorem MindFormal.ContractCompletion.HeldBounds.path_bounds {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) {ω : Ω} (hstream : ω ∈ B.stream) (hgood : E.own.data.toPhysicalNoiseData.Good ω) (hbox : ∀ t ∈ Set.Icc 0 ↑H, InCorridorBox (↑(E.start.state ω)) B.X B.Xr B.ρW B.ρv ((E.supportHistory ω).state t)) (hnoise : ∀ t ∈ Set.Icc 0 ↑H, ∀ (c : CoordinateIndex (Fin N) n T Λ), |(E.supportHistory ω).driver t.toNNReal c| ≤ B.allowance c) :
            (∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |(E.supportHistory ω).x t i - D.reference t i| ≤ D.Eₓ i) ∧ ∀ t ∈ Set.Icc 0 ↑H, |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) D.accept - ((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) D.refuse - D.Dbar t| ≤ D.E_D

            Deterministic use of the original coefficient event, shared below with all the score/release tests so no second exceptional set is charged.

            theorem MindFormal.ContractCompletion.HeldBounds.event {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) (hH : H ≤ E.horizon) :
            ∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ B.stream ∧ 1 - B.errorProbability ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, (∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |(E.supportHistory ω).x t i - D.reference t i| ≤ D.Eₓ i) ∧ ∀ t ∈ Set.Icc 0 ↑H, |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) D.accept - ((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) D.refuse - D.Dbar t| ≤ D.E_D
            theorem MindFormal.ContractCompletion.HeldBounds.joint_event {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {E : StateExperiment Ω N n T Λ J} {H : NNReal} {B : OwnBox E H} (D : HeldBounds B) {C : LoadComparison B} (R : OutputComparison C) (hH : H ≤ E.horizon) :
            ∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ B.stream ∧ 1 - B.errorProbability ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, (∀ t ∈ Set.Icc 0 ↑H, |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) D.accept - ((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) D.refuse - D.Dbar t| ≤ D.E_D) ∧ ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ R.error t i

            Reflection (1.5), complete output enclosures and every earlier-act test use exactly the same box event and exactly one original failure bill.