MindFormal v1.0.0One Mind

MindFormal.Run.ComparisonRace

Computed score comparisons retain the complete value bank. The only read bound is a coefficient inequality on the proposed box, not a bound on a run.

structure MindFormal.OutputComparison {Ω : 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) :
Type u_2

RT1.7/TX1.10: primitive reference values and local read moduli. The reference activity is computed from cell loads. The inequality ranges over every physical state in the coefficient box, including all native modes. The moduli need hold only there, not globally.

Instances For
    theorem MindFormal.OutputComparison.bin_measurable {Ω : 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} (k : ℕ) (w : Fin N) (bin : Set ℝ) (hb : MeasurableSet bin) :
    MeasurableSet {ω : Ω | ∃ t ∈ bin, E.supportRecord H false k ω = (t, Sum.inl w)}

    A measurable time bin and a native label define a measurable report.

    theorem MindFormal.OutputComparison.window_measurable {Ω : 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} (k : ℕ) (w : Fin N) (L U : ℝ) :
    MeasurableSet {ω : Ω | ∃ t ∈ Set.Icc L U, E.supportRecord H false k ω = (t, Sum.inl w)}

    A native output and a closed time window define an ordinary measurable event. The probability bounds below therefore concern actual probabilities.

    noncomputable def MindFormal.OutputComparison.score {Ω : 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} (R : OutputComparison C) (t : ℝ) (i : Fin N) :

    The output reference is computed from the loads and declared value bank.

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

      Every value element pays its box excursion and entering uncertainty.

      Equations
      Instances For
        noncomputable def MindFormal.OutputComparison.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} (R : OutputComparison C) (d : ℕ → Fin N → ℝ) (t : ℝ) (i : Fin N) :

        UO1.13's refined activity bill carried through this same output read. The complete value bank and original score are unchanged.

        Equations
        Instances For
          theorem MindFormal.OutputComparison.path_score {Ω : 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} (R : OutputComparison C) {ω : Ω} (hstream : ω ∈ B.stream) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑H) (hbox : InCorridorBox (↑(E.start.state ω)) B.X B.Xr B.ρW B.ρv ((E.supportHistory ω).state t)) (i : Fin N) {e : ℝ} (hx : |(E.supportHistory ω).x t i - C.reference i t| ≤ e) :
          |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ R.activityModulus i * e + ∑ b : Fin n, ∑ a : T, R.valueModulus i b a * (B.ρv + R.initialError i b a)

          The deterministic read step for any proved activity allowance. The box, entering state and activity conditions are supplied by the original or refined coefficient event, not by an assumption about an unknown run.

          theorem MindFormal.OutputComparison.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} (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, ∀ (i : Fin N), |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ R.error t i

          One common measurable event bounds every output score at every time on the actual own-noise run. Initial uncertainty, both writers, reflection, focus and all returned inputs enter through the same box bill.

          theorem MindFormal.OutputComparison.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} (R : OutputComparison C) (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 ω ∧ (∀ 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 ∧ |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ R.refinedError (d p) t i) ∧ ∀ 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 ω)

          The same finite refinement event controls every activity, every output score and every cell range together. All inputs are primitive coefficients, arbitrary-state inclusion checks or all-mode support checks; no range or score estimate on the native path is supplied. The ordinary floor, original own noise and the original box failure probability are retained.

          theorem MindFormal.OutputComparison.window_of_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} (R : OutputComparison C) (e : ℝ → Fin N → ℝ) {ω : Ω} {k : ℕ} {L U : ℝ} (w : Fin N) (he : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ e t i) (hL : 0 ≤ L) (hLU : L ≤ U) (hr0 : 0 ≤ ((E.supportHistory ω).native (↑H) false).release k) (hrU : ((E.supportHistory ω).native (↑H) false).release k ≤ U) (hU : U ≤ ↑H) (hw : E.mind.reads.outputs w = true) (before : ∀ t ∈ Set.Icc 0 ↑H, ((E.supportHistory ω).native (↑H) false).release k ≤ t → t < L → ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j + e t j < E.mind.reads.actionBar) (qualifies : E.mind.reads.actionBar ≤ R.score U w - e U w) (dominates : ∀ t ∈ Set.Icc L U, 0 ≤ t → ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → R.score t j + e t j < R.score t w - e t w) :
          ∃ t ∈ Set.Icc L U, E.supportRecord H false k ω = (t, Sum.inl w)

          A computed window brackets the native first act of any actual release. The release bounds are explicit clock conditions, not a supplied winner. Every output, including an unoffered one, is tested.

          theorem MindFormal.OutputComparison.window {Ω : 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} (R : OutputComparison C) {ω : Ω} {k : ℕ} {L U : ℝ} (w : Fin N) (he : ∀ 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) (hL : 0 ≤ L) (hLU : L ≤ U) (hr0 : 0 ≤ ((E.supportHistory ω).native (↑H) false).release k) (hrU : ((E.supportHistory ω).native (↑H) false).release k ≤ U) (hU : U ≤ ↑H) (hw : E.mind.reads.outputs w = true) (before : ∀ t ∈ Set.Icc 0 ↑H, ((E.supportHistory ω).native (↑H) false).release k ≤ t → t < L → ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j + R.error t j < E.mind.reads.actionBar) (qualifies : E.mind.reads.actionBar ≤ R.score U w - R.error U w) (dominates : ∀ t ∈ Set.Icc L U, 0 ≤ t → ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → R.score t j + R.error t j < R.score t w - R.error t w) :
          ∃ t ∈ Set.Icc L U, E.supportRecord H false k ω = (t, Sum.inl w)

          A computed window brackets the native first act of any actual release. The release bounds are explicit clock conditions, not a supplied winner. Every output, including an unoffered one, is tested.

          theorem MindFormal.OutputComparison.deferral_of_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} (R : OutputComparison C) (e : ℝ → Fin N → ℝ) {ω : Ω} {k : ℕ} (he : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ e t i) (hr : 0 ≤ ((E.supportHistory ω).native (↑H) false).release k) (quiet : ∀ t ∈ Set.Icc (((E.supportHistory ω).native (↑H) false).release k) ↑H, ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j + e t j < E.mind.reads.actionBar) :

          Upper reference scores below the bar certify genuine deferral through the deadline, at any nonnegative actual release.

          theorem MindFormal.OutputComparison.deferral {Ω : 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} (R : OutputComparison C) {ω : Ω} {k : ℕ} (he : ∀ 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) (hr : 0 ≤ ((E.supportHistory ω).native (↑H) false).release k) (quiet : ∀ t ∈ Set.Icc (((E.supportHistory ω).native (↑H) false).release k) ↑H, ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j + R.error t j < E.mind.reads.actionBar) :

          Upper reference scores below the bar certify genuine deferral through the deadline, at any nonnegative actual release.

          theorem MindFormal.OutputComparison.outer_of_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} (R : OutputComparison C) (e : ℝ → Fin N → ℝ) {ω : Ω} {k : ℕ} {t : ℝ} {w : Fin N} (he : ∀ t ∈ Set.Icc 0 ↑H, ∀ (i : Fin N), |((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath t) i - R.score t i| ≤ e t i) (hr : 0 ≤ ((E.supportHistory ω).native (↑H) false).release k) (hit : (((E.supportHistory ω).native (↑H) false).search k).event = some (t, w)) :
          t ∈ Set.Icc (((E.supportHistory ω).native (↑H) false).release k) ↑H ∧ E.mind.reads.outputs w = true ∧ E.mind.reads.actionBar ≤ R.score t w + e t w ∧ ∀ (s : ℝ), ((E.supportHistory ω).native (↑H) false).release k ≤ s → s < t → ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score s j - e s j < E.mind.reads.actionBar

          RT1.7's necessary outer tests: a native winner has an upper reference score reaching the bar; every lower reference score is below it before the actual first hit. Unlike endpoint tests this excludes intervening crossings.

          theorem MindFormal.OutputComparison.outer {Ω : 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} (R : OutputComparison C) {ω : Ω} {k : ℕ} {t : ℝ} {w : Fin N} (he : ∀ 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) (hr : 0 ≤ ((E.supportHistory ω).native (↑H) false).release k) (hit : (((E.supportHistory ω).native (↑H) false).search k).event = some (t, w)) :
          t ∈ Set.Icc (((E.supportHistory ω).native (↑H) false).release k) ↑H ∧ E.mind.reads.outputs w = true ∧ E.mind.reads.actionBar ≤ R.score t w + R.error t w ∧ ∀ (s : ℝ), ((E.supportHistory ω).native (↑H) false).release k ≤ s → s < t → ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score s j - R.error s j < E.mind.reads.actionBar

          RT1.7's necessary outer tests: a native winner has an upper reference score reaching the bar; every lower reference score is below it before the actual first hit. Unlike endpoint tests this excludes intervening crossings.

          theorem MindFormal.OutputComparison.first_probability {Ω : 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} (R : OutputComparison C) (hH : H ≤ E.horizon) (w : Fin N) {L U : ℝ} (hL : 0 ≤ L) (hLU : L ≤ U) (hU : U ≤ ↑H) (hw : E.mind.reads.outputs w = true) (before : ∀ t ∈ Set.Ico 0 L, ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j + R.error t j < E.mind.reads.actionBar) (qualifies : E.mind.reads.actionBar ≤ R.score U w - R.error U w) (dominates : ∀ t ∈ Set.Icc L U, ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → R.score t j + R.error t j < R.score t w - R.error t w) :
          1 - B.errorProbability ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc L U, E.supportRecord H false 0 ω = (t, Sum.inl w)}

          The computed first-window certificate has the full common own-noise probability bill. The initial release is proved to be zero by the native schedule, not supplied as an event calendar.

          theorem MindFormal.OutputComparison.release_probability {Ω : 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} (R : OutputComparison C) (hH : H ≤ E.horizon) (k : ℕ) (w : Fin N) {dmin dmax L U : ℝ} (hd : 0 ≤ dmin) (hL : 0 ≤ L) (hLU : L ≤ U) (hdU : dmax ≤ U) (hU : U ≤ ↑H) (release : ∀ ω ∈ B.stream, ((E.supportHistory ω).native (↑H) false).release k ∈ Set.Icc dmin dmax) (hw : E.mind.reads.outputs w = true) (before : ∀ t ∈ Set.Ico dmin L, ∀ (j : Fin N), E.mind.reads.outputs j = true → R.score t j + R.error t j < E.mind.reads.actionBar) (qualifies : E.mind.reads.actionBar ≤ R.score U w - R.error U w) (dominates : ∀ t ∈ Set.Icc L U, ∀ (j : Fin N), j ≠ w → E.mind.reads.outputs j = true → R.score t j + R.error t j < R.score t w - R.error t w) :
          1 - B.errorProbability ≤ E.ground.μ.real {ω : Ω | ∃ t ∈ Set.Icc L U, E.supportRecord H false k ω = (t, Sum.inl w)}

          The same certificate at a later native release. Its clock is enclosed uniformly on the declared input event; every input and mode between releases is already covered by the coefficient box.