MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch05.ClauseProofs

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

theorem MindFormal.result_05_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 𝒩) {A B w b r base k₁ k₂ P Q : ℝ} (hw : 0 ≤ w) (hr : 0 ≤ r) (hb : 0 < b) (hk : 0 ≤ k₁) (hkk : k₁ < k₂) (hP : b < P) (hQ : b < Q) (hactive : 0 < overlapAssociate A B experiment.data.data.activity.g w b Q) (hPeq : P = base + r * w * overlapItems A B experiment.data.data.activity.g P + b * k₁ * overlapAssociate A B experiment.data.data.activity.g w b P) (hQeq : Q = base + r * w * overlapItems A B experiment.data.data.activity.g Q + b * k₂ * overlapAssociate A B experiment.data.data.activity.g w b Q) (hAdriven : 0 < A / P - experiment.data.data.activity.g) (hBdriven : 0 < B / P - experiment.data.data.activity.g) :
(A / Q - experiment.data.data.activity.g < A / P - experiment.data.data.activity.g ∧ max (A / Q - experiment.data.data.activity.g) 0 < max (A / P - experiment.data.data.activity.g) 0) ∧ B / Q - experiment.data.data.activity.g < B / P - experiment.data.data.activity.g ∧ max (B / Q - experiment.data.data.activity.g) 0 < max (B / P - experiment.data.data.activity.g) 0

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

theorem MindFormal.result_05_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 𝒩) {Δ start need : ℝ} (hΔ : 0 < Δ) (hstart : 0 ≤ start) (hfail : start < need) (M : ℕ) (hwait : need ≤ initialWait experiment.data.data.activity.ν Δ 0 start M) :
M = 0

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

noncomputable def MindFormal.overlapSum (V m g P : ℝ) :

05.18: the summed item activity on the active branch, V/P-n*g, for summed residue input V over n tested items, gate g and full pool P.

