MindFormal v1.0.0One Mind

MindFormal.Run.StateAdapter

02.12: the run adapter for noise that depends on the state. An admitted instance carries its own amplitude (C3): a function of the physical state, the nonnegative input and the binary focus. The adapter reads it at every argument (EquationInstance.extendedAmplitude): the state through the physical retraction, the input through its positive part, and the focus by weighting the binary focus vectors with the mode weights of its coordinates. On the amplitude's own domain the two agree; the reading keeps C1's regularity, its bound on the activity rows, its linear growth and its zero trace rows, and a bound on a row where the state and input are bounded bounds the reading's row there. With the instance's ground, world and start (square integrable), a horizon, a truncation radius, an input clamp, an allowance and each row's loading bound over the truncation (StateExperiment), it builds the bridge's data (StateExperiment.bridge) and the experiment whose noise is the state's own driver with the exponential failure of its bounded rows (StateExperiment.toNoise, at boundedStateCase; StateLearning for a learning application). At the experiment, up to the truncation's exit the run is the state and on its own noise (StateExperiment.onOwnNoise_of_inside, onOwnNoise_of_exit), and each row of the noise has the exponential tail of its loading bound over the truncation (StateExperiment.driver_tail).

Local Lipschitz algebra for vector values #

theorem MindFormal.localLipschitz_smul {E : Type u_1} {V : Type u_2} [PseudoMetricSpace E] [NormedAddCommGroup V] [NormedSpace ℝ V] {f : E → ℝ} {g : E → V} (hf : LocallyLipschitz f) (hg : LocallyLipschitz g) :
LocallyLipschitz fun (z : E) => f z • g z

A real locally Lipschitz function times a vector one is locally Lipschitz.

theorem MindFormal.localLipschitz_vsum {E : Type u_1} {ι : Type u_2} {V : Type u_3} [PseudoMetricSpace E] [Fintype ι] [SeminormedAddCommGroup V] {f : ι → E → V} (hf : ∀ (i : ι), LocallyLipschitz (f i)) :
LocallyLipschitz fun (z : E) => ∑ i : ι, f i z

A finite sum of locally Lipschitz vector functions is locally Lipschitz.

theorem MindFormal.localLipschitz_finsetProd {E : Type u_1} {ι : Type u_2} [PseudoMetricSpace E] (s : Finset ι) {f : ι → E → ℝ} (hf : ∀ (i : ι), LocallyLipschitz (f i)) :
LocallyLipschitz fun (z : E) => ∏ i ∈ s, f i z

A finite product of locally Lipschitz real functions is locally Lipschitz.

The instance's amplitude at every argument #

theorem MindFormal.modeWeight_of_mem {q : ℝ} (hq : q ∈ {0, 1}) :
def MindFormal.focusVector {N : ℕ} (S : Finset (Fin N)) :
Fin N → ℝ

02.12, C3: the binary focus vector of a set of contents.

