MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.ClauseProofs

The definitions, lemmas and general forms (…_general, for any case of noise) that chapter 6's clause theorems in Chapters/Ch06 use. Nothing here is tagged.

11.11: the probability envelope and its time version #

noncomputable def MindFormal.actualTarget {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (i : Fin N) (z : Ω) (t : ℝ) :

11.11 (SE1): the actual complete target of content i on the constructed global run at time t, with the actual world input, native focus pulse and full state.

Equations
Instances For
    theorem MindFormal.global_scalarTarget {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : NNReal) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑H) (i : Fin N) :

    11.11 (SE1): on [0,H] the finite coupled response's complete target is the global run's actual complete target.

    noncomputable def MindFormal.awarenessTime {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (i : Fin N) (a : ℝ) (z : Ω) :

    11.11 (SE14): the actual uncensored first time content i's activity reaches a, infinite when it never does.

    Equations
    Instances For
      theorem MindFormal.awarenessTime_le_iff {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (i : Fin N) (a : ℝ) (z : Ω) (t : NNReal) :
      awarenessTime S i a z ≤ ↑t ↔ ∃ s ∈ Set.Icc 0 ↑t, a ≤ mindActivity ((S.globalData z).state s) i

      11.11 (SE14): the awareness time is at most t exactly when the activity reaches a in [0,t].

      theorem MindFormal.awarenessTime_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (i : Fin N) (a : ℝ) :

      11.11 (SE14): the awareness time is measurable; its sublevel events are hit events on compact horizons.

      theorem MindFormal.lintegral_ennreal_tail {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.SFinite μ] (τ : Ω → ENNReal) (hτ : Measurable τ) :
      ∫⁻ (z : Ω), τ z ∂μ = ∫⁻ (t : ℝ) in Set.Ioi 0, μ {z : Ω | ENNReal.ofReal t < τ z}

      11.11 (SE14): the tail formula for a measurable random time in [0,∞]: E τ = ∫_0^∞ Pr{τ > t} dt, infinite values included.

      theorem MindFormal.result_11_11_clause_2_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (i : Fin N) (a : ℝ) (Plow Phigh : ℝ → ℝ) (bounds : ∀ (t : ℝ), 0 ≤ t → Plow t ≤ experiment.data.μ.real {z : Ω | ∃ s ∈ Set.Icc 0 t, a ≤ mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i} ∧ experiment.data.μ.real {z : Ω | ∃ s ∈ Set.Icc 0 t, a ≤ mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i} ≤ Phigh t) (π : ℝ) :
      have τ := awarenessTime experiment.data.toPhysicalNoiseData i a; have F := fun (t : ℝ) => experiment.data.μ.real {z : Ω | ∃ s ∈ Set.Icc 0 t, a ≤ mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i}; ∫⁻ (t : ℝ) in Set.Ioi 0, ENNReal.ofReal (1 - Phigh t) ≤ ∫⁻ (z : Ω), τ z ∂experiment.data.μ ∧ ∫⁻ (z : Ω), τ z ∂experiment.data.μ ≤ ∫⁻ (t : ℝ) in Set.Ioi 0, ENNReal.ofReal (1 - Plow t) ∧ ⨅ (t : NNReal), ⨅ (_ : π ≤ Phigh ↑t), ↑t ≤ ⨅ (t : NNReal), ⨅ (_ : π ≤ F ↑t), ↑t ∧ ⨅ (t : NNReal), ⨅ (_ : π ≤ F ↑t), ↑t ≤ ⨅ (t : NNReal), ⨅ (_ : π ≤ Plow ↑t), ↑t

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

      11.10: the reference rate test, loss and return #

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

      11.10 (SW6): the complete transformed input of content i along a verified continuing reference, with its own input and binary mode.

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

        11.10 (SW6): the rest of the pool for content i: the floor and every other content's complete transformed input.

        Equations
        Instances For
          theorem MindFormal.LearningReference.useful_nonneg {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) (s : ℝ) :
          0 ≤ R.useful i s
          theorem MindFormal.LearningReference.rest_pos {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) (s : ℝ) :
          0 < R.rest i s
          theorem MindFormal.LearningReference.target_share {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) (s : ℝ) :
          R.target i s = max (R.useful i s / (R.useful i s + R.rest i s) - d.activity.g) 0

          11.10 (SW6): the complete target is the clipped share of useful input in the pool.

          theorem MindFormal.max_zero_right_deriv {f : ℝ → ℝ} {f' t : ℝ} (hf : HasDerivAt f f' t) (h0 : f t = 0) :
          HasDerivWithinAt (fun (s : ℝ) => max (f s) 0) (max f' 0) (Set.Ici t) t

          11.10 (SW6): at a clipping edge f(t)=0 the positive part of a differentiable f has right derivative max f' 0.

          theorem MindFormal.result_11_10_clause_2_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) (need : ℝ) {t dJ dL : ℝ} (hJ : HasDerivAt (R.useful i) dJ t) (hL : HasDerivAt (R.rest i) dL t) (hpos : 0 < R.useful i t) :
          have g := experiment.data.toPhysicalNoiseData.data.activity.g; have Jt := R.useful i t; have Lt := R.rest i t; have rate := Jt * Lt / (Jt + Lt) ^ 2 * (dJ / Jt - dL / Lt); (g < Jt / (Jt + Lt) → HasDerivAt (fun (s : ℝ) => R.target i s - need) rate t ∧ (0 < rate ↔ dL / Lt < dJ / Jt) ∧ (rate < 0 ↔ dJ / Jt < dL / Lt)) ∧ (Jt / (Jt + Lt) < g → HasDerivAt (fun (s : ℝ) => R.target i s - need) 0 t) ∧ (Jt / (Jt + Lt) = g → HasDerivWithinAt (fun (s : ℝ) => R.target i s - need) (max rate 0) (Set.Ici t) t) ∧ (∀ (q : ℝ), 0 < q → q < 1 → HasDerivAt (fun (s : ℝ) => Real.log ((1 - q) * R.useful i s / (q * R.rest i s))) (dJ / Jt - dL / Lt) t) ∧ (0 < need → g + need < 1 → (0 < Real.log ((1 - (g + need)) * Jt / ((g + need) * Lt)) ↔ need < R.target i t))

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

          theorem MindFormal.result_11_10_clause_4_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need Hb Jlo Jhi Ilo Ihi Elo Ehi χlo χhi : ℝ} (hn : 0 < need) (hq : experiment.data.toPhysicalNoiseData.data.activity.g + need < 1) (hElo : 0 ≤ Elo) (hEhi : 0 ≤ Ehi) (hχlo : 0 < χlo) (hχhi : 0 < χhi) (envelope : ∀ t ∈ Set.Icc 0 Hb, Jlo ≤ R.useful i t ∧ R.useful i t ≤ Jhi ∧ Ilo + Elo * Real.exp (-χhi * t) ≤ R.rest i t ∧ R.rest i t ≤ Ihi + Ehi * Real.exp (-χlo * t)) :
          have ϑ := experiment.data.toPhysicalNoiseData.data.activity.g + need; have Sm := (1 - ϑ) * Jlo / ϑ - Ihi; have Sp := (1 - ϑ) * Jhi / ϑ - Ilo; (0 < Sm → ∀ t ∈ Set.Icc 0 Hb, max 0 (Real.log (Ehi / Sm)) / χlo < t → need < R.target i t) ∧ (0 < Sp → ∀ t ∈ Set.Icc 0 Hb, t < max 0 (Real.log (Elo / Sp)) / χhi → R.target i t ≤ need) ∧ (Sp ≤ 0 → ∀ t ∈ Set.Icc 0 Hb, R.target i t ≤ need)

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

          Reference arrival, break routes and restoration times (11.10 SW1, 11.12, 11.13) #

          theorem MindFormal.reference_arrival {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) {t0 Tlow level : ℝ} (h0 : 0 ≤ t0) (hl : 0 < level) (hT : level < Tlow) (hH : t0 + Real.log (Tlow / (Tlow - level)) / d.activity.ν ≤ ↑H) (htarget : ∀ s ∈ Set.Ioc t0 (t0 + Real.log (Tlow / (Tlow - level)) / d.activity.ν), Tlow ≤ R.target i s) :
          level ≤ (ContinuousMap.IccExtend ⋯ R.path) (t0 + Real.log (Tlow / (Tlow - level)) / d.activity.ν) (Sum.inr (Sum.inl i))

          11.10 (SW1), 11.12 (SB8): a complete target held at least Tlow > level > 0 for ν⁻¹log(Tlow/(Tlow-level)) brings the reference activity to level, even from zero.

          theorem MindFormal.result_11_10_clause_8_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {t0 t c need : ℝ} (h0 : 0 ≤ t0) (ht : t0 ≤ t) (hH : t ≤ ↑H) :
          have ν := experiment.data.toPhysicalNoiseData.data.activity.ν; have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s (Sum.inr (Sum.inl i)); ((∀ s ∈ Set.Ioc t0 t, R.target i s = c) → x t = referenceActivity ν c (x t0) (t - t0) ∧ (x t0 < need → need < c → (need ≤ x t ↔ passageTime ν c (x t0) need ≤ t - t0))) ∧ ((∀ s ∈ Set.Ioc t0 t, R.target i s ≤ c) → x t ≤ referenceActivity ν c (x t0) (t - t0) ∧ (x t0 < need → c ≤ need → x t < need)) ∧ (∀ (ε : ℝ), 0 < ε → 0 ≤ need → t = t0 + Real.log ((need + 2 * ε) / ε) / ν → (∀ s ∈ Set.Ioc t0 t, need + 2 * ε ≤ R.target i s) → need + ε ≤ x t) ∧ x t = Real.exp (-ν * (t - t0)) * x t0 + ν * ∫ (s : ℝ) in t0..t, Real.exp (-ν * (t - s)) * R.target i s

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

          theorem MindFormal.result_11_12_clause_5_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {t0 Tlow α εx : ℝ} (h0 : 0 ≤ t0) (hα : 0 < α) (hε : 0 < εx) (hT : α + εx < Tlow) (hH : t0 + Real.log (Tlow / (Tlow - (α + εx))) / experiment.data.toPhysicalNoiseData.data.activity.ν ≤ ↑H) (support : ∀ s ∈ Set.Ioc t0 (t0 + Real.log (Tlow / (Tlow - (α + εx))) / experiment.data.toPhysicalNoiseData.data.activity.ν), Tlow ≤ R.target i s) :
          have Haware := t0 + Real.log (Tlow / (Tlow - (α + εx))) / experiment.data.toPhysicalNoiseData.data.activity.ν; α + εx ≤ (ContinuousMap.IccExtend ⋯ R.path) Haware (Sum.inr (Sum.inl i)) ∧ ∃ s ∈ Set.Icc t0 Haware, α ≤ (ContinuousMap.IccExtend ⋯ R.path) s (Sum.inr (Sum.inl i))

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

          theorem MindFormal.result_11_12_clause_3_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need t t0 : ℝ} (hn : 0 < need) :
          have ϑ := experiment.data.toPhysicalNoiseData.data.activity.g + need; have D := ϑ * R.rest i t0 - (1 - ϑ) * R.useful i t0; have U := (1 - ϑ) * (R.useful i t - R.useful i t0); have L := ϑ * (R.rest i t0 - R.rest i t); (need < R.target i t ↔ 0 < (1 - ϑ) * R.useful i t - ϑ * R.rest i t) ∧ (need < R.target i t ↔ D < U + L) ∧ (breakRoute U L D = BreakRoute.load ↔ D < U + L ∧ D < L ∧ U ≤ D) ∧ (breakRoute U L D = BreakRoute.support ↔ D < U + L ∧ D < U ∧ L ≤ D) ∧ (breakRoute U L D = BreakRoute.both ↔ D < U + L ∧ (U ≤ D ∧ L ≤ D ∨ D < U ∧ D < L)) ∧ (breakRoute U L D = BreakRoute.none ↔ U + L ≤ D)

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

          theorem MindFormal.result_11_12_clause_4_load_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need J0 Hinf Hexc χ Hb : ℝ} (hn : 0 < need) (hexc : 0 < Hexc) (hχ : 0 < χ) (profile : ∀ s ∈ Set.Icc 0 Hb, R.useful i s = J0 ∧ R.rest i s = Hinf + Hexc * Real.exp (-χ * s)) :
          have ϑ := experiment.data.toPhysicalNoiseData.data.activity.g + need; have A := (1 - ϑ) * J0 / ϑ - Hinf; (0 < A → ∀ t ∈ Set.Icc 0 Hb, need < R.target i t ↔ Real.log (Hexc / A) / χ < t) ∧ (A ≤ 0 → ∀ t ∈ Set.Icc 0 Hb, R.target i t ≤ need)

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

          theorem MindFormal.rate_envelope {Hb lo hi : ℝ} (f rate : ℝ → ℝ) (hf0 : f 0 = 0) (hd : ∀ s ∈ Set.Icc 0 Hb, HasDerivAt f (rate s) s) (hb : ∀ s ∈ Set.Icc 0 Hb, lo ≤ rate s ∧ rate s ≤ hi) (t : ℝ) :
          t ∈ Set.Icc 0 Hb → lo * t ≤ f t ∧ f t ≤ hi * t

          11.12 (SB6): integrating certified rate bounds from a zero start.

          theorem MindFormal.result_11_12_clause_4_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need Hb γUlo γUhi γLlo γLhi : ℝ} (hn : 0 < need) (dJ dH : ℝ → ℝ) (hJ : ∀ s ∈ Set.Icc 0 Hb, HasDerivAt (R.useful i) (dJ s) s) (hH : ∀ s ∈ Set.Icc 0 Hb, HasDerivAt (R.rest i) (dH s) s) (rates : ∀ s ∈ Set.Icc 0 Hb, γUlo ≤ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * dJ s ∧ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * dJ s ≤ γUhi ∧ γLlo ≤ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * dH s ∧ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * dH s ≤ γLhi) :
          have ϑ := experiment.data.toPhysicalNoiseData.data.activity.g + need; have D := ϑ * R.rest i 0 - (1 - ϑ) * R.useful i 0; have U := fun (t : ℝ) => (1 - ϑ) * (R.useful i t - R.useful i 0); have L := fun (t : ℝ) => ϑ * (R.rest i 0 - R.rest i t); (∀ t ∈ Set.Icc 0 Hb, γUlo * t ≤ U t ∧ U t ≤ γUhi * t ∧ γLlo * t ≤ L t ∧ L t ≤ γLhi * t) ∧ (∀ t ∈ Set.Icc 0 Hb, need < R.target i t ↔ D < U t + L t) ∧ (0 ≤ D → 0 < γUhi + γLhi → ∀ t ∈ Set.Icc 0 Hb, t ≤ D / (γUhi + γLhi) → R.target i t ≤ need) ∧ (0 < γUlo + γLlo → ∀ t ∈ Set.Icc 0 Hb, D / (γUlo + γLlo) < t → need < R.target i t) ∧ (0 ≤ D → 0 < γUhi → ∀ t ∈ Set.Icc 0 Hb, t ≤ D / γUhi → U t ≤ D) ∧ (0 < γUlo → ∀ t ∈ Set.Icc 0 Hb, D / γUlo < t → D < U t) ∧ (0 ≤ D → 0 < γLhi → ∀ t ∈ Set.Icc 0 Hb, t ≤ D / γLhi → L t ≤ D) ∧ (0 < γLlo → ∀ t ∈ Set.Icc 0 Hb, D / γLlo < t → D < L t)

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

          theorem MindFormal.result_11_12_clause_4_closed_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need Jinf Jexc Hinf Hexc χ Hb : ℝ} (hn : 0 < need) (hq : experiment.data.toPhysicalNoiseData.data.activity.g + need < 1) (hJe : 0 ≤ Jexc) (hHe : 0 ≤ Hexc) (hχ : 0 < χ) (profile : ∀ s ∈ Set.Icc 0 Hb, R.useful i s = Jinf - Jexc * Real.exp (-χ * s) ∧ R.rest i s = Hinf + Hexc * Real.exp (-χ * s)) :
          have ϑ := experiment.data.toPhysicalNoiseData.data.activity.g + need; have D := ϑ * R.rest i 0 - (1 - ϑ) * R.useful i 0; have A := (1 - ϑ) * Jexc + ϑ * Hexc; 0 ≤ D → (D < A → ∀ t ∈ Set.Icc 0 Hb, need < R.target i t ↔ Real.log (A / (A - D)) / χ < t) ∧ (A ≤ D → ∀ t ∈ Set.Icc 0 Hb, R.target i t ≤ need)

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

          11.13: the restoration test and the accumulated reserve #

          theorem MindFormal.target_reserve_iff {N : ℕ} {σ g need : ℝ} (hσ : 0 < σ) (Jv : Fin N → ℝ) (hJ : ∀ (j : Fin N), 0 ≤ Jv j) (i : Fin N) (hn : 0 < need) :
          need < normalizedTarget σ g Jv i ↔ (g + need) * (σ + ∑ j ∈ Finset.univ.erase i, Jv j) < (1 - (g + need)) * Jv i

          11.13 (SI8), 11.12 (SB4): with transformed inputs Jv, need>0 and ϑ=g+need, content i's complete target exceeds need exactly when its signed reserve is positive.

          theorem MindFormal.result_11_13_clause_7_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i : Fin N) {need : ℝ} (hn : 0 < need) :
          have d := experiment.data.toPhysicalNoiseData.data; have Jv := assembledInputs d u q s; need < normalizedTarget d.activity.σ d.activity.g Jv i ↔ (d.activity.g + need) * (d.activity.σ + ∑ j ∈ Finset.univ.erase i, Jv j) < (1 - (d.activity.g + need)) * Jv i

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

          theorem MindFormal.result_11_13_clause_6_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {Γ : Type u_5} (u q : Γ → ℝ → Fin N → ℝ) (state : Γ → ℝ → MindState (Fin N) n T Λ) (i : Fin N) {need : ℝ} (hn : 0 < need) (hq : experiment.data.toPhysicalNoiseData.data.activity.g + need < 1) :
          have d := experiment.data.toPhysicalNoiseData.data; have ϑ := d.activity.g + need; have Jv := fun (γ : Γ) (s : ℝ) => assembledInputs d (u γ s) (q γ s) (state γ s); have rest := fun (γ : Γ) (s : ℝ) => d.activity.σ + ∑ j ∈ Finset.univ.erase i, Jv γ s j; have target := fun (γ : Γ) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (Jv γ s) i; (∀ (γ : Γ) (s : ℝ), need < target γ s ↔ 0 < (1 - ϑ) * Jv γ s i - ϑ * rest γ s) ∧ (∀ (γ : Γ) (s : ℝ), 0 < Jv γ s i → (need < target γ s ↔ 0 < Real.log ((1 - ϑ) * Jv γ s i / (ϑ * rest γ s)))) ∧ ((∀ (γ : Γ) (s : ℝ), target γ s ≤ need) ↔ ∀ (γ : Γ) (s : ℝ), (1 - ϑ) * Jv γ s i - ϑ * rest γ s ≤ 0)

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

          11.14: the critical count, pullback and recruitment, the support tests #

          theorem MindFormal.symmetric_total_test {Nr X Hx I W g need : ℝ} (hN : 0 ≤ Nr) (hX : 0 ≤ X) (hH : 0 < Hx) (hI : 0 ≤ I) (hW : 0 < W) (hn : 0 < need) (hq : Nr * (g + need) < 1) :
          need < max ((I + W * X) / (Hx + Nr * (I + W * X)) - g) 0 ↔ ((g + need) * Hx / (1 - Nr * (g + need)) - I) / W < X

          11.14 (SF2): in the symmetric held comparison with N members of raw input I+W·X at total new activity X and external load Hx, the common target exceeds need exactly when X exceeds (ϑHx/(1-Nϑ)-I)/W, ϑ=g+need.

          theorem MindFormal.simultaneous_share_bound {N : ℕ} {σ g need : ℝ} (hσ : 0 < σ) (Jv : Fin N → ℝ) (hJ : ∀ (j : Fin N), 0 ≤ Jv j) (S : Finset (Fin N)) (hS : S.Nonempty) (hn : 0 < need) (hall : ∀ i ∈ S, need < normalizedTarget σ g Jv i) :
          ↑S.card * (g + need) < 1

          11.14 (SF2): with a positive floor, members whose complete targets all exceed need have shares summing above |S|·(g+need); the shares sum below one, so |S|(g+need)<1.

          theorem MindFormal.result_11_14_clause_2_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {M : ℕ} {Hx I W need : ℝ} (hH : 0 < Hx) (hI : 0 ≤ I) (hW : 0 < W) (hn : 0 < need) (hq : ↑M * (experiment.data.toPhysicalNoiseData.data.activity.g + need) < 1) :
          have g := experiment.data.toPhysicalNoiseData.data.activity.g; have ϑ := g + need; have Tnew := fun (X : ℝ) => max ((I + W * X) / (Hx + ↑M * (I + W * X)) - g) 0; have Rc := (ϑ * Hx / (1 - ↑M * ϑ) - I) / (W * need); (∀ m ≤ M, need < Tnew (↑m * need) ↔ criticalCount M Rc ≤ m) ∧ ∀ (xlow xseed : ℝ), 0 ≤ xlow → xlow < xseed → ∀ (m : ℕ), need < Tnew (↑M * xlow + ↑m * (xseed - xlow)) ↔ (ϑ * Hx / (1 - ↑M * ϑ) - I - ↑M * W * xlow) / (W * (xseed - xlow)) < ↑m

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

          theorem MindFormal.result_11_14_clause_4_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {t0 t : ℝ} (h0 : 0 ≤ t0) (ht : t0 ≤ t) (hH : t ≤ ↑H) :
          have ν := experiment.data.toPhysicalNoiseData.data.activity.ν; have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s (Sum.inr (Sum.inl i)); (∀ (Tb : ℝ), (∀ s ∈ Set.Ioc t0 t, R.target i s ≤ Tb) → x t ≤ Tb + (x t0 - Tb) * Real.exp (-ν * (t - t0)) ∧ ∀ (xlow : ℝ), Tb < xlow → xlow ≤ x t0 → Real.log ((x t0 - Tb) / (xlow - Tb)) / ν ≤ t - t0 → x t ≤ xlow) ∧ ∀ (Tr : ℝ), (∀ s ∈ Set.Ioc t0 t, Tr ≤ R.target i s) → Tr + (x t0 - Tr) * Real.exp (-ν * (t - t0)) ≤ x t ∧ ∀ (need : ℝ), x t0 < need → need < Tr → passageTime ν Tr (x t0) need ≤ t - t0 → need ≤ x t

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

          theorem MindFormal.result_11_14_clause_5_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i : Fin N) {need : ℝ} (hn : 0 < need) :
          have d := experiment.data.toPhysicalNoiseData.data; have Jv := assembledInputs d u q s; (need < normalizedTarget d.activity.σ d.activity.g Jv i ↔ (d.activity.g + need) * pool d.activity.σ Jv < Jv i) ∧ ∀ {M : ℕ} (x : Fin M → ℝ) (Tc : ℝ → ℝ), (∀ (j : Fin M), x j = Tc (∑ k : Fin M, x k)) → (∀ (j k : Fin M), x j = x k) ∧ ¬∃ (j : Fin M) (k : Fin M), need ≤ x j ∧ x k < need

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

          theorem MindFormal.result_11_14_clause_11_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {M : ℕ} {need : ℝ} (hn : 0 < need) (hq : ↑M * (experiment.data.toPhysicalNoiseData.data.activity.g + need) < 1) :
          have g := experiment.data.toPhysicalNoiseData.data.activity.g; have ϑ := g + need; have Rc := fun (Hx I W : ℝ) => (ϑ * Hx / (1 - ↑M * ϑ) - I) / (W * need); (∀ (Jv P dJ dP : ℝ), 0 < P → 0 < P + dP → (Jv + dJ) / (P + dP) - Jv / P = (P * dJ - Jv * dP) / (P * (P + dP))) ∧ (∀ (Hx I W dH dI : ℝ), 0 < W → Rc (Hx + dH) (I + dI) W - Rc Hx I W = (ϑ * dH / (1 - ↑M * ϑ) - dI) / (W * need)) ∧ (∀ (Hx I W : ℝ → ℝ) (t dH dI dW : ℝ), HasDerivAt Hx dH t → HasDerivAt I dI t → HasDerivAt W dW t → 0 < W t → HasDerivAt (fun (s : ℝ) => Rc (Hx s) (I s) (W s)) ((ϑ * dH / (1 - ↑M * ϑ) - dI) / (W t * need) - Rc (Hx t) (I t) (W t) * dW / W t) t) ∧ (∀ (H0 I0 Wh Lh xh W : ℝ), 0 < H0 + Lh * xh → 0 ≤ I0 + Wh * xh → 0 < W → (need < max ((I0 + Wh * xh + W * 0) / (H0 + Lh * xh + ↑M * (I0 + Wh * xh + W * 0)) - g) 0 ↔ ϑ * H0 / (1 - ↑M * ϑ) - I0 < (Wh - ϑ * Lh / (1 - ↑M * ϑ)) * xh)) ∧ ∀ (W0 Winf Wreq Ω t : ℝ), W0 ≤ Wreq → Wreq < Winf → 0 < Ω → (Wreq < Winf + (W0 - Winf) * Real.exp (-Ω * t) ↔ Real.log ((Winf - W0) / (Winf - Wreq)) / Ω < t)

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

          theorem MindFormal.result_11_14_clause_11_sign_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hs : PhysicalMindState s) (i j : Fin N) :
          have d := experiment.data.toPhysicalNoiseData.data; have E := d.drive (u i) (q i) (mindValue s i) - ∑ l : Fin N, mindRelation s i l * mindActivity s l; (0 < assembledDrift d u q s (Sum.inl (i, j)) ↔ 0 < (1 - d.β) * d.presence (mindTrace s j) * E + d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j)) ∧ (assembledDrift d u q s (Sum.inl (i, j)) < 0 ↔ (1 - d.β) * d.presence (mindTrace s j) * E + d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j) < 0)

          11.14 (SF18): the sign of an individual relation's drift is the sign of (1-β)c_jE_i+βx_i(c_j-W_ij); 05.26's decomposition of full II.

          theorem MindFormal.old_view_test {N : ℕ} {σ g need : ℝ} (hσ : 0 < σ) (Jv : Fin N → ℝ) (hJ : ∀ (j : Fin N), 0 ≤ Jv j) (i : Fin N) (hn : 0 < need) :
          normalizedTarget σ g Jv i < need ↔ (1 - (g + need)) * Jv i < (g + need) * (σ + ∑ j ∈ Finset.univ.erase i, Jv j)

          11.14 (SF19): an old member's complete target is below its required activity exactly when (1-ϑ)J_i<ϑH_i^post with its complete post-change pool.

          theorem MindFormal.result_11_15_clause_2_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {Jt Ht Jc Hc α x0 : ℝ} (hJt : 0 < Jt) (hHt : 0 < Ht) (hJc : 0 < Jc) (hHc : 0 < Hc) (comparison : Jt * Hc < Jc * Ht) :
          have g := experiment.data.toPhysicalNoiseData.data.activity.g; have ν := experiment.data.toPhysicalNoiseData.data.activity.ν; have Tt := max (Jt / (Jt + Ht) - g) 0; have Tc := max (Jc / (Jc + Hc) - g) 0; Jt / (Jt + Ht) < Jc / (Jc + Hc) ∧ Tt ≤ Tc ∧ (0 < Tc → 0 < Tt → Tt < Tc) ∧ (0 < α → x0 < α → α < Tt → passageTime ν Tc x0 α < passageTime ν Tt x0 α)

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

          11.10 (SW16), 11.12 (SB9): the reference transferred to the actual mind #

          def MindFormal.attendedMode {N : ℕ} (c : Fin N) :
          Fin N → ℝ

          11.10 (SW16): the binary focus mode with only content c attended.

          Equations
          Instances For

            11.13 (SI4): the within-reach probability #

            theorem MindFormal.scaled_source_failure {Jt : Type u_5} {I : Type u_6} [Fintype Jt] {H : NNReal} (hH : 0 < H) (G : I → Jt → ℝ) (b : Jt → ℝ) (hb : ∀ (j : Jt), 0 < b j) :
            (∀ (χ : ℝ), 0 < χ → ∀ (i : I), ∑ j : Jt, |χ * G i j| * (b j / χ) = ∑ j : Jt, |G i j| * b j) ∧ Filter.Tendsto (fun (χ : ℝ) => sourceExcursionFailure H fun (j : Jt) => b j / χ) (nhdsWithin 0 (Set.Ioi 0)) (nhds 0)

            11.13 (SI4), noise shrinking: scaling every loading by χ>0 and every source level b_j>0 by 1/χ keeps each coordinate's allowance and sends the sources' union failure to zero.

            11.14: the simultaneous quorum and its monotonicity #

            theorem MindFormal.result_11_14_clause_13_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (i : Fin N) (z : Ω) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) :

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

            theorem MindFormal.result_11_14_clause_14_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : NoiseLearning Ω N n T Λ J 𝒩) (members : Finset (Fin N)) (need : ℝ) :
            1 - C.run.control.failure ≤ C.run.data.μ.real {z : Ω | ∀ t ∈ Set.Icc 0 ↑C.run.horizon, {i ∈ members | need + C.run.control.error ≤ C.run.refCoordinate z (Sum.inr (Sum.inl i)) t}.card ≤ {i ∈ members | need ≤ C.run.coordinate z (Sum.inr (Sum.inl i)) t}.card ∧ {i ∈ members | need ≤ C.run.coordinate z (Sum.inr (Sum.inl i)) t}.card ≤ {i ∈ members | need - C.run.control.error ≤ C.run.refCoordinate z (Sum.inr (Sum.inl i)) t}.card}

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

            11.15: practice and the alternative #

            theorem MindFormal.result_11_15_clause_1_reference_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (w j : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
            have d := experiment.data.toPhysicalNoiseData.data; have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have m := fun (s : ℝ) => d.gain fun (a : T) (b : Fin n) => |assembledResidual d (R.input s) (x s) a b|; have μ := fun (s : ℝ) => writerLoss d.β (m s) (d.presence (mindTrace (x s) j)) (mindActivity (x s) j) (mindActivity (x s) w); have F := fun (s : ℝ) => writerForcing d.β (m s) (d.presence (mindTrace (x s) j)) (d.drive (R.input s w) (R.mode s w) (mindValue (x s) w)) (∑ l ∈ Finset.univ.erase j, mindRelation (x s) w l * mindActivity (x s) l) (mindActivity (x s) w); mindRelation (x t) w j = Real.exp (-∫ (u : ℝ) in 0..t, μ u) * (mindRelation (x 0) w j + ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * F s) ∧ (mindRelation (x 0) w j < mindRelation (x t) w j ↔ mindRelation (x 0) w j * (Real.exp (∫ (u : ℝ) in 0..t, μ u) - 1) < ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * F s) ∧ ∀ (s : ℝ), F s - μ s * mindRelation (x 0) w j = m s * ((1 - d.β) * d.presence (mindTrace (x s) j) * (d.drive (R.input s w) (R.mode s w) (mindValue (x s) w) - ∑ l ∈ Finset.univ.erase j, mindRelation (x s) w l * mindActivity (x s) l - mindRelation (x 0) w j * mindActivity (x s) j) + d.β * mindActivity (x s) w * (d.presence (mindTrace (x s) j) - mindRelation (x 0) w j))

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

            theorem MindFormal.result_11_15_clause_1_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : NoiseLearning Ω N n T Λ J 𝒩) (w j : Fin N) {s t : ℝ} (hs : s ∈ Set.Icc 0 ↑C.run.horizon) (ht : t ∈ Set.Icc 0 ↑C.run.horizon) (netGain : ∀ z ∈ C.run.good, 2 * C.run.control.error < C.run.refCoordinate z (Sum.inl (w, j)) t - C.run.refCoordinate z (Sum.inl (w, j)) s) :

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

            11.16: learned success evidence and the rating rise #

            theorem MindFormal.reference_writer_integrable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i j : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
            have d := experiment.data.toPhysicalNoiseData.data; have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have m := fun (s : ℝ) => d.gain fun (a : T) (b : Fin n) => |assembledResidual d (R.input s) (x s) a b|; have μ := fun (s : ℝ) => writerLoss d.β (m s) (d.presence (mindTrace (x s) j)) (mindActivity (x s) j) (mindActivity (x s) i); have F := fun (s : ℝ) => writerForcing d.β (m s) (d.presence (mindTrace (x s) j)) (d.drive (R.input s i) (R.mode s i) (mindValue (x s) i)) (∑ l ∈ Finset.univ.erase j, mindRelation (x s) i l * mindActivity (x s) l) (mindActivity (x s) i); IntervalIntegrable μ MeasureTheory.volume 0 t ∧ IntervalIntegrable F MeasureTheory.volume 0 t

            11.16 (history integration): along a verified continuing reference the loss rate μ=M[(1-β)c_jx_j+βx_i] and forcing F=Mc_j[(1-β)(e_i-S_ij)+βx_i] of relation (i,j) are interval integrable on [0,t].

            theorem MindFormal.result_11_16_clause_1_gap_general {K W0 πa πi Lp Lm Lpa Lma Lpi Lmi εL : ℝ} (hK : 0 ≤ K) (hπa : 0 ≤ πa ∧ πa ≤ 1) (hπi : 0 ≤ πi ∧ πi ≤ 1) (hdev : |Lpa - Lp| ≤ εL ∧ |Lma - Lm| ≤ εL ∧ |Lpi - Lp| ≤ εL ∧ |Lmi - Lm| ≤ εL) :
            (1 - Real.exp (-K)) * ((πa - πi) * (Lp - Lm) - 2 * εL) ≤ Real.exp (-K) * W0 + (1 - Real.exp (-K)) * (Lma + πa * (Lpa - Lma)) - (Real.exp (-K) * W0 + (1 - Real.exp (-K)) * (Lmi + πi * (Lpi - Lmi))) ∧ ∀ (π : ℝ), HasDerivAt (fun (π : ℝ) => Real.exp (-K) * W0 + (1 - Real.exp (-K)) * (Lm + π * (Lp - Lm))) ((1 - Real.exp (-K)) * (Lp - Lm)) π

            11.16 (history integration), matched reference exposure: two cues' learned links from the same entering link and dose K differ by at least (1-e^{-K})[(π_a-π_i)(L₊-L₋)-2ε_L] when each cue's success and failure averages are within ε_L of common levels L₊, L₋; the link rises with the reliability π at rate (1-e^{-K})(L₊-L₋).

            theorem MindFormal.result_11_16_clause_2_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {I0 xc Hp Wa Wi : ℝ} (hx : 0 < xc) (hH : 0 < Hp) (hWi : 0 < I0 + xc * Wi) (hW : Wi < Wa) :
            have d := experiment.data.toPhysicalNoiseData.data; have Tg := fun (W : ℝ) => max (d.transform.ψ (I0 + xc * W) / (d.transform.ψ (I0 + xc * W) + Hp) - d.activity.g) 0; (Tg Wi ≤ Tg Wa ∧ (0 < Tg Wi → Tg Wi < Tg Wa)) ∧ ∀ (Ta Ti x0 t Δ : ℝ), referenceActivity d.activity.ν Ta x0 (t + Δ) - referenceActivity d.activity.ν Ta x0 t - (referenceActivity d.activity.ν Ti x0 (t + Δ) - referenceActivity d.activity.ν Ti x0 t) = (Ta - Ti) * Real.exp (-d.activity.ν * t) * (1 - Real.exp (-d.activity.ν * Δ))

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

            theorem MindFormal.result_11_16_clause_2_reference_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (Ra Ri : LearningReference experiment.data.toPhysicalNoiseData.data H) (succ : Fin N) {t h Γ εT ℓ : ℝ} (ht : 0 ≤ t) (hh : 0 ≤ h) (hH : t + h ≤ ↑H) (hℓ : 0 ≤ ℓ) (contrast : ∀ s ∈ Set.Ioc 0 (t + h), |Ra.target succ s - Ri.target succ s - Γ| ≤ εT) :
            have ν := experiment.data.toPhysicalNoiseData.data.activity.ν; have xa := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ Ra.path) s (Sum.inr (Sum.inl succ)); have xi := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ Ri.path) s (Sum.inr (Sum.inl succ)); ℓ * ((1 - Real.exp (-ν * h)) * (Real.exp (-ν * t) * (Γ - (xa 0 - xi 0)) - εT * (2 - Real.exp (-ν * t)))) ≤ ℓ * (xa (t + h) - xa t - (xi (t + h) - xi t))

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

            theorem MindFormal.conditional_mean_lower {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (f : Ω → ℝ) (hf : Measurable f) (S G : Set Ω) (hS : MeasurableSet S) (hG : MeasurableSet G) {c R π ε e : ℝ} (hπ : 0 < π) (hSμ : π ≤ μ.real S) (hGc : μ.real Gᶜ ≤ ε) (he : 0 ≤ e) (hR : ∀ (z : Ω), |f z| ≤ R) (hc : |c| ≤ R) (hgood : ∀ z ∈ G, c - e ≤ f z) :
            c - e - 2 * R * ε / π ≤ (∫ (z : Ω) in S, f z ∂μ) / μ.real S

            11.16 (selection): a bounded read f with |f|≤R whose value is at least c-e on an event G of failure at most ε has conditional mean at least c-e-2Rε/π on any event S of probability at least π>0, when |c|≤R. No independence of S and G is used.

            theorem MindFormal.result_11_16_clause_3_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (Ca Ci : NoiseLearning Ω N n T Λ J 𝒩) (succ : Fin N) (rateA rateI : Ω → ℝ → ℝ) (Sa Si : Set Ω) {t Δ R0 ℓ ecal Rlo Rmax πa πi ra ri : ℝ} (ht : t ∈ Set.Icc 0 (min ↑Ca.run.horizon ↑Ci.run.horizon)) (htΔ : t + Δ ∈ Set.Icc 0 (min ↑Ca.run.horizon ↑Ci.run.horizon)) (hℓ : 0 ≤ ℓ) (hcal : 0 ≤ ecal) (hSa : MeasurableSet Sa) (hSi : MeasurableSet Si) (hπa : 0 < πa) (hπi : 0 < πi) (protocolA : πa ≤ Ca.run.data.μ.real Sa) (protocolI : πi ≤ Ci.run.data.μ.real Si) (measA : ∀ (s : ℝ), Measurable fun (z : Ω) => rateA z s) (measI : ∀ (s : ℝ), Measurable fun (z : Ω) => rateI z s) (scaleA : ∀ (z : Ω) (s : ℝ), Rlo ≤ rateA z s ∧ rateA z s ≤ Rlo + Rmax) (scaleI : ∀ (z : Ω) (s : ℝ), Rlo ≤ rateI z s ∧ rateI z s ≤ Rlo + Rmax) (calibrationA : ∀ z ∈ Ca.run.good, ∀ s ∈ {t, t + Δ}, |rateA z s - (R0 + ℓ * Ca.run.coordinate z (Sum.inr (Sum.inl succ)) s)| ≤ ecal) (calibrationI : ∀ z ∈ Ci.run.good, ∀ s ∈ {t, t + Δ}, |rateI z s - (R0 + ℓ * Ci.run.coordinate z (Sum.inr (Sum.inl succ)) s)| ≤ ecal) (gapA : ∀ z ∈ Ca.run.good, ra ≤ ℓ * (Ca.run.refCoordinate z (Sum.inr (Sum.inl succ)) (t + Δ) - Ca.run.refCoordinate z (Sum.inr (Sum.inl succ)) t)) (gapI : ∀ z ∈ Ci.run.good, ℓ * (Ci.run.refCoordinate z (Sum.inr (Sum.inl succ)) (t + Δ) - Ci.run.refCoordinate z (Sum.inr (Sum.inl succ)) t) ≤ ri) (hra : |ra| ≤ Rmax) (hri : |ri| ≤ Rmax) :
            have εRa := ℓ * Ca.run.control.error + ecal; have εRi := ℓ * Ci.run.control.error + ecal; ra - ri - 2 * εRa - 2 * εRi - 2 * Rmax * (Ca.run.control.failure / πa + Ci.run.control.failure / πi) ≤ (∫ (z : Ω) in Sa, rateA z (t + Δ) - rateA z t ∂Ca.run.data.μ) / Ca.run.data.μ.real Sa - (∫ (z : Ω) in Si, rateI z (t + Δ) - rateI z t ∂Ci.run.data.μ) / Ci.run.data.μ.real Si

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

            11.10 (SW7), 11.12 (SB1): the complete input rate with both writers #

            theorem MindFormal.learningReference_integral {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (j : CoordinateIndex (Fin N) n T Λ) {s : ℝ} (hs : s ∈ Set.Icc 0 ↑H) :
            (ContinuousMap.IccExtend ⋯ R.path) s j = ↑R.start j + ∫ (u : ℝ) in 0..s, learningForcing d ⋯ R.input R.mode R.path u j

            11.10 (SW7), 11.12 (SB1): every coordinate of a verified continuing reference is its start plus the integral of its complete drift, at every time of [0,H].

            theorem MindFormal.learningReference_ae_deriv {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) :
            ∀ᵐ (t : ℝ), t ∈ Set.Ioo 0 ↑H → ∀ (j : CoordinateIndex (Fin N) n T Λ), HasDerivAt (fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s j) (learningForcing d ⋯ R.input R.mode R.path t j) t

            11.10 (SW7), 11.12 (SB1): at almost every time of (0,H) every coordinate of a verified continuing reference has its complete drift as derivative.

            theorem MindFormal.result_11_10_clause_3_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [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) (hb : b ≤ ↑H) (u q : Fin N → ℝ) (fixed : ∀ s ∈ Set.Ioo a b, R.input s = u ∧ R.mode s = q) :
            have d := experiment.data.toPhysicalNoiseData.data; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have drift := fun (s : ℝ) => assembledDrift d u q (st s); have I := fun (l : Fin N) (s : ℝ) => rawInput (fun (j : Fin N) => d.drive (u j) (q j) (mindValue (st s) j)) (fun (j : Fin N) => d.residue (mindTrace (st s) j)) (mindRelation (st s)) (mindActivity (st s)) l; ∀ᵐ (t : ℝ), t ∈ Set.Ioo a b → (∀ (j : Fin N), drift t (Sum.inr (Sum.inl j)) = d.activity.ν * (R.target j t - mindActivity (st t) j)) ∧ ∀ (Dv : Fin N → (Fin n → T → ℝ) →L[ℝ] ℝ) (Dr : Fin N → (Λ → ℝ) →L[ℝ] ℝ) (ψ' : Fin N → ℝ), (∀ (l : Fin N), HasFDerivAt (d.drive (u l) (q l)) (Dv l) (mindValue (st t) l)) → (∀ (l : Fin N), HasFDerivAt d.residue (Dr l) (mindTrace (st t) l)) → (∀ (l : Fin N), HasDerivAt (I l) ((((Dv l) fun (b : Fin n) (τ : T) => drift t (Sum.inr (Sum.inr (Sum.inl (l, b, τ))))) + (Dr l) fun (r : Λ) => drift t (Sum.inr (Sum.inr (Sum.inr (l, r))))) + ∑ j : Fin N, (drift t (Sum.inl (l, j)) * mindActivity (st t) j + mindRelation (st t) l j * drift t (Sum.inr (Sum.inl j)))) t) ∧ ((∀ (l : Fin N), HasDerivAt d.transform.ψ (ψ' l) (I l t)) → ∀ (i : Fin N), HasDerivAt (R.useful i) (ψ' i * ((((Dv i) fun (b : Fin n) (τ : T) => drift t (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))) + (Dr i) 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 ∧ HasDerivAt (R.rest i) (∑ l ∈ Finset.univ.erase i, ψ' l * ((((Dv l) fun (b : Fin n) (τ : T) => drift t (Sum.inr (Sum.inr (Sum.inl (l, b, τ))))) + (Dr l) fun (r : Λ) => drift t (Sum.inr (Sum.inr (Sum.inr (l, r))))) + ∑ j : Fin N, (drift t (Sum.inl (l, j)) * mindActivity (st t) j + mindRelation (st t) l j * drift t (Sum.inr (Sum.inl j))))) t)

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

            11.10 (SW9, SW2): a break fades only as the complete equations make it fade #

            theorem MindFormal.result_11_10_clause_5_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (ℓ : Fin N) {t0 t : ℝ} (h0 : 0 ≤ t0) (ht : t0 ≤ t) (hH : t ≤ ↑H) :
            have d := experiment.data.toPhysicalNoiseData.data; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; (∀ (i j : Fin N), mindRelation (st t) i j = mindRelation (st t0) i j + ∫ (s : ℝ) in t0..t, assembledDrift d (R.input s) (R.mode s) (st s) (Sum.inl (i, j))) ∧ ((∀ s ∈ Set.Ioc t0 t, R.target ℓ s = 0) → mindActivity (st t) ℓ = mindActivity (st t0) ℓ * Real.exp (-d.activity.ν * (t - t0)) ∧ ∀ (l : Λ), mindTrace (st t) ℓ l = traceDecay (d.rate l) d.activity.ν (mindTrace (st t0) ℓ l) (mindActivity (st t0) ℓ) (t - t0))

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

            11.14 (SF19, ¶8): the old view and the persistence of a completed change #

            theorem MindFormal.symmetric_target_mono {Mr I W Hx g X Y : ℝ} (hM : 0 ≤ Mr) (hI : 0 ≤ I) (hW : 0 < W) (hH : 0 < Hx) (hX : 0 ≤ X) (hXY : X ≤ Y) :
            max ((I + W * X) / (Hx + Mr * (I + W * X)) - g) 0 ≤ max ((I + W * Y) / (Hx + Mr * (I + W * Y)) - g) 0

            11.14 (SF2), (SF4): the symmetric common target is nondecreasing in total new activity.

            theorem MindFormal.symmetric_high_invariant {M : ℕ} {ν I W Hx g need : ℝ} (hν : 0 < ν) (hI : 0 ≤ I) (hW : 0 < W) (hH : 0 < Hx) (hn : 0 ≤ need) (x : Fin M → ℝ → ℝ) (hx : ∀ (j : Fin M) (t : ℝ), 0 ≤ t → HasDerivAt (x j) (ν * (max ((I + W * ∑ k : Fin M, x k t) / (Hx + ↑M * (I + W * ∑ k : Fin M, x k t)) - g) 0 - x j t)) t) (hstart : ∀ (j : Fin M), need ≤ x j 0) (hhigh : need < max ((I + W * (↑M * need)) / (Hx + ↑M * (I + W * (↑M * need))) - g) 0) (t : ℝ) :
            0 ≤ t → ∀ (j : Fin M), need ≤ x j t

            11.14 (¶8): in the symmetric held comparison x_j'=ν(T(Σx)-x_j), if every member starts at or above need and the common target at total M·need exceeds need, every member stays at or above need at every later time: restoring the conditions does not undo the completed change.