MindFormal v1.0.0One Mind

MindFormal.Run.A640Settings.TraceTangent

theorem MindFormal.A640Settings.positive_clip_derivative {f : ℝ → ℝ} {a : ℝ} (hf : HasDerivAt f a 0) (hp : 0 < f 0) :
HasDerivAt (fun (t : ℝ) => max (f t) 0) a 0

Positive branches are a local consequence of their strict entering margin and continuity; no branch agreement along the path is assumed.

def MindFormal.A640Settings.rawStateInput {C : Type u_1} {T : Type u_2} {n : ℕ} [Fintype C] (d : MindDriftData C n T Unit) (u q : C → ℝ) (s : MindState C n T Unit) (i : C) :
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.A640Settings.trace_nontrace_velocities {C : Type u_1} {T : Type u_2} {n : ℕ} [Fintype C] (d : MindDriftData C n T Unit) (rate : ℝ) (u q : C → ℝ) (s : MindState C n T Unit) (hv : ∀ (i : C) (b : Fin n) (a : T), mindValue s i b a = 0) :
    (∀ (i j : C), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := d.η, τ := d.τ, rate := fun (x : Unit) => 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 : C), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := d.η, τ := d.τ, rate := fun (x : Unit) => 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 : C) (b : Fin n) (a : T), assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := d.η, τ := d.τ, rate := fun (x : Unit) => 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)))) = assembledDrift d u q s (Sum.inr (Sum.inr (Sum.inl (i, b, a))))

    At a zero entering bank only D4's first velocity changes. In particular all complete II and III first velocities are equal, including both II writers and the shared gain.

    theorem MindFormal.A640Settings.drive_chain_zero_bank {C : Type u_1} {T : Type u_2} {n : ℕ} [Finite T] (d : MindDriftData C n T Unit) (u q : ℝ → C → ℝ) (s : ℝ → MindState C n T Unit) (v : MindState C n T Unit) (u' q' : C → ℝ) (hs : HasDerivAt s v 0) (hu : HasDerivAt u u' 0) (hq : HasDerivAt q q' 0) (i : C) (hb : mindValue (s 0) i = 0) (L : ℝ × ℝ →L[ℝ] ℝ) (hD : HasFDerivAt (fun (z : (ℝ × ℝ) × (Fin n → T → ℝ)) => d.drive z.1.1 z.1.2 z.2) (L ∘SL ContinuousLinearMap.fst ℝ (ℝ × ℝ) (Fin n → T → ℝ)) ((u 0 i, q 0 i), 0)) :
    HasDerivAt (fun (t : ℝ) => d.drive (u t i) (q t i) (mindValue (s t) i)) (L (u' i, q' i)) 0

    Primitive drive chain rule with its value derivative zero. The complete learned bank still has its full supplied ODE velocity.

    theorem MindFormal.A640Settings.trace_raw_tangents {C : Type u_1} {T : Type u_2} {n : ℕ} [Fintype C] [Finite T] (d : MindDriftData C n T Unit) (rate ζ : ℝ) (u q : ℝ → C → ℝ) (u' q' : C → ℝ) (hi lo : ℝ → MindState C n T Unit) (h0 : hi 0 = lo 0) (hv : ∀ (j : C) (b : Fin n) (a : T), mindValue (lo 0) j b a = 0) (hhi : HasDerivAt hi (assembledDrift { activity := d.activity, transform := d.transform, β := d.β, η := d.η, τ := d.τ, rate := fun (x : Unit) => rate, drive := d.drive, residue := d.residue, presence := d.presence, presenceDerivative := d.presenceDerivative, reward := d.reward, response := d.response, gain := d.gain } (u 0) (q 0) (hi 0)) 0) (hlo : HasDerivAt lo (assembledDrift d (u 0) (q 0) (lo 0)) 0) (hu : HasDerivAt u u' 0) (hq : HasDerivAt q q' 0) (hR : d.residue = fun (r : Unit → ℝ) => ζ * r ()) (L : C → ℝ × ℝ →L[ℝ] ℝ) (hD : ∀ (i : C), HasFDerivAt (fun (z : (ℝ × ℝ) × (Fin n → T → ℝ)) => d.drive z.1.1 z.1.2 z.2) (L i ∘SL ContinuousLinearMap.fst ℝ (ℝ × ℝ) (Fin n → T → ℝ)) ((u 0 i, q 0 i), 0)) :
    ∃ (A : C → ℝ) (B : C → ℝ), (∀ (j : C), HasDerivAt (fun (t : ℝ) => rawStateInput d (u t) (q t) (hi t) j) (A j) 0) ∧ (∀ (j : C), HasDerivAt (fun (t : ℝ) => rawStateInput d (u t) (q t) (lo t) j) (B j) 0) ∧ ∀ (j : C), A j - B j = ζ * (rate - d.rate ()) * (mindActivity (lo 0) j - mindTrace (lo 0) j ())

    Raw-input tangents are derived by differentiating every predictor, activity, value-dependent drive and residue. The only surviving paired term is the changed D4 velocity.