MindFormal v1.0.0One Mind

MindFormal.Run.ClampExit

02.12: the clamp's exit, and two truncations agreeing up to the smaller exit. The world input along the state's own action record is progressive: up to a time, the record's strict past is that of its record on the shorter horizon, known then (progressive_ownInput). Its excess over the clamp (one where the input exceeds the clamp, zero elsewhere) has a running integral that is continuous, adapted and nondecreasing; the clamp's exit is the last time it is zero (clampExit): a time is at most the exit exactly when the input stays within the clamp at almost every earlier time (le_clampExit_iff_input). The exit need not be a stopping time (the input is only progressive), but [0, exit] is the zero set of a continuous adapted process, hence predictable. The truncation's exit is the earlier of the radius's exit and the clamp's (ownExit). Two truncations, the second at a radius and a clamp no smaller, agree up to the first's exit (state_retrunc_exit): stage by stage, up to that exit the piece read at a time sees the same input under both clamps at almost every earlier time, so the two clamped input versions agree, and state_agree_until closes. Up to the first's exit the two world inputs agree too, and the first's exit is at most the second's (ownExit_le_retrunc).

theorem MindFormal.actionPast_censorHistory {C : Type u_1} {h : FiniteActionHistory C} (hh : ChronologicalHistory h) {θ : WithTop NNReal} {s : NNReal} (hs : ↑s ≤ θ) :
actionPast (↑s) (censorHistory θ h) = actionPast (↑s) h

Censoring a history at θ leaves its strict past at every time up to θ.

The world input along the state's own action record #

theorem MindFormal.StateMindData.measurable_ownInput_time {Ω : 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) (ω : Ω) :

The world input along the final state's own action record is measurable in time.

theorem MindFormal.StateMindData.progressive_ownInput {Ω : 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) :
Progressive M.filtration fun (s : NNReal) (ω : Ω) => strictPastInput M.world (↑s) (M.finalStage.records ω false) ω

The world input along the final state's own action record is progressive: up to a time t, the strict past of the record is that of the record on [0, t ∧ H], known at t.

The clamp's exit #

noncomputable def MindFormal.StateMindData.clampExcess {Ω : 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) (s : NNReal) (ω : Ω) :

02.12: the clamp's excess: one where the world input along the state's own action record exceeds the clamp, zero elsewhere.

