MindFormal v1.0.0One Mind

MindFormal.Run.StateOwn

02.12: the run on its own noise, on an event. The experiment's run is the bridge's state, and its noise the mind's own, up to the truncation's exit (run_is_state_on, amp_own_at). Here the exit is closed path by path. Native records are finitely many, so a path records nothing for a short while after any time (native_gap); two paths that agree up to a time therefore have the same strict-past records a little beyond it (observe_past_eq), and where the run and the state agree the run's world input is the state's own (input_eq_of_agree). Hence, if up to a time the run stays in a set strictly inside the truncation's ball and its world input in a set inside the clamp, the state never reaches the ball's edge or the clamp before then: the first time it would, it is the run, strictly inside, and stays so a little longer (StateMindData.inside_of_run). Up to that time the run is then the state and its noise the instance's own amplitude at its own state, input and focus (StateExperiment.OnOwnNoise, StateExperiment.onOwnNoise_of_run).

Native records after a time #

theorem MindFormal.native_gap {N : ℕ} {g v : ℝ → Fin N → ℝ} {H pause : ℝ} (s : NativeSchedule g v H pause) (a : ℝ) :
∃ δ > 0, ∀ (k : ℕ) (t : ℝ) (i : Fin N), (s.search k).event = some (t, i) → a < t → a + δ ≤ t

A native schedule records nothing for a short while after any time.

