MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.ClauseProofs

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

theorem MindFormal.exp_primitive_integral {t : ℝ} (ht : 0 ≤ t) (μ : ℝ → ℝ) (hμ : IntervalIntegrable μ MeasureTheory.volume 0 t) :
∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * μ s = Real.exp (∫ (u : ℝ) in 0..t, μ u) - 1

RC3, RC5: for μ interval integrable on [0,t], t ≥ 0, with V(s)=∫_0^s μ, ∫_0^t e^{V(s)}μ(s) ds = e^{V(t)}-1.

theorem MindFormal.reference_gain_integrable {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (hd : PhysicalCoefficientRegularity d) (R : LearningReference d H) (g : ℝ → ℝ) (hg : Continuous g) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
IntervalIntegrable (fun (s : ℝ) => (d.gain fun (a : T) (b : Fin n) => |assembledResidual d (R.input s) ((ContinuousMap.IccExtend ⋯ R.path) s) a b|) * g s) MeasureTheory.volume 0 t

RC1, RC3, RC5: along a verified continuing reference of a regular drift, the write gain times any continuous function of time is interval integrable on [0,t], t ≤ H.

theorem MindFormal.reference_drift_integrable {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (k : CoordinateIndex (Fin N) n T Λ) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :

RC1, RC3, RC5: every complete drift coordinate along a verified continuing reference is interval integrable on [0,t], t ≤ H.

theorem MindFormal.actual_gain_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 𝒩) (z : Ω) (g : ℝ → ℝ) (hg : Continuous g) {t : ℝ} (ht0 : 0 ≤ t) :

RC3: on the actual run of draw z, the write gain times any continuous function of time is interval integrable on [0,t], t ≥ 0.

noncomputable def MindFormal.LearningReference.linkLoss {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 j : Fin N) (s : ℝ) :

RC5 (RC5.1): the loss rate l_ij=M[(1-β)c_jx_j+βx_i] of relation (i,j) along a verified continuing reference, with the reference's own gain, presence and activities.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def MindFormal.LearningReference.linkForcing {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 j : Fin N) (s : ℝ) :

    RC5 (RC5.1): the forcing H_ij=Mc_j[(1-β)(e_i-𝔟_i^{¬j})+βx_i] of relation (i,j) along a verified continuing reference, 𝔟_i^{¬j} the receiver's prediction from every other sender and e_i its drive at the reference's own input and native mode.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def MindFormal.LearningReference.linkDose {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 j : Fin N) (s : ℝ) :

      RC5 (RC5.1): the integrated loss 𝒬_ij(s)=∫_0^s l_ij of relation (i,j).

      Equations
      Instances For
        theorem MindFormal.result_RC5_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} (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 W := fun (s : ℝ) => mindRelation ((ContinuousMap.IccExtend ⋯ R.path) s) i j; have net := ∫ (s : ℝ) in 0..t, Real.exp (R.linkDose i j s) * (R.linkForcing i j s - R.linkLoss i j s * W 0); W t = Real.exp (-R.linkDose i j t) * (W 0 + ∫ (s : ℝ) in 0..t, Real.exp (R.linkDose i j s) * R.linkForcing i j s) ∧ W t - W 0 = Real.exp (-R.linkDose i j t) * net ∧ (W t < W 0 ↔ net < 0) ∧ (W t = W 0 ↔ net = 0) ∧ (W 0 < W t ↔ 0 < net)

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

        def MindFormal.linkBrace {N n : ℕ} {T : Type u_2} {Λ : Type u_3} (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) :

        RC5 (RC5.2): the complete II brace 𝔡_ij=(1-β)c_jℰ_i+βx_i(c_j-W_ij) at a state.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.assembledDrift_relation_brace {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) :
          assembledDrift d u q s (Sum.inl (i, j)) = (d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) * linkBrace d u q s i j

          RC5 (RC5.2): an interior point of [a,b] is an accumulation point of [a,b].

          theorem MindFormal.result_RC5_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 j : Fin N) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hb : b ≤ ↑H) :
          have d := experiment.data.toPhysicalNoiseData.data; have W := fun (s : ℝ) => mindRelation ((ContinuousMap.IccExtend ⋯ R.path) s) i j; have m := fun (s : ℝ) => d.gain fun (a : T) (b : Fin n) => |assembledResidual d (R.input s) ((ContinuousMap.IccExtend ⋯ R.path) s) a b|; have 𝔡 := fun (s : ℝ) => linkBrace d (R.input s) (R.mode s) ((ContinuousMap.IccExtend ⋯ R.path) s) i j; (∀ᵐ (s : ℝ), s ∈ Set.Ioo a b → HasDerivAt W (m s * 𝔡 s) s ∧ 0 < m s ∧ (0 < m s * 𝔡 s ↔ 0 < 𝔡 s) ∧ (m s * 𝔡 s = 0 ↔ 𝔡 s = 0) ∧ (m s * 𝔡 s < 0 ↔ 𝔡 s < 0)) ∧ (MonotoneOn W (Set.Icc a b) ↔ 0 ≤ᵐ[MeasureTheory.volume.restrict (Set.Icc a b)] 𝔡) ∧ (AntitoneOn W (Set.Icc a b) ↔ 𝔡 ≤ᵐ[MeasureTheory.volume.restrict (Set.Icc a b)] 0) ∧ ((∀ s ∈ Set.Icc a b, W s = W a) ↔ 𝔡 =ᵐ[MeasureTheory.volume.restrict (Set.Icc a b)] 0)

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

          theorem MindFormal.result_RC5_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 𝒩) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hs : PhysicalMindState s) (i j : Fin N) :
          have d := experiment.data.toPhysicalNoiseData.data; have m := d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|; have C := d.presence (mindTrace s j); have x := mindActivity s i; have E := d.drive (u i) (q i) (mindValue s i) - ∑ l : Fin N, mindRelation s i l * mindActivity s l; have W := mindRelation s i j; have βc := C * -E / (C * -E + x * (C - W)); have D := assembledDrift d u q s (Sum.inl (i, j)); D = m * ((1 - d.β) * C * E + d.β * x * (C - W)) ∧ 0 < m ∧ (0 < C → 0 < x → E < 0 → 0 < W → W < C → 0 < βc ∧ βc < 1 ∧ (0 < D ↔ βc < d.β) ∧ (D = 0 ↔ d.β = βc) ∧ (D < 0 ↔ d.β < βc)) ∧ (C ≤ W → E ≤ 0 → D ≤ 0 ∧ (0 < C ∧ E < 0 ∨ 0 < x ∧ C < W → D < 0)) ∧ (C = 0 → D = -(d.β * m * x * W)) ∧ (x = 0 → D = m * ((1 - d.β) * C * E))

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

          theorem MindFormal.result_RC5_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 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i l : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
          have d := experiment.data.toPhysicalNoiseData.data; have W := fun (s : ℝ) => mindRelation ((ContinuousMap.IccExtend ⋯ R.path) s) i l; have num := W 0 + ∫ (s : ℝ) in 0..t, Real.exp (R.linkDose i l s) * R.linkForcing i l s; (W t < 0 ↔ num < 0) ∧ (0 ≤ W 0 → W t < 0 → ¬0 ≤ᵐ[MeasureTheory.volume.restrict (Set.Icc 0 t)] R.linkForcing i l) ∧ ((∀ s ∈ Set.Icc 0 t, ∑ k ∈ Finset.univ.erase l, mindRelation ((ContinuousMap.IccExtend ⋯ R.path) s) i k * mindActivity ((ContinuousMap.IccExtend ⋯ R.path) s) k ≤ 0) → 0 ≤ W 0 → 0 ≤ W t) ∧ ∀ (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ), PhysicalMindState s → mindRelation s i l = 0 → 0 < d.presence (mindTrace s l) → have 𝔟 := ∑ k ∈ Finset.univ.erase l, mindRelation s i k * mindActivity s k; have e := d.drive (u i) (q i) (mindValue s i); assembledDrift d u q s (Sum.inl (i, l)) = writerForcing d.β (d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) (d.presence (mindTrace s l)) e 𝔟 (mindActivity s i) ∧ (assembledDrift d u q s (Sum.inl (i, l)) < 0 ↔ e + d.β * mindActivity s i / (1 - d.β) < 𝔟)

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

          theorem MindFormal.result_RC5_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 j : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) (Wacq : ℝ) :
          have W := fun (s : ℝ) => mindRelation ((ContinuousMap.IccExtend ⋯ R.path) s) i j; have net := ∫ (s : ℝ) in 0..t, Real.exp (R.linkDose i j s) * (R.linkForcing i j s - R.linkLoss i j s * W 0); (Wacq ≤ W t ↔ Wacq ≤ Real.exp (-R.linkDose i j t) * (W 0 + ∫ (s : ℝ) in 0..t, Real.exp (R.linkDose i j s) * R.linkForcing i j s)) ∧ (net ≤ 0 → W 0 < Wacq → W t < Wacq) ∧ ((fun (s : ℝ) => R.linkForcing i j s - R.linkLoss i j s * W 0) =ᵐ[MeasureTheory.volume.restrict (Set.Icc 0 t)] 0 → W t = W 0)

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

          theorem MindFormal.result_RC5_clause_9_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 𝒩) (reads : PhysicalNativeReads N n T) :
          have d := experiment.data.toPhysicalNoiseData.data; (have __src := experiment.mind; { activity := __src.activity, transform := __src.transform, β := __src.β, η := __src.η, τ := __src.τ, rate := __src.rate, sensed := __src.sensed, primary := __src.primary, drive := __src.drive, residue := __src.residue, presence := __src.presence, delivery := __src.delivery, response := __src.response, gain := __src.gain, reads := reads, pause := __src.pause, amplitude := __src.amplitude }).drift = d ∧ (∀ (u q q' : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N), d.drive (u i) (q i) (mindValue s i) = d.drive (u i) (q' i) (mindValue s i) → assembledDrift d u q s (Sum.inl (i, j)) = assembledDrift d u q' s (Sum.inl (i, j))) ∧ ∀ (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N), u i = 0 → q i = 0 → assembledDrift d u q s (Sum.inl (i, j)) = (d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) * ((1 - d.β) * d.presence (mindTrace s j) * -∑ l : Fin N, mindRelation s i l * mindActivity s l + d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j))

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

          RC3: the matched-exposure frontier #

          noncomputable def MindFormal.LearningReference.exposure {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 : ℝ) :

          RC3 (RC3.3): the receiver exposure ℓ_dose(s)=∫_0^s Mx_i along a verified reference.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            noncomputable def MindFormal.LearningReference.departure {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 j : Fin N) (Cs s : ℝ) :

            RC3 (RC3.3): the remainder's integrand M{(1-β)c_jℰ_i+βx_i(c_j-𝒞_*)} along a reference.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MindFormal.LearningReference.frontier_identity {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (hd : PhysicalCoefficientRegularity d) (R : LearningReference d H) (i j : Fin N) (Cs : ℝ) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
              mindRelation ((ContinuousMap.IccExtend ⋯ R.path) t) i j = Real.exp (-(d.β * R.exposure i t)) * mindRelation ((ContinuousMap.IccExtend ⋯ R.path) 0) i j + Cs * (1 - Real.exp (-(d.β * R.exposure i t))) + Real.exp (-(d.β * R.exposure i t)) * ∫ (s : ℝ) in 0..t, Real.exp (d.β * R.exposure i s) * R.departure i j Cs s

              RC3 (RC3.3), reference: for any constant 𝒞_, the relation (i,j) of a verified reference is e^{-βℓ}W(0)+𝒞_(1-e^{-βℓ})+e^{-βℓ}∫0^te^{βℓ(z)}M{(1-β)c_jℰ_i+βx_i(c_j-𝒞*)}dz, ℓ=ℓ_dose.

              theorem MindFormal.actual_frontier_identity {Ω : 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 𝒩) (z : Ω) (i j : Fin N) (Cs : ℝ) {t : ℝ} (ht0 : 0 ≤ t) :
              have G := experiment.data.toPhysicalNoiseData.globalData z; have β := G.data.β; have ℓ := fun (s : ℝ) => ∫ (u : ℝ) in 0..s, actualGain G u * mindActivity (G.state u) i; have dep := fun (s : ℝ) => actualGain G s * ((1 - β) * actualPresence G j s * actualError G i s + β * mindActivity (G.state s) i * (actualPresence G j s - Cs)); have ξ := fun (s : ℝ) => G.driver s.toNNReal (Sum.inl (i, j)); mindRelation (G.state t) i j = (Real.exp (-(β * ℓ t)) * mindRelation (G.state 0) i j + Cs * (1 - Real.exp (-(β * ℓ t))) + Real.exp (-(β * ℓ t)) * ∫ (s : ℝ) in 0..t, Real.exp (β * ℓ s) * dep s) + Real.exp (-(β * ℓ t)) * (Real.exp (β * ℓ t) * ξ t - ∫ (s : ℝ) in 0..t, Real.exp (β * ℓ s) * (β * (actualGain G s * mindActivity (G.state s) i)) * ξ s)

              RC3 (RC3.3), actual run of draw z: the same identity with the relation's innovation ξ (ξ(0)=0) in its integration-by-parts form, all writes kept.

              theorem MindFormal.result_RC3_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 j : Fin N) (Cs : ℝ) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) (z : Ω) :
              have d := experiment.data.toPhysicalNoiseData.data; mindRelation ((ContinuousMap.IccExtend ⋯ R.path) t) i j = Real.exp (-(d.β * R.exposure i t)) * mindRelation ((ContinuousMap.IccExtend ⋯ R.path) 0) i j + Cs * (1 - Real.exp (-(d.β * R.exposure i t))) + Real.exp (-(d.β * R.exposure i t)) * ∫ (s : ℝ) in 0..t, Real.exp (d.β * R.exposure i s) * R.departure i j Cs s ∧ have G := experiment.data.toPhysicalNoiseData.globalData z; have β := G.data.β; have ℓ := fun (s : ℝ) => ∫ (u : ℝ) in 0..s, actualGain G u * mindActivity (G.state u) i; have dep := fun (s : ℝ) => actualGain G s * ((1 - β) * actualPresence G j s * actualError G i s + β * mindActivity (G.state s) i * (actualPresence G j s - Cs)); have ξ := fun (s : ℝ) => G.driver s.toNNReal (Sum.inl (i, j)); mindRelation (G.state t) i j = (Real.exp (-(β * ℓ t)) * mindRelation (G.state 0) i j + Cs * (1 - Real.exp (-(β * ℓ t))) + Real.exp (-(β * ℓ t)) * ∫ (s : ℝ) in 0..t, Real.exp (β * ℓ s) * dep s) + Real.exp (-(β * ℓ t)) * (Real.exp (β * ℓ t) * ξ t - ∫ (s : ℝ) in 0..t, Real.exp (β * ℓ s) * (β * (actualGain G s * mindActivity (G.state s) i)) * ξ s)

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

              theorem MindFormal.LearningReference.frontier_matched {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (hd : PhysicalCoefficientRegularity d) (R : LearningReference d H) (i j : Fin N) (Cs : ℝ) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) (hstart : mindRelation ((ContinuousMap.IccExtend ⋯ R.path) 0) i j = 0) (hpres : ∀ s ∈ Set.Icc 0 t, d.presence (mindTrace ((ContinuousMap.IccExtend ⋯ R.path) s) j) = Cs) (herr : ∀ s ∈ Set.Icc 0 t, d.drive (R.input s i) (R.mode s i) (mindValue ((ContinuousMap.IccExtend ⋯ R.path) s) i) - ∑ l : Fin N, mindRelation ((ContinuousMap.IccExtend ⋯ R.path) s) i l * mindActivity ((ContinuousMap.IccExtend ⋯ R.path) s) l = 0) :
              mindRelation ((ContinuousMap.IccExtend ⋯ R.path) t) i j = Cs * (1 - Real.exp (-(d.β * R.exposure i t)))

              RC3 (RC3.1): on [0,t] with constant sender presence 𝒞_* and zero receiver error the departure vanishes, so a relation starting at zero is 𝒞_*(1-e^{-βℓ_dose}).

              theorem MindFormal.result_RC3_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} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R1 R2 : LearningReference experiment.data.toPhysicalNoiseData.data H) (i j i' j' : Fin N) (Cs : ℝ) {t1 t2 : ℝ} (ht1 : 0 ≤ t1) (ht1H : t1 ≤ ↑H) (ht2 : 0 ≤ t2) (ht2H : t2 ≤ ↑H) (start1 : mindRelation ((ContinuousMap.IccExtend ⋯ R1.path) 0) i j = 0) (start2 : mindRelation ((ContinuousMap.IccExtend ⋯ R2.path) 0) i' j' = 0) (pres1 : ∀ s ∈ Set.Icc 0 t1, experiment.data.toPhysicalNoiseData.data.presence (mindTrace ((ContinuousMap.IccExtend ⋯ R1.path) s) j) = Cs) (pres2 : ∀ s ∈ Set.Icc 0 t2, experiment.data.toPhysicalNoiseData.data.presence (mindTrace ((ContinuousMap.IccExtend ⋯ R2.path) s) j') = Cs) (err1 : ∀ s ∈ Set.Icc 0 t1, experiment.data.toPhysicalNoiseData.data.drive (R1.input s i) (R1.mode s i) (mindValue ((ContinuousMap.IccExtend ⋯ R1.path) s) i) - ∑ l : Fin N, mindRelation ((ContinuousMap.IccExtend ⋯ R1.path) s) i l * mindActivity ((ContinuousMap.IccExtend ⋯ R1.path) s) l = 0) (err2 : ∀ s ∈ Set.Icc 0 t2, experiment.data.toPhysicalNoiseData.data.drive (R2.input s i') (R2.mode s i') (mindValue ((ContinuousMap.IccExtend ⋯ R2.path) s) i') - ∑ l : Fin N, mindRelation ((ContinuousMap.IccExtend ⋯ R2.path) s) i' l * mindActivity ((ContinuousMap.IccExtend ⋯ R2.path) s) l = 0) (dose : R1.exposure i t1 = R2.exposure i' t2) (hCs : 0 < Cs) :
              have β := experiment.data.toPhysicalNoiseData.data.β; have Wret := mindRelation ((ContinuousMap.IccExtend ⋯ R1.path) t1) i j; have Wpred := mindRelation ((ContinuousMap.IccExtend ⋯ R2.path) t2) i' j'; have ℓ := R1.exposure i t1; Wret = Wpred ∧ Wret = Cs * (1 - Real.exp (-(β * ℓ))) ∧ Wret / Cs = 1 - Real.exp (-(β * ℓ)) ∧ 1 - Wpred / Cs = Real.exp (-(β * ℓ)) ∧ Wret / Cs + (1 - Wpred / Cs) = 1 ∧ (∀ (w : ℝ), 0 ≤ w → w < Cs → (w ≤ Wret ↔ -Real.log (1 - w / Cs) ≤ β * ℓ)) ∧ (∀ (w : ℝ), 0 ≤ w → w < Cs → (Wpred ≤ w ↔ β * ℓ ≤ -Real.log (1 - w / Cs))) ∧ ∀ (ws ds : ℝ), 0 ≤ ds → ds < ws → ws < Cs → ¬(ws ≤ Wret ∧ Wpred ≤ ds)

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

              def MindFormal.rowLoss {N : ℕ} (M β xi : ℝ) (Cv x v : Fin N → ℝ) :
              Fin N → ℝ

              RC3 (RC3.2): the action of the row loss matrix 𝖫_i=M{(1-β)𝒞x^T+βx_i Id} on a column v.

              Equations
              Instances For
                theorem MindFormal.rc3_rates {N : ℕ} {M β xi ℓ : ℝ} (Cv x : Fin N → ℝ) (hM : 0 < M) (hx : 0 < xi) (hℓ : 0 < ℓ) (hβ0 : 0 < β) (hβ1 : β < 1) :
                have Js := ∑ l : Fin N, Cv l * x l; have L := 1 - Real.exp (-(β * (M * xi * ℓ))); (∀ (v : Fin N → ℝ), ∑ l : Fin N, x l * v l = 0 → rowLoss M β xi Cv x v = (M * β * xi) • v) ∧ rowLoss M β xi Cv x Cv = (M * ((1 - β) * Js + β * xi)) • Cv ∧ M * ((1 - β) * Js + β * xi) - M * β * xi = (1 - β) * M * Js ∧ 0 < L ∧ L < 1 - Real.exp (-(M * xi * ℓ)) ∧ β = -Real.log (1 - L) / (M * xi * ℓ) ∧ (Js ≠ 0 → (M * ((1 - β) * Js + β * xi) - M * β * xi) / (M * Js) = 1 + Real.log (1 - L) / (M * xi * ℓ)) ∧ (∀ (L' : ℝ), 0 < L' → L' < 1 - Real.exp (-(M * xi * ℓ)) → ∃! β' : ℝ, 0 < β' ∧ β' < 1 ∧ L' = 1 - Real.exp (-(β' * (M * xi * ℓ)))) ∧ (∀ (C' x' W' : ℝ), writerFactor 0 C' x' 0 W' = 0) ∧ (∀ (C' x' W' E E' : ℝ), writerFactor 1 C' x' E W' = writerFactor 1 C' x' E' W') ∧ 0 < Real.exp (-(M * xi * ℓ))

                RC3 (RC3.2): the loss operator's transverse and longitudinal rates, the dose and rate forms and the bijection between binding fractions and written fractions, and the classical endpoints.

                theorem MindFormal.result_RC3_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 xi ℓ : ℝ} (Cv x : Fin N → ℝ) (hM : 0 < M) (hx : 0 < xi) (hℓ : 0 < ℓ) :
                have β := experiment.data.toPhysicalNoiseData.data.β; have Js := ∑ l : Fin N, Cv l * x l; have L := 1 - Real.exp (-(β * (M * xi * ℓ))); (∀ (v : Fin N → ℝ), ∑ l : Fin N, x l * v l = 0 → rowLoss M β xi Cv x v = (M * β * xi) • v) ∧ rowLoss M β xi Cv x Cv = (M * ((1 - β) * Js + β * xi)) • Cv ∧ M * ((1 - β) * Js + β * xi) - M * β * xi = (1 - β) * M * Js ∧ 0 < L ∧ L < 1 - Real.exp (-(M * xi * ℓ)) ∧ β = -Real.log (1 - L) / (M * xi * ℓ) ∧ (Js ≠ 0 → (M * ((1 - β) * Js + β * xi) - M * β * xi) / (M * Js) = 1 + Real.log (1 - L) / (M * xi * ℓ)) ∧ (∀ (L' : ℝ), 0 < L' → L' < 1 - Real.exp (-(M * xi * ℓ)) → ∃! β' : ℝ, 0 < β' ∧ β' < 1 ∧ L' = 1 - Real.exp (-(β' * (M * xi * ℓ)))) ∧ (∀ (C' x' W' : ℝ), writerFactor 0 C' x' 0 W' = 0) ∧ (∀ (C' x' W' E E' : ℝ), writerFactor 1 C' x' E W' = writerFactor 1 C' x' E' W') ∧ 0 < Real.exp (-(M * xi * ℓ))

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

                theorem MindFormal.result_RC3_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} (C : NoiseLearning Ω N n T Λ J 𝒩) (i j i' j' : Fin N) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑C.horizon) {ws ds : ℝ} (matched : ∀ z ∈ C.run.good, C.run.refCoordinate z (Sum.inl (i, j)) t = C.run.refCoordinate z (Sum.inl (i', j')) t) (gap : 2 * C.control.error < ws - ds) :
                (∀ z ∈ C.run.good, ¬(ws ≤ C.run.coordinate z (Sum.inl (i, j)) t ∧ C.run.coordinate z (Sum.inl (i', j')) t ≤ ds)) ∧ C.experiment.data.μ.real {z : Ω | ws ≤ C.run.coordinate z (Sum.inl (i, j)) t ∧ C.run.coordinate z (Sum.inl (i', j')) t ≤ ds} ≤ C.control.failure

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

                RC2: losing a route against losing its share #

                theorem MindFormal.share_difference {X1 X2 G1 G2 : ℝ} (hX1 : 0 ≤ X1) (hX2 : 0 ≤ X2) (hG1 : 0 < G1) (hG2 : 0 < G2) :
                X2 / (X2 + G2) - X1 / (X1 + G1) = (G1 * (X2 - X1) - X1 * (G2 - G1)) / ((X1 + G1) * (X2 + G2))

                RC2 (RC2.1): the exact difference of two shares X/(X+G), positive loads, nonnegative supports.

                theorem MindFormal.result_RC2_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} (R1 R2 : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) (t1 t2 : ℝ) :
                have g := experiment.data.toPhysicalNoiseData.data.activity.g; have X1 := R1.useful i t1; have X2 := R2.useful i t2; have G1 := R1.rest i t1; have G2 := R2.rest i t2; have Δ := X2 / (X2 + G2) - X1 / (X1 + G1); have num := G1 * (X2 - X1) - X1 * (G2 - G1); Δ = num / ((X1 + G1) * (X2 + G2)) ∧ (0 < Δ ↔ 0 < num) ∧ (Δ = 0 ↔ num = 0) ∧ (Δ < 0 ↔ num < 0) ∧ (X1 / (X1 + G1) ≤ X2 / (X2 + G2) → R1.target i t1 ≤ R2.target i t2) ∧ (X1 / (X1 + G1) ≤ g → X2 / (X2 + G2) ≤ g → R1.target i t1 = 0 ∧ R2.target i t2 = 0)

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

                theorem MindFormal.LearningReference.activity_from {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) {p τ : ℝ} (hp : 0 ≤ p) (hτ : 0 ≤ τ) (hH : p + τ ≤ ↑H) :
                mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i = Real.exp (-d.activity.ν * τ) * mindActivity ((ContinuousMap.IccExtend ⋯ R.path) p) i + d.activity.ν * ∫ (u : ℝ) in 0..τ, Real.exp (-d.activity.ν * (τ - u)) * max (R.useful i (p + u) / (R.useful i (p + u) + R.rest i (p + u)) - d.activity.g) 0

                RC2 (RC2.4, RC2.2): from a probe onset p, the reference activity after τ is e^{-ντ}x(p)+ν∫0^τe^{-ν(τ-u)}[X/(X+G)-g]+(p+u)du.

                noncomputable def MindFormal.LearningReference.probeMargin {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) (α p ℓ : ℝ) :

                RC2 (RC2.4): the reference probe margin: the largest reference activity of content i over the probe [p,p+ℓ] less the awareness level α.

                Equations
                Instances For
                  theorem MindFormal.LearningReference.probeMargin_spec {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) (α p ℓ : ℝ) (hℓ : 0 ≤ ℓ) :
                  ((∃ τ ∈ Set.Icc 0 ℓ, α ≤ mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i) ↔ 0 ≤ R.probeMargin i α p ℓ) ∧ (∀ τ ∈ Set.Icc 0 ℓ, mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i ≤ R.probeMargin i α p ℓ + α) ∧ ∃ τ ∈ Set.Icc 0 ℓ, mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i = R.probeMargin i α p ℓ + α
                  theorem MindFormal.result_RC2_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) {α p ℓ : ℝ} (hp : 0 ≤ p) (hℓ : 0 ≤ ℓ) (hpℓ : p + ℓ ≤ ↑H) :
                  have ν := experiment.data.toPhysicalNoiseData.data.activity.ν; have g := experiment.data.toPhysicalNoiseData.data.activity.g; (∀ τ ∈ Set.Icc 0 ℓ, mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i = Real.exp (-ν * τ) * mindActivity ((ContinuousMap.IccExtend ⋯ R.path) p) i + ν * ∫ (u : ℝ) in 0..τ, Real.exp (-ν * (τ - u)) * max (R.useful i (p + u) / (R.useful i (p + u) + R.rest i (p + u)) - g) 0) ∧ ((∃ τ ∈ Set.Icc 0 ℓ, α ≤ mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i) ↔ 0 ≤ R.probeMargin i α p ℓ)

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

                  theorem MindFormal.result_RC2_clause_5_live_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 𝒩) (i : Fin N) {α p ℓ : ℝ} (hp : 0 ≤ p) (hℓ : 0 ≤ ℓ) (hpℓ : p + ℓ ≤ ↑C.horizon) :
                  have hit := {z : Ω | ∃ τ ∈ Set.Icc 0 ℓ, α ≤ C.run.coordinate z (Sum.inr (Sum.inl i)) (p + τ)}; ((∀ z ∈ C.run.good, C.control.error < (C.reference z).probeMargin i α p ℓ) → C.run.good ⊆ hit ∧ 1 - C.control.failure ≤ C.experiment.data.μ.real hit) ∧ ((∀ z ∈ C.run.good, (C.reference z).probeMargin i α p ℓ < -C.control.error) → hit ⊆ C.run.goodᶜ ∧ C.experiment.data.μ.real hit ≤ C.control.failure)

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

                  theorem MindFormal.recovery_delay {Ginf G0 Gs lam : ℝ} (hG0 : 0 < G0) (hlam : 0 < lam) :
                  (Ginf < Gs → Gs < Ginf + G0 → ∀ (dl : ℝ), Ginf + G0 * Real.exp (-lam * dl) ≤ Gs ↔ lam⁻¹ * Real.log (G0 / (Gs - Ginf)) ≤ dl) ∧ (Ginf + G0 ≤ Gs → ∀ (dl : ℝ), 0 ≤ dl → Ginf + G0 * Real.exp (-lam * dl) ≤ Gs) ∧ (Gs ≤ Ginf → ∀ (dl : ℝ), Gs < Ginf + G0 * Real.exp (-lam * dl))

                  RC2 (RC2.5): a load G(d)=G_∞+G_0e^{-λd} falls to a threshold G_* at the logarithmic delay, is there from the start, or never reaches it.

                  theorem MindFormal.result_RC2_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 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {p ℓ Xs Gc α : ℝ} (hp : 0 ≤ p) (hℓ : 0 < ℓ) (hpℓ : p + ℓ ≤ ↑H) (hXs : 0 < Xs) (hconst : ∀ s ∈ Set.Ioc p (p + ℓ), R.useful i s = Xs ∧ R.rest i s = Gc) (hentry : mindActivity ((ContinuousMap.IccExtend ⋯ R.path) p) i < α) :
                  have ν := experiment.data.toPhysicalNoiseData.data.activity.ν; have g := experiment.data.toPhysicalNoiseData.data.activity.g; have xs := mindActivity ((ContinuousMap.IccExtend ⋯ R.path) p) i; have need := (α - Real.exp (-ν * ℓ) * xs) / (1 - Real.exp (-ν * ℓ)); have Gs := Xs * (1 - g - need) / (g + need); 0 < need ∧ (g + need < 1 → ((∃ τ ∈ Set.Icc 0 ℓ, α ≤ mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i) ↔ Gc ≤ Gs))

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

                  theorem MindFormal.allocation_identities (p11 p12 p21 p22 : ℝ) :
                  have Δs := (p21 - p11 + (p22 - p12)) / 2; have Δl := (p12 - p11 + (p22 - p21)) / 2; have I := p22 - p21 - p12 + p11; p22 - p11 = Δs + Δl ∧ Δs = p21 - p11 + I / 2 ∧ Δl = p12 - p11 + I / 2 ∧ p22 - p21 = p12 - p11 + I ∧ p22 - p12 = p21 - p11 + I ∧ p22 - p11 = p21 - p11 + (p22 - p21) ∧ p22 - p11 = p12 - p11 + (p22 - p12)

                  RC2 (RC2.3): the symmetric two-part allocation of four matched probabilities, the interaction, and the two orderings that put it wholly on one part.

                  theorem MindFormal.raw_input_change {N : ℕ} (e1 e2 r1 r2 : Fin N → ℝ) (W1 W2 : Fin N → Fin N → ℝ) (x1 x2 : Fin N → ℝ) (i c : Fin N) :
                  rawInput e2 r2 W2 x2 i - rawInput e1 r1 W1 x1 i = x1 c * (W2 i c - W1 i c) + W2 i c * (x2 c - x1 c) + (e2 i - e1 i) + (r2 i - r1 i) + ∑ j ∈ Finset.univ.erase c, (x1 j * (W2 i j - W1 i j) + W2 i j * (x2 j - x1 j))

                  RC2 (RC2.2): the raw input's change between two states, split into the tested link, the cue's activity, drive, residue and every other sender.

                  theorem MindFormal.transform_divided_difference (ψ : InputTransform) (I1 I2 : ℝ) :
                  ∃ (q : ℝ), 0 ≤ q ∧ ψ.ψ I2 - ψ.ψ I1 = q * (I2 - I1)

                  RC2 (RC2.2): a transform nondecreasing on ℝ (zero below zero, increasing above) changes by a nonnegative divided difference times the raw-input change, and not at all when they coincide.

                  theorem MindFormal.result_RC2_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} (R1 R2 : LearningReference experiment.data.toPhysicalNoiseData.data H) (i c : Fin N) {p1 p2 τ : ℝ} (hp1 : 0 ≤ p1) (hp2 : 0 ≤ p2) (hτ : 0 ≤ τ) (h1 : p1 + τ ≤ ↑H) (h2 : p2 + τ ≤ ↑H) :
                  have d := experiment.data.toPhysicalNoiseData.data; have s1 := (ContinuousMap.IccExtend ⋯ R1.path) (p1 + τ); have s2 := (ContinuousMap.IccExtend ⋯ R2.path) (p2 + τ); have e1 := fun (j : Fin N) => d.drive (R1.input (p1 + τ) j) (R1.mode (p1 + τ) j) (mindValue s1 j); have e2 := fun (j : Fin N) => d.drive (R2.input (p2 + τ) j) (R2.mode (p2 + τ) j) (mindValue s2 j); have r1 := fun (j : Fin N) => d.residue (mindTrace s1 j); have r2 := fun (j : Fin N) => d.residue (mindTrace s2 j); have I1 := rawInput e1 r1 (mindRelation s1) (mindActivity s1) i; have I2 := rawInput e2 r2 (mindRelation s2) (mindActivity s2) i; have link := mindActivity s1 c * (mindRelation s2 i c - mindRelation s1 i c); have rest := mindRelation s2 i c * (mindActivity s2 c - mindActivity s1 c) + (e2 i - e1 i) + (r2 i - r1 i) + ∑ j ∈ Finset.univ.erase c, (mindActivity s1 j * (mindRelation s2 i j - mindRelation s1 i j) + mindRelation s2 i j * (mindActivity s2 j - mindActivity s1 j)); have ν := d.activity.ν; have a1 := fun (u : ℝ) => mindActivity ((ContinuousMap.IccExtend ⋯ R1.path) (p1 + u)) i; have a2 := fun (u : ℝ) => mindActivity ((ContinuousMap.IccExtend ⋯ R2.path) (p2 + u)) i; I2 - I1 = link + rest ∧ R1.useful i (p1 + τ) = d.transform.ψ I1 ∧ R2.useful i (p2 + τ) = d.transform.ψ I2 ∧ (∃ (q : ℝ), 0 ≤ q ∧ R2.useful i (p2 + τ) - R1.useful i (p1 + τ) = q * link + q * rest ∧ (I1 = I2 → R2.useful i (p2 + τ) - R1.useful i (p1 + τ) = 0)) ∧ a2 τ - a1 τ = Real.exp (-ν * τ) * (a2 0 - a1 0) + ν * ((∫ (u : ℝ) in 0..τ, Real.exp (-ν * (τ - u)) * R2.target i (p2 + u)) - ∫ (u : ℝ) in 0..τ, Real.exp (-ν * (τ - u)) * R1.target i (p1 + u))

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

                  RC1: counts and delays of first success and first failure #

                  def MindFormal.recallProbability {Ω : 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 b : ℝ) :

                  RC1 (RC1.3, RC1.6): the probability that content i reaches the awareness level during the window [a,b] of the run (a hit at its onset included).

                  Equations
                  Instances For
                    noncomputable def MindFormal.firstCount (P : ℕ → Prop) :

                    RC1 (RC1.6): the first count k satisfying P, infinite when none does.

                    Equations
                    Instances For
                      noncomputable def MindFormal.firstDelay (d0 : ℝ) (P : ℝ → Prop) :

                      RC1 (RC1.6): the first delay at or after d0 satisfying P (an infimum), infinite when none does.

                      Equations
                      Instances For
                        theorem MindFormal.firstCount_anti {P Q : ℕ → Prop} (h : ∀ (k : ℕ), P k → Q k) :
                        theorem MindFormal.firstDelay_anti (d0 : ℝ) {P Q : ℝ → Prop} (h : ∀ (dl : ℝ), P dl → Q dl) :
                        theorem MindFormal.first_bounds (p L U : ℕ → ℝ) (pd Ld Ud : ℝ → ℝ) (π d0 : ℝ) (hb : ∀ (k : ℕ), L k ≤ p k ∧ p k ≤ U k) (hbd : ∀ (dl : ℝ), Ld dl ≤ pd dl ∧ pd dl ≤ Ud dl) :
                        ((firstCount fun (k : ℕ) => π ≤ U k) ≤ firstCount fun (k : ℕ) => π ≤ p k) ∧ ((firstCount fun (k : ℕ) => π ≤ p k) ≤ firstCount fun (k : ℕ) => π ≤ L k) ∧ ((firstDelay d0 fun (dl : ℝ) => Ld dl < π) ≤ firstDelay d0 fun (dl : ℝ) => pd dl < π) ∧ (firstDelay d0 fun (dl : ℝ) => pd dl < π) ≤ firstDelay d0 fun (dl : ℝ) => Ud dl < π

                        RC1 (RC1.6): for any sequences with L ≤ p ≤ U, the set inclusions give the count and delay bounds; no monotonicity of p is used.

                        RC4: one scalar affine comparison #

                        noncomputable def MindFormal.relaxLesson (γ w ℓ W : ℝ) :

                        RC4 (paragraph 3): a lesson relaxing a weight toward its rest w at rate γ for duration ℓ.

                        Equations
                        Instances For
                          theorem MindFormal.relax_order (γ1 γ2 ℓ1 ℓ2 w1 w2 W0 : ℝ) :
                          (∀ (γ w W t : ℝ), HasDerivAt (fun (s : ℝ) => relaxLesson γ w s W) (-γ * (relaxLesson γ w t W - w)) t) ∧ (∀ (γ w W : ℝ), HasDerivAt (fun (V : ℝ) => γ * (V - w) ^ 2 / 2) (γ * (W - w)) W) ∧ relaxLesson γ2 w2 ℓ2 (relaxLesson γ1 w1 ℓ1 W0) - relaxLesson γ1 w1 ℓ1 (relaxLesson γ2 w2 ℓ2 W0) = (1 - Real.exp (-γ1 * ℓ1)) * (1 - Real.exp (-γ2 * ℓ2)) * (w2 - w1) ∧ (0 < γ1 * ℓ1 → 0 < γ2 * ℓ2 → w1 ≠ w2 → relaxLesson γ2 w2 ℓ2 (relaxLesson γ1 w1 ℓ1 W0) ≠ relaxLesson γ1 w1 ℓ1 (relaxLesson γ2 w2 ℓ2 W0))

                          RC4 (paragraph 3): each lesson is the descent of γ(W-w)²/2, and the order contrast of two lessons is (1-e^{-γ₁ℓ₁})(1-e^{-γ₂ℓ₂})(w₂-w₁).

                          RC4: the affine evaluation of lesson order (RC4.4) #

                          def MindFormal.augmented {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] (Hm : E →L[ℝ] E) (dv : E) :

                          RC4 (RC4.4): the augmented generator 𝖩 of the affine lesson Ż=𝖧Z+𝐝 on E×ℝ, 𝖩(Z,c)=(𝖧Z+c𝐝,0).

                          Equations
                          Instances For
                            noncomputable def MindFormal.affineLesson {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] (Hm : E →L[ℝ] E) (dv : E) (ℓ : ℝ) (Z0 : E) :
                            E

                            RC4 (RC4.4): the endpoint of the affine lesson after duration ℓ from Z0: pr e^{ℓ𝖩}(Z0,1).

                            Equations
                            Instances For
                              theorem MindFormal.exp_apply_hasDerivAt {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (A : E × ℝ →L[ℝ] E × ℝ) (v : E × ℝ) (t : ℝ) :
                              HasDerivAt (fun (u : ℝ) => (NormedSpace.exp (u • A)) v) (A ((NormedSpace.exp (t • A)) v)) t

                              RC4 (RC4.4): the derivative in time of e^{t𝖩}v is 𝖩e^{t𝖩}v.

                              theorem MindFormal.augmented_exp_snd {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (Hm : E →L[ℝ] E) (dv : E) (t : ℝ) (v : E × ℝ) :
                              ((NormedSpace.exp (t • augmented Hm dv)) v).2 = v.2

                              RC4 (RC4.4): the augmented flow keeps its last coordinate.

                              theorem MindFormal.affineLesson_hasDerivAt {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (Hm : E →L[ℝ] E) (dv Z0 : E) (t : ℝ) :
                              HasDerivAt (fun (u : ℝ) => affineLesson Hm dv u Z0) (Hm (affineLesson Hm dv t Z0) + dv) t ∧ affineLesson Hm dv 0 Z0 = Z0

                              RC4 (RC4.4): the augmented flow solves the affine lesson Ż=𝖧Z+𝐝 from Z0.

                              theorem MindFormal.affineLesson_unique {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (Hm : E →L[ℝ] E) (dv Z0 : E) (Z : ℝ → E) (hZ : ∀ (t : ℝ), HasDerivAt Z (Hm (Z t) + dv) t) (h0 : Z 0 = Z0) :
                              Z = fun (t : ℝ) => affineLesson Hm dv t Z0

                              RC4 (RC4.4): the augmented flow is the only solution of the affine lesson Ż=𝖧Z+𝐝 with Z(0)=Z0: any differentiable path solving it from Z0 is t ↦ pr e^{t𝖩}(Z0,1).

                              theorem MindFormal.affineLesson_comp {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (H1 H2 : E →L[ℝ] E) (d1 d2 : E) (ℓ1 ℓ2 : ℝ) (Z0 : E) :
                              affineLesson H2 d2 ℓ2 (affineLesson H1 d1 ℓ1 Z0) = ((NormedSpace.exp (ℓ2 • augmented H2 d2) * NormedSpace.exp (ℓ1 • augmented H1 d1)) (Z0, 1)).1

                              RC4 (RC4.4): one lesson after another is the product of the two augmented exponentials.

                              theorem MindFormal.affine_order_contrast {E : Type u_5} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (H1 H2 : E →L[ℝ] E) (d1 d2 : E) :
                              have J1 := augmented H1 d1; have J2 := augmented H2 d2; (∀ (ℓ1 ℓ2 : ℝ) (Z0 : E), affineLesson H2 d2 ℓ2 (affineLesson H1 d1 ℓ1 Z0) - affineLesson H1 d1 ℓ1 (affineLesson H2 d2 ℓ2 Z0) = ((NormedSpace.exp (ℓ2 • J2) * NormedSpace.exp (ℓ1 • J1) - NormedSpace.exp (ℓ1 • J1) * NormedSpace.exp (ℓ2 • J2)) (Z0, 1)).1) ∧ (∀ (ℓ1 ℓ2 : ℝ), (∀ (Z0 : E), affineLesson H2 d2 ℓ2 (affineLesson H1 d1 ℓ1 Z0) = affineLesson H1 d1 ℓ1 (affineLesson H2 d2 ℓ2 Z0)) ↔ NormedSpace.exp (ℓ2 • J2) * NormedSpace.exp (ℓ1 • J1) = NormedSpace.exp (ℓ1 • J1) * NormedSpace.exp (ℓ2 • J2)) ∧ ((∀ (ℓ1 ℓ2 : ℝ), 0 < ℓ1 → 0 < ℓ2 → NormedSpace.exp (ℓ2 • J2) * NormedSpace.exp (ℓ1 • J1) = NormedSpace.exp (ℓ1 • J1) * NormedSpace.exp (ℓ2 • J2)) ↔ J2 * J1 = J1 * J2)

                              RC4 (RC4.4): the order contrast, its vanishing at every start exactly when the two augmented exponentials commute, and at every pair of positive durations exactly when the augmented generators commute.

                              RC4: a common diagonal metric #

                              def MindFormal.DiagonalLandscape {k : ℕ} (b : (Fin k → ℝ) → Fin k → ℝ) (γ : Fin k → ℝ) (U : Set (Fin k → ℝ)) :

                              RC4: a landscape for the average write 𝔟 on U with the positive diagonal metric γ: a potential V differentiable at every point of U with 𝔟_j=-γ_j∂_jV there.

                              Equations
                              Instances For
                                noncomputable def MindFormal.partialWrite {k : ℕ} (b : (Fin k → ℝ) → Fin k → ℝ) (Z : Fin k → ℝ) (j l : Fin k) :

                                RC4: the partial derivative ∂_ℓ𝔟_j(Z) of the average write.

                                Equations
                                Instances For
                                  theorem MindFormal.pi_single_smul_one {k : ℕ} (w : Fin k → ℝ) (i : Fin k) :
                                  Pi.single i (w i) = w i • Pi.single i 1
                                  theorem MindFormal.diagonal_landscape_symmetric {k : ℕ} (b : (Fin k → ℝ) → Fin k → ℝ) (γ : Fin k → ℝ) (U : Set (Fin k → ℝ)) (hU : IsOpen U) (hb : ∀ Z ∈ U, DifferentiableAt ℝ b Z) (hγ : ∀ (j : Fin k), 0 < γ j) (hL : DiagonalLandscape b γ U) (Z : Fin k → ℝ) :
                                  Z ∈ U → ∀ (j l : Fin k), γ l * partialWrite b Z j l = γ j * partialWrite b Z l j

                                  RC4 (RC4.1, the diagonal case): a landscape with a positive diagonal metric forces γ_ℓ∂_ℓ𝔟_j=γ_j∂_j𝔟_ℓ at every point of the open domain where 𝔟 is differentiable.

                                  theorem MindFormal.cycle_ratio_product {k : ℕ} (γ : Fin k → ℝ) (hγ : ∀ (j : Fin k), 0 < γ j) (c : ℕ → Fin k) (m : ℕ) :
                                  ∏ a ∈ Finset.range m, γ (c a) / γ (c (a + 1)) = γ (c 0) / γ (c m)

                                  RC4: a telescoping product of ratios around a cycle is one.

                                  theorem MindFormal.diagonal_landscape_ratios {k : ℕ} (b : (Fin k → ℝ) → Fin k → ℝ) (γ : Fin k → ℝ) (U : Set (Fin k → ℝ)) (hU : IsOpen U) (hb : ∀ Z ∈ U, DifferentiableAt ℝ b Z) (hγ : ∀ (j : Fin k), 0 < γ j) (hL : DiagonalLandscape b γ U) :
                                  (∀ Z ∈ U, ∀ (j l : Fin k), γ l * partialWrite b Z j l = γ j * partialWrite b Z l j) ∧ (∀ Z ∈ U, ∀ (j l : Fin k), partialWrite b Z j l = 0 ↔ partialWrite b Z l j = 0) ∧ (∀ Z ∈ U, ∀ (j l : Fin k), partialWrite b Z l j ≠ 0 → partialWrite b Z j l / partialWrite b Z l j = γ j / γ l ∧ 0 < γ j / γ l) ∧ ∀ (c : ℕ → Fin k) (m : ℕ) (Zs : ℕ → Fin k → ℝ), c m = c 0 → (∀ a < m, Zs a ∈ U) → (∀ a < m, partialWrite b (Zs a) (c (a + 1)) (c a) ≠ 0) → ∏ a ∈ Finset.range m, partialWrite b (Zs a) (c a) (c (a + 1)) / partialWrite b (Zs a) (c (a + 1)) (c a) = 1

                                  RC4 clause 3's content: with a positive diagonal metric the reciprocal ratios are the fixed γ_j/γ_ℓ at every state, the zero sets agree, and every cycle's ratio product is one.

                                  RC1: the chronological exponential of a row's loss (RC1.1)-(RC1.2) #

                                  def MindFormal.mmul {N : ℕ} (A B : Fin N → Fin N → ℝ) :
                                  Fin N → Fin N → ℝ

                                  RC1 (RC1.2): the product of two N×N arrays, (AB){ac}=Σ_kA{ak}B_{kc}.

                                  Equations
                                  Instances For
                                    def MindFormal.mvec {N : ℕ} (A : Fin N → Fin N → ℝ) (v : Fin N → ℝ) :
                                    Fin N → ℝ

                                    RC1 (RC1.1): an N×N array applied to a column, (Av)a=Σ_kA{ak}v_k.

                                    Equations
                                    Instances For
                                      def MindFormal.idm {N : ℕ} :
                                      Fin N → Fin N → ℝ

                                      RC1 (RC1.2): the identity array.

                                      Equations
                                      Instances For
                                        def MindFormal.propagatorDrift {N : ℕ} (t : ℝ) (L : ℝ → Fin N → Fin N → ℝ) (σ : ℝ) (M : Fin N × Fin N → ℝ) :
                                        Fin N × Fin N → ℝ

                                        RC1 (RC1.2): the reversed-time right multiplication by L, the drift of the propagator's reversed integral equation on the flattened arrays.

                                        Equations
                                        Instances For
                                          theorem MindFormal.propagatorDrift_measurable {N : ℕ} (t : ℝ) (L : ℝ → Fin N → Fin N → ℝ) (hLm : ∀ (a c : Fin N), Measurable fun (s : ℝ) => L s a c) :
                                          theorem MindFormal.propagatorDrift_lipschitz {N : ℕ} {t B : ℝ} (hB0 : 0 ≤ B) (L : ℝ → Fin N → Fin N → ℝ) (hB : ∀ s ∈ Set.Icc 0 t, ∀ (a c : Fin N), |L s a c| ≤ B) (σ : ℝ) :
                                          σ ∈ Set.Icc 0 t → LipschitzWith ⟨↑N * B, ⋯⟩ (propagatorDrift t L σ)
                                          theorem MindFormal.backward_propagator {N : ℕ} {t : ℝ} (ht : 0 ≤ t) (L : ℝ → Fin N → Fin N → ℝ) (hLm : ∀ (a c : Fin N), Measurable fun (s : ℝ) => L s a c) {B : ℝ} (hB0 : 0 ≤ B) (hB : ∀ s ∈ Set.Icc 0 t, ∀ (a c : Fin N), |L s a c| ≤ B) :
                                          ∃ (V : ℝ → Fin N → Fin N → ℝ), Continuous V ∧ (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), V z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (V s) (L s) a c) ∧ ∀ (V' : ℝ → Fin N → Fin N → ℝ), ContinuousOn V' (Set.Icc 0 t) → (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), V' z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (V' s) (L s) a c) → ∀ z ∈ Set.Icc 0 t, V' z = V z

                                          RC1 (RC1.2): for an N×N array L, measurable in time and bounded by B on [0,t], there is a backward propagator V, continuous, with V(z)=Id-∫_z^tV(s)L(s)ds on [0,t] (the chronological exponential of -L from z to t, whose Picard iterates from Id are the series' partial sums), and it is the only array continuous on [0,t] that solves this equation.

                                          theorem MindFormal.propagator_variation {N : ℕ} {t : ℝ} (ht : 0 ≤ t) (L : ℝ → Fin N → Fin N → ℝ) (dv : ℝ → Fin N → ℝ) (V : ℝ → Fin N → Fin N → ℝ) (W : ℝ → Fin N → ℝ) (hVc : Continuous V) (hWc : Continuous W) (hLi : ∀ (a c : Fin N), IntervalIntegrable (fun (s : ℝ) => L s a c) MeasureTheory.volume 0 t) (hdi : ∀ (a : Fin N), IntervalIntegrable (fun (s : ℝ) => dv s a) MeasureTheory.volume 0 t) (hV : ∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), V z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (V s) (L s) a c) (hW : ∀ z ∈ Set.Icc 0 t, ∀ (a : Fin N), W z a = W 0 a + ∫ (s : ℝ) in 0..z, dv s a - mvec (L s) (W s) a) (a : Fin N) :
                                          W t a = mvec (V 0) (W 0) a + ∫ (z : ℝ) in 0..t, mvec (V z) (dv z) a

                                          RC1 (RC1.2): with V the backward propagator of L to t, a continuous column W with W(z)=W(0)+∫_0^z(𝐝-LW) on [0,t] is W(t)=V(0)W(0)+∫_0^tV(z)𝐝(z)dz: the variation of constants.

                                          RC1: one history's two directed writes along a reference #

                                          noncomputable def MindFormal.LearningReference.rowLoss {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 : ℝ) :
                                          Fin N → Fin N → ℝ

                                          RC1 (RC1.1): receiver i's row loss array along a verified reference, 𝖫_{kc}=M{(1-β)c_kx_c+βx_iδ_{kc}}, with the reference's own gain, presences and activities.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            noncomputable def MindFormal.LearningReference.rowForcing {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 : ℝ) :
                                            Fin N → ℝ

                                            RC1 (RC1.1): receiver i's row forcing column along a verified reference, 𝐝_k=Mc_k{(1-β)e_i+βx_i}, e_i the drive at the reference's own input and native mode.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              noncomputable def MindFormal.LearningReference.row {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 : ℝ) :
                                              Fin N → ℝ

                                              RC1: receiver i's incoming row W_i=(W_ik)_k along a verified reference.

                                              Equations
                                              Instances For
                                                theorem MindFormal.LearningReference.row_drift {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 k : Fin N) (s : ℝ) :
                                                assembledDrift d (R.input s) (R.mode s) ((ContinuousMap.IccExtend ⋯ R.path) s) (Sum.inl (i, k)) = R.rowForcing i s k - mvec (R.rowLoss i s) (R.row i s) k

                                                RC1 (RC1.1): every II drift of row i is 𝐝_k-(𝖫W_i)_k.

                                                theorem MindFormal.LearningReference.rowLoss_regular {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} [Finite T] (hd : PhysicalCoefficientRegularity d) (R : LearningReference d H) (i : Fin N) (t : ℝ) :
                                                ∃ (Lx : ℝ → Fin N → Fin N → ℝ), (∀ (a c : Fin N), Measurable fun (s : ℝ) => Lx s a c) ∧ (∀ s ∈ Set.Icc 0 ↑H, Lx s = R.rowLoss i s) ∧ ∃ (B : ℝ), 0 ≤ B ∧ ∀ s ∈ Set.Icc 0 t, ∀ (a c : Fin N), |Lx s a c| ≤ B

                                                RC1 (RC1.2): on a regular drift, the row loss array along a verified reference agrees on [0,H] with an array measurable in time and bounded on [0,t], t ≤ H.

                                                theorem MindFormal.LearningReference.trace_convolution {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 : Fin N) (l : Λ) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :

                                                RC1 (RC1.2): the D4 traces along a verified reference are the exponential convolution of their content's activity: r(λ,t)=e^{-λt}r(λ,0)+λ∫_0^te^{-λ(t-z)}x(z)dz.

                                                theorem MindFormal.LearningReference.row_formula {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} [Finite T] (hd : PhysicalCoefficientRegularity d) (R : LearningReference d H) (i : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
                                                ∃ (U : ℝ → Fin N → Fin N → ℝ), Continuous U ∧ (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), U z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (U s) (R.rowLoss i s) a c) ∧ (∀ (U' : ℝ → Fin N → Fin N → ℝ), ContinuousOn U' (Set.Icc 0 t) → (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), U' z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (U' s) (R.rowLoss i s) a c) → ∀ z ∈ Set.Icc 0 t, U' z = U z) ∧ ∀ (k : Fin N), R.row i t k = mvec (U 0) (R.row i 0) k + ∫ (z : ℝ) in 0..t, mvec (U z) (R.rowForcing i z) k

                                                RC1 (RC1.2): on a regular drift with finite horizon index, receiver i's row along a verified reference has a unique backward propagator U of its row loss to t (the chronological exponential), and W_i(t)=U(0)W_i(0)+∫_0^tU(z)𝐝(z)dz.

                                                theorem MindFormal.result_RC1_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} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) {H : NNReal} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
                                                (∀ (s : ℝ) (k : Fin N), assembledDrift experiment.data.toPhysicalNoiseData.data (R.input s) (R.mode s) ((ContinuousMap.IccExtend ⋯ R.path) s) (Sum.inl (i, k)) = R.rowForcing i s k - mvec (R.rowLoss i s) (R.row i s) k) ∧ (∃ (U : ℝ → Fin N → Fin N → ℝ), Continuous U ∧ (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), U z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (U s) (R.rowLoss i s) a c) ∧ (∀ (U' : ℝ → Fin N → Fin N → ℝ), ContinuousOn U' (Set.Icc 0 t) → (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), U' z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (U' s) (R.rowLoss i s) a c) → ∀ z ∈ Set.Icc 0 t, U' z = U z) ∧ ∀ (k : Fin N), R.row i t k = mvec (U 0) (R.row i 0) k + ∫ (z : ℝ) in 0..t, mvec (U z) (R.rowForcing i z) k) ∧ ∀ (j : Fin N) (l : Λ), mindTrace ((ContinuousMap.IccExtend ⋯ R.path) t) j l = Real.exp (-experiment.data.toPhysicalNoiseData.data.rate l * t) * mindTrace ((ContinuousMap.IccExtend ⋯ R.path) 0) j l + experiment.data.toPhysicalNoiseData.data.rate l * ∫ (z : ℝ) in 0..t, Real.exp (-experiment.data.toPhysicalNoiseData.data.rate l * (t - z)) * mindActivity ((ContinuousMap.IccExtend ⋯ R.path) z) j

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

                                                theorem MindFormal.result_RC1_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) {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑H) :
                                                ∃ (U : ℝ → Fin N → Fin N → ℝ), Continuous U ∧ (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), U z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (U s) (R.rowLoss i s) a c) ∧ (∀ (U' : ℝ → Fin N → Fin N → ℝ), ContinuousOn U' (Set.Icc 0 t) → (∀ z ∈ Set.Icc 0 t, ∀ (a c : Fin N), U' z a c = idm a c - ∫ (s : ℝ) in z..t, mmul (U' s) (R.rowLoss i s) a c) → ∀ z ∈ Set.Icc 0 t, U' z = U z) ∧ ∀ (k : Fin N), have Δ := mvec (fun (a c : Fin N) => U 0 a c - idm a c) (R.row i 0) k + ∫ (z : ℝ) in 0..t, mvec (U z) (R.rowForcing i z) k; R.row i t k - R.row i 0 k = Δ ∧ (R.row i 0 k < R.row i t k ↔ 0 < Δ) ∧ (R.row i t k = R.row i 0 k ↔ Δ = 0) ∧ (R.row i t k < R.row i 0 k ↔ Δ < 0)

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