MindFormal v1.0.0One Mind

MindFormal.Run.A1029AttentionTiming.Pool

Paper 2, attention timing, §3: what the common pool can change. The shared denominator keeps the order of transformed inputs in the targets; on the run, a maintained input order with a shared activity innovation keeps the activity order pathwise, so with an activity-ordered read and tie precedence the rival never wins. Loss of qualification (9) and a change of numerator order (10) have their own tests.

theorem MindFormal.A1029AttentionTiming.pool_pos' {N : ℕ} (σ : ℝ) (J : Fin N → ℝ) (hσ : 0 < σ) (hJ : ∀ (k : Fin N), 0 ≤ J k) :
0 < pool σ J
theorem MindFormal.A1029AttentionTiming.target_mono {N : ℕ} (σ g : ℝ) (J : Fin N → ℝ) (hσ : 0 < σ) (hJ : ∀ (k : Fin N), 0 ≤ J k) {i j : Fin N} (h : J j ≤ J i) :

(8): with the common pool, a larger transformed input never has the smaller target.

theorem MindFormal.A1029AttentionTiming.target_sub {N : ℕ} (σ g : ℝ) (J : Fin N → ℝ) {i j : Fin N} (hj : g ≤ J j / pool σ J) (hji : J j ≤ J i) (hP : 0 < pool σ J) :
normalizedTarget σ g J i - normalizedTarget σ g J j = (J i - J j) / pool σ J

When both targets are positive their difference is (J_i − J_j)/P.

theorem MindFormal.A1029AttentionTiming.positive_part_increment {g x y x' y' : ℝ} (hxy : x ≤ y) (hx : x ≤ x') (hy : y ≤ y') (hl : y - x ≤ y' - x') :
max (y - g) 0 - max (x - g) 0 ≤ max (y' - g) 0 - max (x' - g) 0
theorem MindFormal.A1029AttentionTiming.other_inputs {N : ℕ} (σ g : ℝ) (J J' : Fin N → ℝ) (hσ : 0 < σ) (hJ : ∀ (k : Fin N), 0 ≤ J k) {i j : Fin N} (hi : J' i = J i) (hj : J' j = J j) (hle : ∀ (k : Fin N), J k ≤ J' k) (hji : J j ≤ J i) :

Raising only other pool inputs, J_i, J_j fixed, shrinks the nonnegative target difference, possibly to zero; it never reverses it.