theorem MindFormal.observe_past_eq {H : ℝ} {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (D : PhysicalCouplingData H N n T Λ) (x y : C(↑(HorizonTime H), PhysicalState N n T Λ)) {a : ℝ} (haH : a ≤ H) (hxy : ∀ (u : ↑(HorizonTime H)), ↑u ≤ a → x u = y u) :
∃ δ > 0, ∀ (c : Bool), ∀ r ≤ a + δ, actionPast r (nativeActionHistory (D.observe x c)) = actionPast r (nativeActionHistory (D.observe y c))

Records are local in the path, a little beyond a time of agreement. Where two physical paths agree up to a ≤ H, their native records have the same strict past at every time up to a + δ, for some δ > 0: neither records anything in between.

The truncation's exit, closed from the run's side #

theorem MindFormal.StateMindData.input_eq_of_agree {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) :
∀ᵐ (ω : Ω) ∂M.μ, ∀ a ≤ M.horizon, (∀ s ≤ a, PhysicalMindState (M.finalStage.state s ω) ∧ ↑((M.toNoiseData.globalData ω).path s) = M.finalStage.state s ω) → ∃ δ > 0, ∀ (r : NNReal), ↑r ≤ ↑a + δ → r ≤ M.horizon → (M.toNoiseData.globalData ω).input ↑r = strictPastInput M.world (↑r) (M.finalStage.records ω false) ω

The run's world input is the state's own, a little beyond a time up to which they agree. Almost surely, whenever the run and the state agree up to a time a within the horizon, the state physical, the run's world input is the world's at the strict past of the state's own action record at every time up to a + δ within the horizon, for some δ > 0.

theorem MindFormal.StateMindData.inside_of_run {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) (hM : M.ranges = floorRanges) {B : Set (MindState (Fin N) n T Λ)} {V : Set (Fin N → ℝ)} (hB : ∀ x ∈ B, ‖x‖ < ↑M.radius) (hV : ∀ u ∈ V, ‖u‖ ≤ ↑M.inputBound) :
∀ᵐ (ω : Ω) ∂M.μ, ∀ t ≤ M.horizon, (∀ s ≤ t, ↑((M.toNoiseData.globalData ω).path s) ∈ B ∧ (M.toNoiseData.globalData ω).input ↑s ∈ V) → ∀ s ≤ t, ‖M.finalStage.state s ω‖ ≤ ↑M.radius ∧ ‖strictPastInput M.world (↑s) (M.finalStage.records ω false) ω‖ ≤ ↑M.inputBound

02.12: the state stays inside the truncation while the run stays inside a smaller set. At the activity floor, let every state of B lie strictly inside the ball of the truncation radius and every input of V within the clamp. Almost surely, if up to a time within the horizon the run stays in B and its world input in V, then up to that time the state lies in the ball and its world input within the clamp.

The run on its own noise #

def MindFormal.StateExperiment.OnOwnNoise {Ω : 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) (ω : Ω) (t : NNReal) :

02.12, C3: the experiment's run is, through t, the mind's run on its own noise: at every time of [0,t] the run is the bridge's state and physical, and at almost every time of (0,t] the amplitude of the experiment's noise along the run is the instance's amplitude at the run's state, the world input of its own action record and the pulse of its own focus record.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.StateExperiment.onOwnNoise_of_inside {Ω : 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) :
    ∀ᵐ (ω : Ω) ∂E.ground.μ, ∀ t ≤ E.horizon, (∀ s ≤ t, ‖E.bridge.finalStage.state s ω‖ ≤ ↑E.radius ∧ ‖strictPastInput E.world.world (↑s) (E.bridge.finalStage.records ω false) ω‖ ≤ ↑E.inputBound) → E.OnOwnNoise ω t

    02.12: inside the truncation, the run is on its own noise. Almost surely, up to every time within the horizon before which the state lies in the ball of the truncation radius and its world input within the clamp, the run is the mind's run on its own noise.

    theorem MindFormal.StateExperiment.onOwnNoise_of_run {Ω : 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) {B : Set (MindState (Fin N) n T Λ)} {V : Set (Fin N → ℝ)} (hB : ∀ x ∈ B, ‖x‖ < ↑E.radius) (hV : ∀ u ∈ V, ‖u‖ ≤ ↑E.inputBound) :

    02.12, the truncation's exit closed on an event: the run on its own noise. Let every state of B lie strictly inside the ball of the truncation radius and every input of V within the clamp. Almost surely, if up to a time within the horizon the run stays in B and its world input in V, then up to that time the run is the mind's run on its own noise, and the state lies in the ball and its world input within the clamp.

    One run for every truncation: uniqueness up to the exit #

    def MindFormal.StateMindData.retrunc {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) (r : NNReal) (hr : 0 < r) (U : NNReal) (A : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ) (hA : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < A a i) :
    StateMindData Ω N n T Λ J

    The same mind truncated at another radius and another clamp, with other allowances.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MindFormal.StateMindData.pieceArgs_retrunc {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} {r U : NNReal} {hr : 0 < r} {A : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ} {hA : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < A a i} (hMr : M.radius ≤ r) (θ : Ω → WithTop NNReal) (h : Ω → ClockHistories N) (z : NNReal × Ω) (hin : clampBox U (predVersion (pieceInput M.world U θ h) z) = clampBox M.inputBound (predVersion (pieceInput M.world M.inputBound θ h) z)) {x : MindState (Fin N) n T Λ} (hx : ‖x‖ ≤ ↑M.radius) :
      (M.retrunc r hr U A hA).pieceArgs θ h z x = M.pieceArgs θ h z x

      Inside the smaller ball, the pieces of two truncations read the same arguments where their clamped input versions agree.

      theorem MindFormal.StateMindData.pieceArgs_congr {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} {θ θ' : Ω → WithTop NNReal} {h h' : Ω → ClockHistories N} {ω : Ω} (hθ : θ ω = θ' ω) (hh : h ω = h' ω) (s : NNReal) (x : MindState (Fin N) n T Λ) :
      M.pieceArgs θ h (s, ω) x = M.pieceArgs θ' h' (s, ω) x

      A piece's arguments on one sample read its switch and history only there.

      theorem MindFormal.StateMindData.slot_eq_of_agree {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) {X X' : NNReal → Ω → MindState (Fin N) n T Λ} (hX : ∀ (ω : Ω), Continuous fun (t : NNReal) => X t ω) (hX' : ∀ (ω : Ω), Continuous fun (t : NNReal) => X' t ω) {ω : Ω} {σ : WithTop NNReal} (hag : ∀ (t : NNReal), ↑t ≤ σ → X' t ω = X t ω) (c : Bool) (j : ℕ) (h : SlotFull (↑(procRecord M.reads M.pause ⋯ hX M.horizon ω c) j) ∧ slotTime (↑(procRecord M.reads M.pause ⋯ hX M.horizon ω c) j) ≤ σ ∨ SlotFull (↑(procRecord M.reads M.pause ⋯ hX' M.horizon ω c) j) ∧ slotTime (↑(procRecord M.reads M.pause ⋯ hX' M.horizon ω c) j) ≤ σ ∨ ¬SlotFull (↑(procRecord M.reads M.pause ⋯ hX M.horizon ω c) j) ∧ ¬SlotFull (↑(procRecord M.reads M.pause ⋯ hX' M.horizon ω c) j)) :
      ↑(procRecord M.reads M.pause ⋯ hX' M.horizon ω c) j = ↑(procRecord M.reads M.pause ⋯ hX M.horizon ω c) j

      Where two processes agree up to σ, a slot of their records that is full at or before σ in either is the same slot in both.

      theorem MindFormal.StateMindData.censor_eq_of_agree {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) {X X' : NNReal → Ω → MindState (Fin N) n T Λ} (hX : ∀ (ω : Ω), Continuous fun (t : NNReal) => X t ω) (hX' : ∀ (ω : Ω), Continuous fun (t : NNReal) => X' t ω) {ω : Ω} {σ θ : WithTop NNReal} (hag : ∀ (t : NNReal), ↑t ≤ σ → X' t ω = X t ω) (hθ : θ ≤ σ) (c : Bool) :
      censorHistory θ (procRecord M.reads M.pause ⋯ hX' M.horizon ω c) = censorHistory θ (procRecord M.reads M.pause ⋯ hX M.horizon ω c)

      Where two processes agree up to σ, their records censored at any time up to σ agree.

      theorem MindFormal.StateMindData.firstNew_of_agree {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) {X X' : NNReal → Ω → MindState (Fin N) n T Λ} (hX : ∀ (ω : Ω), Continuous fun (t : NNReal) => X t ω) (hX' : ∀ (ω : Ω), Continuous fun (t : NNReal) => X' t ω) {ω : Ω} {σ : WithTop NNReal} (hag : ∀ (t : NNReal), ↑t ≤ σ → X' t ω = X t ω) (h : ClockHistories N) :
      (firstNew M.cap (procRecords M.reads M.pause ⋯ hX M.horizon ω) h ≤ σ → firstNew M.cap (procRecords M.reads M.pause ⋯ hX' M.horizon ω) h = firstNew M.cap (procRecords M.reads M.pause ⋯ hX M.horizon ω) h) ∧ (σ < firstNew M.cap (procRecords M.reads M.pause ⋯ hX M.horizon ω) h → σ < firstNew M.cap (procRecords M.reads M.pause ⋯ hX' M.horizon ω) h)

      Where two processes agree up to σ, the first full slot of their records not in a history h is the same when it is at or before σ, and after σ for both otherwise.

      def MindFormal.StateMindData.StagesAgree {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M M' : StateMindData Ω N n T Λ J) (k : ℕ) (ω : Ω) (σ : WithTop NNReal) :

      Two truncations' stages agree up to σ: every switch of the first at or before σ is a switch of the second at the same time with the same accepted records, and every switch of the first after σ is after σ in the second too.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.StateMindData.stage_coeff_map {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} (M' : StateMindData Ω N n T Λ J) (a : CoordinateIndex (Fin N) n T Λ → ℝ) (k : ℕ) {ω : Ω} {σ : WithTop NNReal} (hag : M.StagesAgree M' k ω σ) {s : NNReal} (hs0 : 0 < s) (hs : ↑s ≤ σ) (hs1 : ↑s ≤ (M.stage (k + 1)).time ω) (x : MindState (Fin N) n T Λ) (hpiece : ∀ j ≤ k, (M.stage j).time ω < ↑s → ↑s ≤ (M.stage (j + 1)).time ω → M'.driftMap (M'.pieceArgs (M.stage j).time (M.stage j).hist (s, ω) ((diagonalMap a) x)) = (diagonalMap a) (M.driftMap (M.pieceArgs (M.stage j).time (M.stage j).hist (s, ω) x)) ∧ M'.amp (M'.pieceArgs (M.stage j).time (M.stage j).hist (s, ω) ((diagonalMap a) x)) = (diagonalRows a) (M.amp (M.pieceArgs (M.stage j).time (M.stage j).hist (s, ω) x))) :
        (M'.stage k).coeff.drift (s, ω) ((diagonalMap a) x) = (diagonalMap a) ((M.stage k).coeff.drift (s, ω) x) ∧ (M'.stage k).coeff.amp (s, ω) ((diagonalMap a) x) = (diagonalRows a) ((M.stage k).coeff.amp (s, ω) x)

        Coefficients of two staged runs agree through a diagonal whenever their pieces agree through that map on each interval selected by the shared past. This is the stage induction used by the identity-map retruncation theorem.

        theorem MindFormal.StateMindData.stage_coeff_retrunc {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} {r U : NNReal} {hr : 0 < r} {A : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ} {hA : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < A a i} (hMr : M.radius ≤ r) (k : ℕ) {ω : Ω} {σ : WithTop NNReal} (hag : M.StagesAgree (M.retrunc r hr U A hA) k ω σ) {s : NNReal} (hs0 : 0 < s) (hs : ↑s ≤ σ) (hs1 : ↑s ≤ (M.stage (k + 1)).time ω) (hin : ∀ j ≤ k, (M.stage j).time ω < ↑s → ↑s ≤ (M.stage (j + 1)).time ω → clampBox U (predVersion (pieceInput M.world U (M.stage j).time (M.stage j).hist) (s, ω)) = clampBox M.inputBound (predVersion (pieceInput M.world M.inputBound (M.stage j).time (M.stage j).hist) (s, ω))) {x : MindState (Fin N) n T Λ} (hx : ‖x‖ ≤ ↑M.radius) :
        ((M.retrunc r hr U A hA).stage k).coeff.drift (s, ω) x = (M.stage k).coeff.drift (s, ω) x ∧ ((M.retrunc r hr U A hA).stage k).coeff.amp (s, ω) x = (M.stage k).coeff.amp (s, ω) x

        Where the stages agree up to σ, inside the smaller ball the two truncations' coefficients agree at every positive time up to σ and the next switch, provided the clamped input versions of the piece read there agree.

        theorem MindFormal.StateMindData.stage_state_final {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M : StateMindData Ω N n T Λ J) :
        ∀ᵐ (ω : Ω) ∂M.μ, ∀ (k : ℕ) (t : NNReal), ↑t ≤ (M.stage (k + 1)).time ω → (M.stage k).state t ω = M.finalStage.state t ω

        Almost surely each stage's state is the final state up to the stage's next switch.

        theorem MindFormal.StateMindData.stage_state_agree_on_map {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} (M' : StateMindData Ω N n T Λ J) (a : CoordinateIndex (Fin N) n T Λ → ℝ) (ha : ∀ (i : CoordinateIndex (Fin N) n T Λ), a i ≠ 0) (hμ : M'.μ = M.μ) (hfil : M'.filtration = M.filtration) (hsources : M'.sources = M.sources) (hH : M'.horizon = M.horizon) (hranges : M'.ranges = M.ranges) (hstart : (fun (ω : Ω) => ↑(M'.start ω)) = fun (ω : Ω) => (diagonalMap a) ↑(M.start ω)) (hR : ∀ (p : NNReal → MindState (Fin N) n T Λ), Continuous p → ∀ (t : NNReal), reflectPath M.ranges.pathReflection M.horizon (fun (s : NNReal) => (diagonalMap a) (p s)) t = (diagonalMap a) (reflectPath M.ranges.pathReflection M.horizon p t)) (k : ℕ) (ς : Ω → WithTop NNReal) (hS : MeasurableSet (ItoFiltration.stopSet ς)) (hcoeff : ∀ᵐ (ω : Ω) ∂M.μ, ∀ᵐ (s : NNReal) ∂MathFin.ItoIntegralL2.timeMeasure, 0 < s → ↑s ≤ ς ω → (M'.stage k).coeff.drift (s, ω) ((diagonalMap a) ((M.stage k).state s ω)) = (diagonalMap a) ((M.stage k).coeff.drift (s, ω) ((M.stage k).state s ω)) ∧ (M'.stage k).coeff.amp (s, ω) ((diagonalMap a) ((M.stage k).state s ω)) = (diagonalRows a) ((M.stage k).coeff.amp (s, ω) ((M.stage k).state s ω))) :
        ∀ᵐ (ω : Ω) ∂M.μ, ∀ (t : NNReal), ↑t ≤ ς ω → (M'.stage k).state t ω = (diagonalMap a) ((M.stage k).state t ω)

        One stage of two experiments on the same ground agrees through a diagonal up to a predictable exit when its coefficients do there. The image solution is derived by commuting the stochastic integrals and the reflection with the map.

        theorem MindFormal.StateMindData.state_agree_until_map {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} (M' : StateMindData Ω N n T Λ J) (a : CoordinateIndex (Fin N) n T Λ → ℝ) (ha : ∀ (i : CoordinateIndex (Fin N) n T Λ), a i ≠ 0) (hμ : M'.μ = M.μ) (hfil : M'.filtration = M.filtration) (hsources : M'.sources = M.sources) (hH : M'.horizon = M.horizon) (hpause : M'.pause = M.pause) (hranges : M'.ranges = M.ranges) (hstart : (fun (ω : Ω) => ↑(M'.start ω)) = fun (ω : Ω) => (diagonalMap a) ↑(M.start ω)) (hR : ∀ (p : NNReal → MindState (Fin N) n T Λ), Continuous p → ∀ (t : NNReal), reflectPath M.ranges.pathReflection M.horizon (fun (s : NNReal) => (diagonalMap a) (p s)) t = (diagonalMap a) (reflectPath M.ranges.pathReflection M.horizon p t)) (hg : ∀ (c : Bool) (x : MindState (Fin N) n T Λ) (i : Fin N), 0 ≤ (M.reads.guards c) (physicalRetract x) i ↔ 0 ≤ (M'.reads.guards c) (physicalRetract ((diagonalMap a) x)) i) (hv : ∀ (c : Bool) (x : MindState (Fin N) n T Λ) (i j : Fin N), (M.reads.scores c) (physicalRetract x) i ≤ (M.reads.scores c) (physicalRetract x) j ↔ (M'.reads.scores c) (physicalRetract ((diagonalMap a) x)) i ≤ (M'.reads.scores c) (physicalRetract ((diagonalMap a) x)) j) (ς : Ω → WithTop NNReal) (hS : MeasurableSet (ItoFiltration.stopSet ς)) (hcoeff : ∀ (k : ℕ), (∀ᵐ (ω : Ω) ∂M.μ, M.StagesAgree M' k ω (ς ω)) → ∀ᵐ (ω : Ω) ∂M.μ, ∀ᵐ (s : NNReal) ∂MathFin.ItoIntegralL2.timeMeasure, 0 < s → ↑s ≤ min (ς ω) ((M.stage (k + 1)).time ω) → (M'.stage k).coeff.drift (s, ω) ((diagonalMap a) ((M.stage k).state s ω)) = (diagonalMap a) ((M.stage k).coeff.drift (s, ω) ((M.stage k).state s ω)) ∧ (M'.stage k).coeff.amp (s, ω) ((diagonalMap a) ((M.stage k).state s ω)) = (diagonalRows a) ((M.stage k).coeff.amp (s, ω) ((M.stage k).state s ω))) :
        ∀ᵐ (ω : Ω) ∂M.μ, (∀ (k : ℕ), M.StagesAgree M' k ω (ς ω)) ∧ ∀ (t : NNReal), ↑t ≤ ς ω → M'.finalStage.state t ω = (diagonalMap a) (M.finalStage.state t ω)

        Two staged runs on one ground agree through an invertible diagonal up to a predictable exit. Native tests and orders, the reflection, and each stage's coefficients are compared through the map. The original retruncation theorem below is the identity-map case.

        noncomputable def MindFormal.StateMindData.imageExit {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (M M' : StateMindData Ω N n T Λ J) (a : CoordinateIndex (Fin N) n T Λ → ℝ) (ω : Ω) :

        The common validity time of two state clamps: the original state's exit from its box and the exit of its image from the second box. Both are stopping times of the original experiment.

        Equations
        Instances For
          theorem MindFormal.StateMindData.state_box_map {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} (M' : StateMindData Ω N n T Λ J) (a : CoordinateIndex (Fin N) n T Λ → ℝ) (ha : ∀ (i : CoordinateIndex (Fin N) n T Λ), a i ≠ 0) (hμ : M'.μ = M.μ) (hfil : M'.filtration = M.filtration) (hsources : M'.sources = M.sources) (hH : M'.horizon = M.horizon) (hpause : M'.pause = M.pause) (hranges : M'.ranges = M.ranges) (hworld : M'.world = M.world) (hclamp : M'.inputBound = M.inputBound) (hstart : (fun (ω : Ω) => ↑(M'.start ω)) = fun (ω : Ω) => (diagonalMap a) ↑(M.start ω)) (hR : ∀ (p : NNReal → MindState (Fin N) n T Λ), Continuous p → ∀ (t : NNReal), reflectPath M.ranges.pathReflection M.horizon (fun (s : NNReal) => (diagonalMap a) (p s)) t = (diagonalMap a) (reflectPath M.ranges.pathReflection M.horizon p t)) (hg : ∀ (c : Bool) (x : MindState (Fin N) n T Λ) (i : Fin N), 0 ≤ (M.reads.guards c) (physicalRetract x) i ↔ 0 ≤ (M'.reads.guards c) (physicalRetract ((diagonalMap a) x)) i) (hv : ∀ (c : Bool) (x : MindState (Fin N) n T Λ) (i j : Fin N), (M.reads.scores c) (physicalRetract x) i ≤ (M.reads.scores c) (physicalRetract x) j ↔ (M'.reads.scores c) (physicalRetract ((diagonalMap a) x)) i ≤ (M'.reads.scores c) (physicalRetract ((diagonalMap a) x)) j) (hb : ∀ (u q : Fin N → ℝ) (x : CoordinateIndex (Fin N) n T Λ → ℝ), M'.driftMap (u, q, (diagonalMap a) x) = (diagonalMap a) (M.driftMap (u, q, x))) (hamp : ∀ (u q : Fin N → ℝ) (x : CoordinateIndex (Fin N) n T Λ → ℝ), M'.amp (u, q, (diagonalMap a) x) = (diagonalRows a) (M.amp (u, q, x))) :
          ∀ᵐ (ω : Ω) ∂M.μ, (∀ (k : ℕ), M.StagesAgree M' k ω (M.imageExit M' a ω)) ∧ ∀ (t : NNReal), ↑t ≤ M.imageExit M' a ω → M'.finalStage.state t ω = (diagonalMap a) (M.finalStage.state t ω)

          Two state clamps with the same input clamp agree through a diagonal up to the original state's exit from either its own box or the inverse image of the second box. The coefficients and native rules are compared at all real arguments; their stage comparison is derived, not assumed.

          theorem MindFormal.StateMindData.state_agree_until {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} {r U : NNReal} {hr : 0 < r} {A : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ} {hA : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < A a i} (ς : Ω → WithTop NNReal) (hS : MeasurableSet (ItoFiltration.stopSet ς)) (hcoeff : ∀ (k : ℕ), (∀ᵐ (ω : Ω) ∂M.μ, M.StagesAgree (M.retrunc r hr U A hA) k ω (ς ω)) → ∀ᵐ (ω : Ω) ∂M.μ, ∀ᵐ (s : NNReal) ∂MathFin.ItoIntegralL2.timeMeasure, 0 < s → ↑s ≤ min (ς ω) ((M.stage (k + 1)).time ω) → ((M.retrunc r hr U A hA).stage k).coeff.drift (s, ω) ((M.stage k).state s ω) = (M.stage k).coeff.drift (s, ω) ((M.stage k).state s ω) ∧ ((M.retrunc r hr U A hA).stage k).coeff.amp (s, ω) ((M.stage k).state s ω) = (M.stage k).coeff.amp (s, ω) ((M.stage k).state s ω)) :
          ∀ᵐ (ω : Ω) ∂M.μ, (∀ (k : ℕ), M.StagesAgree (M.retrunc r hr U A hA) k ω (ς ω)) ∧ ∀ (t : NNReal), ↑t ≤ ς ω → (M.retrunc r hr U A hA).finalStage.state t ω = M.finalStage.state t ω

          02.12: two truncations agree up to a predictable exit. For the same mind truncated again (another radius, clamp and allowances), let [0, ς] be predictable and suppose that, wherever the stages agree up to ς, the two truncations' coefficients of each stage agree along the first's state at almost every positive time up to ς and that stage's next switch. Then almost surely the stages agree up to ς and the two final states agree at every time up to ς: stage by stage, the states agree up to ς and the next switch (eq_of_agree_on), so the next switches agree.

          theorem MindFormal.StateMindData.state_retrunc {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {M : StateMindData Ω N n T Λ J} {r : NNReal} {hr : 0 < r} {A : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ} {hA : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < A a i} (hMr : M.radius ≤ r) :
          ∀ᵐ (ω : Ω) ∂M.μ, ∀ (t : NNReal), ↑t ≤ exitTime M.finalStage.state M.radius ω → (M.retrunc r hr M.inputBound A hA).finalStage.state t ω = M.finalStage.state t ω

          02.12: one state for every truncation radius, up to the exit. For the same mind truncated at a radius r no smaller, with the same clamp and any allowances, almost surely the two final states agree at every time up to the first time the first reaches its radius (a stopping time): the stages agree switch by switch, the coefficients agree inside the smaller ball, and the solutions agree up to that time (state_agree_until).

          def MindFormal.StateExperiment.OwnDraws {Ω : 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) (B : Set (MindState (Fin N) n T Λ)) (V : Set (Fin N → ℝ)) :
          Set Ω

          02.12: the draws on which the run is on its own noise while it stays in B with its input in V: up to every time within the horizon before which the run stays in B and its world input in V, the run is the mind's run on its own noise.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def MindFormal.StateExperiment.withRadius {Ω : 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) (r : NNReal) (hr : 0 < r) (allow : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ) (allow_pos : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < allow a i) (bound : CoordinateIndex (Fin N) n T Λ → ℝ) (bound_pos : ∀ (c : CoordinateIndex (Fin N) n T Λ), 0 < bound c) (amp_bound : ∀ (c : CoordinateIndex (Fin N) n T Λ), ∀ z ∈ instanceArgumentDomain, ‖z.1‖ ≤ ↑r → ‖z.2.1‖ ≤ ↑E.inputBound → ∑ k : J, E.mind.amplitude z c k ^ 2 ≤ bound c ^ 2) :
            StateExperiment Ω N n T Λ J

            The same experiment truncated at another radius, with the loading bounds and allowances read through it.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MindFormal.StateExperiment.withRadius_bridge {Ω : 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) (r : NNReal) (hr : 0 < r) (allow : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ) (allow_pos : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < allow a i) (bound : CoordinateIndex (Fin N) n T Λ → ℝ) (bound_pos : ∀ (c : CoordinateIndex (Fin N) n T Λ), 0 < bound c) (amp_bound : ∀ (c : CoordinateIndex (Fin N) n T Λ), ∀ z ∈ instanceArgumentDomain, ‖z.1‖ ≤ ↑r → ‖z.2.1‖ ≤ ↑E.inputBound → ∑ k : J, E.mind.amplitude z c k ^ 2 ≤ bound c ^ 2) :
              (E.withRadius r hr allow allow_pos bound bound_pos amp_bound).bridge = E.bridge.retrunc r hr E.inputBound allow allow_pos
              theorem MindFormal.StateExperiment.run_withRadius {Ω : 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) {r : NNReal} {hr : 0 < r} {allow : (J → ℝ) → CoordinateIndex (Fin N) n T Λ → ℝ} {allow_pos : ∀ (a : J → ℝ), (∀ (j : J), 0 < a j) → ∀ (i : CoordinateIndex (Fin N) n T Λ), 0 < allow a i} {bound : CoordinateIndex (Fin N) n T Λ → ℝ} {bound_pos : ∀ (c : CoordinateIndex (Fin N) n T Λ), 0 < bound c} {amp_bound : ∀ (c : CoordinateIndex (Fin N) n T Λ), ∀ z ∈ instanceArgumentDomain, ‖z.1‖ ≤ ↑r → ‖z.2.1‖ ≤ ↑E.inputBound → ∑ k : J, E.mind.amplitude z c k ^ 2 ≤ bound c ^ 2} (hEr : E.radius ≤ r) :
              ∀ᵐ (ω : Ω) ∂E.ground.μ, (∀ (t : NNReal), ↑t ≤ exitTime E.bridge.finalStage.state E.radius ω → (E.withRadius r hr allow allow_pos bound bound_pos amp_bound).bridge.finalStage.state t ω = E.bridge.finalStage.state t ω) ∧ ∀ (t : NNReal), (∀ s ≤ t, ‖E.bridge.finalStage.state s ω‖ < ↑E.radius) → E.OnOwnNoise ω t → (E.withRadius r hr allow allow_pos bound bound_pos amp_bound).OnOwnNoise ω t → ∀ s ≤ t, ↑(((E.withRadius r hr allow allow_pos bound bound_pos amp_bound).toNoise.data.toPhysicalNoiseData.globalData ω).path s) = ↑((E.toNoise.data.toPhysicalNoiseData.globalData ω).path s)

              02.12: the run on its own noise does not depend on the truncation radius. For the same experiment truncated at a radius r no smaller: almost surely the two states agree up to the first time the first reaches its radius (a stopping time); and up to any time before which the first stays strictly inside its ball and both runs are on their own noise, the two runs agree.

              The learning corridor's event closes the exit #

              def MindFormal.StateLearning.Contained {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) :

              04.20, 05.26: the truncation contains the learning corridor: its radius is at least B + C (the reference's bound and its clearance), its clamp at least the control's input bound U, and its horizon at least the control's.

              Equations
              Instances For
                theorem MindFormal.StateLearning.onOwnNoise_of_good {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) :

                04.20, 05.26: on the learning corridor's event, within the world event, the run is on its own noise. When the truncation contains the corridor, almost surely, on the corridor's event and the control's world event, the run is the mind's run on its own noise through the control's horizon: there the run stays within B + C (strictly, since the error is below the clearance) and its input within U (the world event), so onOwnNoise_of_run applies.

                theorem MindFormal.StateLearning.onOwnNoise_of_good_of_exit {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) (hεu : C.control.εu = 0) :

                05.14–05.23: with no input exit, the corridor's event alone puts the run on its own noise. When the control's input-exit allowance ε_u is zero (02.20: a known uniform input bound gives ε_u = 0), its world event has full mass; so, when the truncation contains the corridor, almost surely, on the corridor's event, the run is the mind's run on its own noise through the control's horizon (onOwnNoise_of_good), and no failure beyond the corridor's is charged.

                The allowances on the mind's own noise, with the loading bounded on a region #

                theorem MindFormal.StateExperiment.local_allowance_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} (hH : H ≤ E.horizon) {εu : ℝ} (ϖ Gd : CoordinateIndex (Fin N) n T Λ → ℝ) (hϖ : ∀ (c : CoordinateIndex (Fin N) n T Λ), 0 < ϖ c) (Eu : Set Ω) (hEu : MeasurableSet Eu) (hEuμ : 1 - εu ≤ E.ground.μ.real Eu) {Q : Ω → Prop} (hQ : ∀ᵐ (z : Ω) ∂E.ground.μ, Q z) :
                ∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ Eu ∧ (∀ z ∈ good, Q z ∧ E.toNoise.data.toPhysicalNoiseData.Good z) ∧ 1 - min 1 (εu + ∑ c : CoordinateIndex (Fin N) n T Λ with Gd c ≠ 0, 2 * Real.exp (-(ϖ c ^ 2 / (2 * Gd c ^ 2 * ↑H)))) ≤ E.ground.μ.real good ∧ ∀ z ∈ good, ∀ t ≤ H, (∀ᵐ (s : NNReal) ∂MathFin.ItoIntegralL2.timeMeasure, s ∈ Set.Ioc 0 t → ∀ (c : CoordinateIndex (Fin N) n T Λ), ∑ k : J, E.toNoise.noise.coeff.amp (s, z) (E.bridge.finalStage.state s z) c k ^ 2 ≤ Gd c ^ 2) → ∀ s ≤ t, ∀ (c : CoordinateIndex (Fin N) n T Λ), |E.toNoise.noise.driverPath s z c| < ϖ c

                02.20 (RP6) on the mind's own noise, with the loading bounded only where the state goes. Let every coordinate c have an allowance ϖ_c > 0 and a number G_c, E_u be a measurable event of mass at least 1 − ε_u, H within the horizon, and Q a property of almost every draw. Then on one measurable event inside E_u, of mass at least 1 − min(1, ε_u + Σ_{G_c ≠ 0} 2 exp(−ϖ_c²/(2G_c²H))), every draw is well constructed and has Q, and up to every time t ≤ H up to which every row's loading along the state is at most its G_c at almost every time, every coordinate of the noise stays below its allowance: the noise is the cut where the loading is within G_c (driverPath_eq_cutDriver), whose tails are exponential (cutDriver_tail). No bound on the loading outside that region is used.