Equations
Instances For
    def MindFormal.focusWeight {N : ℕ} (q : Fin N → ℝ) (S : Finset (Fin N)) :

    02.12, C3: the weight of the focus set S at a real focus argument q: the mode weights of the contents in S times one minus those of the contents outside it.

    Equations
    Instances For
      theorem MindFormal.focusWeight_nonneg {N : ℕ} (q : Fin N → ℝ) (S : Finset (Fin N)) :
      theorem MindFormal.sum_focusWeight {N : ℕ} (q : Fin N → ℝ) :
      ∑ S : Finset (Fin N), focusWeight q S = 1

      The weights of all focus sets sum to one.

      noncomputable def MindFormal.focusSet {N : ℕ} (q : Fin N → ℝ) :

      The focus set of a binary focus vector.

      Equations
      Instances For
        theorem MindFormal.focusVector_focusSet {N : ℕ} {q : Fin N → ℝ} (hq : ∀ (i : Fin N), q i ∈ {0, 1}) :
        theorem MindFormal.focusWeight_binary {N : ℕ} {q : Fin N → ℝ} (hq : ∀ (i : Fin N), q i ∈ {0, 1}) (S : Finset (Fin N)) :

        On a binary focus vector, the weight is one at its own focus set and zero at every other.

        def MindFormal.instanceArgs {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (S : Finset (Fin N)) (a : MindArguments (Fin N) n T Λ) :

        02.12: the instance's arguments read from any argument with the focus set S: the physical retraction of the state, the positive part of the input and the binary focus of S.

        Equations
        Instances For
          theorem MindFormal.instanceArgs_mem {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (S : Finset (Fin N)) (a : MindArguments (Fin N) n T Λ) :
          def MindFormal.EquationInstance.extendedAmplitude {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} (I : EquationInstance N n T Λ J) :
          MindArguments (Fin N) n T Λ → CoordinateIndex (Fin N) n T Λ → J → ℝ

          02.12, C3: the instance's amplitude at every argument: the amplitude at the physical retraction of the state and the positive part of the input, its binary focus branches weighted by the mode weights of the focus argument.

          Equations
          Instances For
            theorem MindFormal.extendedAmplitude_eq {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} (I : EquationInstance N n T Λ J) {a : MindArguments (Fin N) n T Λ} (hx : PhysicalMindState a.2.2) (hu : 0 ≤ a.1) (hq : ∀ (i : Fin N), a.2.1 i ∈ {0, 1}) :
            I.extendedAmplitude a = I.amplitude (a.2.2, a.1, a.2.1)

            On the amplitude's own domain the reading is the amplitude: at a physical state, a nonnegative input and a binary focus.

            theorem MindFormal.physicalRetract_lipschitz {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] :
            LipschitzWith 1 fun (x : MindState (Fin N) n T Λ) => ↑(physicalRetract x)

            The physical retraction is one-Lipschitz.

            theorem MindFormal.norm_physicalRetract_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (x : MindState (Fin N) n T Λ) :
            theorem MindFormal.instanceArgs_lipschitz {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (S : Finset (Fin N)) :
            theorem MindFormal.norm_instanceArgs_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (S : Finset (Fin N)) (a : MindArguments (Fin N) n T Λ) :
            theorem MindFormal.localLipschitz_amplitude_args {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (A : InstanceAdmission I) (S : Finset (Fin N)) :
            LocallyLipschitz fun (a : MindArguments (Fin N) n T Λ) => I.amplitude (instanceArgs S a)

            The instance's amplitude read through the arguments of a focus set is locally Lipschitz.

            theorem MindFormal.localLipschitz_focusWeight {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (S : Finset (Fin N)) :
            LocallyLipschitz fun (a : MindArguments (Fin N) n T Λ) => focusWeight a.2.1 S
            theorem MindFormal.extendedAmplitude_regular {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) :

            The reading is locally Lipschitz (C1).

            theorem MindFormal.extendedAmplitude_trace {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (a : MindArguments (Fin N) n T Λ) (i : Fin N) (l : Λ) :

            The reading loads no trace row (D12).

            theorem MindFormal.extendedAmplitude_activity_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) :
            ∃ (G : NNReal), ∀ (a : MindArguments (Fin N) n T Λ) (i : Fin N) (k : J), |I.extendedAmplitude a (Sum.inr (Sum.inl i)) k| ≤ ↑G

            The reading's activity rows are bounded, by the admission's bound (C1).

            theorem MindFormal.extendedAmplitude_growth {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) :
            ∃ (Ka : NNReal), ∀ (a : MindArguments (Fin N) n T Λ), ‖I.extendedAmplitude a‖ ≤ ↑Ka * (1 + ‖a‖)

            The reading grows at most linearly (C1).

            theorem MindFormal.extendedAmplitude_row_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) {c : CoordinateIndex (Fin N) n T Λ} {G R U : ℝ} (hrow : ∀ z ∈ instanceArgumentDomain, ‖z.1‖ ≤ R → ‖z.2.1‖ ≤ U → ∑ k : J, I.amplitude z c k ^ 2 ≤ G ^ 2) {a : MindArguments (Fin N) n T Λ} (hx : ‖a.2.2‖ ≤ R) (hu : ‖a.1‖ ≤ U) :
            ∑ k : J, I.extendedAmplitude a c k ^ 2 ≤ G ^ 2

            A row of the reading is bounded where the amplitude's is: if row c of the amplitude has squared size at most G² at every admissible argument whose state has size at most R and whose input at most U, so has the reading's at every argument with state and input so bounded (the focus weights average the binary branches).

            The amplitude along the bridge's state #

            theorem MindFormal.StateMindData.stage_amp_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} {ω : Ω} {k m : ℕ} (hkm : k + 1 ≤ m) {s : NNReal} (hs : ↑s ≤ (M.stage (k + 1)).time ω) (x : MindState (Fin N) n T Λ) :
            (M.stage m).coeff.amp (s, ω) x = (M.stage k).coeff.amp (s, ω) x

            A later stage's amplitude is an earlier one's up to the earlier one's next switch.

            theorem MindFormal.StateMindData.stage_amp_piece {Ω : 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} {ω : Ω} (k : ℕ) {s : NNReal} (hs : (M.stage k).time ω < ↑s) (x : MindState (Fin N) n T Λ) :
            (M.stage k).coeff.amp (s, ω) x = M.amp (M.pieceArgs (M.stage k).time (M.stage k).hist (s, ω) x)

            After its switch, a stage's amplitude is its piece's.

            theorem MindFormal.StateMindData.stage_amp_row_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} {c : CoordinateIndex (Fin N) n T Λ} {G : ℝ} (hrow : ∀ (a : MindArguments (Fin N) n T Λ), ‖a.2.2‖ ≤ ↑M.radius → ‖a.1‖ ≤ ↑M.inputBound → ∑ l : J, M.amp a c l ^ 2 ≤ G ^ 2) (k : ℕ) (z : NNReal × Ω) (x : MindState (Fin N) n T Λ) :
            ∑ l : J, (M.stage k).coeff.amp z x c l ^ 2 ≤ G ^ 2

            Every stage's amplitude row is bounded where the mind's is at the pieces' arguments: at states in the ball of the radius and inputs within the clamp.

            theorem MindFormal.StateMindData.amp_own_at {Ω : 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, C3: the state's noise is the amplitude at its own native records, at each time it is inside the truncation: almost surely, at almost every positive time at which the state lies in the ball of the truncation radius and its world input within the clamp, the final stage's amplitude along its state is the mind's amplitude read at the world input of its own action record and the pulse of its own focus record.

            The experiment #

            structure MindFormal.StateExperiment (Ω : Type u_1) [MeasurableSpace Ω] (N n : ℕ) (T : Type u_2) (Λ : Type u_3) (J : Type u_4) [Fintype T] [Fintype Λ] [Fintype J] :
            Type (max (max (max u_1 u_2) u_3) u_4)

            02.12: admission-and-adapter inputs for noise that depends on the state: the instance with its own amplitude (C3), its admission, the ground, the world, the start (square integrable), and the bridge's truncation: a horizon, a radius, a clamp on the world input, an allowance of the noise at given source levels, and the loading bound of each row over the truncation. The reference, the controls and chapter-specific steps are not fields here.

            Instances For
              noncomputable def MindFormal.StateExperiment.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) :
              StateMindData Ω N n T Λ J

              02.12: the bridge's data computed from the experiment: the ground's sources, the instance's coefficients with the canonical presence gradient, its amplitude read at every argument, its world, start, reads and pauses, the experiment's truncation, and the activity floor (floorRanges), at which the bridge's state is the experiment's run.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                noncomputable def MindFormal.StateExperiment.rangedBridge {Ω : 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) (bd : Boundary (CoordinateIndex (Fin N) n T Λ)) (hfloor : ∀ (i : Fin N), bd.lower (Sum.inr (Sum.inl i)) = some 0) (horder : ∀ (v : CoordinateIndex (Fin N) n T Λ) (a b : ℝ), bd.lower v = some a → bd.upper v = some b → a ≤ b) :
                StateMindData Ω N n T Λ J

                02.12: the bridge at an instance's declared ranges: the experiment's bridge with its state reflected at the declared floors and caps bd (the floor 0 on every activity, each floor at most its cap); at floorRanges it is the bridge itself (rangedBridge_floor).

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem MindFormal.StateExperiment.rangedBridge_floor {Ω : 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) :
                  noncomputable def MindFormal.StateExperiment.toNoise {Ω : 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) :

                  02.12: the experiment on the mind's own noise: the general experiment whose noise is the state's own driver, read from the bridge, with the exponential failure of its bounded rows (boundedStateCase).

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    noncomputable def MindFormal.StateExperiment.data {Ω : 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) :

                    02.12: the experiment's primitive data, derived through the general adapter.

                    Equations
                    Instances For
                      theorem MindFormal.StateExperiment.driver_eq {Ω : 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) {z : Ω} (hz : E.data.toPhysicalNoiseData.Good z) (t : NNReal) (c : CoordinateIndex (Fin N) n T Λ) :

                      02.12: on a well-constructed draw, the run's driver is the noise's own driver.

                      theorem MindFormal.StateExperiment.driver_tail {Ω : 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) (c : CoordinateIndex (Fin N) n T Λ) {G : ℝ} (hG : 0 < G) (hrow : ∀ z ∈ instanceArgumentDomain, ‖z.1‖ ≤ ↑E.radius → ‖z.2.1‖ ≤ ↑E.inputBound → ∑ k : J, E.mind.amplitude z c k ^ 2 ≤ G ^ 2) (H : NNReal) {a : ℝ} (ha : 0 < a) :
                      E.ground.μ.real {ω : Ω | ∃ t ≤ H, a ≤ |E.toNoise.noise.driverPath t ω c|} ≤ 2 * Real.exp (-a ^ 2 / (2 * (G ^ 2 * ↑H)))

                      The exponential tail of a row of the mind's own noise. If row c of the instance's amplitude has squared size at most G² (G > 0) at every admissible argument whose state lies in the ball of the truncation radius and whose input lies within the clamp, the noise's coordinate c reaches a > 0 in absolute value by H with chance at most 2 exp(-a²/(2G²H)).

                      structure MindFormal.StateLearning (Ω : Type u_1) [MeasurableSpace Ω] (N n : ℕ) (T : Type u_2) (Λ : Type u_3) (J : Type u_4) [Fintype T] [Fintype Λ] [Fintype J] :
                      Type (max (max (max u_1 u_2) u_3) u_4)

                      04.20, 05.26: own conditions for a continuing-learning reference on the mind's own noise: a horizon, a verified preparation-indexed reference and its quantitative control.

                      Instances For
                        noncomputable def MindFormal.StateLearning.toNoise {Ω : 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 learning bundle on the mind's own noise is the general one at the state-dependent case.

                        Equations
                        Instances For
                          noncomputable def MindFormal.StateLearning.run {Ω : 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 learning run on the mind's own noise.

                          Equations
                          Instances For