MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.ReferenceRates

11.10 (SW6)-(SW7), 11.12 (SB1)-(SB2), (SB5)-(SB6): between world and native-mode events the continuing-learning reference's complete raw inputs, transformed inputs and pools are absolutely continuous compositions, with no smoothness of the drive, residue or transform beyond the admitted Lipschitz bounds; their almost-everywhere derivatives integrate to their changes, and the log reserve's change is the integral of the proportional-rate difference.

theorem MindFormal.ac_const {X : Type u_1} [PseudoMetricSpace X] (c : X) (a b : ℝ) :
AbsolutelyContinuousOnInterval (fun (x : ℝ) => c) a b
theorem MindFormal.ac_pi {ι : Type u_1} [Fintype ι] {E : ι → Type u_2} [(k : ι) → PseudoMetricSpace (E k)] {f : ℝ → (k : ι) → E k} {a b : ℝ} (h : ∀ (k : ι), AbsolutelyContinuousOnInterval (fun (x : ℝ) => f x k) a b) :

A map into a finite product is absolutely continuous when each coordinate is.

theorem MindFormal.ac_prod {X : Type u_1} {Y : Type u_2} [PseudoMetricSpace X] [PseudoMetricSpace Y] {f : ℝ → X} {g : ℝ → Y} {a b : ℝ} (hf : AbsolutelyContinuousOnInterval f a b) (hg : AbsolutelyContinuousOnInterval g a b) :
AbsolutelyContinuousOnInterval (fun (x : ℝ) => (f x, g x)) a b

A pair of absolutely continuous maps is absolutely continuous.

theorem MindFormal.ac_finset_sum {ι : Type u_1} (s : Finset ι) {f : ι → ℝ → ℝ} {a b : ℝ} (h : ∀ k ∈ s, AbsolutelyContinuousOnInterval (f k) a b) :
AbsolutelyContinuousOnInterval (fun (x : ℝ) => ∑ k ∈ s, f k x) a b

A finite sum of absolutely continuous real functions is absolutely continuous.

The logarithm is Lipschitz with constant 1/m on [m,∞), m>0.

theorem MindFormal.norm_mindValue_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (s : MindState (Fin N) n T Λ) (l : Fin N) :
theorem MindFormal.norm_mindTrace_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (s : MindState (Fin N) n T Λ) (l : Fin N) :
theorem MindFormal.learningReference_coordinate_ac {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (c : CoordinateIndex (Fin N) n T Λ) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) :

11.10 (SW7): every coordinate of a verified continuing reference is absolutely continuous on every [a,b] in [0,H]: it is its start plus the integral of its complete drift.

