MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.A705SharedDescriptions.Drift

19.29 part 8 on the complete assembled drift of an admitted instance: the II row balance and its degeneracies, the full continuous balance with the value condition, the matched-state increments of MT1.22, and the local directions of gain, learning rate, drive, focus and readouts.

theorem MindFormal.A705SharedDescriptions.relation_coordinate {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)) = A641Practice.fullRelationBracket d u q s i j * d.gain fun (a : T) (b : Fin n) => |assembledResidual d u s a b|

The relation coordinate is the complete bracket times the common gain.

theorem MindFormal.A705SharedDescriptions.bracket_row {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) :
A641Practice.fullRelationBracket d u q s i j = rowBracket d.β (d.drive (u i) (q i) (mindValue s i)) (mindActivity s i) (fun (j : Fin N) => d.presence (mindTrace s j)) (mindActivity s) (mindRelation s i) j
theorem MindFormal.A705SharedDescriptions.gain_pos {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (hI : InstanceAdmission I) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) :
0 < I.drift.gain fun (a : T) (b : Fin n) => |assembledResidual I.drift u s a b|

The gain is positive at every argument of an admitted instance.

theorem MindFormal.A705SharedDescriptions.drift_row_balance {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (hI : InstanceAdmission I) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hs : PhysicalMindState s) (i : Fin N) :
(0 < mindActivity s i → ((∀ (j : Fin N), assembledDrift I.drift u q s (Sum.inl (i, j)) = 0) ↔ ∀ (j : Fin N), mindRelation s i j = balancedEntry I.β (I.drive (u i) (q i) (mindValue s i)) (mindActivity s i) (I.presence (mindTrace s j)) (∑ l : Fin N, I.presence (mindTrace s l) * mindActivity s l))) ∧ (mindActivity s i = 0 → (∃ (j : Fin N), I.presence (mindTrace s j) ≠ 0) → ((∀ (j : Fin N), assembledDrift I.drift u q s (Sum.inl (i, j)) = 0) ↔ ∑ l : Fin N, mindRelation s i l * mindActivity s l = I.drive (u i) (q i) (mindValue s i))) ∧ (mindActivity s i = 0 → (∀ (j : Fin N), I.presence (mindTrace s j) = 0) → ∀ (j : Fin N), assembledDrift I.drift u q s (Sum.inl (i, j)) = 0)

MT1.20 on the complete drift of an admitted instance at a physical state: at positive receiver activity the row's drift vanishes exactly at the balanced entries; at zero activity, with some positive presence, exactly when the prediction meets the drive; with every presence zero, always.

theorem MindFormal.A705SharedDescriptions.residual_at_balance {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) * mindValue s j b a) / d.τ a

At balanced traces the presence rate vanishes and the value surprise is κ(u_B) - Π(τ)/τ.

theorem MindFormal.A705SharedDescriptions.value_balance {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (hI : InstanceAdmission I) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hr : ∀ (i : Fin N) (l : Λ), mindTrace s i l = mindActivity s i) (hk : ∀ (z : Fin n → ℝ), I.response z = 0 → z = 0) (hpos : ∃ (i : Fin N), I.presence (mindTrace s i) ≠ 0) :
(∀ (i : Fin N) (b : Fin n) (a : T), A641Practice.fullValueLesson I.drift u s i b a = 0) ↔ ∀ (a : T) (b : Fin n), ∑ j : Fin N, I.presence (mindTrace s j) * mindValue s j b a = I.τ a * I.drift.reward u b

MT1.21's value condition: with some positive presence and a response whose only zero is zero, the value balance holds exactly when the value in view equals τ κ(u_B) element by element.