noncomputable def MindFormal.A1029AttentionTiming.runInput {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (s : ℝ) (i : Fin N) :

The transformed input J_i = ψ(I_i) of content i on the run at time s.

Equations
Instances For
    theorem MindFormal.A1029AttentionTiming.runInput_nonneg {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (s : ℝ) (i : Fin N) :
    0 ≤ runInput G s i
    theorem MindFormal.A1029AttentionTiming.run_target_mono {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {s : ℝ} {i j : Fin N} (h : runInput G s j ≤ runInput G s i) :
    G.target j s ≤ G.target i s
    theorem MindFormal.A1029AttentionTiming.push_flat {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) {a t : ℝ} (ha : 0 ≤ a) (hat : a ≤ t) (hpos : ∀ s ∈ Set.Ioc a t, 0 < mindActivity (G.state s) i) :
    G.realPush a i = G.realPush t i

    The push of a content stays flat on [a, t] when its activity is positive on (a, t].

    theorem MindFormal.A1029AttentionTiming.no_overtake {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) {i j : Fin N} {a t₁ : ℝ} (ha : 0 ≤ a) (hJ : ∀ s ∈ Set.Icc a t₁, runInput G s j ≤ runInput G s i) (hx : mindActivity (G.state a) j ≤ mindActivity (G.state a) i) (hξ : ∀ s ∈ Set.Icc a t₁, G.driver s.toNNReal (Sum.inr (Sum.inl j)) - G.driver a.toNNReal (Sum.inr (Sum.inl j)) = G.driver s.toNNReal (Sum.inr (Sum.inl i)) - G.driver a.toNNReal (Sum.inr (Sum.inl i))) (s : ℝ) :
    s ∈ Set.Icc a t₁ → mindActivity (G.state s) j ≤ mindActivity (G.state s) i

    The pool cannot reverse the order, pathwise. On a window [a, t₁] of any complete run, if the transformed input of i stays at least that of j, x_i(a) ≥ x_j(a), and the two activity innovations have identical increments, then x_i ≥ x_j throughout; the reflection at zero is kept.

    theorem MindFormal.A1029AttentionTiming.rival_not_winner {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (hmono : ∀ (v : Fin n → T → ℝ), Monotone fun (x : NNReal) => G.reads.attention ⟨(↑x, v), ⋯⟩) {i j : Fin N} (hij : i < j) {s : ℝ} (hx : mindActivity (G.state s) j ≤ mindActivity (G.state s) i) (hv : (∀ (x : NNReal) (v v' : Fin n → T → ℝ), G.reads.attention ⟨(↑x, v), ⋯⟩ = G.reads.attention ⟨(↑x, v'), ⋯⟩) ∨ mindValue (G.state s) j = mindValue (G.state s) i) :

    With an activity-ordered read (nondecreasing in activity, as admission requires) and either an activity-only read or identical value contributions, a rival no more active than an incumbent earlier in the tie order is never the qualifying winner.

    theorem MindFormal.A1029AttentionTiming.awareness_loss {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) {a t Tp h : ℝ} (ha : 0 ≤ a) (hat : a ≤ t) (hTp : 0 ≤ Tp) (hh : 0 ≤ h) (hT : ∀ r ∈ Set.Ioc a t, G.target i r ≤ Tp) (hξ : ∀ r ∈ Set.Icc a t, |G.driver r.toNNReal (Sum.inr (Sum.inl i)) - G.driver a.toNNReal (Sum.inr (Sum.inl i))| ≤ h) :
    mindActivity (G.state t) i ≤ Tp + (mindActivity (G.state a) i - Tp) * Real.exp (-G.data.activity.ν * (t - a)) + 4 * h ∧ (Tp + 4 * h < G.reads.awarenessBar → G.reads.awarenessBar ≤ mindActivity (G.state a) i → G.data.activity.ν⁻¹ * Real.log ((mindActivity (G.state a) i - Tp) / (G.reads.awarenessBar - Tp - 4 * h)) < t - a → mindActivity (G.state t) i < G.reads.awarenessBar ∧ focusGuard G t i < 0)

    (9): an upper target bound T⁺ and an innovation excursion h on a window give x_i(t) ≤ T⁺ + (x_i(a) − T⁺)e^{−ν(t−a)} + 4h; when T⁺ + 4h < α ≤ x_i(a) the content falls below awareness after ν⁻¹ log((x_i(a) − T⁺)/(α − T⁺ − 4h)), and then cannot qualify.

    theorem MindFormal.A1029AttentionTiming.input_difference {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (d : MindDriftData (Fin N) n T Λ) (χ dq : ℝ) (l : Λ) (hres : ∀ (r : Λ → ℝ), d.residue r = -χ * r l) (hdrive : ∀ (u q : ℝ) (v : Fin n → T → ℝ), d.drive u q v = u + dq * q) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) {i j : Fin N} (hu : u i = u j) (hqi : q i = 1) (hqj : q j = 0) :
    have I := rawInput (fun (k : Fin N) => d.drive (u k) (q k) (mindValue s k)) (fun (k : Fin N) => d.residue (mindTrace s k)) (mindRelation s) (mindActivity s); I j - I i = χ * (mindTrace s i l - mindTrace s j l) - dq + ∑ k : Fin N, (mindRelation s j k - mindRelation s i k) * mindActivity s k ∧ (0 < χ * (mindTrace s i l - mindTrace s j l) - dq + ∑ k : Fin N, (mindRelation s j k - mindRelation s i k) * mindActivity s k → I i < I j ∧ assembledInputs d u q s i ≤ assembledInputs d u q s j ∧ (0 < d.activity.σ → normalizedTarget d.activity.σ d.activity.g (assembledInputs d u q s) i ≤ normalizedTarget d.activity.σ d.activity.g (assembledInputs d u q s) j))

    (10): with residue −χ r(λ), drive u + d_q q, equal external inputs and the incumbent i attended (q_i = 1, q_j = 0), the raw input difference is I_j − I_i = χ (r_i − r_j) − d_q + Σ_ℓ (W_{jℓ} − W_{iℓ}) x_ℓ; a positive right side reverses the raw order, and then the transformed inputs and the targets are reordered too.