MindFormal v1.0.0One Mind

MindFormal.Run.A1029AttentionTiming.Margins

Paper 2, attention timing, §2: the constant-target reference crossing clock (6) and the original-noise margins on the actual run, (7) with its qualification, release and start branches, and the excursion probability of the original innovations.

theorem MindFormal.A1029AttentionTiming.reference_unique {ν c : ℝ} {x : ℝ → ℝ} (hx : ReferenceEquation ν c x) (t : ℝ) :
x t = referenceActivity ν c (x 0) t

A solution of I's held-target reference equation is the reference curve.

theorem MindFormal.A1029AttentionTiming.reference_difference {ν Ti Tj : ℝ} {xi xj : ℝ → ℝ} (hi : ReferenceEquation ν Ti xi) (hj : ReferenceEquation ν Tj xj) (t : ℝ) :
xi t - xj t = (xi 0 - xj 0 + (Tj - Ti)) * Real.exp (-ν * t) - (Tj - Ti)

(6). Two constant-target reference curves differ by (d₀ + d_T)e^{−νt} − d_T, with d₀ = x_i(0) − x_j(0) and d_T = T_j − T_i.

theorem MindFormal.A1029AttentionTiming.reference_crossing {ν Ti Tj : ℝ} (hν : 0 < ν) {xi xj : ℝ → ℝ} (hi : ReferenceEquation ν Ti xi) (hj : ReferenceEquation ν Tj xj) (hd0 : 0 < xi 0 - xj 0) (hdT : 0 < Tj - Ti) (t : ℝ) :
(0 < xi t - xj t ↔ t < ν⁻¹ * Real.log (1 + (xi 0 - xj 0) / (Tj - Ti))) ∧ (xi t - xj t = 0 ↔ t = ν⁻¹ * Real.log (1 + (xi 0 - xj 0) / (Tj - Ti)))

(6), the crossing clock. With d₀ > 0 and d_T > 0 the advantage is positive before t* = ν⁻¹ log(1 + d₀/d_T), zero at t*, negative after.

theorem MindFormal.A1029AttentionTiming.reference_no_crossing {ν Ti Tj : ℝ} {xi xj : ℝ → ℝ} (hi : ReferenceEquation ν Ti xi) (hj : ReferenceEquation ν Tj xj) (hd0 : 0 < xi 0 - xj 0) (hdT : Tj - Ti ≤ 0) (t : ℝ) (ht : 0 ≤ t) (hν : 0 ≤ ν) :
0 < xi t - xj t

(6) with T_i ≥ T_j: an initially positive advantage never changes sign at finite time.

theorem MindFormal.A1029AttentionTiming.reference_release {ν Ti Tj ρ : ℝ} (hν : 0 < ν) (hρ : 0 < ρ) {xi xj : ℝ → ℝ} (hi : ReferenceEquation ν Ti xi) (hj : ReferenceEquation ν Tj xj) (hd0 : 0 < xi 0 - xj 0) (hdT : 0 < Tj - Ti) {m : ℕ} (hm : 1 ≤ m) :
(xi (↑m * ρ) < xj (↑m * ρ) ↔ max 1 (⌊ν⁻¹ * Real.log (1 + (xi 0 - xj 0) / (Tj - Ti)) / ρ⌋₊ + 1) ≤ m) ∧ (xi (↑m * ρ) ≤ xj (↑m * ρ) ↔ max 1 ⌈ν⁻¹ * Real.log (1 + (xi 0 - xj 0) / (Tj - Ti)) / ρ⌉₊ ≤ m)

(6), the release and start branches. For a refractory period ρ > 0 and every release index m ≥ 1: the rival is strictly ahead at mρ exactly when m ≥ max(1, ⌊t*/ρ⌋ + 1) (the first losing release when the tie favors the incumbent), and at least level exactly when m ≥ max(1, ⌈t*/ρ⌉) (when the tie favors the rival).