noncomputable def MindFormal.LearningReference.fixedInput {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (u q : Fin N → ℝ) (l : Fin N) (s : ℝ) :

11.10 (SW7): the reference's complete raw input of content l at a fixed world input u and focus mode q (the reference's own between events).

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def MindFormal.LearningReference.fixedUseful {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (u q : Fin N → ℝ) (i : Fin N) (s : ℝ) :

    11.10 (SW6): the useful transformed input at a fixed input and mode.

    Equations
    Instances For
      noncomputable def MindFormal.LearningReference.fixedRest {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (u q : Fin N → ℝ) (i : Fin N) (s : ℝ) :

      11.10 (SW6): the rest of the pool at a fixed input and mode.

      Equations
      Instances For
        theorem MindFormal.LearningReference.useful_eq_fixed {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) {u q : Fin N → ℝ} {s : ℝ} (hs : R.input s = u ∧ R.mode s = q) (i : Fin N) :
        R.useful i s = R.fixedUseful u q i s
        theorem MindFormal.LearningReference.rest_eq_fixed {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) {u q : Fin N → ℝ} {s : ℝ} (hs : R.input s = u ∧ R.mode s = q) (i : Fin N) :
        R.rest i s = R.fixedRest u q i s
        theorem MindFormal.LearningReference.extend_norm_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (s : ℝ) :
        theorem MindFormal.LearningReference.extend_physical {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (s : ℝ) :
        theorem MindFormal.LearningReference.fixedInput_ac {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (hreg : PhysicalCoefficientRegularity d) {u q : Fin N → ℝ} (hu : 0 ≤ u) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (l : Fin N) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) :

        11.10 (SW7), on merely Lipschitz branches: at a fixed nonnegative input and binary mode, each complete raw input of the reference is absolutely continuous on [a,b] in [0,H].

        theorem MindFormal.LearningReference.fixed_ac {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (hreg : PhysicalCoefficientRegularity d) (hψ : LipschitzOnBalls d.transform.ψ Set.univ) {u q : Fin N → ℝ} (hu : 0 ≤ u) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) :
        (∀ (l : Fin N), AbsolutelyContinuousOnInterval (R.fixedUseful u q l) a b) ∧ ∀ (i : Fin N), AbsolutelyContinuousOnInterval (R.fixedRest u q i) a b

        11.10 (SW6)-(SW7): the transformed inputs and the rest of the pool at a fixed nonnegative input and binary mode are absolutely continuous on [a,b] in [0,H], given the admitted Lipschitz bound of the transform on bounded sets.

        noncomputable def MindFormal.LearningReference.pathInput {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (w : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (l : Fin N) (s : ℝ) :

        11.12 (SB1)-(SB2): the reference's complete raw input of content l along a world-input path w and a fixed focus mode q (between world or native-mode events).

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.LearningReference.pathInput_ac {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (hreg : PhysicalCoefficientRegularity d) {w : ℝ → Fin N → ℝ} {q : Fin N → ℝ} {a b : ℝ} (hw : ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w s j) a b) (hwnn : ∀ s ∈ Set.uIcc a b, 0 ≤ w s) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (l : Fin N) (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) :

          11.12 (SB1)-(SB2), merely Lipschitz branches: along an absolutely continuous nonnegative world-input path and a binary mode, each complete raw input of the reference is absolutely continuous on [a,b] in [0,H].

          noncomputable def MindFormal.LearningReference.pathUseful {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (w : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (i : Fin N) (s : ℝ) :

          11.12 (SB4)-(SB6), 11.13 (SI8): the useful transformed input along a world-input path w and a fixed focus mode q.

          Equations
          Instances For
            noncomputable def MindFormal.LearningReference.pathRest {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (w : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (i : Fin N) (s : ℝ) :

            11.12 (SB4)-(SB6), 11.13 (SI8): the rest of the pool along a world-input path w and a fixed focus mode q.

            Equations
            Instances For
              theorem MindFormal.LearningReference.useful_eq_path {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) {w : ℝ → Fin N → ℝ} {q : Fin N → ℝ} {s : ℝ} (hs : R.input s = w s ∧ R.mode s = q) (i : Fin N) :
              R.useful i s = R.pathUseful w q i s
              theorem MindFormal.LearningReference.rest_eq_path {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) {w : ℝ → Fin N → ℝ} {q : Fin N → ℝ} {s : ℝ} (hs : R.input s = w s ∧ R.mode s = q) (i : Fin N) :
              R.rest i s = R.pathRest w q i s
              theorem MindFormal.LearningReference.path_ac {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (hreg : PhysicalCoefficientRegularity d) (hψ : LipschitzOnBalls d.transform.ψ Set.univ) {w : ℝ → Fin N → ℝ} {q : Fin N → ℝ} {a b : ℝ} (hw : ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w s j) a b) (hwnn : ∀ s ∈ Set.uIcc a b, 0 ≤ w s) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) :
              (∀ (l : Fin N), AbsolutelyContinuousOnInterval (R.pathUseful w q l) a b) ∧ ∀ (i : Fin N), AbsolutelyContinuousOnInterval (R.pathRest w q i) a b

              11.12 (SB4)-(SB6), 11.13 (SI8): along an absolutely continuous nonnegative world-input path and a binary mode, the transformed inputs and the rest of the pool are absolutely continuous on [a,b] in [0,H], given the admitted Lipschitz bound of the transform on bounded sets.

              theorem MindFormal.log_reserve_ac {Jf Hf : ℝ → ℝ} {a b σ θ : ℝ} (hab : a ≤ b) (hσ : 0 < σ) (hθ : 0 < θ) (hθ1 : θ < 1) (hJ : AbsolutelyContinuousOnInterval Jf a b) (hH : AbsolutelyContinuousOnInterval Hf a b) (hJpos : ∀ t ∈ Set.Icc a b, 0 < Jf t) (hHσ : ∀ t ∈ Set.Icc a b, σ ≤ Hf t) :
              have l := fun (s : ℝ) => Real.log ((1 - θ) * Jf s / (θ * Hf s)); AbsolutelyContinuousOnInterval l a b ∧ (∀ t ∈ Set.Icc a b, DifferentiableAt ℝ Jf t → DifferentiableAt ℝ Hf t → HasDerivAt l (deriv Jf t / Jf t - deriv Hf t / Hf t) t) ∧ ∀ t ∈ Set.Icc a b, l t = l a + ∫ (s : ℝ) in a..t, deriv Jf s / Jf s - deriv Hf s / Hf s

              11.10 (SW6): along absolutely continuous positive useful input J and rest of the pool H on [a,b] (H ≥ σ > 0), the log reserve log((1-θ)J/(θH)) is absolutely continuous, has derivative J'/J - H'/H wherever J and H are differentiable, and changes by the integral of that difference.

              theorem MindFormal.result_11_10_clause_3_ac_general {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) (u q : Fin N → ℝ) (fixed : ∀ s ∈ Set.Ioo a b, R.input s = u ∧ R.mode s = q) (i : Fin N) :
              have Jf := R.fixedUseful u q i; have Hf := R.fixedRest u q i; (∀ s ∈ Set.Ioo a b, R.useful i s = Jf s ∧ R.rest i s = Hf s) ∧ (∀ (l : Fin N), AbsolutelyContinuousOnInterval (R.fixedInput u q l) a b) ∧ AbsolutelyContinuousOnInterval Jf a b ∧ AbsolutelyContinuousOnInterval Hf a b ∧ (∀ᵐ (t : ℝ), t ∈ Set.Ioo a b → HasDerivAt (R.useful i) (deriv Jf t) t ∧ HasDerivAt (R.rest i) (deriv Hf t) t) ∧ (∀ t ∈ Set.Icc a b, Jf t = Jf a + ∫ (s : ℝ) in a..t, deriv Jf s ∧ Hf t = Hf a + ∫ (s : ℝ) in a..t, deriv Hf s) ∧ ((∀ t ∈ Set.Icc a b, 0 < Jf t) → ∀ (θ : ℝ), 0 < θ → θ < 1 → (∀ᵐ (t : ℝ), t ∈ Set.Ioo a b → HasDerivAt (fun (s : ℝ) => Real.log ((1 - θ) * R.useful i s / (θ * R.rest i s))) (deriv Jf t / Jf t - deriv Hf t / Hf t) t) ∧ ∀ t ∈ Set.Icc a b, Real.log ((1 - θ) * Jf t / (θ * Hf t)) = Real.log ((1 - θ) * Jf a / (θ * Hf a)) + ∫ (s : ℝ) in a..t, deriv Jf s / Jf s - deriv Hf s / Hf s)

              For any case of noise. At the constant case this theorem is result_11_10_clause_3_ac.

              theorem MindFormal.result_11_12_clause_2_ac_general {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) (w : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (hw : ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w s j) a b) (hwnn : ∀ s ∈ Set.Icc a b, 0 ≤ w s) (fixed : ∀ s ∈ Set.Ioo a b, R.input s = w s ∧ R.mode s = q) (i : Fin N) :
              have d := experiment.data.toPhysicalNoiseData.data; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have I := R.pathInput w q i; have drift := fun (s : ℝ) => assembledDrift d (w s) q (st s); AbsolutelyContinuousOnInterval I a b ∧ (∀ (t0 t1 : ℝ), a ≤ t0 → t0 ≤ t1 → t1 ≤ b → I t1 - I t0 = ∫ (s : ℝ) in t0..t1, deriv I s) ∧ ∀ᵐ (t : ℝ), t ∈ Set.Ioo a b → HasDerivAt I (deriv I t) t ∧ (∀ (j : Fin N), drift t (Sum.inr (Sum.inl j)) = d.activity.ν * (R.target j t - mindActivity (st t) j)) ∧ ∀ (D : ℝ × (Fin n → T → ℝ) →L[ℝ] ℝ) (Dr : (Λ → ℝ) →L[ℝ] ℝ) (du : ℝ), HasFDerivAt (fun (z : ℝ × (Fin n → T → ℝ)) => d.drive z.1 (q i) z.2) D (w t i, mindValue (st t) i) → HasFDerivAt d.residue Dr (mindTrace (st t) i) → HasDerivAt (fun (s : ℝ) => w s i) du t → HasDerivAt I ((D (du, fun (b : Fin n) (τ : T) => drift t (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))) + Dr fun (r : Λ) => drift t (Sum.inr (Sum.inr (Sum.inr (i, r))))) + ∑ j : Fin N, (drift t (Sum.inl (i, j)) * mindActivity (st t) j + mindRelation (st t) i j * drift t (Sum.inr (Sum.inl j)))) t

              For any case of noise. At the constant case this theorem is result_11_12_clause_2_ac.