MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.GradedRoute

11.14 (SF1, SF6, ¶1-¶2): a graded route along the continuing-learning reference. Each next member needs its above-need target for the passage time from its activity at its step's start; an already reached member is retained exactly while its SF1 convolution stays at or above need; and under native balanced attention rounds the retention test is the two trough tests: the last initial-wait activity and the periodic trough.

theorem MindFormal.curve_ge_min_target {ν T y τ : ℝ} (hν : 0 ≤ ν) (hτ : 0 ≤ τ) :
min y T ≤ referenceActivity ν T y τ

SF1: the held-target curve from y toward T is never below the smaller of y and T.

theorem MindFormal.curve_ge_min_end {ν T y τ τ' : ℝ} (hν : 0 ≤ ν) (hτ : 0 ≤ τ) (hττ : τ ≤ τ') :
min y (referenceActivity ν T y τ') ≤ referenceActivity ν T y τ

SF1: before τ', the held-target curve is never below the smaller of its start and its value at τ'.

theorem MindFormal.round_trough_step {ν ρ P Toff Tatt y : ℝ} (hP : 0 < ν * P) :
referenceActivity ν Toff (referenceActivity ν Tatt y ρ) (P - ρ) = Toff + (Tatt - Toff) * (Real.exp (ν * ρ) - 1) / (Real.exp (ν * P) - 1) + (y - (Toff + (Tatt - Toff) * (Real.exp (ν * ρ) - 1) / (Real.exp (ν * P) - 1))) * Real.exp (-ν * P)

SF1 (the round test): one round, a pulse of length ρ toward T_att followed by the gap of length P-ρ toward T_off, moves a trough y to the periodic trough plus (y-trough)e^{-νP}, the periodic trough being T_off+(T_att-T_off)(e^{νρ}-1)/(e^{νP}-1).

theorem MindFormal.round_index {q0 P s : ℝ} (hP : 0 < P) (hs : q0 ≤ s) :
∃ (k : ℕ), q0 + ↑k * P ≤ s ∧ s < q0 + (↑k + 1) * P

SF1 (¶1): a time after the first pulse start falls in exactly one round [q0+kP,q0+(k+1)P).

theorem MindFormal.round_retention {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) {p q0 P ρ Toff Tatt need : ℝ} (hp : 0 ≤ p) (hq0 : p ≤ q0) (hρ : 0 < ρ) (hρP : ρ ≤ P) (hTT : Toff ≤ Tatt) (off : ∀ s ∈ Set.Ioc p ↑H, Toff ≤ R.target i s) (att : ∀ (k : ℕ), ∀ s ∈ Set.Ioc (q0 + ↑k * P) (q0 + ↑k * P + ρ), s ≤ ↑H → Tatt ≤ R.target i s) (hstart : need ≤ (ContinuousMap.IccExtend ⋯ R.path) p (Sum.inr (Sum.inl i))) (wait : need ≤ referenceActivity d.activity.ν Toff ((ContinuousMap.IccExtend ⋯ R.path) p (Sum.inr (Sum.inl i))) (q0 - p)) (trough : need ≤ Toff + (Tatt - Toff) * (Real.exp (d.activity.ν * ρ) - 1) / (Real.exp (d.activity.ν * P) - 1)) :
have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s (Sum.inr (Sum.inl i)); have tr := Toff + (Tatt - Toff) * (Real.exp (d.activity.ν * ρ) - 1) / (Real.exp (d.activity.ν * P) - 1); have y0 := referenceActivity d.activity.ν Toff (x p) (q0 - p); (∀ (k : ℕ), q0 + ↑k * P ≤ ↑H → tr + (y0 - tr) * Real.exp (-d.activity.ν * P) ^ k ≤ x (q0 + ↑k * P)) ∧ ∀ s ∈ Set.Icc p ↑H, need ≤ x s

11.14 (SF1, ¶1): the round test with lower envelopes. Along a verified continuing reference, a member at or above need at the rounds' start p, whose complete target is at least T_off throughout and at least T_att≥T_off on each of its attention pulses (q0+kP,q0+kP+ρ], 0<ρ≤P, stays at or above need throughout [p,H] when its last initial-wait activity T_off+(x(p)-T_off)e^{-ν(q0-p)} and the periodic trough T_off+(T_att-T_off)(e^{νρ}-1)/(e^{νP}-1) are at or above need; and every trough x(q0+kP) is at least the periodic trough plus the first trough's excess decayed by e^{-νkP}.

theorem MindFormal.round_troughs_upper {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) {p q0 P ρ Toff Tatt : ℝ} (hp : 0 ≤ p) (hq0 : p ≤ q0) (hρ : 0 < ρ) (hρP : ρ ≤ P) (offU : ∀ s ∈ Set.Ioc p ↑H, (∀ (k : ℕ), s ∉ Set.Ioc (q0 + ↑k * P) (q0 + ↑k * P + ρ)) → R.target i s ≤ Toff) (attU : ∀ (k : ℕ), ∀ s ∈ Set.Ioc (q0 + ↑k * P) (q0 + ↑k * P + ρ), s ≤ ↑H → R.target i s ≤ Tatt) :
have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s (Sum.inr (Sum.inl i)); have tr := Toff + (Tatt - Toff) * (Real.exp (d.activity.ν * ρ) - 1) / (Real.exp (d.activity.ν * P) - 1); have y0 := referenceActivity d.activity.ν Toff (x p) (q0 - p); ∀ (k : ℕ), q0 + ↑k * P ≤ ↑H → x (q0 + ↑k * P) ≤ tr + (y0 - tr) * Real.exp (-d.activity.ν * P) ^ k

11.14 (SF1, ¶1): the round test with upper envelopes. If the member's complete target is at most T_off outside its attention pulses (q0+kP,q0+kP+ρ] and at most T_att≥T_off on them, 0<ρ≤P, every trough x(q0+kP) is at most the periodic trough plus the first trough's excess decayed by e^{-νkP}: a strict periodic-trough deficit, or a first-trough deficit, obstructs continued holding.

theorem MindFormal.graded_step {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) {t0 t1 Tst need : ℝ} (h0 : 0 ≤ t0) (h01 : t0 ≤ t1) (h1 : t1 ≤ ↑H) :
have ν := d.activity.ν; have x := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s (Sum.inr (Sum.inl i)); ((∀ s ∈ Set.Ioc t0 t1, Tst ≤ R.target i s) → x t0 < need → need < Tst → passageTime ν Tst (x t0) need ≤ t1 - t0 → need ≤ x t1) ∧ ((∀ s ∈ Set.Ioc t0 t1, R.target i s = Tst) → x t0 < need → need < Tst → (need ≤ x t1 ↔ passageTime ν Tst (x t0) need ≤ t1 - t0)) ∧ ((∀ s ∈ Set.Icc t0 t1, need ≤ x s) ↔ ∀ s ∈ Set.Icc t0 t1, need ≤ Real.exp (-ν * (s - t0)) * x t0 + ν * ∫ (u : ℝ) in t0..s, Real.exp (-ν * (s - u)) * R.target i u)

11.14 (SF1, SF6, graded route): along a verified continuing reference, a next member whose complete target is at least T>need over its step (t0,t1] reaches need by t1 when the step lasts at least SF6's passage time from its activity at t0, and with the target held at T over the step it reaches need by t1 exactly then (the necessary duration); and an already reached member is retained over [t0,t1] exactly when its SF1 convolution from t0 stays at or above need there.