MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.CoupledRecall

12.29's instantaneous identities, on the admitted mind's complete drift with every part moving: the structural bracket before gain, the balance of both writers, the gain's and the value rates' invariance of the balanced states, the write made during retrieval, the attended receiver's write and the pool shares, the stored value elements, and the gain's effect on the target's time derivative. Nothing here is tagged.

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

12.29 (RC9.1): the structural bracket 𝒥_ij=(1−β)𝒞_jℰ_i+βx_i(𝒞_j−W_ij) before gain, with the receiver's drive D(u_i,q_i,v_i) in its error.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def MindFormal.currentGain {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) :

    12.29 (RC9.1): the current write gain M(|δ|), read from the complete surprise.

    Equations
    Instances For
      def MindFormal.presenceLoad {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (d : MindDriftData (Fin N) n T Λ) (s : MindState (Fin N) n T Λ) :

      12.29 (RC9.5): the presence load 𝓛=Σ_j𝒞_jx_j.

      Equations
      Instances For
        theorem MindFormal.relation_drift_eq {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) :
        assembledDrift d u q s (Sum.inl (i, j)) = currentGain d u s * structuralBracket d u q s i j

        12.29 (RC9.1): every relation drift is the current gain times its structural bracket.

        theorem MindFormal.residual_of_settled_traces {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hr : ∀ (i : Fin N) (l : Λ), mindTrace s i l = mindActivity s i) (a : T) (b : Fin n) :
        assembledResidual d u s a b = d.reward u b - ∑ j : Fin N, d.presence (mindTrace s j) / d.τ a * mindValue s j b a

        12.29 (RC9.5): with all traces at their activities the presence rate vanishes, so the complete surprise is the delivery less the stored forecast, κ_b(u)−Π_b(τ)/τ.

        theorem MindFormal.row_balance_algebra {ι : Type u_3} [Fintype ι] {β x e : ℝ} (C W X : ι → ℝ) (hβ0 : 0 < β) (hβ1 : β < 1) (hx : 0 < x) (hL : 0 ≤ ∑ l : ι, C l * X l) :
        (∀ (j : ι), (1 - β) * C j * (e - ∑ l : ι, W l * X l) + β * x * (C j - W j) = 0) ↔ ∀ (j : ι), W j = ((1 - β) * e + β * x) / (β * x + (1 - β) * ∑ l : ι, C l * X l) * C j

        12.29 (RC9.5), the algebra: with 0<β<1, x>0 and 𝓛=Σ_l𝒞_lX_l ≥ 0, every bracket (1−β)𝒞_j(e−Σ_lW_lX_l)+βx(𝒞_j−W_j) vanishes exactly at W_j=[(1−β)e+βx]/[βx+(1−β)𝓛]·𝒞_j.

        theorem MindFormal.active_row_balance {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i : Fin N) (hβ0 : 0 < d.β) (hβ1 : d.β < 1) (hx : 0 < mindActivity s i) (hL : 0 ≤ presenceLoad d s) :
        (∀ (j : Fin N), structuralBracket d u q s i j = 0) ↔ ∀ (j : Fin N), mindRelation s i j = ((1 - d.β) * d.drive (u i) (q i) (mindValue s i) + d.β * mindActivity s i) / (d.β * mindActivity s i + (1 - d.β) * presenceLoad d s) * d.presence (mindTrace s j)

        12.29 (RC9.5): an active receiver's row balances both writers exactly at the one row W_ij=[(1−β)e_i+βx_i]/[βx_i+(1−β)𝓛]·𝒞_j, the kernel of the balance system being zero.

        theorem MindFormal.inactive_row_balance {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i : Fin N) (hβ1 : d.β < 1) (hx : mindActivity s i = 0) :
        (∀ (j : Fin N), structuralBracket d u q s i j = 0) ↔ (∀ (j : Fin N), d.presence (mindTrace s j) = 0) ∨ ∑ l : Fin N, mindRelation s i l * mindActivity s l = d.drive (u i) (q i) (mindValue s i)

        12.29 (RC9.5): an inactive receiver's row balances exactly when its prediction equals its drive, or every presence is zero (then II leaves the row free).

        12.29 (RC9.3): an admitted transform is nondecreasing: zero at and below zero, nonnegative, strictly increasing above.

        theorem MindFormal.pool_share_change {N : ℕ} {σ : ℝ} (J0 J1 : Fin N → ℝ) (j : Fin N) (hσ : 0 < σ) (hJ0 : ∀ (k : Fin N), 0 ≤ J0 k) (hJ1 : ∀ (k : Fin N), 0 ≤ J1 k) (hk : ∀ (k : Fin N), k ≠ j → J1 k = J0 k) :
        pool σ J1 = pool σ J0 + (J1 j - J0 j) ∧ J1 j / pool σ J1 - J0 j / pool σ J0 = (pool σ J0 - J0 j) * (J1 j - J0 j) / (pool σ J0 * (pool σ J0 + (J1 j - J0 j))) ∧ ∀ (i : Fin N), i ≠ j → J1 i / pool σ J1 - J0 i / pool σ J0 = -(J0 i * (J1 j - J0 j)) / (pool σ J0 * (pool σ J0 + (J1 j - J0 j)))

        12.29 (RC9.3): a pool with one transformed input raised by Δ: the pool rises by Δ, the raised share by (P−J_j)Δ/(P(P+Δ)) and every other share falls by J_iΔ/(P(P+Δ)).

        def MindFormal.negateValues {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) :
        MindState (Fin N) n T Λ

        12.29 (RC9.1): the state with every stored value element's sign reversed, the rest unchanged.

        Equations
        Instances For
          theorem MindFormal.residual_negateValues {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (a : T) (b : Fin n) :

          12.29 (RC9.1): with the same delivered vector, reversing every stored sign turns the surprise δ into 2κ−δ.

          theorem MindFormal.currentGain_pos {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) :

          12.29: the admitted gain is positive at the complete surprise.

          theorem MindFormal.drift_zero_iff {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) :
          assembledDrift I.drift u q s = 0 ↔ (∀ (i : Fin N), mindActivity s i = normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u q s) i) ∧ (∀ (i : Fin N) (l : Λ), mindTrace s i l = mindActivity s i) ∧ (∀ (i j : Fin N), structuralBracket I.drift u q s i j = 0) ∧ ∀ (i : Fin N) (b : Fin n) (a : T), I.presence (mindTrace s i) * I.response (fun (b' : Fin n) => I.drift.reward u b' - ∑ j : Fin N, I.presence (mindTrace s j) / I.τ a * mindValue s j b' a) b = 0

          12.29 (RC9.5): a state is a zero of the complete drift of I–III and D4 exactly when activities equal their targets, every trace equals its activity, every structural bracket vanishes, and every present content's response to the surprise κ−Π/τ vanishes. The gain and value rates are positive.

          def MindFormal.EquationInstance.withRates {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} (I : EquationInstance N n T Λ J) (M : (T → Fin n → ℝ) → ℝ) (η : Fin n → ℝ) :
          EquationInstance N n T Λ J

          12.29: the instance with its gain function and value rates replaced.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.drift_zero_withRates_iff {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (M : (T → Fin n → ℝ) → ℝ) (η : Fin n → ℝ) (hM : ∀ (z : T → Fin n → ℝ), 0 ≤ z → 0 < M z) (hη : ∀ (b : Fin n), 0 < η b) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) :

            12.29: replacing the gain function and value rates by positive ones leaves the zeros of the complete drift unchanged.

            theorem MindFormal.retrieval_write_sign {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i c : Fin N) :
            have lhs := I.β * mindActivity s i * (I.presence (mindTrace s c) - mindRelation s i c) + (1 - I.β) * I.presence (mindTrace s c) * I.drive (u i) (q i) (mindValue s i); have rhs := (1 - I.β) * I.presence (mindTrace s c) * ∑ l : Fin N, mindRelation s i l * mindActivity s l; (0 < assembledDrift I.drift u q s (Sum.inl (i, c)) ↔ rhs < lhs) ∧ (assembledDrift I.drift u q s (Sum.inl (i, c)) = 0 ↔ lhs = rhs) ∧ (assembledDrift I.drift u q s (Sum.inl (i, c)) < 0 ↔ lhs < rhs)

            12.29 (RC9.4): a link from the cue strengthens, holds or weakens in reference drift exactly as βx_i(𝒞_cue−W_i,cue)+(1−β)𝒞_cue e_i exceeds, equals or falls below (1−β)𝒞_cue Σ_ℓW_iℓx_ℓ.

            theorem MindFormal.attention_pulse_change {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (j : Fin N) (hu : 0 ≤ u j) (hq : q j = 0) :
            have q' := Function.update q j 1; have J0 := assembledInputs I.drift u q s; have J1 := assembledInputs I.drift u q' s; have P := pool I.activity.σ J0; have Δψ := J1 j - J0 j; have Δe := I.drive (u j) 1 (mindValue s j) - I.drive (u j) 0 (mindValue s j); 0 < Δe ∧ 0 ≤ Δψ ∧ (∀ (k : Fin N), k ≠ j → J1 k = J0 k) ∧ pool I.activity.σ J1 = P + Δψ ∧ J1 j / pool I.activity.σ J1 - J0 j / P = (P - J0 j) * Δψ / (P * (P + Δψ)) ∧ (∀ (i : Fin N), i ≠ j → J1 i / pool I.activity.σ J1 - J0 i / P = -(J0 i * Δψ) / (P * (P + Δψ))) ∧ normalizedTarget I.activity.σ I.activity.g J0 j ≤ normalizedTarget I.activity.σ I.activity.g J1 j ∧ (∀ (i : Fin N), i ≠ j → normalizedTarget I.activity.σ I.activity.g J1 i ≤ normalizedTarget I.activity.σ I.activity.g J0 i) ∧ (∀ (h : Fin N), assembledDrift I.drift u q' s (Sum.inl (j, h)) - assembledDrift I.drift u q s (Sum.inl (j, h)) = currentGain I.drift u s * (1 - I.β) * I.presence (mindTrace s h) * Δe) ∧ ∀ (i h : Fin N), i ≠ j → assembledDrift I.drift u q' s (Sum.inl (i, h)) = assembledDrift I.drift u q s (Sum.inl (i, h))

            12.29 (RC9.3): the native pulse reaching content j at the same state and input: its drive, transformed input, the pool, every share and target, and the incoming writes of every row.

            Right derivatives at a matched state (RC9.2) #

            theorem MindFormal.hasDerivWithinAt_mul_of_zero {f g : ℝ → ℝ} {f' : ℝ} (hf : HasDerivWithinAt f f' (Set.Ici 0) 0) (hf0 : f 0 = 0) (hg : ContinuousWithinAt g (Set.Ici 0) 0) :
            HasDerivWithinAt (fun (t : ℝ) => f t * g t) (f' * g 0) (Set.Ici 0) 0

            12.29 (RC9.2): if f(0)=0 has right derivative f' at 0 and g is right-continuous there, fg has right derivative f'g(0).

            theorem MindFormal.hasDerivWithinAt_max_zero {f : ℝ → ℝ} {a : ℝ} (hf : HasDerivWithinAt f a (Set.Ici 0) 0) (hf0 : f 0 = 0) :
            HasDerivWithinAt (fun (t : ℝ) => max (f t) 0) (max a 0) (Set.Ici 0) 0

            12.29 (RC9.2): the positive part at a zero with right derivative a has right derivative [a]₊.

            theorem MindFormal.lipschitzOnBalls_diff_hasDerivWithinAt {E : Type u_4} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {S : Set E} (hf : LipschitzOnBalls f S) {a b : ℝ → E} (ha : ContinuousWithinAt a (Set.Ici 0) 0) (hab0 : b 0 = a 0) (hd : HasDerivWithinAt (fun (t : ℝ) => b t - a t) 0 (Set.Ici 0) 0) (haS : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), a t ∈ S) (hbS : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), b t ∈ S) :
            HasDerivWithinAt (fun (t : ℝ) => f (b t) - f (a t)) 0 (Set.Ici 0) 0

            12.29 (RC9.2): a map Lipschitz on the bounded parts of S, read along two right-continuous paths in S that start together and whose difference has right derivative 0, changes by o(t).

            theorem MindFormal.lipschitzOnBalls_continuousWithinAt {E : Type u_4} [NormedAddCommGroup E] {f : E → ℝ} {S : Set E} (hf : LipschitzOnBalls f S) {a : ℝ → E} (ha : ContinuousWithinAt a (Set.Ici 0) 0) (haS : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), a t ∈ S) (ha0 : a 0 ∈ S) :
            ContinuousWithinAt (fun (t : ℝ) => f (a t)) (Set.Ici 0) 0

            12.29 (RC9.2): a map Lipschitz on the bounded parts of S, read along a right-continuous path that stays in S, is right-continuous.

            def MindFormal.rawAlong {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} (I : EquationInstance N n T Λ J) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (s : ℝ → MindState (Fin N) n T Λ) (t : ℝ) (j : Fin N) :

            12.29 (RC9.2): content j's raw input along a path s with input path u and fixed mode q.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def MindFormal.inputBracket {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (j : Fin N) :

              12.29 (RC9.2): the gain coefficient of content j's raw input, 𝒥^I_j=Σ_l𝒥_jlx_l.

              Equations
              Instances For
                theorem MindFormal.gain_raw_input {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (M2 : (T → Fin n → ℝ) → ℝ) (s1 s2 : ℝ → MindState (Fin N) n T Λ) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (hu : ContinuousWithinAt u (Set.Ici 0) 0) (hu0 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), 0 ≤ u t) (hstart : s2 0 = s1 0) (hd1 : ∀ (c : CoordinateIndex (Fin N) n T Λ), HasDerivWithinAt (fun (t : ℝ) => s1 t c) (assembledDrift I.drift (u 0) q (s1 0) c) (Set.Ici 0) 0) (hd2 : ∀ (c : CoordinateIndex (Fin N) n T Λ), HasDerivWithinAt (fun (t : ℝ) => s2 t c) (assembledDrift (I.withRates M2 I.η).drift (u 0) q (s1 0) c) (Set.Ici 0) 0) (htr1 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s1 t) j) (htr2 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s2 t) j) (j : Fin N) :
                HasDerivWithinAt (fun (t : ℝ) => rawAlong I u q s2 t j - rawAlong I u q s1 t j) (((M2 fun (a : T) (b : Fin n) => |assembledResidual I.drift (u 0) (s1 0) a b|) - currentGain I.drift (u 0) (s1 0)) * inputBracket I.drift (u 0) q (s1 0) j) (Set.Ici 0) 0

                12.29 (RC9.2): two reference continuations from one matched state with the same input path and native mode, the second with only its gain function changed to M₂: each coordinate's right derivative at 0 is its complete drift there. Then every raw input's difference has right derivative ΔM·𝒥^I_j, ΔM=M₂(|δ|)−M(|δ|): the drives, residues, activities and traces move alike to first order.

                theorem MindFormal.rawAlong_continuousWithinAt {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (s : ℝ → MindState (Fin N) n T Λ) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (hu : ContinuousWithinAt u (Set.Ici 0) 0) (hu0 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), 0 ≤ u t) (hs : ∀ (c : CoordinateIndex (Fin N) n T Λ), ContinuousWithinAt (fun (t : ℝ) => s t c) (Set.Ici 0) 0) (htr : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s t) j) (j : Fin N) :
                ContinuousWithinAt (fun (t : ℝ) => rawAlong I u q s t j) (Set.Ici 0) 0

                12.29 (RC9.2): along a path whose coordinates have right derivatives at 0, with the input right-continuous and nonnegative and the traces nonnegative, content j's raw input is right-continuous at 0.

                noncomputable def MindFormal.gainK {N : ℕ} (σ : ℝ) (R JI : Fin N → ℝ) (i : Fin N) :

                12.29 (RC9.2): the gain coefficient of the target argument, K_i=(G_i𝒥^I_i−S_iΣ_{j≠i,𝓘_j>0}𝒥^I_j)/(S_i+G_i)², from the raw inputs 𝓘 and the gain coefficients 𝒥^I.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  noncomputable def MindFormal.targetArg {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} (I : EquationInstance N n T Λ J) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (s : ℝ → MindState (Fin N) n T Λ) (t : ℝ) (i : Fin N) :

                  12.29 (RC9.2): the target argument Z=ψ(𝓘_i)/𝒫−g along a path.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    theorem MindFormal.gain_target_argument {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (M2 : (T → Fin n → ℝ) → ℝ) (s1 s2 : ℝ → MindState (Fin N) n T Λ) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (hu : ContinuousWithinAt u (Set.Ici 0) 0) (hu0 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), 0 ≤ u t) (hstart : s2 0 = s1 0) (hd1 : ∀ (c : CoordinateIndex (Fin N) n T Λ), HasDerivWithinAt (fun (t : ℝ) => s1 t c) (assembledDrift I.drift (u 0) q (s1 0) c) (Set.Ici 0) 0) (hd2 : ∀ (c : CoordinateIndex (Fin N) n T Λ), HasDerivWithinAt (fun (t : ℝ) => s2 t c) (assembledDrift (I.withRates M2 I.η).drift (u 0) q (s1 0) c) (Set.Ici 0) 0) (htr1 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s1 t) j) (htr2 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s2 t) j) (hψ : ∀ (z : ℝ), 0 < z → I.transform.ψ z = z) (i : Fin N) (hne : ∀ (j : Fin N), rawAlong I u q s1 0 j ≠ 0) (hSi : 0 < rawAlong I u q s1 0 i) :
                    HasDerivWithinAt (fun (t : ℝ) => targetArg I u q s2 t i - targetArg I u q s1 t i) (((M2 fun (a : T) (b : Fin n) => |assembledResidual I.drift (u 0) (s1 0) a b|) - currentGain I.drift (u 0) (s1 0)) * gainK I.activity.σ (rawAlong I u q s1 0) (inputBracket I.drift (u 0) q (s1 0)) i) (Set.Ici 0) 0

                    12.29 (RC9.2): the gain's effect on the target argument. For the two continuations of gain_raw_input, on unit-slope transform branches (every raw input off the kink, the target's positive): the target arguments' difference has right derivative ΔM·K_i, K_i=(G_i𝒥^I_i−S_iΣ_{j≠i,𝓘_j>0}𝒥^I_j)/(S_i+G_i)², S_i=𝓘_i, G_i=σ+Σ_{j≠i}[𝓘_j]₊ (gainK).

                    theorem MindFormal.targetArg_continuousWithinAt {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (s : ℝ → MindState (Fin N) n T Λ) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (hu : ContinuousWithinAt u (Set.Ici 0) 0) (hu0 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), 0 ≤ u t) (hs : ∀ (c : CoordinateIndex (Fin N) n T Λ), ContinuousWithinAt (fun (t : ℝ) => s t c) (Set.Ici 0) 0) (htr : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s t) j) (i : Fin N) :
                    ContinuousWithinAt (fun (t : ℝ) => targetArg I u q s t i) (Set.Ici 0) 0

                    12.29 (RC9.2): the target argument along a path is right-continuous.

                    theorem MindFormal.gain_target {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) (M2 : (T → Fin n → ℝ) → ℝ) (s1 s2 : ℝ → MindState (Fin N) n T Λ) (u : ℝ → Fin N → ℝ) (q : Fin N → ℝ) (hq : ∀ (j : Fin N), q j ∈ {0, 1}) (hu : ContinuousWithinAt u (Set.Ici 0) 0) (hu0 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), 0 ≤ u t) (hstart : s2 0 = s1 0) (hd1 : ∀ (c : CoordinateIndex (Fin N) n T Λ), HasDerivWithinAt (fun (t : ℝ) => s1 t c) (assembledDrift I.drift (u 0) q (s1 0) c) (Set.Ici 0) 0) (hd2 : ∀ (c : CoordinateIndex (Fin N) n T Λ), HasDerivWithinAt (fun (t : ℝ) => s2 t c) (assembledDrift (I.withRates M2 I.η).drift (u 0) q (s1 0) c) (Set.Ici 0) 0) (htr1 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s1 t) j) (htr2 : ∀ᶠ (t : ℝ) in nhdsWithin 0 (Set.Ici 0), ∀ (j : Fin N), 0 ≤ mindTrace (s2 t) j) (hψ : ∀ (z : ℝ), 0 < z → I.transform.ψ z = z) (i : Fin N) (hne : ∀ (j : Fin N), rawAlong I u q s1 0 j ≠ 0) (hSi : 0 < rawAlong I u q s1 0 i) :
                    have ΔMK := ((M2 fun (a : T) (b : Fin n) => |assembledResidual I.drift (u 0) (s1 0) a b|) - currentGain I.drift (u 0) (s1 0)) * gainK I.activity.σ (rawAlong I u q s1 0) (inputBracket I.drift (u 0) q (s1 0)) i; have Z := targetArg I u q s1 0 i; (0 < Z → HasDerivWithinAt (fun (t : ℝ) => max (targetArg I u q s2 t i) 0 - max (targetArg I u q s1 t i) 0) ΔMK (Set.Ici 0) 0) ∧ (Z < 0 → HasDerivWithinAt (fun (t : ℝ) => max (targetArg I u q s2 t i) 0 - max (targetArg I u q s1 t i) 0) 0 (Set.Ici 0) 0) ∧ (Z = 0 → ∀ (ż : ℝ), HasDerivWithinAt (fun (t : ℝ) => targetArg I u q s1 t i) ż (Set.Ici 0) 0 → HasDerivWithinAt (fun (t : ℝ) => max (targetArg I u q s2 t i) 0 - max (targetArg I u q s1 t i) 0) (max (ż + ΔMK) 0 - max ż 0) (Set.Ici 0) 0)

                    12.29 (RC9.2): the gain's effect on the targets 𝒯_k=[Z_k]₊ of the two continuations of gain_target_argument: with Z the common target argument at the matched state, the targets' difference has right derivative ΔM·K_i when Z>0 and 0 when Z<0 (both targets stay zero); at the boundary Z=0, if the first continuation's argument has right derivative ż, the difference has right derivative [ż+ΔM·K_i]₊−[ż]₊, which is generally not [ΔM·K_i]₊.

                    def MindFormal.bracketAt {N : ℕ} (β : ℝ) (x C e : Fin N → ℝ) (W : Fin N → Fin N → ℝ) (j l : Fin N) :

                    12.29 (RC9.2), the examples' numbers: II's bracket at current activities x, presences 𝒞, drives e and relations W, (1−β)𝒞_l(e_j−Σ_mW_jmx_m)+βx_j(𝒞_l−W_jl).

                    Equations
                    Instances For
                      theorem MindFormal.gain_example_negative :
                      have x := ![1 / 4, 0, 1 / 2]; have e := ![2, 0, 3]; have W := fun (a b : Fin 3) => if a = 1 ∧ b = 0 then 4 else 0; have R := fun (j : Fin 3) => e j + ∑ l : Fin 3, W j l * x l; have JI := fun (j : Fin 3) => ∑ l : Fin 3, bracketAt (1 / 2) x x e W j l * x l; R = ![2, 1, 3] ∧ R 1 / (1 + ∑ j : Fin 3, R j) - 1 / 10 = 3 / 70 ∧ gainK 1 R JI 1 = -235 / 6272 ∧ R 1 / (1 + ∑ j : Fin 3, R j) - 1 / 5 = -2 / 35

                      12.29 (RC9.2): the first example: σ=1, β=1/2, activities and presences (1/4,0,1/2), drives (2,0,3), the target the middle content with only its link from the first, 4; raw inputs (2,1,3): its target argument is 1/7−1/10=3/70>0 and its gain coefficient −235/6272<0; at g=1/5 the argument is −2/35<0.

                      theorem MindFormal.gain_example_positive :
                      have x := ![1 / 4, 1 / 10, 1 / 2]; have e := ![2, 2, 3]; have W := fun (x x_1 : Fin 3) => 0; have R := fun (j : Fin 3) => e j + ∑ l : Fin 3, W j l * x l; have JI := fun (j : Fin 3) => ∑ l : Fin 3, bracketAt (1 / 2) x x e W j l * x l; R = ![2, 2, 3] ∧ R 1 / (1 + ∑ j : Fin 3, R j) - 1 / 10 = 3 / 20 ∧ gainK 1 R JI 1 = 1419 / 512000

                      12.29 (RC9.2): the second example: zero rows, activities and presences (1/4,1/10,1/2), drives (2,2,3), σ=1, β=1/2, g=1/10: the target argument is 3/20>0 and the gain coefficient 1419/512000>0, so the gain's local effect on target activity takes either sign.

                      theorem MindFormal.gain_write_change {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] {J : Type u_3} (I : EquationInstance N n T Λ J) (M2 : (T → Fin n → ℝ) → ℝ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) :
                      (∀ (i j : Fin N), assembledDrift (I.withRates M2 I.η).drift u q s (Sum.inl (i, j)) - assembledDrift I.drift u q s (Sum.inl (i, j)) = ((M2 fun (a : T) (b : Fin n) => |assembledResidual I.drift u s a b|) - currentGain I.drift u s) * structuralBracket I.drift u q s i j) ∧ ∀ (k : Fin N ⊕ Fin N × Fin n × T ⊕ Fin N × Λ), assembledDrift (I.withRates M2 I.η).drift u q s (Sum.inr k) = assembledDrift I.drift u q s (Sum.inr k)

                      12.29 (RC9.1): changing only the gain function changes each relation's write by ΔM·𝒥_ij at the same bracket and leaves every activity, value and trace drift.