Equations
Instances For
    theorem MindFormal.StateMindData.clampExcess_nonneg {Ω : 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) (s : NNReal) (ω : Ω) :
    0 ≤ M.clampExcess s ω
    theorem MindFormal.StateMindData.norm_clampExcess_le {Ω : 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) (s : NNReal) (ω : Ω) :
    theorem MindFormal.StateMindData.measurable_clampExcess_time {Ω : 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) (ω : Ω) :
    Measurable fun (s : NNReal) => M.clampExcess s ω
    theorem MindFormal.StateMindData.progressive_clampExcess {Ω : 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) :
    theorem MindFormal.StateMindData.continuous_clampRun {Ω : 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) (ω : Ω) :
    Continuous fun (t : NNReal) => runInt M.clampExcess t ω
    theorem MindFormal.StateMindData.integrableOn_clampExcess {Ω : 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) (ω : Ω) (t : NNReal) :
    theorem MindFormal.StateMindData.clampRun_nonneg {Ω : 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) (t : NNReal) (ω : Ω) :
    theorem MindFormal.StateMindData.clampRun_mono {Ω : 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) {s t : NNReal} (hst : s ≤ t) (ω : Ω) :
    theorem MindFormal.StateMindData.clampRun_eq_zero_iff {Ω : 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) (t : NNReal) (ω : Ω) :

    The running excess is zero up to t exactly when the world input stays within the clamp at almost every time of (0, t].

    noncomputable def MindFormal.StateMindData.clampExit {Ω : 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) (ω : Ω) :

    02.12: the clamp's exit: the last time up to which the world input along the state's own action record stays within the clamp at almost every time; infinite if it always does.

    Equations
    Instances For
      theorem MindFormal.StateMindData.le_clampExit_iff {Ω : 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) {t : NNReal} {ω : Ω} :
      ↑t ≤ M.clampExit ω ↔ runInt M.clampExcess t ω = 0

      A time is at most the clamp's exit exactly when the running excess is zero there.

      theorem MindFormal.StateMindData.le_clampExit_iff_input {Ω : 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) {t : NNReal} {ω : Ω} :

      A time is at most the clamp's exit exactly when the world input along the state's own action record stays within the clamp at almost every earlier time.

      theorem MindFormal.StateMindData.measurableSet_stopSet_clampExit {Ω : 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) :

      [0, clamp's exit] is predictable: it is the zero set of the running excess, continuous and adapted.

      noncomputable def MindFormal.StateMindData.ownExit {Ω : 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) (ω : Ω) :

      02.12: the truncation's exit: the first time the state reaches the truncation radius, or the clamp's exit, whichever is first.

      Equations
      Instances For
        theorem MindFormal.StateMindData.measurableSet_stopSet_ownExit {Ω : 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) :
        theorem MindFormal.StateMindData.ae_input_le_of_le_clampExit {Ω : 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) (ω : Ω) :

        Up to the clamp's exit, the world input stays within the clamp at almost every time.

        theorem MindFormal.StateMindData.run_is_state_exit {Ω : 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) :
        ∀ᵐ (ω : Ω) ∂M.μ, ∀ a ≤ M.horizon, ↑a ≤ M.ownExit ω → ∀ t ≤ a, PhysicalMindState (M.finalStage.state t ω) ∧ ↑((M.toNoiseData.globalData ω).path t) = M.finalStage.state t ω

        02.12, the bridge up to the truncation's exit: at the activity floor, almost surely, up to every time within the horizon and the truncation's exit, the state is physical and the run is the state.

        Two truncations agree up to the smaller exit #

        theorem MindFormal.StateMindData.stage_actionPast_eq {Ω : 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) {ω : Ω} (hag : ∀ (k : ℕ) (t : NNReal), ↑t ≤ (M.stage (k + 1)).time ω → (M.stage (k + 1)).state t ω = (M.stage k).state t ω) {k : ℕ} (hkK : k + 1 ≤ M.stages) (c : Bool) {s : NNReal} (hk1 : ↑s ≤ (M.stage (k + 1)).time ω) :
        actionPast ↑s ↑((M.stage k).hist ω c) = actionPast (↑s) (M.finalStage.records ω c)

        Before a stage's next switch, its accepted records have the strict past of the final state's records.

        theorem MindFormal.StateMindData.coeff_retrunc_exit {Ω : 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) (hMU : M.inputBound ≤ U) (k : ℕ) (hk : ∀ᵐ (ω : Ω) ∂M.μ, M.StagesAgree (M.retrunc r hr U A hA) k ω (M.ownExit ω)) :
        ∀ᵐ (ω : Ω) ∂M.μ, ∀ᵐ (s : NNReal) ∂MathFin.ItoIntegralL2.timeMeasure, 0 < s → ↑s ≤ min (M.ownExit ω) ((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 ω)

        Up to the smaller exit, each stage's coefficients of two truncations agree: for the same mind truncated again at a radius and a clamp no smaller, wherever the stages agree up to the first truncation's exit, the two truncations' coefficients of a stage agree along the first's state at almost every positive time up to that exit and the stage's next switch. There the piece read sees the world input within the smaller clamp at almost every earlier time, so the two clamped input versions agree (predVersion_congr_ae) and the coefficients agree (stage_coeff_retrunc).

        theorem MindFormal.StateMindData.state_retrunc_exit {Ω : 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) (hMU : M.inputBound ≤ U) :
        ∀ᵐ (ω : Ω) ∂M.μ, (∀ (k : ℕ), M.StagesAgree (M.retrunc r hr U A hA) k ω (M.ownExit ω)) ∧ ∀ (t : NNReal), ↑t ≤ M.ownExit ω → (M.retrunc r hr U A hA).finalStage.state t ω = M.finalStage.state t ω

        02.12: two truncations agree up to the smaller exit. For the same mind truncated again at a radius and a clamp no smaller, with any allowances, almost surely the stages agree up to the first truncation's exit and the two final states agree at every time up to it; the exit is not a stopping time, but [0, exit] is predictable (state_agree_until).

        theorem MindFormal.StateMindData.amp_retrunc_exit {Ω : 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) (hMU : M.inputBound ≤ U) :
        ∀ᵐ (ω : Ω) ∂M.μ, ∀ᵐ (s : NNReal) ∂MathFin.ItoIntegralL2.timeMeasure, 0 < s → ↑s ≤ M.ownExit ω → (M.retrunc r hr U A hA).finalStage.coeff.amp (s, ω) (M.finalStage.state s ω) = M.finalStage.coeff.amp (s, ω) (M.finalStage.state s ω)

        Up to the smaller exit, the two truncations' final amplitudes agree along the state: almost surely, at almost every positive time up to the first truncation's exit, the second's final amplitude at the first's state is the first's.

        theorem MindFormal.StateMindData.ownInput_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) (hMU : M.inputBound ≤ U) :
        ∀ᵐ (ω : Ω) ∂M.μ, ∀ (v : NNReal), ↑v ≤ M.ownExit ω → strictPastInput M.world (↑v) ((M.retrunc r hr U A hA).finalStage.records ω false) ω = strictPastInput M.world (↑v) (M.finalStage.records ω false) ω

        Up to the smaller exit, the two truncations' world inputs agree: almost surely, at every time up to the first truncation's exit, the world input along the second's own action record is the first's.

        theorem MindFormal.StateMindData.ownExit_le_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) (hMU : M.inputBound ≤ U) :
        ∀ᵐ (ω : Ω) ∂M.μ, M.ownExit ω ≤ (M.retrunc r hr U A hA).ownExit ω

        The first truncation's exit is at most the second's: almost surely, up to the first's exit the second's state is the first's, inside the smaller ball, and its world input the first's, within the smaller clamp at almost every time.

        theorem MindFormal.StateExperiment.onOwnNoise_of_exit {Ω : 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, ↑t ≤ E.bridge.ownExit ω → E.OnOwnNoise ω t

        02.12: up to the truncation's exit, the run is on its own noise: almost surely, up to every time within the horizon and the exit (the first time the state reaches the radius, or the clamp's exit), the run is the mind's run on its own noise; the world input need stay within the clamp only at almost every time.