MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch04.MovingDerivatives

noncomputable def MindFormal.examinationActivitySection {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (i : Fin N) (x : ℝ) :
MindState (Fin N) n T Λ

The native activity coordinate section with every other coordinate held only for the partial derivative. This is not a trajectory or a state hold.

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

    D4's full activity-to-presence-rate derivative.

    Equations
    Instances For
      theorem MindFormal.examinationActivitySection_at {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (i : Fin N) :
      theorem MindFormal.examinationActivitySection_presence_rate {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (s : MindState (Fin N) n T Λ) (i j : Fin N) (x : ℝ) :
      theorem MindFormal.examinationActivitySection_residual {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 Λ) (i : Fin N) (x : ℝ) (a : T) (b : Fin n) :

      III's signed residual is affine in this one native activity coordinate; all horizons, value elements and the full D4 derivative are retained.

      theorem MindFormal.examination_gain_activity_derivative {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Finite T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i : Fin N) (dM : (T → Fin n → ℝ) →L[ℝ] ℝ) (hM : HasFDerivAt d.gain dM fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) (h_surprise : ∀ (a : T) (b : Fin n), assembledResidual d u s a b ≠ 0) :
      HasDerivAt (fun (x : ℝ) => d.gain fun (a : T) (b : Fin n) => |assembledResidual d u (examinationActivitySection s i x) a b|) (dM fun (a : T) (b : Fin n) => ↑(SignType.sign (assembledResidual d u s a b)) * examinationPresenceSlope d s i * mindValue s i b a) (mindActivity s i)

      EW3's signed gain derivative, before differentiating the native writer. P: d,u,s,i and dM name the full coefficient data, state, coordinate and Frechet derivative. E: hM and h_surprise are exactly the smooth branch and nonzero signed-surprise conditions; no gain hold is imposed.

      theorem MindFormal.examinationActivitySection_bracket {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) (x : ℝ) :
      structuralBracket d u q (examinationActivitySection s i x) i j = structuralBracket d u q s i j + (x - mindActivity s i) * (d.β * (d.presence (mindTrace s j) - mindRelation s i j) - (1 - d.β) * d.presence (mindTrace s j) * mindRelation s i i)
      theorem MindFormal.examination_writer_activity_derivative {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Finite T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) (dM : (T → Fin n → ℝ) →L[ℝ] ℝ) (hM : HasFDerivAt d.gain dM fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) (h_surprise : ∀ (a : T) (b : Fin n), assembledResidual d u s a b ≠ 0) :
      HasDerivAt (fun (x : ℝ) => assembledDrift d u q (examinationActivitySection s i x) (Sum.inl (i, j))) (currentGain d u s * (d.β * (d.presence (mindTrace s j) - mindRelation s i j) - (1 - d.β) * d.presence (mindTrace s j) * mindRelation s i i) + structuralBracket d u q s i j * dM fun (a : T) (b : Fin n) => ↑(SignType.sign (assembledResidual d u s a b)) * examinationPresenceSlope d s i * mindValue s i b a) (mindActivity s i)

      EW3, the full native relation writer differentiated in activity. The signed gain derivative is multiplied by the complete two-writer bracket; no trajectory coefficient is held by this coordinate calculation.

      noncomputable def MindFormal.examinationRelationSection {N n : ℕ} {T : Type u_1} {Λ : Type u_2} (s : MindState (Fin N) n T Λ) (i j : Fin N) (w : ℝ) :
      MindState (Fin N) n T Λ

      Native relation coordinate section, for EW3's second partial only.

      Equations
      Instances For
        theorem MindFormal.examinationRelationSection_gain {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 Λ) (i j : Fin N) (w : ℝ) :
        theorem MindFormal.examinationRelationSection_bracket {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) (w : ℝ) :
        structuralBracket d u q (examinationRelationSection s i j w) i j = structuralBracket d u q s i j - (w - mindRelation s i j) * ((1 - d.β) * d.presence (mindTrace s j) * mindActivity s j + d.β * mindActivity s i)
        theorem MindFormal.movingExamination_complete_derivatives {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Finite T] [Fintype Λ] (d : MindDriftData (Fin N) n T Λ) (u q : Fin N → ℝ) (s : MindState (Fin N) n T Λ) (i j : Fin N) (dM : (T → Fin n → ℝ) →L[ℝ] ℝ) (hM : HasFDerivAt d.gain dM fun (a : T) (b : Fin n) => |assembledResidual d u s a b|) (h_surprise : ∀ (a : T) (b : Fin n), assembledResidual d u s a b ≠ 0) :
        HasDerivAt (fun (x : ℝ) => d.gain fun (a : T) (b : Fin n) => |assembledResidual d u (examinationActivitySection s i x) a b|) (dM fun (a : T) (b : Fin n) => ↑(SignType.sign (assembledResidual d u s a b)) * examinationPresenceSlope d s i * mindValue s i b a) (mindActivity s i) ∧ HasDerivAt (fun (x : ℝ) => assembledDrift d u q (examinationActivitySection s i x) (Sum.inl (i, j))) (currentGain d u s * (d.β * (d.presence (mindTrace s j) - mindRelation s i j) - (1 - d.β) * d.presence (mindTrace s j) * mindRelation s i i) + structuralBracket d u q s i j * dM fun (a : T) (b : Fin n) => ↑(SignType.sign (assembledResidual d u s a b)) * examinationPresenceSlope d s i * mindValue s i b a) (mindActivity s i) ∧ HasDerivAt (fun (w : ℝ) => currentGain d u (examinationRelationSection s i j w)) 0 (mindRelation s i j) ∧ HasDerivAt (fun (w : ℝ) => assembledDrift d u q (examinationRelationSection s i j w) (Sum.inl (i, j))) (-currentGain d u s * ((1 - d.β) * d.presence (mindTrace s j) * mindActivity s j + d.β * mindActivity s i)) (mindRelation s i j)

        EW3 in full. P: d,u,q,s,i,j and the complete Frechet gain derivative. E: hM and h_surprise are precisely its smooth nonzero-surprise branch. All four printed derivatives are derived together, including the signed surprise term and both native writers, without a trajectory hold.