def MindFormal.A705SharedDescriptions.valueShift {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (c : Fin N → ℝ) (i i' : Fin N) (t : ℝ) :
MindState (Fin N) n T Λ

The value condition does not fix each content's value: shifting value between two contents in proportion to the other's presence keeps the value in view, hence the balanced surprise.

Equations
Instances For
    theorem MindFormal.A705SharedDescriptions.valueShift_view {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (c : Fin N → ℝ) {i i' : Fin N} (hii : i ≠ i') (t : ℝ) (b : Fin n) (a : T) :
    ∑ j : Fin N, c j * mindValue (valueShift s c i i' t) j b a = ∑ j : Fin N, c j * mindValue s j b a
    theorem MindFormal.A705SharedDescriptions.valueShift_other {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (c : Fin N → ℝ) (i i' : Fin N) (t : ℝ) :
    (∀ (k : Fin N), mindActivity (valueShift s c i i' t) k = mindActivity s k) ∧ (∀ (k : Fin N) (l : Λ), mindTrace (valueShift s c i i' t) k l = mindTrace s k l) ∧ ∀ (k l : Fin N), mindRelation (valueShift s c i i' t) k l = mindRelation s k l
    theorem MindFormal.A705SharedDescriptions.valueShift_ne {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (c : Fin N → ℝ) {i i' : Fin N} (hc : c i' ≠ 0) {t : ℝ} (ht : t ≠ 0) (b : Fin n) (a : T) :
    mindValue (valueShift s c i i' t) i b a ≠ mindValue s i b a
    theorem MindFormal.A705SharedDescriptions.relation_increment {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u₀ q₀ u₁ q₁ : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) :
    assembledDrift d u₁ q₁ s (Sum.inl (i, j)) - assembledDrift d u₀ q₀ s (Sum.inl (i, j)) = ((d.gain fun (a : T) (b : Fin n) => |assembledResidual d u₁ s a b|) - d.gain fun (a : T) (b : Fin n) => |assembledResidual d u₀ s a b|) * A641Practice.fullRelationBracket d u₀ q₀ s i j + (d.gain fun (a : T) (b : Fin n) => |assembledResidual d u₁ s a b|) * ((1 - d.β) * d.presence (mindTrace s j) * (d.drive (u₁ i) (q₁ i) (mindValue s i) - d.drive (u₀ i) (q₀ i) (mindValue s i)))

    MT1.22, relation part: at a matched complete state, a change of input or attention (hence drive and delivery) changes the relation drift by the gain change times the old complete bracket plus the new gain times (1-β) C_j Δe_i.

    theorem MindFormal.A705SharedDescriptions.residual_increment {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u₀ u₁ : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (a : T) :
    assembledResidual d u₁ s a = assembledResidual d u₀ s a + (d.reward u₁ - d.reward u₀)

    At a matched complete state a change of input moves the value surprise by exactly the delivery change.

    theorem MindFormal.A705SharedDescriptions.coordwise_mono {n : ℕ} (f : (Fin n → ℝ) → ℝ) (δ Δ : Fin n → ℝ) (S : Finset (Fin n)) (hf : ∀ j ∈ S, ∀ (v : Fin n → ℝ), Monotone fun (r : ℝ) => f (Function.update v j r)) (hΔ : ∀ j ∈ S, 0 ≤ Δ j) :
    f δ ≤ f fun (k : Fin n) => δ k + if k ∈ S then Δ k else 0

    Coordinatewise monotone moves: a function nondecreasing in every changed coordinate does not decrease under a nonnegative change of those coordinates.

    theorem MindFormal.A705SharedDescriptions.value_increment {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (hI : InstanceAdmission I) (u₀ q₀ u₁ q₁ : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (hs : PhysicalMindState s) (i : Fin N) (b : Fin n) (a : T) :
    assembledDrift I.drift u₁ q₁ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - assembledDrift I.drift u₀ q₀ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) = I.presence (mindTrace s i) * I.η b * (I.response (assembledResidual I.drift u₀ s a + (I.drift.reward u₁ - I.drift.reward u₀)) b - I.response (assembledResidual I.drift u₀ s a) b) ∧ ((∀ (j : Fin n), 0 ≤ I.drift.reward u₁ j - I.drift.reward u₀ j) → (∀ (j : Fin n), I.drift.reward u₁ j ≠ I.drift.reward u₀ j → ∀ (v : Fin n → ℝ), Monotone fun (r : ℝ) => I.response (Function.update v j r) b) → 0 ≤ assembledDrift I.drift u₁ q₁ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - assembledDrift I.drift u₀ q₀ s (Sum.inr (Sum.inr (Sum.inl (i, b, a))))) ∧ ((∀ (j : Fin n), 0 ≤ I.drift.reward u₁ j - I.drift.reward u₀ j) → (∀ (j : Fin n), I.drift.reward u₁ j ≠ I.drift.reward u₀ j → ∀ (v : Fin n → ℝ), Antitone fun (r : ℝ) => I.response (Function.update v j r) b) → assembledDrift I.drift u₁ q₁ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - assembledDrift I.drift u₀ q₀ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) ≤ 0)

    MT1.22, value part, with its sign from k's declared directions: the matched-state value-drift change is η_b C_i [k_b(δ⁰+Δκ) - k_b(δ⁰)]; a coordinatewise larger delivery gives a nonnegative change when k_b is nondecreasing in every changed argument, and a nonpositive one when it is nonincreasing in every changed argument.

    theorem MindFormal.A705SharedDescriptions.gain_magnifies {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (hI : InstanceAdmission I) (u q u' q' : Fin N → ℝ) (s s' : MindState (Fin N) n T Λ) (i j : Fin N) (hF : A641Practice.fullRelationBracket I.drift u' q' s' i j = A641Practice.fullRelationBracket I.drift u q s i j) (hδ : ∀ (a : T) (b : Fin n), |assembledResidual I.drift u s a b| ≤ |assembledResidual I.drift u' s' a b|) :
    (0 < I.drift.gain fun (a : T) (b : Fin n) => |assembledResidual I.drift u s a b|) ∧ ((I.drift.gain fun (a : T) (b : Fin n) => |assembledResidual I.drift u s a b|) ≤ I.drift.gain fun (a : T) (b : Fin n) => |assembledResidual I.drift u' s' a b|) ∧ (0 ≤ A641Practice.fullRelationBracket I.drift u q s i j → assembledDrift I.drift u q s (Sum.inl (i, j)) ≤ assembledDrift I.drift u' q' s' (Sum.inl (i, j))) ∧ (A641Practice.fullRelationBracket I.drift u q s i j ≤ 0 → assembledDrift I.drift u' q' s' (Sum.inl (i, j)) ≤ assembledDrift I.drift u q s (Sum.inl (i, j))) ∧ |assembledDrift I.drift u q s (Sum.inl (i, j))| ≤ |assembledDrift I.drift u' q' s' (Sum.inl (i, j))|

    Larger coordinatewise absolute surprise weakly raises the positive gain and magnifies the current signed complete bracket: a positive bracket's write grows, a negative one's falls further.

    theorem MindFormal.A705SharedDescriptions.learning_rate_scales {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 Λ) (η' : Fin n → ℝ) (hη : ∀ (b : Fin n), 0 < d.η b) :
    (∀ (i : Fin N) (b : Fin n) (a : T), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := η', τ := d.τ, rate := d.rate, drive := d.drive, residue := d.residue, presence := d.presence, presenceDerivative := d.presenceDerivative, reward := d.reward, response := d.response, gain := d.gain } u q s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) = η' b / d.η b * assembledDrift d u q s (Sum.inr (Sum.inr (Sum.inl (i, b, a))))) ∧ (∀ (i j : Fin N), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := η', τ := d.τ, rate := d.rate, drive := d.drive, residue := d.residue, presence := d.presence, presenceDerivative := d.presenceDerivative, reward := d.reward, response := d.response, gain := d.gain } u q s (Sum.inl (i, j)) = assembledDrift d u q s (Sum.inl (i, j))) ∧ (∀ (i : Fin N), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := η', τ := d.τ, rate := d.rate, drive := d.drive, residue := d.residue, presence := d.presence, presenceDerivative := d.presenceDerivative, reward := d.reward, response := d.response, gain := d.gain } u q s (Sum.inr (Sum.inl i)) = assembledDrift d u q s (Sum.inr (Sum.inl i))) ∧ ∀ (i : Fin N) (l : Λ), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := η', τ := d.τ, rate := d.rate, drive := d.drive, residue := d.residue, presence := d.presence, presenceDerivative := d.presenceDerivative, reward := d.reward, response := d.response, gain := d.gain } u q s (Sum.inr (Sum.inr (Sum.inr (i, l)))) = assembledDrift d u q s (Sum.inr (Sum.inr (Sum.inr (i, l))))

    Increasing one value-learning rate scales that element's current signed write by the rate ratio; every other coordinate of the drift is unchanged.

    theorem MindFormal.A705SharedDescriptions.focus_inputs {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] [Fintype J] (I : EquationInstance N n T Λ J) (hI : InstanceAdmission I) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i : Fin N) (hu : 0 ≤ u i) (hq : q i = 0) :
    (∀ (j : Fin N), j ≠ i → assembledInputs I.drift u (Function.update q i 1) s j = assembledInputs I.drift u q s j) ∧ assembledInputs I.drift u q s i ≤ assembledInputs I.drift u (Function.update q i 1) s i ∧ (assembledInputs I.drift u q s i < assembledInputs I.drift u (Function.update q i 1) s i ↔ 0 < rawInput (fun (j : Fin N) => I.drive (u j) (Function.update q i 1 j) (mindValue s j)) (fun (j : Fin N) => I.residue (mindTrace s j)) (mindRelation s) (mindActivity s) i)

    The transformed inputs after an immediate focus increase on i: only i's input changes, by a nonnegative amount, strictly exactly on its active branch (positive attended raw input).