MindFormal v1.0.0One Mind

MindFormal.Run.ComparisonCertificate

A comparison is computed from primitive cell loads; the actual run and its native events are outputs. The complete pool and one common noise bill are kept.

structure MindFormal.LoadComparison {Ω : 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) :

J13's independently specified loads and coefficient certificate. The start is an enclosure of primitive initial states. Cell input sets contain the world's input for every chronological history, and support bounds range over the entire box and every native focus mode. No error bound on an unknown run is a field.

Instances For
    noncomputable def MindFormal.LoadComparison.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} (C : LoadComparison B) (i : Fin N) (t : ℝ) :

    The comparison activity, evaluated without solving or observing the run.

    Equations
    Instances For
      noncomputable def MindFormal.LoadComparison.activityError {Ω : 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} (C : LoadComparison B) (i : Fin N) (t : ℝ) :

      The full activity bill: discounted initial uncertainty, complete-pool cell errors and the reflected own innovation. The proved 2b bound is sharper than J13's 4b and requires no extra hypothesis.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        noncomputable def MindFormal.LoadComparison.refinedError {Ω : 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} (C : LoadComparison B) (d : ℕ → Fin N → ℝ) (i : Fin N) (t : ℝ) :

        UO1.13 with a refined support allowance on the same comparison. This changes neither its loads nor its reference. At d = C.error it is the original activity bill, definitionally.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.LoadComparison.input_cell_mem {Ω : 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} (C : LoadComparison B) {ω : Ω} (hω : E.own.data.toPhysicalNoiseData.Good ω) (hstream : ω ∈ B.stream) {k : ℕ} (hk : k < C.cells) {s : ℝ} (hs : s ∈ Set.Ioo (C.cut k) (C.cut (k + 1))) :

          A cell's input envelope evaluated on the actual strict past. Its primitive certificate includes every chronological history, not a selected calendar of acts. This lemma is shared by the original and refined bounds.

          theorem MindFormal.LoadComparison.support_cell_bound {Ω : 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} (C : LoadComparison B) {ω : Ω} (hω : E.own.data.toPhysicalNoiseData.Good ω) (hstream : ω ∈ B.stream) (hbox : ∀ t ∈ Set.Icc 0 ↑H, InCorridorBox (↑(E.start.state ω)) B.X B.Xr B.ρW B.ρv ((E.supportHistory ω).state t)) {k : ℕ} (hk : k < C.cells) {s : ℝ} (hs : s ∈ Set.Ioo (C.cut k) (C.cut (k + 1))) (i : Fin N) :
          |(E.supportHistory ω).J s i - C.load k i| ≤ C.error k i

          The primitive all-mode cell bounds evaluated on the original run. The box event supplies the state condition; the actual chronological history supplies the cell input. This shared step serves symmetric and monotone bounds.

          theorem MindFormal.LoadComparison.path_error_of_support {Ω : 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} (C : LoadComparison B) (d : ℕ → Fin N → ℝ) {ω : Ω} (hstream : ω ∈ B.stream) (hsupport : ∀ k < C.cells, ∀ s ∈ Set.Ioo (C.cut k) (C.cut (k + 1)), ∀ (i : Fin N), |(E.supportHistory ω).J s i - C.load k i| ≤ d k i) (hnoise : ∀ t ∈ Set.Icc 0 ↑H, ∀ (c : CoordinateIndex (Fin N) n T Λ), |(E.supportHistory ω).driver t.toNNReal c| ≤ B.allowance c) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑H) (i : Fin N) :
          |(E.supportHistory ω).x t i - C.reference i t| ≤ C.refinedError d i t

          The deterministic integration step for the existing comparison with any cell support allowance. Its path conditions are discharged from coefficient data by event and refinement_event, never supplied to those final events.

          theorem MindFormal.LoadComparison.path_error {Ω : 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} (C : LoadComparison B) {ω : Ω} (hω : E.own.data.toPhysicalNoiseData.Good ω) (hstream : ω ∈ B.stream) (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 : ℝ} (ht : t ∈ Set.Icc 0 ↑H) (i : Fin N) :

          The coefficient bounds imply the explicit activity comparison on a draw whose box and innovation bounds hold. This is the deterministic step used by event; its two path conditions are discharged there from primitive data.

          theorem MindFormal.LoadComparison.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} (C : LoadComparison 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 - C.reference i t| ≤ C.activityError i t

          J12–J13: from a primitive all-mode coefficient certificate, one measurable event of the stated mass carries every activity to the computed finite comparison at every time. This is the shared native transfer used by the chapters.

          theorem MindFormal.LoadComparison.writer_ranges {Ω : 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} {ω : Ω} (hω : E.own.data.toPhysicalNoiseData.Good ω) (hstream : ω ∈ B.stream) (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 : ℝ} (ht : t ∈ Set.Icc 0 ↑H) :
          (∀ (i j : Fin N), |mindRelation ((E.supportHistory ω).state t) i j - mindRelation (↑(E.start.state ω)) i j| ≤ B.KW * t + B.allowance (Sum.inl (i, j))) ∧ ∀ (i : Fin N) (b : Fin n) (a : T), |mindValue ((E.supportHistory ω).state t) i b a - mindValue (↑(E.start.state ω)) i b a| ≤ B.Kv * t + B.allowance (Sum.inr (Sum.inr (Sum.inl (i, b, a))))

          RM1.4's link and value ranges, integrated from the primitive whole-box drift caps. The same box and raw innovation event supplies every time; no range of the unknown trajectory is a certificate field.

          theorem MindFormal.LoadComparison.refinement_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} (C : LoadComparison B) (passes : ℕ) (d : ℕ → ℕ → Fin N → ℝ) (range : ℕ → ℕ → PhysicalState N n T Λ → Set (MindState (Fin N) n T Λ)) (initial : d 0 = C.error) (encloses : ∀ p < passes, ∀ k < C.cells, ∀ t ∈ Set.Ioo (C.cut k) (C.cut (k + 1)), ∀ s0 ∈ B.starts, ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (↑s0) B.X B.Xr B.ρW B.ρv s → (∀ (i j : Fin N), |mindRelation s i j - mindRelation (↑s0) i j| ≤ B.KW * t + B.allowance (Sum.inl (i, j))) → (∀ (i : Fin N) (b : Fin n) (a : T), |mindValue s i b a - mindValue (↑s0) i b a| ≤ B.Kv * t + B.allowance (Sum.inr (Sum.inr (Sum.inl (i, b, a))))) → (∀ (i : Fin N), |mindActivity s i - C.reference i t| ≤ C.refinedError (d p) i t) → s ∈ range p k s0) (support : ∀ p < passes, ∀ k < C.cells, ∀ s0 ∈ B.starts, ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (↑s0) B.X B.Xr B.ρW B.ρv s → s ∈ range p k s0 → ∀ (u q : Fin N → ℝ), 0 ≤ u → u ∈ B.inputs → u ∈ C.cellInputs k → (∀ (i : Fin N), q i ∈ {0, 1}) → ∀ (i : Fin N), |assembledInputs E.mind.drift u q s i - C.load k i| ≤ d (p + 1) k i) (hH : H ≤ E.horizon) :
          ∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ B.stream ∧ 1 - B.errorProbability ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, E.own.data.toPhysicalNoiseData.Good ω ∧ (∀ t ∈ Set.Icc 0 ↑H, InCorridorBox (↑(E.start.state ω)) B.X B.Xr B.ρW B.ρv ((E.supportHistory ω).state t)) ∧ (∀ p ≤ passes, ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |(E.supportHistory ω).x t i - C.reference i t| ≤ C.refinedError (d p) i t) ∧ ∀ p < passes, ∀ k < C.cells, ∀ t ∈ Set.Ioo (C.cut k) (C.cut (k + 1)), (E.supportHistory ω).state t ∈ range p k (E.start.state ω)

          UO1.13/RM1.4: finite refinement of this comparison on its original own-noise event. d and range are primitive cell data. initial identifies the unrefined allowance. encloses is an inequality over arbitrary box states: the preceding computed activity enclosure and the integrated writer ranges imply membership of the proposed next cell range. support is checked over that intersection for every focus mode and input in the all-history envelope. Induction derives every range and refined activity bound on one event. No state-range, support-on-run or certificate conclusion is an input premise.

          theorem MindFormal.comparison_family_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) (C : Ω → LoadComparison 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 - (C ω).reference i t| ≤ (C ω).activityError i t

          The same event controls a preparation-indexed family of computed comparisons on one common box. Selection of a comparison does not require independence from that event, since every coefficient certificate is uniform.