MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07Concepts.TargetAlgebra

Chapter 7's (Concepts) target algebra: I's complete target read against the rest of the pool (10.10 (CC1.1)), the awareness margin, the held-state derivatives and finite increments ((CC1.2)–(CC1.3)), the help and harm differences ((CC1.10)), the share comparisons of 10.11 to 10.13 ((CC2.1), (CC3.1)–(CC3.3), (CC4.2)) and the cleared read of 10.17 and 10.18 ((CC9.1), (CC9.4), (AB1.1), (AB1.3)). Nothing here is tagged.

def MindFormal.restLoad {C : Type u_1} [Fintype C] [DecidableEq C] (σ : ℝ) (J : C → ℝ) (i : C) :

The rest of the pool seen by content i: the floor and every other transformed input.

Equations
Instances For
    theorem MindFormal.pool_eq_self_add_rest {C : Type u_1} [Fintype C] [DecidableEq C] (σ : ℝ) (J : C → ℝ) (i : C) :
    pool σ J = J i + restLoad σ J i
    theorem MindFormal.target_eq_rest {C : Type u_1} [Fintype C] [DecidableEq C] (σ g : ℝ) (J : C → ℝ) (i : C) :
    normalizedTarget σ g J i = max (J i / (J i + restLoad σ J i) - g) 0

    (CC1.1): the target is the share of the concept's own transformed input in its own input plus the rest of the pool, less g, clipped at zero.

    theorem MindFormal.target_margin_iff {C : Type u_1} [Fintype C] {σ g α : ℝ} (J : C → ℝ) (i : C) (hP : 0 < pool σ J) (hα : 0 < α) :
    (α < normalizedTarget σ g J i ↔ 0 < J i - (g + α) * pool σ J) ∧ (α ≤ normalizedTarget σ g J i ↔ 0 ≤ J i - (g + α) * pool σ J)

    (CC1.1): for α>0 the target exceeds α exactly when the margin 𝒥_i−(g+α)𝒫 is positive, and reaches α exactly when the margin is nonnegative.

    theorem MindFormal.target_lt_of_required {C : Type u_1} [Fintype C] {σ g α : ℝ} (J : C → ℝ) (i : C) (hσ : 0 < σ) (hJ : ∀ (j : C), 0 ≤ J j) (hα : 0 < α) (hreq : 1 ≤ g + α) :
    normalizedTarget σ g J i < α

    (CC1.1): with a positive floor and nonnegative transformed inputs every share is below one, so g+α ≥ 1 with α>0 leaves every target strictly below α.

    theorem MindFormal.margin_share_hasDerivAt {ι : Type u_2} [Fintype ι] (Jf : ι → ℝ → ℝ) (D : ι → ℝ) (i : ι) (σ ϑ x : ℝ) (h : ∀ (d : ι), HasDerivAt (Jf d) (D d) x) (hP : σ + ∑ d : ι, Jf d x ≠ 0) :
    HasDerivAt (fun (y : ℝ) => Jf i y - ϑ * (σ + ∑ d : ι, Jf d y)) (D i - ϑ * ∑ d : ι, D d) x ∧ HasDerivAt (fun (y : ℝ) => Jf i y / (σ + ∑ d : ι, Jf d y)) (((σ + ∑ d : ι, Jf d x) * D i - Jf i x * ∑ d : ι, D d) / (σ + ∑ d : ι, Jf d x) ^ 2) x

    (CC1.2): the held-state derivative of the margin 𝒥_i−ϑ(σ+Σ_d𝒥_d) and of the share 𝒥_i/𝒫 when every transformed input moves with one feature coordinate.

    theorem MindFormal.feature_margin_hasDerivAt {ι : Type u_2} [Fintype ι] (ψ : ℝ → ℝ) (ψ' c W : ι → ℝ) (i : ι) (σ ϑ x : ℝ) (hψ : ∀ (d : ι), HasDerivAt ψ (ψ' d) (c d + W d * x)) :
    HasDerivAt (fun (y : ℝ) => ψ (c i + W i * y) - ϑ * (σ + ∑ d : ι, ψ (c d + W d * y))) (ψ' i * W i - ϑ * ∑ d : ι, ψ' d * W d) x

    (CC1.2), the feature form: each transformed input ψ(c_d+W_dj·y) with ψ differentiable at the held input gives the margin derivative ψ'(ℐ_i)W_ij−ϑ𝓛_j, 𝓛_j=Σ_dψ'(ℐ_d)W_dj.

    theorem MindFormal.margin_share_increment (J P ΔJ ΔP ϑ : ℝ) (hP : P ≠ 0) (hP' : P + ΔP ≠ 0) :
    J + ΔJ - ϑ * (P + ΔP) - (J - ϑ * P) = ΔJ - ϑ * ΔP ∧ (J + ΔJ) / (P + ΔP) - J / P = (P * ΔJ - J * ΔP) / (P * (P + ΔP))

    (CC1.3): the complete finite increments of the margin and the share.

    theorem MindFormal.help_harm_difference (J H ΔJ ΔH g : ℝ) (h0 : J + H ≠ 0) (h1 : J + H + ΔJ + ΔH ≠ 0) :
    (J + ΔJ) / (J + H + ΔJ + ΔH) - g - (J / (J + H) - g) = (H * ΔJ - J * ΔH) / ((J + H) * (J + H + ΔJ + ΔH))

    (CC1.10): on positive branches the second concept's target changes by (ℋΔ𝒥−𝒥Δℋ)/((𝒥+ℋ)(𝒥+ℋ+Δ𝒥+Δℋ)); holding its numerator fixed and adding load ΔH lowers its share by 𝒥Δℋ/(𝒫(𝒫+Δℋ)).

    theorem MindFormal.load_suppression (J P ΔH : ℝ) (hP : P ≠ 0) (hP' : P + ΔH ≠ 0) :
    J / P - J / (P + ΔH) = J * ΔH / (P * (P + ΔH))
    theorem MindFormal.own_gain (J H ΔJ : ℝ) (hP : J + H ≠ 0) (hP' : J + H + ΔJ ≠ 0) :
    (J + ΔJ) / (J + H + ΔJ) - J / (J + H) = H * ΔJ / ((J + H) * (J + H + ΔJ))

    (CC1.10)–(CC2.1): the within-concept gain ℋΔ𝒥/(𝒫(𝒫+Δ𝒥)) when only the concept's own input rises by Δ𝒥 (its pool rising with it).

    theorem MindFormal.share_change_sign {J0 J1 P0 P1 : ℝ} (hP0 : 0 < P0) (hP1 : 0 < P1) :
    (0 < J1 / P1 - J0 / P0 ↔ 0 < P0 * (J1 - J0) - J0 * (P1 - P0)) ∧ (J1 / P1 - J0 / P0 < 0 ↔ P0 * (J1 - J0) - J0 * (P1 - P0) < 0) ∧ (J1 / P1 - J0 / P0 = 0 ↔ P0 * (J1 - J0) - J0 * (P1 - P0) = 0)

    (CC9.4), (AB1.3): before clipping, a change of share has the sign of 𝒫⁰Δ𝒥−𝒥⁰Δ𝒫.

    theorem MindFormal.share_lt_iff {J1 H1 J2 H2 : ℝ} (h1 : 0 < J1 + H1) (h2 : 0 < J2 + H2) :
    J2 / (J2 + H2) < J1 / (J1 + H1) ↔ J2 * H1 < J1 * H2

    (CC3.1), (CC4.2): on positive branches one target exceeds another exactly when 𝒥₁ℋ₂>𝒥₂ℋ₁.

    theorem MindFormal.clip_lt_clip_iff {a b g : ℝ} (hb : g < b) :
    max (a - g) 0 < max (b - g) 0 ↔ a < b

    The clip [·−g]₊ is monotone, and strict where its larger argument is above g.