MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07Concepts.L79Frequency

CC3.5: differentiation of a full, finite averaged row, without assuming differentiability of the equilibrium row itself.

theorem MindFormal.Concepts.L79.inverse_derivative {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : ℝ → Matrix ι ι ℝ) (A' : Matrix ι ι ℝ) (x : ℝ) (hA : HasDerivAt A A' x) (hu : IsUnit (A x)) :
HasDerivAt (fun (t : ℝ) => (A t)⁻¹) (-(A x)⁻¹ * A' * (A x)⁻¹) x
theorem MindFormal.Concepts.L79.mulVec_derivative {ι : Type u_1} [Fintype ι] (A : ℝ → Matrix ι ι ℝ) (v : ℝ → ι → ℝ) (A' : Matrix ι ι ℝ) (v' : ι → ℝ) (x : ℝ) (hA : HasDerivAt A A' x) (hv : HasDerivAt v v' x) :
HasDerivAt (fun (t : ℝ) => (A t).mulVec (v t)) (A'.mulVec (v x) + (A x).mulVec v') x
theorem MindFormal.Concepts.L79.equilibrium_derivative {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : ℝ → Matrix ι ι ℝ) (F : ℝ → ι → ℝ) (A' : Matrix ι ι ℝ) (F' : ι → ℝ) (x : ℝ) (hA : HasDerivAt A A' x) (hF : HasDerivAt F F' x) (hu : IsUnit (A x)) :
HasDerivAt (fun (t : ℝ) => (A t)⁻¹.mulVec (F t)) ((A x)⁻¹.mulVec (F' - A'.mulVec ((A x)⁻¹.mulVec (F x)))) x
theorem MindFormal.Concepts.L79.full_input_derivative {ι : Type u_1} [Fintype ι] (W : ℝ → ι → ι → ℝ) (a base : ℝ → ι → ℝ) (W' : ι → ι → ℝ) (a' base' : ι → ℝ) (x : ℝ) (hW : ∀ (i : ι), HasDerivAt (fun (t : ℝ) => W t i) (W' i) x) (ha : HasDerivAt a a' x) (hb : HasDerivAt base base' x) (i : ι) :
HasDerivAt (fun (t : ℝ) => base t i + ∑ j : ι, W t i j * a t j) (base' i + ∑ j : ι, (W' i j * a x j + W x i j * a' j)) x

Every row and every query activity enters the input derivative. base includes direct drive, value effects and residue on the declared smooth branch.

theorem MindFormal.Concepts.L79.full_share_derivative {ι : Type u_1} [Fintype ι] (J : ℝ → ι → ℝ) (J' : ι → ℝ) (σ x : ℝ) (hJ : HasDerivAt J J' x) (hp : σ + ∑ j : ι, J x j ≠ 0) (i : ι) :
HasDerivAt (fun (t : ℝ) => J t i / (σ + ∑ j : ι, J t j)) (((σ + ∑ j : ι, J x j) * J' i - J x i * ∑ j : ι, J' j) / (σ + ∑ j : ι, J x j) ^ 2) x

This is the quotient in CC3.5 with the complete finite pool, including all rival derivatives. No best-member or fixed-background reduction is made.

def MindFormal.Concepts.L79.episodeLoss {ι : Type u_1} [DecidableEq ι] {κ : Type u_2} [Fintype κ] (β : ℝ) (mass gain : κ → ℝ) (presence activity : κ → ι → ℝ) (i : ι) :
Matrix ι ι ℝ

Explicit averaging of both II writers over a finite declared episode family.

Equations
Instances For
    def MindFormal.Concepts.L79.episodeSource {ι : Type u_1} {κ : Type u_2} [Fintype κ] (β : ℝ) (mass gain : κ → ℝ) (presence activity drive : κ → ι → ℝ) (i : ι) :
    ι → ℝ
    Equations
    Instances For
      theorem MindFormal.Concepts.L79.episode_writer_identity {ι : Type u_1} [Fintype ι] [DecidableEq ι] {κ : Type u_2} [Fintype κ] (β : ℝ) (mass gain : κ → ℝ) (presence activity drive : κ → ι → ℝ) (i j : ι) (W : ι → ℝ) :
      ∑ e : κ, mass e * gain e * ((1 - β) * presence e j * (drive e i - ∑ k : ι, W k * activity e k) + β * activity e i * (presence e j - W j)) = episodeSource β mass gain presence activity drive i j - (episodeLoss β mass gain presence activity i).mulVec W j

      The matrices are the finite average of the full II bracket, with both writers and the entire row prediction. No averaged equilibrium is assumed here.

      theorem MindFormal.Concepts.L79.episode_equilibrium_derivative {ι : Type u_1} [Fintype ι] [DecidableEq ι] {κ : Type u_2} [Fintype κ] (β : ℝ) (mass gain : ℝ → κ → ℝ) (presence activity drive : ℝ → κ → ι → ℝ) (i : ι) (x : ℝ) (hm : ∀ (e : κ), DifferentiableAt ℝ (fun (t : ℝ) => mass t e) x) (hg : ∀ (e : κ), DifferentiableAt ℝ (fun (t : ℝ) => gain t e) x) (hp : ∀ (e : κ) (j : ι), DifferentiableAt ℝ (fun (t : ℝ) => presence t e j) x) (ha : ∀ (e : κ) (j : ι), DifferentiableAt ℝ (fun (t : ℝ) => activity t e j) x) (hd : ∀ (e : κ) (j : ι), DifferentiableAt ℝ (fun (t : ℝ) => drive t e j) x) (hu : IsUnit (episodeLoss β (mass x) (gain x) (presence x) (activity x) i)) :
      have A := fun (t : ℝ) => episodeLoss β (mass t) (gain t) (presence t) (activity t) i; have F := fun (t : ℝ) => episodeSource β (mass t) (gain t) (presence t) (activity t) (drive t) i; HasDerivAt (fun (t : ℝ) => (A t)⁻¹.mulVec (F t)) ((A x)⁻¹.mulVec (deriv F x - (deriv A x).mulVec ((A x)⁻¹.mulVec (F x)))) x

      Only primitive episode moments are assumed differentiable. The complete row derivative, including the derivative of its inverse, is derived.

      theorem MindFormal.Concepts.L79.transformed_input_derivative {ι : Type u_1} [Fintype ι] (W : ℝ → ι → ι → ℝ) (drive residue activity : ℝ → ι → ℝ) (ψ : ℝ → ℝ) (W' : ι → ι → ℝ) (drive' residue' activity' ψ' : ι → ℝ) (x : ℝ) (hW : ∀ (i : ι), HasDerivAt (fun (t : ℝ) => W t i) (W' i) x) (hd : HasDerivAt drive drive' x) (hr : HasDerivAt residue residue' x) (ha : HasDerivAt activity activity' x) (hψ : ∀ (i : ι), HasDerivAt ψ (ψ' i) (rawInput (drive x) (residue x) (W x) (activity x) i)) :
      HasDerivAt (fun (t : ℝ) (i : ι) => ψ (rawInput (drive t) (residue t) (W t) (activity t) i)) (fun (i : ι) => ψ' i * (drive' i + residue' i + ∑ j : ι, (W' i j * activity x j + W x i j * activity' j))) x

      The complete raw input is transformed on its specified differentiable branch. The drive and residue may vary through values and the query context.

      theorem MindFormal.Concepts.L79.transformed_share_derivative {ι : Type u_1} [Fintype ι] (W : ℝ → ι → ι → ℝ) (drive residue activity : ℝ → ι → ℝ) (ψ : InputTransform) (W' : ι → ι → ℝ) (drive' residue' activity' ψ' : ι → ℝ) (σ x : ℝ) (hσ : 0 < σ) (hW : ∀ (i : ι), HasDerivAt (fun (t : ℝ) => W t i) (W' i) x) (hd : HasDerivAt drive drive' x) (hr : HasDerivAt residue residue' x) (ha : HasDerivAt activity activity' x) (hψ : ∀ (i : ι), HasDerivAt ψ.ψ (ψ' i) (rawInput (drive x) (residue x) (W x) (activity x) i)) (i : ι) :
      have J := fun (t : ℝ) (i : ι) => ψ.ψ (rawInput (drive t) (residue t) (W t) (activity t) i); have D := fun (i : ι) => ψ' i * (drive' i + residue' i + ∑ j : ι, (W' i j * activity x j + W x i j * activity' j)); HasDerivAt (fun (t : ℝ) => J t i / pool σ (J t)) ((pool σ (J x) * D i - J x i * ∑ j : ι, D j) / pool σ (J x) ^ 2) x

      The full quotient is differentiated after transformation, not by freezing the other rows. The positive floor and the nonnegative transform derive its domain.

      theorem MindFormal.Concepts.L79.clipped_derivative {f : ℝ → ℝ} {f' x g : ℝ} (hf : HasDerivAt f f' x) (hbranch : f x ≠ g) :
      HasDerivAt (fun (t : ℝ) => max (f t - g) 0) (if g < f x then f' else 0) x

      Rectification contributes its active derivative on an open positive branch and zero on an open negative branch; no differentiability at the corner is asserted.

      theorem MindFormal.Concepts.L79.averaged_full_derivative {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : ℝ → ι → Matrix ι ι ℝ) (F : ℝ → ι → ι → ℝ) (drive residue activity : ℝ → ι → ℝ) (ψ : InputTransform) (σ g x : ℝ) (hA : ∀ (i : ι), DifferentiableAt ℝ (fun (t : ℝ) => A t i) x) (hF : ∀ (i : ι), DifferentiableAt ℝ (fun (t : ℝ) => F t i) x) (hu : ∀ (i : ι), IsUnit (A x i)) (hd : DifferentiableAt ℝ drive x) (hr : DifferentiableAt ℝ residue x) (ha : DifferentiableAt ℝ activity x) (hσ : 0 < σ) (hψ : ∀ (i : ι), DifferentiableAt ℝ ψ.ψ (rawInput (drive x) (residue x) (fun (r : ι) => (A x r)⁻¹.mulVec (F x r)) (activity x) i)) :
      have W := fun (t : ℝ) (i : ι) => (A t i)⁻¹.mulVec (F t i); have W' := fun (i : ι) => (A x i)⁻¹.mulVec (deriv (fun (t : ℝ) => F t i) x - (deriv (fun (t : ℝ) => A t i) x).mulVec (W x i)); have I := fun (t : ℝ) (i : ι) => rawInput (drive t) (residue t) (W t) (activity t) i; have J := fun (t : ℝ) (i : ι) => ψ.ψ (I t i); have D := fun (i : ι) => deriv ψ.ψ (I x i) * (deriv drive x i + deriv residue x i + ∑ j : ι, (W' i j * activity x j + W x i j * deriv activity x j)); ∀ (i : ι), HasDerivAt (fun (t : ℝ) => W t i) (W' i) x ∧ HasDerivAt (fun (t : ℝ) => J t i / pool σ (J t)) ((pool σ (J x) * D i - J x i * ∑ j : ι, D j) / pool σ (J x) ^ 2) x ∧ (J x i / pool σ (J x) ≠ g → HasDerivAt (fun (t : ℝ) => normalizedTarget σ g (J t) i) (if g < J x i / pool σ (J x) then (pool σ (J x) * D i - J x i * ∑ j : ι, D j) / pool σ (J x) ^ 2 else 0) x)

      CC3.5 assembled without a supplied derivative for any equilibrium row or transformed input. All row matrices, row sources and query fields may vary.

      theorem MindFormal.Concepts.L79.averaged_frequency_case (v : ℝ) :
      have mass := fun (e : Bool) => if e = true then v else 1 - v; have gain := fun (x : Bool) => 1; have field := fun (x : Bool) (x_1 : Unit) => 1; have drive := fun (e : Bool) (x : Unit) => if e = true then 3 else 1; have A := episodeLoss (1 / 2) mass gain field field (); have F := episodeSource (1 / 2) mass gain field field drive (); A = 1 ∧ IsUnit A ∧ A⁻¹.mulVec F = fun (x : Unit) => 1 + v

      Two positive coholding episode types give an actual averaged matrix/source instance. Varying their masses changes the equilibrium rather than canceling.

      theorem MindFormal.Concepts.L79.frequency_case :
      HasDerivAt (fun (v : ℝ) => (v + 1) / (2 + v)) (4 / 25) (1 / 2) ∧ HasDerivAt (fun (v : ℝ) => max ((v + 1) / (2 + v) - 1 / 4) 0) (4 / 25) (1 / 2)

      A positive transformed query branch with a complete positive pool witnesses consistency of the quotient and clipping hypotheses.

      theorem MindFormal.Concepts.L79.averaged_frequency_query_case :
      have mass := fun (v : ℝ) (e : Bool) => if e = true then v else 1 - v; have gain := fun (x : Bool) => 1; have field := fun (x : Bool) (x_1 : Unit) => 1; have drive := fun (e : Bool) (x : Unit) => if e = true then 3 else 1; have W := fun (v : ℝ) => (episodeLoss (1 / 2) (mass v) gain field field ())⁻¹.mulVec (episodeSource (1 / 2) (mass v) gain field field drive ()); (∀ (e : Bool), 0 < mass (1 / 2) e) ∧ ∑ e : Bool, mass (1 / 2) e = 1 ∧ HasDerivAt (fun (v : ℝ) => W v ()) 1 (1 / 2) ∧ HasDerivAt (fun (v : ℝ) => W v () / (1 + W v ())) (4 / 25) (1 / 2) ∧ HasDerivAt (fun (v : ℝ) => max (W v () / (1 + W v ()) - 1 / 4) 0) (4 / 25) (1 / 2)

      The worked frequency query is computed from the complete two-episode matrix and source, at a frequency with both masses positive. It is an averaged comparison.

      The source positive-part transform for the compatible averaged query.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.Concepts.L79.transformed_frequency_case :
        HasDerivAt (fun (v : ℝ) => normalizedTarget 1 (1 / 4) (fun (x : Unit) => frequencyTransform.ψ (1 + v)) ()) (4 / 25) (1 / 2)

        The transformed, complete one-content query uses the same row 1+frequency computed above. Its raw input is strictly positive near frequency 1/2.