Equations
Instances For
    noncomputable def MindFormal.overlapShared (V m g w b P : ℝ) :

    05.18: a common associate's active equilibrium (wS-gP)/(P-b), with cue weight w and self-gain b, at full pool P.

    Equations
    Instances For
      theorem MindFormal.overlapSum_pool_increases {V m g w b r base k₁ k₂ P Q : ℝ} (hV : 0 ≤ V) (hg : 0 ≤ g) (hw : 0 ≤ w) (hr : 0 ≤ r) (hb : 0 < b) (hk : 0 ≤ k₁) (hkk : k₁ < k₂) (hQ : b < Q) (hactive : 0 < overlapShared V m g w b Q) (hPeq : P = base + V + r * w * overlapSum V m g P + b * k₁ * overlapShared V m g w b P) (hQeq : Q = base + V + r * w * overlapSum V m g Q + b * k₂ * overlapShared V m g w b Q) :
      P < Q

      05.18 (18.2)--(18.3): with nonnegative summed input V, gate g, cue weight w and associate count r, positive self-gain b, overlaps 0<=k₁<k₂, both pools above b and a strictly positive common-associate expression at the second pool, the two displayed full-pool identities force a strictly larger pool.

      noncomputable def MindFormal.probeAccuracy {ι : Type u_5} (tested : Finset ι) (A need : ι → ℝ) (g P : ℝ) :

      05.18 (18.7): balanced uniform probes of the tested set give the reference accuracy one half plus one half of the fraction of tested items whose activity A_i/P-g clears its learned cutoff, at full pool P and gate g.

      Equations
      Instances For
        theorem MindFormal.probeAccuracy_antitone {ι : Type u_5} (tested : Finset ι) (A need : ι → ℝ) {g P Q : ℝ} (hA : ∀ i ∈ tested, 0 ≤ A i) (hP : 0 < P) (hPQ : P ≤ Q) :
        probeAccuracy tested A need g Q ≤ probeAccuracy tested A need g P

        05.18 (18.7): with nonnegative item inputs and 0<P<=Q, the reference probe accuracy at the larger pool is no greater. Every summand is a threshold count that can only lose items as the pool grows.

        theorem MindFormal.result_05_18_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 𝒩) {ι : Type u_5} (first second : Finset ι) (A need : ι → ℝ) {base r w Pa P0 : ℝ} (hpos : ∀ i ∈ second, 0 < A i) (hne : second.Nonempty) (hgate : ∀ i ∈ second, experiment.data.data.activity.g < A i / Pa) (hrw : 0 ≤ r * w) (hPa : 0 < Pa) (hP0 : 0 < P0) (hfirst : ∀ i ∈ first, 0 ≤ A i) (hPa_eq : Pa = base + ∑ i ∈ first, A i + r * w * overlapSum (∑ i ∈ first, A i) (↑first.card) experiment.data.data.activity.g Pa) (hP0_eq : P0 = base + (∑ i ∈ first, A i + ∑ i ∈ second, A i) + r * w * overlapSum (∑ i ∈ first, A i + ∑ i ∈ second, A i) (↑first.card + ↑second.card) experiment.data.data.activity.g P0) :
        Pa < P0 ∧ (∀ i ∈ first, 0 < A i → A i / P0 - experiment.data.data.activity.g < A i / Pa - experiment.data.data.activity.g) ∧ probeAccuracy first A need experiment.data.data.activity.g P0 ≤ probeAccuracy first A need experiment.data.data.activity.g Pa

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

        theorem MindFormal.result_05_18_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 𝒩) {ι : Type u_5} (items : Finset ι) (A : ι → ℝ) {w b r base k₁ k₂ P Q : ℝ} (hA : ∀ i ∈ items, 0 ≤ A i) (hw : 0 ≤ w) (hr : 0 ≤ r) (hb : 0 < b) (hk : 0 ≤ k₁) (hkk : k₁ < k₂) (hP : b < P) (hQ : b < Q) (hactive : 0 < overlapShared (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g w b Q) (hPeq : P = base + ∑ i ∈ items, A i + r * w * overlapSum (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g P + b * k₁ * overlapShared (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g w b P) (hQeq : Q = base + ∑ i ∈ items, A i + r * w * overlapSum (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g Q + b * k₂ * overlapShared (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g w b Q) :
        P < Q ∧ ∀ i ∈ items, 0 < A i → A i / Q - experiment.data.data.activity.g < A i / P - experiment.data.data.activity.g

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

        theorem MindFormal.result_05_18_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 𝒩) {ι : Type u_5} (items tested : Finset ι) (A need : ι → ℝ) {w b r base k₁ k₂ P Q : ℝ} (hA : ∀ i ∈ items, 0 ≤ A i) (htested : tested ⊆ items) (hw : 0 ≤ w) (hr : 0 ≤ r) (hb : 0 < b) (hk : 0 ≤ k₁) (hkk : k₁ < k₂) (hP : b < P) (hQ : b < Q) (hactive : 0 < overlapShared (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g w b Q) (hPeq : P = base + ∑ i ∈ items, A i + r * w * overlapSum (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g P + b * k₁ * overlapShared (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g w b P) (hQeq : Q = base + ∑ i ∈ items, A i + r * w * overlapSum (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g Q + b * k₂ * overlapShared (∑ i ∈ items, A i) (↑items.card) experiment.data.data.activity.g w b Q) :
        probeAccuracy tested A need experiment.data.data.activity.g Q ≤ probeAccuracy tested A need experiment.data.data.activity.g P

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

        theorem MindFormal.result_05_25_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 𝒩) {C : Type u_5} [Fintype C] (presence activity : C → ℝ) (receiver input m c : ℝ) (b : C) (hm : 0 < m) (hd : 0 < experiment.data.data.β * receiver + (1 - experiment.data.data.β) * ∑ j : C, presence j * activity j) (hc : 0 < c) :
        have β := experiment.data.data.β; have forcing := (1 - β) * input + β * receiver; have decay := β * receiver + (1 - β) * ∑ j : C, presence j * activity j; have row := fun (t : ℝ) (j : C) => presence j * referenceActivity (m * decay) (forcing / decay) 0 t; have limit := presence b * forcing / decay; (∀ (i : C) (t : ℝ), HasDerivAt (fun (s : ℝ) => row s i) (m * writerFactor β (presence i) receiver (input - ∑ j : C, row t j * activity j) (row t i)) t) ∧ row 0 b = 0 ∧ (c < limit → row (1 / (m * decay) * Real.log (limit / (limit - c))) b = c ∧ (∀ (t : ℝ), 0 ≤ t → t < 1 / (m * decay) * Real.log (limit / (limit - c)) → row t b < c) ∧ ∀ (t : ℝ), 1 / (m * decay) * Real.log (limit / (limit - c)) < t → c < row t b) ∧ (limit ≤ c → ∀ (t : ℝ), 0 ≤ t → row t b < c)

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

        noncomputable def MindFormal.timelySelections (r : ℕ) (x0 a ν d ℓ Δ : ℝ) :

        05.14 (14.6): the number of row selections, at times d+l+jΔ for j<r, whose fading reference activity x0·exp(-ν t) is still at least the report cutoff a.

        Equations
        Instances For
          theorem MindFormal.fading_available_iff {x0 a ν t : ℝ} (hx : 0 < x0) (ha : 0 < a) (hν : 0 < ν) :
          a ≤ x0 * Real.exp (-ν * t) ↔ t ≤ Real.log (x0 / a) / ν

          05.14 (14.6): with positive start, cutoff and rate, a fading reference activity x0·exp(-ν t) is at least the cutoff exactly when t is at most the expiration time L=ν⁻¹log(x0/a).

          theorem MindFormal.capped_count_floor (r : ℕ) {first Δ L : ℝ} (hΔ : 0 < Δ) :
          ↑(min r (periodicReportCount first Δ L)) = min (↑r) (max 0 (1 + ⌊(L - first) / Δ⌋))

          05.14 (14.6): with positive spacing, the capped periodic count equals the printed integer form min(r, max(0, 1+⌊(L-first)/Δ⌋)), including endpoint equality.

          theorem MindFormal.perm_sum_apply_mul {r : ℕ} (f : Fin r → ℝ) (j : Fin r) :
          ↑r * ∑ σ : Equiv.Perm (Fin r), f (σ j) = ↑r.factorial * ∑ q : Fin r, f q

          05.14: for any finite type size r and function f on positions, summing f at the image of a fixed index over all permutations gives (r-1)! times the sum of f, written as r·sum = r!·sum: each position is equally often selected.

          def MindFormal.rowAvailable {R r : ℕ} (S : Finset (Fin R × Fin r)) (J : ℕ) (ρ : Fin R) (σ : Equiv.Perm (Fin r)) :

          05.14 (14.6): the positions of row ρ available to the cued row report under selection order σ: protected positions of that row, plus the first J selected positions outside the protected set, as a real count.

          Equations
          Instances For
            def MindFormal.rowReferenceScore {R r : ℕ} (S : Finset (Fin R × Fin r)) (J : ℕ) (c0 : ℝ) (ρ : Fin R) (σ : Equiv.Perm (Fin r)) :

            05.14 (14.6), lab mapping: a cued-row reference score, multiplied by the number of rows R: available positions score one, every other position of the row earns the matched guessing accuracy c0.

            Equations
            Instances For
              theorem MindFormal.row_average_identity {R r : ℕ} (hR : 0 < R) (hr : 0 < r) (S : Finset (Fin R × Fin r)) (Jd : ℕ) (hJr : Jd ≤ r) (c0 : ℝ) :
              (∑ ρ : Fin R, ∑ σ : Equiv.Perm (Fin r), rowReferenceScore S Jd c0 ρ σ) / (↑R * ↑r.factorial) = ↑R * ↑r * c0 + (1 - c0) * (↑S.card + (↑R * ↑r - ↑S.card) * ↑Jd / ↑r)

              05.14 (14.6): averaging the cued-row reference score over the R rows and the r! selection orders, for any number J≤r of timely selections, gives N c0+(1-c0)[k+(N-k)J/r], with N=Rr and k the size of the protected set S.

              theorem MindFormal.result_05_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 𝒩) {R r : ℕ} (hR : 0 < R) (hr : 0 < r) (S : Finset (Fin R × Fin r)) {x0 a d ℓ Δ c0 : ℝ} (hx0 : 0 < x0) (ha : 0 < a) (hΔ : 0 < Δ) :
              ↑(timelySelections r x0 a experiment.data.data.activity.ν d ℓ Δ) = min (↑r) (max 0 (1 + ⌊(Real.log (x0 / a) / experiment.data.data.activity.ν - d - ℓ) / Δ⌋)) ∧ (∑ ρ : Fin R, ∑ σ : Equiv.Perm (Fin r), rowReferenceScore S (timelySelections r x0 a experiment.data.data.activity.ν d ℓ Δ) c0 ρ σ) / (↑R * ↑r.factorial) = ↑R * ↑r * c0 + (1 - c0) * (↑S.card + (↑R * ↑r - ↑S.card) * ↑(timelySelections r x0 a experiment.data.data.activity.ν d ℓ Δ) / ↑r) ∧ ↑S.card + c0 * (↑R * ↑r - ↑S.card) = ↑R * ↑r * c0 + (1 - c0) * ↑S.card

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

              theorem MindFormal.result_05_14_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 𝒩) {R r k : ℕ} (hr : 0 < r) (hk : k < R * r) {x0 a ℓ Δ c0 : ℝ} (hx0 : 0 < x0) (ha : 0 < a) (hΔ : 0 < Δ) (hc0 : c0 < 1) :
              have ν := experiment.data.data.activity.ν; have L := Real.log (x0 / a) / ν; have advantage := fun (d : ℝ) => ↑R * ↑r * c0 + (1 - c0) * (↑k + (↑R * ↑r - ↑k) * ↑(timelySelections r x0 a ν d ℓ Δ) / ↑r) - (↑R * ↑r * c0 + (1 - c0) * ↑k); (∀ (d d' : ℝ), d ≤ d' → advantage d' ≤ advantage d) ∧ (∀ (d : ℝ), d + ℓ + (↑r - 1) * Δ ≤ L → timelySelections r x0 a ν d ℓ Δ = r ∧ advantage d = (1 - c0) * (↑R * ↑r - ↑k) ∧ 0 < advantage d) ∧ ∀ (d : ℝ), L < d + ℓ → timelySelections r x0 a ν d ℓ Δ = 0 ∧ advantage d = 0

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

              theorem MindFormal.result_05_21_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 𝒩) :
              have d := experiment.data.toPhysicalNoiseData.data; (∀ (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|) * writerFactor d.β (d.presence (mindTrace s j)) (mindActivity s i) (d.drive (u i) (q i) (mindValue s i) - ∑ l : Fin N, mindRelation s i l * mindActivity s l) (mindRelation s i j)) ∧ (∀ (δL δH : T → Fin n → ℝ), 0 ≤ δL → δL ≤ δH → 0 < d.gain δL ∧ d.gain δL ≤ d.gain δH) ∧ (∀ (mL mH F : ℝ), 0 < mL → mL < mH → ((0 < mH * F ↔ 0 < F) ∧ (mH * F < 0 ↔ F < 0) ∧ (0 < mL * F ↔ 0 < F) ∧ (mL * F < 0 ↔ F < 0)) ∧ mH * F - mL * F = (mH - mL) * F ∧ (F ≠ 0 ↔ |mL * F| < |mH * F|)) ∧ (∀ (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N), 0 < d.presence (mindTrace s j) → 0 < mindActivity s i → d.presence (mindTrace s j) < mindRelation s i j → 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) ∧ ∀ (i a b : Fin N), a ≠ b → ∃ (s : MindState (Fin N) n T Λ) (s' : MindState (Fin N) n T Λ), PhysicalMindState s ∧ PhysicalMindState s' ∧ assembledDrift d 0 0 s (Sum.inl (i, a)) < assembledDrift d 0 0 s (Sum.inl (i, b)) ∧ assembledDrift d 0 0 s' (Sum.inl (i, b)) < assembledDrift d 0 0 s' (Sum.inl (i, a))

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

              theorem MindFormal.zero_target_of_load {N : ℕ} {σ g : ℝ} (hσ : 0 < σ) (J : Fin N → ℝ) (hJ : ∀ (l : Fin N), 0 ≤ J l) (w : Fin N) (hload : (1 - g) * J w ≤ g * (σ + ∑ l ∈ Finset.univ.erase w, J l)) :
              normalizedTarget σ g J w = 0

              05.17 (17.2): with positive floor σ, gate g<1 and nonnegative transformed inputs J, the sufficient zero-target condition (1-g)J_w<=g(σ+Σ_{l≠w}J_l) makes content w's normalized target exactly zero, however large its own input.

              theorem MindFormal.result_05_17_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} (C : NoiseLearning Ω N n T Λ J 𝒩) (z : Ω) (w : Fin N) {L j : ℕ} (hj : 1 ≤ j ∧ j ≤ L) {sp Te D h tw cutoff : ℝ} (hsp : 0 ≤ sp) (hTe : 0 ≤ Te) (hD : 0 ≤ D) (hh : 0 ≤ h) (hH : (↑L - 1) * sp + Te + D + h ≤ ↑C.horizon) (hstart : ↑(C.reference z).start (Sum.inr (Sum.inl w)) = 0) (hencode : ∀ s ∈ Set.Ioc ((↑j - 1) * sp) ((↑j - 1) * sp + Te), (C.reference z).target w s = tw) (hbefore : ∀ s ∈ Set.Ioc 0 ((↑j - 1) * sp), (1 - C.experiment.data.data.activity.g) * assembledInputs C.experiment.data.toPhysicalNoiseData.data ((C.reference z).input s) ((C.reference z).mode s) ((ContinuousMap.IccExtend ⋯ (C.reference z).path) s) w ≤ C.experiment.data.data.activity.g * (C.experiment.data.data.activity.σ + ∑ l ∈ Finset.univ.erase w, assembledInputs C.experiment.data.toPhysicalNoiseData.data ((C.reference z).input s) ((C.reference z).mode s) ((ContinuousMap.IccExtend ⋯ (C.reference z).path) s) l)) (hafter : ∀ s ∈ Set.Ioc ((↑j - 1) * sp + Te) ((↑L - 1) * sp + Te + D + h), (1 - C.experiment.data.data.activity.g) * assembledInputs C.experiment.data.toPhysicalNoiseData.data ((C.reference z).input s) ((C.reference z).mode s) ((ContinuousMap.IccExtend ⋯ (C.reference z).path) s) w ≤ C.experiment.data.data.activity.g * (C.experiment.data.data.activity.σ + ∑ l ∈ Finset.univ.erase w, assembledInputs C.experiment.data.toPhysicalNoiseData.data ((C.reference z).input s) ((C.reference z).mode s) ((ContinuousMap.IccExtend ⋯ (C.reference z).path) s) l)) :
              (ContinuousMap.IccExtend ⋯ (C.reference z).path) ((↑L - 1) * sp + Te + D + h) (Sum.inr (Sum.inl w)) = tw * (1 - Real.exp (-C.experiment.data.data.activity.ν * Te)) * Real.exp (-C.experiment.data.data.activity.ν * ((↑L - ↑j) * sp + D + h)) ∧ (if cutoff ≤ (ContinuousMap.IccExtend ⋯ (C.reference z).path) ((↑L - 1) * sp + Te + D + h) (Sum.inr (Sum.inl w)) then 1 else 0) = if cutoff ≤ tw * (1 - Real.exp (-C.experiment.data.data.activity.ν * Te)) * Real.exp (-C.experiment.data.data.activity.ν * ((↑L - ↑j) * sp + D + h)) then 1 else 0

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

              theorem MindFormal.changeAccuracy_order (K a b : ℕ) (ha : 0 < a) (hab : a ≤ b) :
              1 / 2 + min ↑b ↑K / (2 * ↑b) ≤ 1 / 2 + min ↑a ↑K / (2 * ↑a) ∧ (0 < K → K < b → a < b → 1 / 2 + min ↑b ↑K / (2 * ↑b) < 1 / 2 + min ↑a ↑K / (2 * ↑a))

              05.15 (15.1)–(15.3): the balanced change-detection formula 1/2 + min(n,K)/(2n) never increases with the set size n, and strictly decreases from a to a larger b when 0 < K < b.

              theorem MindFormal.result_05_15_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} (small large : NoiseLearning Ω N n T Λ J 𝒩) (Psmall : ReportPlan small.run 1) (Plarge : ReportPlan large.run 1) (answerS answerL : Ω → Fin N) (sn sl : ℕ) (ν rho spacing att encoded need : ℝ) (balancedMaintenanceProbeCalibration : Psmall.Margins ∧ Plarge.Margins) (uniformChangedLocationLaw : small.run.data.μ.real {z : Ω | Psmall.label z 0 = Sum.inl (answerS z)} = 1 / 2 + min ↑sn ↑(zeroFloorCount ν rho spacing att encoded (need + small.run.control.error)) / (2 * ↑sn) ∧ large.run.data.μ.real {z : Ω | Plarge.label z 0 = Sum.inl (answerL z)} = 1 / 2 + min ↑sl ↑(zeroFloorCount ν rho spacing att encoded (need + large.run.control.error)) / (2 * ↑sl)) (hdecrement : small.run.control.failure + large.run.control.failure < 1 / 2 + min ↑sn ↑(zeroFloorCount ν rho spacing att encoded (need + small.run.control.error)) / (2 * ↑sn) - (1 / 2 + min ↑sl ↑(zeroFloorCount ν rho spacing att encoded (need + large.run.control.error)) / (2 * ↑sl))) :
              (∀ (K a b : ℕ), 0 < a → a ≤ b → 1 / 2 + min ↑b ↑K / (2 * ↑b) ≤ 1 / 2 + min ↑a ↑K / (2 * ↑a) ∧ (0 < K → K < b → a < b → 1 / 2 + min ↑b ↑K / (2 * ↑b) < 1 / 2 + min ↑a ↑K / (2 * ↑a))) ∧ large.run.data.μ.real {z : Ω | Plarge.observed z 0 = Sum.inl (answerL z)} < small.run.data.μ.real {z : Ω | Psmall.observed z 0 = Sum.inl (answerS z)}

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

              theorem MindFormal.result_05_16_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} (master novice : NoiseLearning Ω N n T Λ J 𝒩) {m m' p : ℕ} (PM : ReportPlan master.run m) (PN : ReportPlan novice.run m') (pieceM pieceN : Fin p → Fin N) (codingM : Function.Injective pieceM) (codingN : Function.Injective pieceN) (unionM unionN : Ω → ℝ) (actualUIM : MeasureTheory.Integrable (PM.read fun (x : Ω) (v : Fin m → Fin N ⊕ Unit) => placedCount pieceM v) master.run.data.μ) (referenceUIM : MeasureTheory.Integrable unionM master.run.data.μ) (actualUIN : MeasureTheory.Integrable (PN.read fun (x : Ω) (v : Fin m' → Fin N ⊕ Unit) => placedCount pieceN v) novice.run.data.μ) (referenceUIN : MeasureTheory.Integrable unionN novice.run.data.μ) (configurationDecoderMaintenanceCalibration : PM.Margins ∧ PN.Margins) (decodedUnionIdentification : (∀ (z : Ω), placedCount pieceM (PM.label z) = unionM z) ∧ ∀ (z : Ω), placedCount pieceN (PN.label z) = unionN z) :
              (∀ (z : Ω), PM.read (fun (x : Ω) (v : Fin m → Fin N ⊕ Unit) => placedCount pieceM v) z = ↑(Finset.image pieceM {q : Fin p | reported (PM.observed z) (pieceM q)}).card) ∧ |∫ (z : Ω), PM.read (fun (x : Ω) (v : Fin m → Fin N ⊕ Unit) => placedCount pieceM v) z ∂master.run.data.μ - ∫ (z : Ω), unionM z ∂master.run.data.μ| ≤ ↑p * master.run.control.failure ∧ ∫ (z : Ω), unionM z ∂master.run.data.μ - ∫ (z : Ω), unionN z ∂novice.run.data.μ - ↑p * (master.run.control.failure + novice.run.control.failure) ≤ ∫ (z : Ω), PM.read (fun (x : Ω) (v : Fin m → Fin N ⊕ Unit) => placedCount pieceM v) z ∂master.run.data.μ - ∫ (z : Ω), PN.read (fun (x : Ω) (v : Fin m' → Fin N ⊕ Unit) => placedCount pieceN v) z ∂novice.run.data.μ

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

              theorem MindFormal.result_05_17_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} (early late : NoiseLearning Ω N n T Λ J 𝒩) {m m' : ℕ} (Pe : ReportPlan early.run m) (Pl : ReportPlan late.run m') (w : Fin N) (durableE durableL : Set Ω) {b ν target encoding waitE waitL need : ℝ} (hb1 : b ≤ 1) (hν : 0 < ν) (hwait : waitE ≤ waitL) (countingWordRecallCalibration : Pe.Margins ∧ Pl.Margins) (durableLaw : early.run.data.μ.real durableE = b ∧ late.run.data.μ.real durableL = b) (durableTransientReference : (∀ (z : Ω), reported (Pe.label z) w ↔ z ∈ durableE ∨ need ≤ target * (1 - Real.exp (-ν * encoding)) * Real.exp (-ν * waitE)) ∧ ∀ (z : Ω), reported (Pl.label z) w ↔ z ∈ durableL ∨ need ≤ target * (1 - Real.exp (-ν * encoding)) * Real.exp (-ν * waitL)) :
              have F := fun (wait : ℝ) => if need ≤ target * (1 - Real.exp (-ν * encoding)) * Real.exp (-ν * wait) then 1 else 0; have pE := early.run.data.μ.real {z : Ω | reported (Pe.observed z) w}; have pL := late.run.data.μ.real {z : Ω | reported (Pl.observed z) w}; (0 ≤ target * (1 - Real.exp (-ν * encoding)) → F waitL ≤ F waitE ∧ b + (1 - b) * F waitL ≤ b + (1 - b) * F waitE) ∧ (F waitE = 1 → F waitL = 0 → b + (1 - b) * F waitE - (b + (1 - b) * F waitL) = 1 - b) ∧ |pE - (b + (1 - b) * F waitE)| ≤ early.run.control.failure ∧ |pL - (b + (1 - b) * F waitL)| ≤ late.run.control.failure ∧ (F waitE = 1 → F waitL = 0 → early.run.control.failure + late.run.control.failure < 1 - b → pL < pE) ∧ (F waitL = 0 → |pL - b| ≤ late.run.control.failure)

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

              theorem MindFormal.result_05_18_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} (lower higher : NoiseLearning Ω N n T Λ J 𝒩) (PL : ReportPlan lower.run 1) (PH : ReportPlan higher.run 1) (answerL answerH : Ω → Fin N) (tested : Finset (Fin N)) (input need : Fin N → ℝ) (poolL poolH gate : ℝ) (stableOverlapProbeCalibration : PL.Margins ∧ PH.Margins) (balancedProbeReferenceLaw : lower.run.data.μ.real {z : Ω | PL.label z 0 = Sum.inl (answerL z)} = 1 / 2 + ↑{i ∈ tested | need i ≤ input i / poolL - gate}.card / (2 * ↑tested.card) ∧ higher.run.data.μ.real {z : Ω | PH.label z 0 = Sum.inl (answerH z)} = 1 / 2 + ↑{i ∈ tested | need i ≤ input i / poolH - gate}.card / (2 * ↑tested.card)) (hloss : lower.run.control.failure + higher.run.control.failure < 1 / 2 + ↑{i ∈ tested | need i ≤ input i / poolL - gate}.card / (2 * ↑tested.card) - (1 / 2 + ↑{i ∈ tested | need i ≤ input i / poolH - gate}.card / (2 * ↑tested.card))) :
              higher.run.data.μ.real {z : Ω | PH.observed z 0 = Sum.inl (answerH z)} < lower.run.data.μ.real {z : Ω | PL.observed z 0 = Sum.inl (answerL z)}

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

              theorem MindFormal.result_05_23_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} (early late : NoiseLearning Ω N n T Λ J 𝒩) {d : ℕ} (Pa : Fin d → ReportPlan early.run 1) (Pb : Fin d → ReportPlan late.run 1) (originalA originalB : Fin d → Fin N) (Ka Kb : Fin d → Ω → ℝ) {w0 gamma Da Db width density BC : ℝ} (F : ℝ → ℝ) (hBC : ↑d ≤ BC) (hw0 : 0 ≤ w0) (hγ : 0 ≤ gamma) (hdelay : Da ≤ Db) (hF : Monotone F) (UIa : ∀ (j : Fin d), MeasureTheory.Integrable ({z : Ω | (Pa j).observed z 0 = Sum.inl (originalA j)}.indicator fun (x : Ω) => 1) early.run.data.μ) (UIb : ∀ (j : Fin d), MeasureTheory.Integrable ({z : Ω | (Pb j).observed z 0 = Sum.inl (originalB j)}.indicator fun (x : Ω) => 1) late.run.data.μ) (replacementLaw : (∀ (j : Fin d), Measurable (Ka j) ∧ early.run.data.μ.real {z : Ω | Ka j z ≤ w0 * Real.exp (-gamma * Da)} = F (w0 * Real.exp (-gamma * Da))) ∧ ∀ (j : Fin d), Measurable (Kb j) ∧ late.run.data.μ.real {z : Ω | Kb j z ≤ w0 * Real.exp (-gamma * Db)} = F (w0 * Real.exp (-gamma * Db))) (replacementDensityBandCalibration : (∀ (j : Fin d), early.run.data.μ.real {z : Ω | |Ka j z - w0 * Real.exp (-gamma * Da)| ≤ width} ≤ 2 * density * width) ∧ ∀ (j : Fin d), late.run.data.μ.real {z : Ω | |Kb j z - w0 * Real.exp (-gamma * Db)| ≤ width} ≤ 2 * density * width) (replacementReadCalibration : (∀ (j : Fin d), ∀ z ∈ early.run.good, ¬|Ka j z - w0 * Real.exp (-gamma * Da)| ≤ width → (Pa j).MarginsAt z) ∧ ∀ (j : Fin d), ∀ z ∈ late.run.good, ¬|Kb j z - w0 * Real.exp (-gamma * Db)| ≤ width → (Pb j).MarginsAt z) (referenceCutoff : (∀ (j : Fin d) (z : Ω), (Pa j).label z 0 = Sum.inl (originalA j) ↔ Ka j z ≤ w0 * Real.exp (-gamma * Da)) ∧ ∀ (j : Fin d) (z : Ω), (Pb j).label z 0 = Sum.inl (originalB j) ↔ Kb j z ≤ w0 * Real.exp (-gamma * Db)) :
              ↑d * F (w0 * Real.exp (-gamma * Db)) ≤ ↑d * F (w0 * Real.exp (-gamma * Da)) ∧ |∫ (z : Ω), nativeDetailCount early.run Pa originalA z ∂early.run.data.μ - ↑d * F (w0 * Real.exp (-gamma * Da))| ≤ 2 * ↑d * density * width + BC * early.run.control.failure ∧ |∫ (z : Ω), nativeDetailCount late.run Pb originalB z ∂late.run.data.μ - ↑d * F (w0 * Real.exp (-gamma * Db))| ≤ 2 * ↑d * density * width + BC * late.run.control.failure ∧ (2 * ↑d * density * width + BC * early.run.control.failure + (2 * ↑d * density * width + BC * late.run.control.failure) < ↑d * (F (w0 * Real.exp (-gamma * Da)) - F (w0 * Real.exp (-gamma * Db))) → ∫ (z : Ω), nativeDetailCount late.run Pb originalB z ∂late.run.data.μ < ∫ (z : Ω), nativeDetailCount early.run Pa originalA z ∂early.run.data.μ)

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

              theorem MindFormal.result_05_23_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 𝒩) (high low : ReportPlan C.run 2) (rating : Ω → (Fin 2 → Fin N ⊕ Unit) → ℝ) {bH bL : ℝ} (hgap : bL < bH) (ratingScale : ∀ (z : Ω) (v : Fin 2 → Fin N ⊕ Unit), rating z v ∈ Set.Icc 1 7) (highUI : MeasureTheory.Integrable (high.read rating) C.run.data.μ) (lowUI : MeasureTheory.Integrable (low.read rating) C.run.data.μ) (hprob : C.run.control.failure < (bH - bL) / (6 + (bH - bL))) (confidenceAllRivalsBinCalibration : high.Margins ∧ low.Margins) (referenceBinSeparation : ∀ z ∈ C.run.good, bH - bL ≤ high.predicted rating z - low.predicted rating z) :
              (bH - bL) * (1 - C.run.control.failure) - 6 * C.run.control.failure ≤ ∫ (z : Ω), high.read rating z ∂C.run.data.μ - ∫ (z : Ω), low.read rating z ∂C.run.data.μ ∧ 0 < (bH - bL) * (1 - C.run.control.failure) - 6 * C.run.control.failure

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

              theorem MindFormal.result_05_23_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} (C : NoiseLearning Ω N n T Λ J 𝒩) (high : ReportPlan C.run 2) (rating : Ω → (Fin 2 → Fin N ⊕ Unit) → ℝ) {bH : ℝ} (ratingScale : ∀ (z : Ω) (v : Fin 2 → Fin N ⊕ Unit), rating z v ∈ Set.Icc 1 7) (hbH : bH ∈ Set.Icc 1 7) (highUI : MeasureTheory.Integrable (high.read rating) C.run.data.μ) (confidenceAllRivalsBinCalibration : high.Margins) (unchangedHighCategory : ∀ z ∈ C.run.good, high.predicted rating z = bH) :
              |∫ (z : Ω), high.read rating z ∂C.run.data.μ - bH| ≤ 6 * C.run.control.failure

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

              theorem MindFormal.result_05_21_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 𝒩) (z : Ω) (i j : Fin N) {t0 h pm pp a wp Es mm bW : ℝ} (h0 : 0 ≤ t0) (hh : 0 ≤ h) (hpres : ∀ s ∈ Set.Icc t0 (t0 + h), pm ≤ actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s ∧ actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s ≤ pp) (hact : ∀ s ∈ Set.Icc t0 (t0 + h), a ≤ mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i) (hlink : ∀ s ∈ Set.Icc t0 (t0 + h), mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state s) i j ≤ wp) (herr : ∀ s ∈ Set.Icc t0 (t0 + h), -Es ≤ actualError (experiment.data.toPhysicalNoiseData.globalData z) i s) (hgain : ∀ s ∈ Set.Icc t0 (t0 + h), mm ≤ actualGain (experiment.data.toPhysicalNoiseData.globalData z) s) (hnoise : |(experiment.data.toPhysicalNoiseData.globalData z).driver (t0 + h).toNNReal (Sum.inl (i, j)) - (experiment.data.toPhysicalNoiseData.globalData z).driver t0.toNNReal (Sum.inl (i, j))| ≤ bW) (ha : 0 ≤ a) (hwp : wp < pm) (hEs : 0 ≤ Es) (hmm : 0 ≤ mm) (hd : 0 ≤ experiment.data.data.β * a * (pm - wp) - (1 - experiment.data.data.β) * pp * Es) :
              mm * (experiment.data.data.β * a * (pm - wp) - (1 - experiment.data.data.β) * pp * Es) * h - bW ≤ mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state (t0 + h)) i j - mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state t0) i j

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

              theorem MindFormal.result_05_21_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 𝒩) (z : Ω) (i j : Fin N) {t1 h a δ mm bW : ℝ} (h1 : 0 ≤ t1) (hh : 0 ≤ h) (hact : ∀ s ∈ Set.Icc t1 (t1 + h), a ≤ mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i) (hgap : ∀ s ∈ Set.Icc t1 (t1 + h), actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s + δ ≤ mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state s) i j) (herr : ∀ s ∈ Set.Icc t1 (t1 + h), actualError (experiment.data.toPhysicalNoiseData.globalData z) i s ≤ 0) (hgain : ∀ s ∈ Set.Icc t1 (t1 + h), mm ≤ actualGain (experiment.data.toPhysicalNoiseData.globalData z) s) (hnoise : |(experiment.data.toPhysicalNoiseData.globalData z).driver (t1 + h).toNNReal (Sum.inl (i, j)) - (experiment.data.toPhysicalNoiseData.globalData z).driver t1.toNNReal (Sum.inl (i, j))| ≤ bW) (ha : 0 ≤ a) (hδ : 0 ≤ δ) (hmm : 0 ≤ mm) :
              mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state (t1 + h)) i j - mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state t1) i j ≤ -(mm * (experiment.data.data.β * a * δ) * h) + bW ∧ ∀ {pm pp wp Es : ℝ}, (∀ s ∈ Set.Icc t1 (t1 + h), pm ≤ actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s ∧ actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s ≤ pp) → (∀ s ∈ Set.Icc t1 (t1 + h), mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state s) i j ≤ wp) → (∀ s ∈ Set.Icc t1 (t1 + h), -Es ≤ actualError (experiment.data.toPhysicalNoiseData.globalData z) i s) → wp < pm → 0 ≤ Es → 0 ≤ experiment.data.data.β * a * (pm - wp) - (1 - experiment.data.data.β) * pp * Es → mm * (experiment.data.data.β * a * (pm - wp) - (1 - experiment.data.data.β) * pp * Es) * h - bW ≤ mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state (t1 + h)) i j - mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state t1) i j

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

              theorem MindFormal.trace_rise_integral {lr t0 h : ℝ} (hl : 0 < lr) (hh : 0 ≤ h) :
              ∫ (s : ℝ) in t0..t0 + h, 1 - Real.exp (-lr * (s - t0)) = h - (1 - Real.exp (-lr * h)) / lr ∧ h - (1 - Real.exp (-lr * h)) / lr ≤ lr * h ^ 2 / 2

              05.21 (21.4): for a positive rate λ, the integral of 1-exp(-λ(s-t0)) over [t0,t0+h] is h-(1-exp(-λh))/λ, and it is at most λh²/2.

              theorem MindFormal.result_05_21_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 𝒩) (z : Ω) (i dnew : Fin N) {t0 h Xd Q Lc mp bW : ℝ} (h0 : 0 ≤ t0) (hh : 0 ≤ h) (htrace0 : ∀ (l : Λ), mindTrace ((experiment.data.toPhysicalNoiseData.globalData z).state t0) dnew l = 0) (hx : ∀ s ∈ Set.Icc t0 (t0 + h), mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) dnew ≤ Xd) (hW0 : mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state t0) i dnew = 0) (hQ : ∀ s ∈ Set.Icc t0 (t0 + h), |(1 - experiment.data.data.β) * (actualError (experiment.data.toPhysicalNoiseData.globalData z) i s + mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state s) i dnew * mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) dnew) + experiment.data.data.β * mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i| ≤ Q) (hgain : ∀ s ∈ Set.Icc t0 (t0 + h), actualGain (experiment.data.toPhysicalNoiseData.globalData z) s ≤ mp) (hLc : ∀ (r : Λ → ℝ), (∀ (l : Λ), 0 ≤ r l ∧ r l ≤ Xd) → experiment.data.data.presence r ≤ Lc * ∑ l : Λ, r l) (hnoise : ∀ s ∈ Set.Icc t0 (t0 + h), |(experiment.data.toPhysicalNoiseData.globalData z).driver s.toNNReal (Sum.inl (i, dnew)) - (experiment.data.toPhysicalNoiseData.globalData z).driver t0.toNNReal (Sum.inl (i, dnew))| ≤ bW) (hXd : 0 ≤ Xd) (hQ0 : 0 ≤ Q) (hLc0 : 0 ≤ Lc) (hmp : 0 ≤ mp) :
              |mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state (t0 + h)) i dnew| ≤ mp * Q * Lc * Xd * ∑ l : Λ, (h - (1 - Real.exp (-experiment.data.data.rate l * h)) / experiment.data.data.rate l) + 2 * bW ∧ mp * Q * Lc * Xd * ∑ l : Λ, (h - (1 - Real.exp (-experiment.data.data.rate l * h)) / experiment.data.data.rate l) ≤ mp * Q * Lc * Xd * (h ^ 2 / 2 * ∑ l : Λ, experiment.data.data.rate l)

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

              theorem MindFormal.result_05_21_clause_3_order_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 𝒩) (z : Ω) (i j dnew : Fin N) {t0 h pm pp a wp Es mm bWj Xd Q Lc mp bW : ℝ} (h0 : 0 ≤ t0) (hh : 0 ≤ h) (hpres : ∀ s ∈ Set.Icc t0 (t0 + h), pm ≤ actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s ∧ actualPresence (experiment.data.toPhysicalNoiseData.globalData z) j s ≤ pp) (hact : ∀ s ∈ Set.Icc t0 (t0 + h), a ≤ mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i) (hlink : ∀ s ∈ Set.Icc t0 (t0 + h), mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state s) i j ≤ wp) (herr : ∀ s ∈ Set.Icc t0 (t0 + h), -Es ≤ actualError (experiment.data.toPhysicalNoiseData.globalData z) i s) (hgain : ∀ s ∈ Set.Icc t0 (t0 + h), mm ≤ actualGain (experiment.data.toPhysicalNoiseData.globalData z) s) (hnoiseJ : |(experiment.data.toPhysicalNoiseData.globalData z).driver (t0 + h).toNNReal (Sum.inl (i, j)) - (experiment.data.toPhysicalNoiseData.globalData z).driver t0.toNNReal (Sum.inl (i, j))| ≤ bWj) (ha : 0 ≤ a) (hwp : wp < pm) (hEs : 0 ≤ Es) (hmm : 0 ≤ mm) (hd : 0 ≤ experiment.data.data.β * a * (pm - wp) - (1 - experiment.data.data.β) * pp * Es) (htrace0 : ∀ (l : Λ), mindTrace ((experiment.data.toPhysicalNoiseData.globalData z).state t0) dnew l = 0) (hx : ∀ s ∈ Set.Icc t0 (t0 + h), mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) dnew ≤ Xd) (hW0 : mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state t0) i dnew = 0) (hQ : ∀ s ∈ Set.Icc t0 (t0 + h), |(1 - experiment.data.data.β) * (actualError (experiment.data.toPhysicalNoiseData.globalData z) i s + mindRelation ((experiment.data.toPhysicalNoiseData.globalData z).state s) i dnew * mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) dnew) + experiment.data.data.β * mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state s) i| ≤ Q) (hgainUp : ∀ s ∈ Set.Icc t0 (t0 + h), actualGain (experiment.data.toPhysicalNoiseData.globalData z) s ≤ mp) (hLc : ∀ (r : Λ → ℝ), (∀ (l : Λ), 0 ≤ r l ∧ r l ≤ Xd) → experiment.data.data.presence r ≤ Lc * ∑ l : Λ, r l) (hnoiseD : ∀ s ∈ Set.Icc t0 (t0 + h), |(experiment.data.toPhysicalNoiseData.globalData z).driver s.toNNReal (Sum.inl (i, dnew)) - (experiment.data.toPhysicalNoiseData.globalData z).driver t0.toNNReal (Sum.inl (i, dnew))| ≤ bW) (hXd : 0 ≤ Xd) (hQ0 : 0 ≤ Q) (hLc0 : 0 ≤ Lc) (hmp : 0 ≤ mp) (hgap : mp * Q * Lc * Xd * (h ^ 2 / 2 * ∑ l : Λ, experiment.data.data.rate l) + 2 * bW < mm * (experiment.data.data.β * a * (pm - wp) - (1 - experiment.data.data.β) * pp * Es) * h - bWj) :

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

              theorem MindFormal.result_05_21_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 𝒩) (z : Ω) (dn : Fin N) {t0 h bx : ℝ} (h0 : 0 ≤ t0) (htarget : ∀ s ∈ Set.Icc t0 (t0 + h), normalizedTarget experiment.data.data.activity.σ experiment.data.data.activity.g (assembledInputs (experiment.data.toPhysicalNoiseData.globalData z).data ((experiment.data.toPhysicalNoiseData.globalData z).input s) ((experiment.data.toPhysicalNoiseData.globalData z).pulse s) ((experiment.data.toPhysicalNoiseData.globalData z).state s)) dn = 0) (hnoise : ∀ s ∈ Set.Icc t0 (t0 + h), |(experiment.data.toPhysicalNoiseData.globalData z).driver s.toNNReal (Sum.inr (Sum.inl dn)) - (experiment.data.toPhysicalNoiseData.globalData z).driver t0.toNNReal (Sum.inr (Sum.inl dn))| ≤ bx) :
              (∀ t ∈ Set.Icc t0 (t0 + h), |mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state t) dn - mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state t0) dn * Real.exp (-experiment.data.data.activity.ν * (t - t0))| ≤ 4 * bx) ∧ ∀ (l : Λ), ∀ t ∈ Set.Icc t0 (t0 + h), |mindTrace ((experiment.data.toPhysicalNoiseData.globalData z).state t) dn l - traceDecay (experiment.data.data.rate l) experiment.data.data.activity.ν (mindTrace ((experiment.data.toPhysicalNoiseData.globalData z).state t0) dn l) (mindActivity ((experiment.data.toPhysicalNoiseData.globalData z).state t0) dn) (t - t0)| ≤ 4 * bx * (1 - Real.exp (-experiment.data.data.rate l * (t - t0)))

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

              noncomputable def MindFormal.rowLimit (β pa pb ph Xa Xb E Xh : ℝ) :

              05.25 (3)--(4): in the constant-coefficient comparison with three contents (item a, item b and shared associate h), the limiting cue link p_b((1-β)E+βX_a)/(βX_a+(1-β)(p_aX_a+p_bX_b+p_hX_h)) as a function of the associate's activity X_h.

              Equations
              Instances For
                theorem MindFormal.result_05_25_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 𝒩) {pa pb Xa Xb E c : ℝ} (hc : 0 < c) :
                (∀ (ph Xh ph' Xh' : ℝ), ph * Xh = ph' * Xh' → rowLimit experiment.data.data.β pa pb ph Xa Xb E Xh = rowLimit experiment.data.data.β pa pb ph' Xa Xb E Xh') ∧ (0 ≤ pb * ((1 - experiment.data.data.β) * E + experiment.data.data.β * Xa) → ∀ (ph Xh ph' Xh' : ℝ), ph * Xh ≤ ph' * Xh' → 0 < experiment.data.data.β * Xa + (1 - experiment.data.data.β) * (pa * Xa + pb * Xb + ph * Xh) → rowLimit experiment.data.data.β pa pb ph' Xa Xb E Xh' ≤ rowLimit experiment.data.data.β pa pb ph Xa Xb E Xh) ∧ (0 < pb * ((1 - experiment.data.data.β) * E + experiment.data.data.β * Xa) → ∀ (ph Xh ph' Xh' : ℝ), ph * Xh < ph' * Xh' → 0 < experiment.data.data.β * Xa + (1 - experiment.data.data.β) * (pa * Xa + pb * Xb + ph * Xh) → rowLimit experiment.data.data.β pa pb ph' Xa Xb E Xh' < rowLimit experiment.data.data.β pa pb ph Xa Xb E Xh) ∧ (0 < experiment.data.data.β * Xa + (1 - experiment.data.data.β) * (pa * Xa + pb * Xb) → ∃ (Y0 : ℝ), ∀ (ph Xh : ℝ), Y0 < ph * Xh → rowLimit experiment.data.data.β pa pb ph Xa Xb E Xh < c ∧ ∀ (m : ℝ), 0 < m → ∀ (t : ℝ), 0 ≤ t → pb * referenceActivity (m * (experiment.data.data.β * Xa + (1 - experiment.data.data.β) * (pa * Xa + pb * Xb + ph * Xh))) (((1 - experiment.data.data.β) * E + experiment.data.data.β * Xa) / (experiment.data.data.β * Xa + (1 - experiment.data.data.β) * (pa * Xa + pb * Xb + ph * Xh))) 0 t < c)

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

                theorem MindFormal.result_05_26_clause_3_hw5_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 𝒩) (Jin Jin' : Fin N → ℝ) (hJ : ∀ (l : Fin N), 0 ≤ Jin l) (hJ' : ∀ (l : Fin N), 0 ≤ Jin' l) (i : Fin N) :
                have σ := experiment.data.data.activity.σ; have g := experiment.data.data.activity.g; have D := pool σ Jin * (Jin' i - Jin i) - Jin i * (pool σ Jin' - pool σ Jin); Jin' i / pool σ Jin' - Jin i / pool σ Jin = D / (pool σ Jin * pool σ Jin') ∧ (0 < normalizedTarget σ g Jin i → 0 < normalizedTarget σ g Jin' i → normalizedTarget σ g Jin' i - normalizedTarget σ g Jin i = D / (pool σ Jin * pool σ Jin') ∧ (0 < normalizedTarget σ g Jin' i - normalizedTarget σ g Jin i ↔ 0 < D)) ∧ (normalizedTarget σ g Jin i = 0 → normalizedTarget σ g Jin i ≤ normalizedTarget σ g Jin' i)

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

                theorem MindFormal.result_05_26_clause_3_hw6_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 𝒩) (e R x : Fin N → ℝ) (W B : Fin N → Fin N → ℝ) (ψ' : Fin N → ℝ) (hψ : ∀ (l : Fin N), HasDerivAt experiment.data.data.transform.ψ (ψ' l) (rawInput e R W x l)) (i : Fin N) :
                HasDerivAt (fun (τ : ℝ) => experiment.data.data.transform.ψ (rawInput e R (fun (a b : Fin N) => W a b + τ * B a b) x i) / (experiment.data.data.activity.σ + ∑ l : Fin N, experiment.data.data.transform.ψ (rawInput e R (fun (a b : Fin N) => W a b + τ * B a b) x l))) (((experiment.data.data.activity.σ + ∑ l : Fin N, experiment.data.data.transform.ψ (rawInput e R W x l)) * (ψ' i * ∑ j : Fin N, x j * B i j) - experiment.data.data.transform.ψ (rawInput e R W x i) * ∑ l : Fin N, ψ' l * ∑ j : Fin N, x j * B l j) / (experiment.data.data.activity.σ + ∑ l : Fin N, experiment.data.data.transform.ψ (rawInput e R W x l)) ^ 2) 0

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

                noncomputable def MindFormal.referenceConvolution (ν x0 : ℝ) (Tg : ℝ → ℝ) (t0 d : ℝ) :

                05.26 (HW7): the reference activity convolution X_i(t0,d) from a start x0 and target T over elapsed time d after t0.

                Equations
                Instances For
                  theorem MindFormal.result_05_26_clause_3_hw7_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) (tested : Finset (Fin N)) {t0 Hh need : ℝ} (h0 : 0 ≤ t0) (hHh : 0 ≤ Hh) (htest : t0 + Hh ≤ ↑H) :
                  (∀ (i : Fin N), ∀ d ∈ Set.Icc 0 Hh, (ContinuousMap.IccExtend ⋯ R.path) (t0 + d) (Sum.inr (Sum.inl i)) = referenceConvolution experiment.data.data.activity.ν ((ContinuousMap.IccExtend ⋯ R.path) t0 (Sum.inr (Sum.inl i))) (R.target i) t0 d) ∧ (∀ (i : Fin N), 0 ≤ sInf ((fun (d : ℝ) => referenceConvolution experiment.data.data.activity.ν ((ContinuousMap.IccExtend ⋯ R.path) t0 (Sum.inr (Sum.inl i))) (R.target i) t0 d) '' Set.Icc 0 Hh) - need ↔ ∀ d ∈ Set.Icc 0 Hh, need ≤ (ContinuousMap.IccExtend ⋯ R.path) (t0 + d) (Sum.inr (Sum.inl i))) ∧ {i ∈ tested | 0 ≤ sInf ((fun (d : ℝ) => referenceConvolution experiment.data.data.activity.ν ((ContinuousMap.IccExtend ⋯ R.path) t0 (Sum.inr (Sum.inl i))) (R.target i) t0 d) '' Set.Icc 0 Hh) - need}.card = {i ∈ tested | ∀ d ∈ Set.Icc 0 Hh, need ≤ (ContinuousMap.IccExtend ⋯ R.path) (t0 + d) (Sum.inr (Sum.inl i))}.card

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

                  theorem MindFormal.result_05_26_clause_3_hw7_unbounded_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 𝒩) (R : (H : NNReal) → LearningReference experiment.data.toPhysicalNoiseData.data H) (continuing : ∀ (H H' : NNReal), H ≤ H' → ∀ s ∈ Set.Icc 0 ↑H, (ContinuousMap.IccExtend ⋯ (R H).path) s = (ContinuousMap.IccExtend ⋯ (R H').path) s) (tested : Finset (Fin N)) {t0 need : ℝ} (h0 : 0 ≤ t0) :
                  have x := fun (i : Fin N) (d : ℝ) => (ContinuousMap.IccExtend ⋯ (R (t0 + d).toNNReal).path) (t0 + d) (Sum.inr (Sum.inl i)); have X := fun (i : Fin N) (d : ℝ) => referenceConvolution experiment.data.data.activity.ν ((ContinuousMap.IccExtend ⋯ (R t0.toNNReal).path) t0 (Sum.inr (Sum.inl i))) ((R (t0 + d).toNNReal).target i) t0 d; (∀ (i : Fin N) (d : ℝ), 0 ≤ d → x i d = X i d) ∧ (∀ (i : Fin N), 0 ≤ sInf (X i '' Set.Ici 0) - need ↔ ∀ (d : ℝ), 0 ≤ d → need ≤ x i d) ∧ {i ∈ tested | 0 ≤ sInf (X i '' Set.Ici 0) - need}.card = {i ∈ tested | ∀ (d : ℝ), 0 ≤ d → need ≤ x i d}.card

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

                  theorem MindFormal.result_05_26_clause_3_hw8_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) {t0 d : ℝ} (h0 : 0 ≤ t0) (hd0 : 0 ≤ d) (hd : t0 + d ≤ ↑H) (hmatch : (ContinuousMap.IccExtend ⋯ R1.path) t0 (Sum.inr (Sum.inl i)) = (ContinuousMap.IccExtend ⋯ R2.path) t0 (Sum.inr (Sum.inl i))) :
                  (ContinuousMap.IccExtend ⋯ R2.path) (t0 + d) (Sum.inr (Sum.inl i)) - (ContinuousMap.IccExtend ⋯ R1.path) (t0 + d) (Sum.inr (Sum.inl i)) = experiment.data.data.activity.ν * ∫ (w : ℝ) in 0..d, Real.exp (-experiment.data.data.activity.ν * (d - w)) * (R2.target i (t0 + w) - R1.target i (t0 + w)) ∧ ((∀ w ∈ Set.Icc 0 d, R1.target i (t0 + w) ≤ R2.target i (t0 + w)) → (ContinuousMap.IccExtend ⋯ R1.path) (t0 + d) (Sum.inr (Sum.inl i)) ≤ (ContinuousMap.IccExtend ⋯ R2.path) (t0 + d) (Sum.inr (Sum.inl i))) ∧ ((∀ w ∈ Set.Icc 0 d, R2.target i (t0 + w) ≤ R1.target i (t0 + w)) → (ContinuousMap.IccExtend ⋯ R2.path) (t0 + d) (Sum.inr (Sum.inl i)) ≤ (ContinuousMap.IccExtend ⋯ R1.path) (t0 + d) (Sum.inr (Sum.inl i)))

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

                  theorem MindFormal.result_05_26_clause_2_hw1_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 E := d.drive (u i) (q i) (mindValue s i) - ∑ l : Fin N, mindRelation s i l * mindActivity s l; assembledDrift d u q s (Sum.inl (i, j)) = writerForcing d.β m (d.presence (mindTrace s j)) (d.drive (u i) (q i) (mindValue s i)) (∑ l ∈ Finset.univ.erase j, mindRelation s i l * mindActivity s l) (mindActivity s i) - writerLoss d.β m (d.presence (mindTrace s j)) (mindActivity s j) (mindActivity s i) * mindRelation s i j ∧ 0 ≤ writerLoss d.β m (d.presence (mindTrace s j)) (mindActivity s j) (mindActivity s i) ∧ (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) ∧ (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)

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

                  theorem MindFormal.result_05_26_clause_2_hw2_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 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); mindRelation (x t) i j = Real.exp (-∫ (u : ℝ) in 0..t, μ u) * (mindRelation (x 0) i j + ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * F s) ∧ (mindRelation (x 0) i j < mindRelation (x t) i j ↔ mindRelation (x 0) i j * (Real.exp (∫ (u : ℝ) in 0..t, μ u) - 1) < ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * F s)

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

                  theorem MindFormal.actual_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 𝒩) (z : Ω) (i j : Fin N) {t : ℝ} (ht0 : 0 ≤ t) :
                  have G := experiment.data.toPhysicalNoiseData.globalData z; IntervalIntegrable (fun (s : ℝ) => writerLoss G.data.β (actualGain G s) (actualPresence G j s) (mindActivity (G.state s) j) (mindActivity (G.state s) i)) MeasureTheory.volume 0 t ∧ IntervalIntegrable (fun (s : ℝ) => writerForcing G.data.β (actualGain G s) (actualPresence G j s) (G.data.drive (G.input s i) (G.pulse s i) (mindValue (G.state s) i)) (∑ l ∈ Finset.univ.erase j, mindRelation (G.state s) i l * mindActivity (G.state s) l) (mindActivity (G.state s) i)) MeasureTheory.volume 0 t

                  05.25 (2), 05.26 (HW2): on the actual run of draw z, the loss rate μ_ij=M[(1-β)c_j x_j+βx_i] and the forcing F_ij=Mc_j[(1-β)(e_i-S_ij)+βx_i] of relation (i,j) are interval integrable on [0,t], t≥0: the gain is bounded and measurable along the run's measurable input, the rest is continuous, and F_ij is the drift plus μ_ijW_ij.

                  theorem MindFormal.result_05_26_clause_2_hw2_actual_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 𝒩) (z : Ω) (i j : Fin N) {t : ℝ} (ht0 : 0 ≤ t) :
                  have G := experiment.data.toPhysicalNoiseData.globalData z; have μ := fun (s : ℝ) => writerLoss G.data.β (actualGain G s) (actualPresence G j s) (mindActivity (G.state s) j) (mindActivity (G.state s) i); have F := fun (s : ℝ) => writerForcing G.data.β (actualGain G s) (actualPresence G j s) (G.data.drive (G.input s i) (G.pulse s i) (mindValue (G.state s) i)) (∑ l ∈ Finset.univ.erase j, mindRelation (G.state s) i l * mindActivity (G.state s) l) (mindActivity (G.state s) i); have ξ := fun (s : ℝ) => G.driver s.toNNReal (Sum.inl (i, j)); mindRelation (G.state t) i j = Real.exp (-∫ (u : ℝ) in 0..t, μ u) * ((mindRelation (G.state 0) i j + ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * F s) + (Real.exp (∫ (u : ℝ) in 0..t, μ u) * ξ t - ∫ (s : ℝ) in 0..t, Real.exp (∫ (u : ℝ) in 0..s, μ u) * μ s * ξ s))

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

                  noncomputable def MindFormal.rectPulse (xp a ρ w : ℝ) :

                  05.26 (HW3): a rectangular comparison activity of height xp on [a,a+ρ].

                  Equations
                  Instances For
                    noncomputable def MindFormal.rectTrace (lr xp a ρ w : ℝ) :

                    05.26 (HW3): the D4 comparison trace of rate λ driven by a rectangular activity from a zero trace at time 0.

                    Equations
                    Instances For
                      theorem MindFormal.rectTrace_after {lr xp ρ w : ℝ} (hρ : 0 ≤ ρ) (hw : ρ ≤ w) :
                      rectTrace lr xp 0 ρ w = xp * (1 - Real.exp (-lr * ρ)) * Real.exp (-lr * (w - ρ))

                      05.26 (HW3): after its pulse ends, a trace driven from zero by a rectangular activity on [0,ρ] is xp(1-e^{-λρ})e^{-λ(w-ρ)}.

                      theorem MindFormal.result_05_26_clause_2_hw3_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 𝒩) (z : Ω) (j : Fin N) (l : Λ) {t : ℝ} (ht : 0 ≤ t) {xp γ ρ Δ M0 : ℝ} (hρ : 0 < ρ) (hρΔ : ρ ≤ Δ) :
                      have G := experiment.data.toPhysicalNoiseData.globalData z; have lr := experiment.data.data.rate l; mindTrace (G.state t) j l = Real.exp (-lr * t) * mindTrace (G.state 0) j l + lr * ∫ (w : ℝ) in 0..t, Real.exp (-lr * (t - w)) * mindActivity (G.state w) j ∧ ∫ (w : ℝ) in Δ..Δ + ρ, γ * rectTrace lr xp 0 ρ w * rectPulse xp Δ ρ w = γ * xp ^ 2 * (1 - Real.exp (-lr * ρ)) ^ 2 * Real.exp (-lr * (Δ - ρ)) / lr ∧ ∫ (w : ℝ) in 0..ρ, γ * rectTrace lr xp Δ ρ w * rectPulse xp 0 ρ w = 0 ∧ (0 < γ → xp ≠ 0 → 0 < M0 → 0 < M0 * experiment.data.data.β * (γ * xp ^ 2 * (1 - Real.exp (-lr * ρ)) ^ 2 * Real.exp (-lr * (Δ - ρ)) / lr))

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

                      theorem MindFormal.result_05_26_clause_2_hw4_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 𝒩) {C : Type u_5} [Fintype C] (presence activity : C → ℝ) (receiver input M0 : ℝ) (hd : 0 < experiment.data.data.β * receiver + (1 - experiment.data.data.β) * ∑ j : C, presence j * activity j) :
                      have β := experiment.data.data.β; have forcing := (1 - β) * input + β * receiver; have decay := β * receiver + (1 - β) * ∑ j : C, presence j * activity j; have z := fun (t : ℝ) => referenceActivity (M0 * decay) (forcing / decay) 0 t; (∀ (i : C) (t : ℝ), HasDerivAt (fun (s : ℝ) => presence i * z s) (M0 * writerFactor β (presence i) receiver (input - ∑ j : C, presence j * z t * activity j) (presence i * z t)) t) ∧ (∀ (t : ℝ), HasDerivAt z (M0 * (forcing - decay * z t)) t) ∧ ∀ (j : C) (d' : ℝ), 0 < d' → decay ≤ d' → 0 ≤ presence j * forcing → presence j * forcing / d' ≤ presence j * forcing / decay

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

                      noncomputable def MindFormal.writtenFloor (T0 Tinf mu t : ℝ) :

                      05.26 (HW10): the increasing written floor T∞-(T∞-T0)e^{-μt}.

                      Equations
                      Instances For
                        theorem MindFormal.floor_threshold_comparison {gr gw Tatt x0 need T0 Tinf mu : ℝ} (hgr : gr ≤ 1) (hgw : gw ≤ 1) (hmu : 0 < mu) (hTinc : T0 < Tinf) :
                        (∀ (T : ℝ), 0 ≤ T → (need ≤ T + (Tatt - T) * gr ∧ need ≤ T + (x0 - T) * gw ↔ max 0 (max (if gr < 1 then (need - Tatt * gr) / (1 - gr) else 0) (if gw < 1 then (need - x0 * gw) / (1 - gw) else 0)) ≤ T ∧ (gr < 1 ∨ need ≤ Tatt) ∧ (gw < 1 ∨ need ≤ x0))) ∧ (∀ (θ : ℝ), T0 < θ → θ < Tinf → writtenFloor T0 Tinf mu (Real.log ((Tinf - T0) / (Tinf - θ)) / mu) = θ ∧ (∀ t < Real.log ((Tinf - T0) / (Tinf - θ)) / mu, writtenFloor T0 Tinf mu t < θ) ∧ ∀ (t : ℝ), Real.log ((Tinf - T0) / (Tinf - θ)) / mu < t → θ < writtenFloor T0 Tinf mu t) ∧ (∀ θ ≤ T0, ∀ (t : ℝ), 0 ≤ t → θ ≤ writtenFloor T0 Tinf mu t) ∧ ∀ (θ : ℝ), Tinf ≤ θ → ∀ (t : ℝ), writtenFloor T0 Tinf mu t < θ

                        05.26 (HW10) algebra; ORDERS O01, O02 helper for result_05_26_clause_5_hw10_general. Own conditions: return and wait survival fractions gr, gw at most one (hgr, hgw), the attended target Tatt, start x0, required level need, and a strictly increasing floor from T0 to T∞ at rate μ>0 (hmu, hTinc). Conclusion: (i) a constant floor T>=0 meets both the trough and the initial-wait requirement exactly when T>=max{0, each fraction (need-Tatt·gr)/(1-gr), (need-x0·gw)/(1-gw) whose denominator is positive}, and each fraction equal to one has its original inequality instead (Tatt>=need, x0>=need); (ii) for T0<ϑ<T∞ the floor equals ϑ exactly at μ⁻¹log((T∞-T0)/(T∞-ϑ)), below before and above after; (iii) a threshold at or below T0 is met from the start; (iv) one at or above T∞ is never met.

                        theorem MindFormal.result_05_26_clause_5_hw10_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 : ℕ} {Δ ρ Tatt x0 need T0 Tinf mu : ℝ} (hM : 1 ≤ M) (hΔ : 0 < Δ) (hρM : ρ ≤ ↑M * Δ) (hmu : 0 < mu) (hTinc : T0 < Tinf) :
                        have ν := experiment.data.data.activity.ν; have γret := (Real.exp (ν * ρ) - 1) / (Real.exp (ν * (↑M * Δ)) - 1); have γwait := Real.exp (-ν * (↑M - 1) * Δ); (∀ (Toff : ℝ), 0 ≤ Toff → (need ≤ periodicTrough ν ρ (↑M * Δ) Toff Tatt ∧ need ≤ initialWait ν Δ Toff x0 M ↔ max 0 (max (if γret < 1 then (need - Tatt * γret) / (1 - γret) else 0) (if γwait < 1 then (need - x0 * γwait) / (1 - γwait) else 0)) ≤ Toff ∧ (γret < 1 ∨ need ≤ Tatt) ∧ (γwait < 1 ∨ need ≤ x0))) ∧ (∀ (θ : ℝ), T0 < θ → θ < Tinf → writtenFloor T0 Tinf mu (Real.log ((Tinf - T0) / (Tinf - θ)) / mu) = θ ∧ (∀ t < Real.log ((Tinf - T0) / (Tinf - θ)) / mu, writtenFloor T0 Tinf mu t < θ) ∧ ∀ (t : ℝ), Real.log ((Tinf - T0) / (Tinf - θ)) / mu < t → θ < writtenFloor T0 Tinf mu t) ∧ (∀ θ ≤ T0, ∀ (t : ℝ), 0 ≤ t → θ ≤ writtenFloor T0 Tinf mu t) ∧ ∀ (θ : ℝ), Tinf ≤ θ → ∀ (t : ℝ), writtenFloor T0 Tinf mu t < θ

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

                        theorem MindFormal.result_05_26_clause_5_hw12_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 𝒩) {z Joff0 Joff1 Jatt0 Jatt1 P0 P1 Jfree0 Jfree1 Pf0 Pf1 gr gw x0 need : ℝ} (hP : 0 < P0 + P1 * z) (hPf : 0 < Pf0 + Pf1 * z) (hgw : 0 ≤ gw ∧ gw < 1) :
                        have g := experiment.data.data.activity.g; have Toff := (Joff0 + Joff1 * z) / (P0 + P1 * z) - g; have Tatt := (Jatt0 + Jatt1 * z) / (P0 + P1 * z) - g; have share := need + g; have θ0 := (need - gw * x0) / (1 - gw); (need ≤ Toff + (Tatt - Toff) * gr ↔ ((1 - gr) * Joff1 + gr * Jatt1 - share * P1) * z ≥ share * P0 - (1 - gr) * Joff0 - gr * Jatt0) ∧ (need ≤ Toff + (x0 - Toff) * gw ↔ (Joff1 - (g + θ0) * P1) * z ≥ (g + θ0) * P0 - Joff0) ∧ (need ≤ 0 + (Tatt - 0) * gr ↔ (gr * Jatt1 - (need + gr * g) * P1) * z ≥ (need + gr * g) * P0 - gr * Jatt0) ∧ (need ≤ (Jfree0 + Jfree1 * z) / (Pf0 + Pf1 * z) - g ↔ (Jfree1 - share * Pf1) * z ≥ share * Pf0 - Jfree0)

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

                        theorem MindFormal.result_05_26_clause_5_hw16_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 𝒩) {Ja0 Ja1 P0 P1 θ : ℝ} (hP0 : 0 < P0) (hP1 : 0 < P0 + P1) (hstart : θ < Ja0 / P0 - experiment.data.data.activity.g) (hend : (Ja0 + Ja1) / (P0 + P1) - experiment.data.data.activity.g < θ) :
                        have g := experiment.data.data.activity.g; have Tatt := fun (z : ℝ) => (Ja0 + Ja1 * z) / (P0 + P1 * z) - g; have zdown := ((g + θ) * P0 - Ja0) / (Ja1 - (g + θ) * P1); ((∀ (z1 z2 : ℝ), 0 ≤ z1 → z1 < z2 → z2 ≤ 1 → Tatt z2 < Tatt z1) ↔ Ja1 * P0 - Ja0 * P1 < 0) ∧ 0 < zdown ∧ zdown < 1 ∧ Tatt zdown = θ ∧ (∀ (z : ℝ), 0 ≤ z → z < zdown → θ < Tatt z) ∧ ∀ (z : ℝ), zdown < z → z ≤ 1 → Tatt z < θ

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

                        theorem MindFormal.result_05_26_clause_5_hw17_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) {t1 p Hn ρ Toff Tatt Xp need : ℝ} (K : ℕ) (hp1 : t1 ≤ p) (hp2 : p ≤ t1 + Hn) (hp0 : 0 ≤ p) (hHn : 0 < Hn) (hρ : 0 ≤ ρ) (hρH : ρ ≤ Hn) (hK : p + ↑K * Hn ≤ ↑H) (hvisit : ∀ k < K, ∀ s ∈ Set.Ioc (p + ↑k * Hn) (p + ↑k * Hn + ρ), R.target i s ≤ Tatt) (hoff : ∀ k < K, ∀ s ∈ Set.Ioc (p + ↑k * Hn + ρ) (p + (↑k + 1) * Hn), R.target i s ≤ Toff) (hstart : (ContinuousMap.IccExtend ⋯ R.path) p (Sum.inr (Sum.inl i)) ≤ Xp) :
                        have ν := experiment.data.data.activity.ν; have trough := periodicTrough ν ρ Hn Toff Tatt; (∀ k ≤ K, (ContinuousMap.IccExtend ⋯ R.path) (p + ↑k * Hn) (Sum.inr (Sum.inl i)) ≤ trough + (Xp - trough) * Real.exp (-ν * (↑k * Hn))) ∧ (trough < need → need ≤ Xp → trough + (Xp - trough) * Real.exp (-ν * (↑(1 + ⌊Real.log ((Xp - trough) / (need - trough)) / (ν * Hn)⌋₊) * Hn)) < need ∧ (1 + ⌊Real.log ((Xp - trough) / (need - trough)) / (ν * Hn)⌋₊ ≤ K → (ContinuousMap.IccExtend ⋯ R.path) (p + ↑(1 + ⌊Real.log ((Xp - trough) / (need - trough)) / (ν * Hn)⌋₊) * Hn) (Sum.inr (Sum.inl i)) < need ∧ p + ↑(1 + ⌊Real.log ((Xp - trough) / (need - trough)) / (ν * Hn)⌋₊) * Hn ≤ t1 + (1 + ↑(1 + ⌊Real.log ((Xp - trough) / (need - trough)) / (ν * Hn)⌋₊)) * Hn))

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

                        theorem MindFormal.result_05_26_clause_5_hw17_off_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) {a D need : ℝ} (ha : 0 ≤ a) (hD : a + D ≤ ↑H) (hzero : ∀ s ∈ Set.Ioc a (a + D), R.target i s = 0) (hneed : 0 < need) (habove : need < (ContinuousMap.IccExtend ⋯ R.path) a (Sum.inr (Sum.inl i))) (hcross : Real.log ((ContinuousMap.IccExtend ⋯ R.path) a (Sum.inr (Sum.inl i)) / need) / experiment.data.data.activity.ν ≤ D) :
                        have ν := experiment.data.data.activity.ν; have xa := (ContinuousMap.IccExtend ⋯ R.path) a (Sum.inr (Sum.inl i)); have dstar := Real.log (xa / need) / ν; (ContinuousMap.IccExtend ⋯ R.path) (a + dstar) (Sum.inr (Sum.inl i)) = need ∧ (∀ (d : ℝ), 0 ≤ d → d < dstar → need < (ContinuousMap.IccExtend ⋯ R.path) (a + d) (Sum.inr (Sum.inl i))) ∧ ∀ (d : ℝ), dstar < d → d ≤ D → (ContinuousMap.IccExtend ⋯ R.path) (a + d) (Sum.inr (Sum.inl i)) < need

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

                        theorem MindFormal.balanced_return_lower {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) {Δ ρ B xe φ Hh : ℝ} {M : ℕ} (hM : 0 < M) (hΔ : 0 < Δ) (hρ : 0 ≤ ρ) (hρM : ρ ≤ ↑M * Δ) (hB : 0 ≤ B) (hφ0 : 0 ≤ φ) (hφ : φ ≤ (↑M - 1) * Δ) (hHh : Hh ≤ ↑H) (hxe : 0 ≤ xe) (hstart : xe ≤ (ContinuousMap.IccExtend ⋯ R.path) 0 (Sum.inr (Sum.inl i))) (hvisit : ∀ (k : ℕ), ∀ s ∈ Set.Ioc (φ + ↑k * (↑M * Δ)) (φ + ↑k * (↑M * Δ) + ρ), s ≤ Hh → B ≤ R.target i s) (t : ℝ) :
                        t ∈ Set.Icc 0 Hh → min (initialWait d.activity.ν Δ 0 xe M) (periodicTrough d.activity.ν ρ (↑M * Δ) 0 B) ≤ (ContinuousMap.IccExtend ⋯ R.path) t (Sum.inr (Sum.inl i))

                        05.15: one object's balanced-return reference lower bound. With the first visit at phase φ<=(M-1)Δ, visits of length ρ every MΔ>=ρ, a target at least B during visits (and nonnegative always), and a start of at least xe, the reference activity stays at least min(initial wait, periodic trough) at every time up to the horizon end Hh.

                        theorem MindFormal.result_05_15_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} (C : NoiseLearning Ω N n T Λ J 𝒩) {M : ℕ} (objects : Fin M → Fin N) {Δ ρ B xe need Hh : ℝ} (hM : 0 < M) (hΔ : 0 < Δ) (hρ : 0 < ρ) (hρM : ρ ≤ ↑M * Δ) (hB : 0 ≤ B) (hHhH : Hh ≤ ↑C.horizon) (hneed : 0 < need + C.run.control.error) (hencode : need + C.run.control.error ≤ xe) (hcount : M ≤ zeroFloorCount C.experiment.data.data.activity.ν ρ Δ B xe (need + C.run.control.error)) (hstart : ∀ (z : Ω) (q : Fin M), xe ≤ (ContinuousMap.IccExtend ⋯ (C.reference z).path) 0 (Sum.inr (Sum.inl (objects q)))) (hvisit : ∀ (z : Ω) (q : Fin M) (k : ℕ), ∀ s ∈ Set.Ioc (↑↑q * Δ + ↑k * (↑M * Δ)) (↑↑q * Δ + ↑k * (↑M * Δ) + ρ), s ≤ Hh → B ≤ (C.reference z).target (objects q) s) :
                        1 - C.run.control.failure ≤ C.run.data.μ.real {z : Ω | ∀ (q : Fin M), ∀ t ∈ Set.Icc 0 Hh, need ≤ C.run.coordinate z (Sum.inr (Sum.inl (objects q))) t}

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