theorem MindFormal.A1029AttentionTiming.targetAvg_gap {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {i j : Fin N} {a r dT : ℝ} (ha : 0 ≤ a) (hr : 0 ≤ r) (hT : ∀ u ∈ Set.Icc 0 r, dT ≤ G.target j (a + u) - G.target i (a + u)) :
targetAvg G i a r - targetAvg G j a r ≤ (mindActivity (G.state a) i - mindActivity (G.state a) j + dT) * Real.exp (-G.data.activity.ν * r) - dT

The exponential averages of two targets: with T_j − T_i ≥ d_T after the origin, F_i − F_j ≤ (d₀ + d_T)e^{−νr} − d_T.

theorem MindFormal.A1029AttentionTiming.actual_gap_general {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {i j : Fin N} {a r hi hj : ℝ} (ha : 0 ≤ a) (hr : 0 ≤ r) (hhi : ∀ u ∈ Set.Icc 0 r, |innov G i a u| ≤ hi) (hhj : ∀ u ∈ Set.Icc 0 r, |innov G j a u| ≤ hj) :
mindActivity (G.state (a + r)) i - mindActivity (G.state (a + r)) j ≤ targetAvg G i a r - targetAvg G j a r + (4 * hi + 2 * hj)

(7), mixed-sign form. With raw innovation excursions h_i, h_j on the window, x_i − x_j ≤ F_i − F_j + 4h_i + 2h_j on the actual run.

theorem MindFormal.A1029AttentionTiming.actual_gap {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {i j : Fin N} {a r hi hj dT : ℝ} (ha : 0 ≤ a) (hr : 0 ≤ r) (hT : ∀ u ∈ Set.Icc 0 r, dT ≤ G.target j (a + u) - G.target i (a + u)) (hhi : ∀ u ∈ Set.Icc 0 r, |innov G i a u| ≤ hi) (hhj : ∀ u ∈ Set.Icc 0 r, |innov G j a u| ≤ hj) :
mindActivity (G.state (a + r)) i - mindActivity (G.state (a + r)) j ≤ (mindActivity (G.state a) i - mindActivity (G.state a) j + dT) * Real.exp (-G.data.activity.ν * r) - dT + (4 * hi + 2 * hj)

(7). If the complete targets keep T_j − T_i ≥ d_T after the origin, then on the actual run x_i − x_j ≤ (d₀ + d_T)e^{−νr} − d_T + ε_{ij}, with ε_{ij} = 4h_i + 2h_j.

theorem MindFormal.A1029AttentionTiming.actual_crossing {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {i j : Fin N} {a r hi hj dT : ℝ} (ha : 0 ≤ a) (hr : 0 ≤ r) (hT : ∀ u ∈ Set.Icc 0 r, dT ≤ G.target j (a + u) - G.target i (a + u)) (hhi : ∀ u ∈ Set.Icc 0 r, |innov G i a u| ≤ hi) (hhj : ∀ u ∈ Set.Icc 0 r, |innov G j a u| ≤ hj) (hε : 4 * hi + 2 * hj < dT) (hd : 0 < mindActivity (G.state a) i - mindActivity (G.state a) j + dT) (hlog : G.data.activity.ν⁻¹ * Real.log ((mindActivity (G.state a) i - mindActivity (G.state a) j + dT) / (dT - (4 * hi + 2 * hj))) < r) :
mindActivity (G.state (a + r)) i < mindActivity (G.state (a + r)) j

(7), the crossing certificate. When d_T > ε_{ij}, every tested time strictly later than ν⁻¹ log[(d₀ + d_T)/(d_T − ε_{ij})] has x_j > x_i on the actual run.

theorem MindFormal.A1029AttentionTiming.incumbent_loses {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (hY : ∀ (z : NativeReadState n T), G.reads.attention z = (↑z).1) {i j : Fin N} {s : ℝ} (hji : mindActivity (G.state s) i < mindActivity (G.state s) j) (hα : G.reads.awarenessBar ≤ mindActivity (G.state s) j) (hι : G.reads.attentionBar ≤ mindActivity (G.state s) j) :

(7), the qualification branch. With the activity read Y = x, a rival strictly ahead whose (5)-lower bound clears both bars beats the incumbent: the incumbent is not the qualifying winner there (whether the rival or a third content wins).

theorem MindFormal.A1029AttentionTiming.dwell_le_of_loss {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {t : ℝ} {i : Fin N} {m : ℕ} (hm : 1 ≤ m) (hl : ¬releaseWins G t i m) :
dwellCount G t i ≤ ↑m

(7), the release branch. A tested release t + mρ at which i is not the qualifying winner bounds the native dwell count after a selection of i at t: N ≤ m.

theorem MindFormal.A1029AttentionTiming.first_grid {tc ρ : ℝ} (htc : 0 ≤ tc) (hρ : 0 < ρ) :
1 ≤ ⌊tc / ρ⌋₊ + 1 ∧ tc < ↑(⌊tc / ρ⌋₊ + 1) * ρ ∧ ↑(⌊tc / ρ⌋₊ + 1) * ρ ≤ tc + ρ

The first release grid point strictly after a time t_c ≥ 0 is at most ρ later.

theorem MindFormal.A1029AttentionTiming.survival_certificate {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (hY : ∀ (z : NativeReadState n T), G.reads.attention z = (↑z).1) {t : ℝ} {i : Fin N} {m : ℕ} (lo : ℕ → ℝ) (hi : Fin N → ℕ → ℝ) (hlo : ∀ (ℓ : ℕ), 1 ≤ ℓ → ℓ ≤ m → lo ℓ ≤ mindActivity (G.state (t + ↑ℓ * G.pause true)) i) (hhi : ∀ (ℓ : ℕ), 1 ≤ ℓ → ℓ ≤ m → ∀ (j : Fin N), j ≠ i → mindActivity (G.state (t + ↑ℓ * G.pause true)) j ≤ hi j ℓ) (hbar : ∀ (ℓ : ℕ), 1 ≤ ℓ → ℓ ≤ m → max G.reads.awarenessBar G.reads.attentionBar < lo ℓ) (hgap : ∀ (ℓ : ℕ), 1 ≤ ℓ → ℓ ≤ m → ∀ (j : Fin N), j ≠ i → hi j ℓ < lo ℓ) :
↑m < dwellCount G t i

(7), the survival certificate. With the activity read Y = x: if at every release t + ℓρ, 1 ≤ ℓ ≤ m, the incumbent's lower activity clears both bars and exceeds every rival's upper activity, then i is reselected through release m: m < N.

theorem MindFormal.A1029AttentionTiming.release_loss {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (hY : ∀ (z : NativeReadState n T), G.reads.attention z = (↑z).1) {i j : Fin N} {t hi hj dT : ℝ} {m : ℕ} (ht : 0 ≤ t) (hm : 1 ≤ m) (hT : ∀ u ∈ Set.Icc 0 (↑m * G.pause true), dT ≤ G.target j (t + u) - G.target i (t + u)) (hhi : ∀ u ∈ Set.Icc 0 (↑m * G.pause true), |innov G i t u| ≤ hi) (hhj : ∀ u ∈ Set.Icc 0 (↑m * G.pause true), |innov G j t u| ≤ hj) (hε : 4 * hi + 2 * hj < dT) (hd : 0 < mindActivity (G.state t) i - mindActivity (G.state t) j + dT) (hlog : G.data.activity.ν⁻¹ * Real.log ((mindActivity (G.state t) i - mindActivity (G.state t) j + dT) / (dT - (4 * hi + 2 * hj))) < ↑m * G.pause true) (hbar : max G.reads.awarenessBar G.reads.attentionBar ≤ targetAvg G j t (↑m * G.pause true) - 2 * hj) :
dwellCount G t i ≤ ↑m

(7), assembled. From a native selection of i at t, with the activity read Y = x: if the complete targets keep T_j − T_i ≥ d_T through the tested release t + mρ, the raw excursions are h_i, h_j, d_T > 4h_i + 2h_j, the release is later than ν⁻¹ log[(d₀ + d_T)/(d_T − 4h_i − 2h_j)], and (5)'s lower bound for j clears both bars there, then i has lost by that release: its native dwell count is at most m.

theorem MindFormal.A1029AttentionTiming.admitted_driver {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : AdmittedExperiment Ω N n T Λ J) {ω : Ω} (hω : E.data.toPhysicalNoiseData.Good ω) (t : NNReal) (c : CoordinateIndex (Fin N) n T Λ) :

On the common event the constant-noise run's innovation is the loaded original sources.

theorem MindFormal.A1029AttentionTiming.window_excursion {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : AdmittedExperiment Ω N n T Λ J) (s H : NNReal) (hH : 0 < H) {D : Type u_5} [Fintype D] (c : D → Fin N) (h G : D → ℝ) (hh : ∀ (d : D), 0 < h d) (hG : ∀ (d : D), √(loadNormSq (E.constant.matrix (Sum.inr (Sum.inl (c d))))) ≤ G d) :
1 - ∑ d : D, 2 * Real.exp (-(h d ^ 2 / (2 * G d ^ 2 * ↑H))) ≤ E.ground.μ.real {ω : Ω | ∀ (d : D), ∀ r ∈ Set.Icc 0 ↑H, |innov (E.data.toPhysicalNoiseData.globalData ω) (c d) (↑s) r| < h d}

The original-noise excursion probability. From any origin s ≥ 0, for finitely many activity innovations with amplitude norms at most G_d, the simultaneous excursions stay below h_d through H with probability at least 1 − 2Σ_d exp[−h_d²/(2G_d²H)].