MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07Concepts.ConceptAlgebra

Chapter 7's (Concepts) closed comparisons in reals: the affine-center obstruction and its escape price (10.12 (CC3.2)–(CC3.3)), the positive definition (CC3.4), the record geometry of 10.14 ((CC5.2)–(CC5.4), the binary boundary, the continuing learner's bounds), the causal asymmetry's interval (10.13 (CC4.1)), the balanced row's partial directions (10.17 (CC9.7)), the incoming-link delay (10.18 (AB1.9)) and the population bound (10.19 (AB2.2)). Nothing here is tagged.

10.12 #

theorem MindFormal.affine_center_share {ι : Type u_1} [Fintype ι] (π Jm P : ι → ℝ) (hπ : ∀ (j : ι), 0 ≤ π j) (hP : ∀ (j : ι), 0 < P j) (hsum : ∑ j : ι, π j = 1) {S : ℝ} (hS : ∀ (j : ι), Jm j / P j ≤ S) :
(∑ j : ι, π j * Jm j) / ∑ j : ι, π j * P j = ∑ j : ι, (π j * P j / ∑ l : ι, π l * P l) * (Jm j / P j) ∧ (∑ j : ι, π j * Jm j) / ∑ j : ι, π j * P j ≤ S

(CC3.2): on a common affine branch the center's share is a convex combination of the members' shares with weights π_j𝒫(z_j)/𝒫(z_∘), so it is at most any bound on them.

theorem MindFormal.escape_price_iff {ι : Type u_1} [Fintype ι] (π Jm P : ι → ℝ) (hπ : ∀ (j : ι), 0 ≤ π j) (hP : ∀ (j : ι), 0 < P j) {Jc Pc g Smax : ℝ} (hPc : 0 < Pc) (hg : g ≤ Smax) (hS : ∀ (j : ι), Jm j / P j ≤ Smax) :
(Smax - g < max (Jc / Pc - g) 0 ↔ Smax * ∑ j : ι, π j * P j - ∑ j : ι, π j * Jm j < Jc - ∑ j : ι, π j * Jm j - Smax * (Pc - ∑ j : ι, π j * P j)) ∧ 0 ≤ Smax * ∑ j : ι, π j * P j - ∑ j : ι, π j * Jm j

(CC3.3): with S_max ≥ g the largest member share or the clip, the center's clipped target exceeds S_max−g exactly when Δ𝒥−S_maxΔ𝒫 > S_max𝒫^mix−𝒥^mix, whose right side is nonnegative when every member's share is at most S_max.

theorem MindFormal.definition_iff {ι : Type u_1} (B : ι → ℝ) (M : ℝ) :
(0 ≤ M ∧ ∀ (S : Finset ι), S.Nonempty → M - ∑ j ∈ S, B j < 0) ↔ 0 ≤ M ∧ ∀ (j : ι), M < B j

(CC3.4): with each omission subtracting its feature's complete gain, all required features suffice and every proper omission is rejected exactly when 0 ≤ 𝓜_all < min_j 𝓑_j.

10.13 #

theorem MindFormal.asymmetry_interval {a b c d al au bl bu cl cu dl du : ℝ} (ha : al ≤ a ∧ a ≤ au) (hb : bl ≤ b ∧ b ≤ bu) (hc : cl ≤ c ∧ c ≤ cu) (hd : dl ≤ d ∧ d ≤ du) :
al - bu - cu + dl ≤ a - b - c + d ∧ a - b - c + d ≤ au - bl - cl + du

(CC4.1): from probability intervals the asymmetry's lower bound takes lower endpoints on its positive terms and upper on its negative terms, and the upper bound the reverse.

10.14 #

def MindFormal.labelDisagreement {L : Type u_1} [Fintype L] (p p' : L → ℝ) :

The label-only disagreement 1−𝐩·𝐩' of two independent records.

Equations
Instances For
    theorem MindFormal.record_differences {L : Type u_1} [Fintype L] (pa pb pc pd p p' : L → ℝ) :
    labelDisagreement pa pb - labelDisagreement pc pd = ∑ a : L, pc a * pd a - ∑ a : L, pa a * pb a ∧ labelDisagreement p p' - (labelDisagreement p p + labelDisagreement p' p') / 2 = (∑ a : L, (p a - p' a) ^ 2) / 2

    (CC5.2)–(CC5.3): label-only differences between pairs and across learning, and the excess over the repeated-view baselines ½‖𝐩−𝐩'‖².

    theorem MindFormal.merge_loss {L : Type u_1} [Fintype L] {L' : Type u_2} [Fintype L'] [DecidableEq L'] [DecidableEq L] (G : L → L') (p p' : L → ℝ) (hp : ∀ (a : L), 0 ≤ p a) (hp' : ∀ (a : L), 0 ≤ p' a) :
    (labelDisagreement p p' - labelDisagreement (fun (k : L') => ∑ a : L with G a = k, p a) fun (k : L') => ∑ a : L with G a = k, p' a) = ∑ a : L, ∑ b : L with b ≠ a ∧ G b = G a, p a * p' b ∧ 0 ≤ ∑ a : L, ∑ b : L with b ≠ a ∧ G b = G a, p a * p' b

    (CC5.4): merging recorded fine labels by G removes exactly the differences between fine labels it identifies: 𝒟_fine−𝒟_merged=Σ_{i≠j, G(i)=G(j)}p_ip'_j, nonnegative for nonnegative masses.

    theorem MindFormal.binary_boundary (q q' : ℝ) :
    q * (1 - q') + (1 - q) * q' = (1 - (2 * q - 1) * (2 * q' - 1)) / 2 ∧ ((2 * q - 1) * (2 * q' - 1) < 0 → 1 / 2 < q * (1 - q') + (1 - q) * q') ∧ (0 < (2 * q - 1) * (2 * q' - 1) → q * (1 - q') + (1 - q) * q' < 1 / 2)

    The binary boundary: with q=p_R/(p_L+p_R) and b=2q−1, the arrival-conditioned label-difference probability q(1−q')+(1−q)q' is (1−bb')/2: above 1/2 for a straddling pair (bb'<0), below for a pair on one side (bb'>0), and two such pairs differ by (b_cb_d−b_ab_b)/2.

    10.17 #

    theorem MindFormal.update_presence_sum {ι : Type u_2} [Fintype ι] [DecidableEq ι] (Cv X : ι → ℝ) (d : ι) (c : ℝ) :
    ∑ l : ι, Function.update Cv d c l * X l = ∑ l : ι, Cv l * X l + (c - Cv d) * X d
    theorem MindFormal.value_balance_param {ι : Type u_2} [Fintype ι] [DecidableEq ι] (Cv v : ι → ℝ) (i0 : ι) (hC : 0 < Cv i0) {κ δ τ : ℝ} (hτ : 0 < τ) :
    κ - (∑ j : ι, Cv j * v j) / τ = δ ↔ v i0 = (τ * (κ - δ) - ∑ j ∈ Finset.univ.erase i0, Cv j * v j) / Cv i0

    The whole-mind value balance: with C_{i₀}>0, the surprise κ−(Σ_jC_jv_j)/τ at settled traces equals a chosen δ exactly when v_{i₀}={τ(κ−δ)−Σ_{j≠i₀}C_jv_j}/C_{i₀}.

    10.18 #

    10.19 #

    theorem MindFormal.population_bound {Ω : Type u_2} [MeasurableSpace Ω] (μc μs : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μc] [MeasureTheory.IsProbabilityMeasure μs] {Prep Tr : Set Ω} (hPrep : MeasurableSet Prep) {p εc εs : ℝ} (hps : μs.real Prep = p) (hc : (1 - εc) * p ≤ μc.real (Tr ∩ Prep)) (hs : μs.real (Tr ∩ Prep) ≤ εs * p) :
    p * (1 - εc - εs) - (1 - p) ≤ μc.real Tr - μs.real Tr

    (AB2.2): with preparation mass p (the separate arm's; the comparison arm's is the same, and only its transfer on the set is used), transfer at least 1−ε_c on it after comparison and at most ε_s on it after separate study, the population difference is at least p(1−ε_c−ε_s)−(1−p).

    The paired record #

    theorem MindFormal.paired_disagreement {L : Type u_2} [Fintype L] [DecidableEq L] [MeasurableSpace L] [MeasurableSingletonClass L] (o : L) (μ μ' : MeasureTheory.Measure (L × ℝ)) [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure μ'] (Δ : ℝ) :
    (μ.prod μ').real {p : (L × ℝ) × L × ℝ | ¬(p.1.1 = o ∧ p.2.1 = o ∨ p.1.1 = p.2.1 ∧ p.1.1 ≠ o ∧ |p.1.2 - p.2.2| ≤ Δ)} = 1 - μ.real {r : L × ℝ | r.1 = o} * μ'.real {r : L × ℝ | r.1 = o} - ∑ a ∈ Finset.univ.erase o, (μ.prod μ').real {p : (L × ℝ) × L × ℝ | p.1.1 = a ∧ p.2.1 = a ∧ |p.1.2 - p.2.2| ≤ Δ}

    (CC5.1): two independent probe records (label, arrival time), the label o standing for no arrival: under the product of their laws, the chance that the records differ (different labels, or the same real label more than Δ apart) is 1−p(o)p'(o)−Σ_{a≠o}(μ⊗μ'){both a, |s−t| ≤ Δ}.

    The evaluated counts of 10.18 #

    theorem MindFormal.log_ten_thirds_bounds :
    35 / 32 < Real.log (10 / 3) ∧ Real.log (10 / 3) ≤ 21 / 16

    35/32 < log(10/3) ≤ 21/16.

    3/2 < log 5 ≤ 7/4.

    The balanced row's directions on physical arguments (10.17 (CC9.7), 10.18 (AB1.2)) #

    The retained member's share along the shedding history (10.15 (CC6.3)–(CC6.4)) #

    theorem MindFormal.shedding_share_strictMono {lp lplus w0 winf h K : ℝ} (hlp : 0 ≤ lp) (hl : 0 < lplus) (hw0 : 0 < w0) (hw : w0 < winf) (hh : 0 < h) (hK : 0 < K) :
    StrictMonoOn (fun (d : ℝ) => (winf + (w0 - winf) * Real.exp (-(lplus * d))) * h / (K + (2 * (winf + (w0 - winf) * Real.exp (-(lplus * d))) + w0 * Real.exp (-(lp * d))) * h)) (Set.Ici 0)

    (CC6.3)–(CC6.4): along the shedding history the A probe's useful share w₊(d)h/(K+{2w₊(d)+w₀e^{−λ_pd}}h), with w₊(d)=w_∞+(w₀−w_∞)e^{−λ₊d}, strictly increases in d ≥ 0 when 0<w₀<w_∞, λ₊>0, λ_p ≥ 0 and h,K>0.

    The definition across an allowed context family (10.12 (CC3.4)) #

    theorem MindFormal.context_family_iff {κ : Type u_2} {ι : Type u_3} [Nonempty κ] (Mall : κ → ℝ) (B : κ → ι → ℝ) :
    ((BddBelow (Set.range Mall) ∧ 0 ≤ ⨅ (c : κ), Mall c) ∧ ∀ (c : κ) (S : Finset ι), S.Nonempty → Mall c - ∑ j ∈ S, B c j < 0) ↔ ∀ (c : κ), 0 ≤ Mall c ∧ ∀ (j : ι), Mall c < B c j

    (CC3.4) across a nonempty context family: the all-present margins have a nonnegative infimum and every forbidden view is rejected in every context exactly when, in every context, 0 ≤ 𝓜_all<𝓑_j for every required feature.

    theorem MindFormal.robust_sup_iff {υ : Type u_2} [Nonempty υ] (F : υ → ℝ) :
    BddAbove (Set.range F) ∧ ⨆ (i : υ), F i < 0 ↔ ∃ b < 0, ∀ (i : υ), F i ≤ b

    (CC3.4): a strictly negative supremum of the forbidden margins is exactly a uniform negative bound on them (the robust version).

    theorem MindFormal.finite_battery {υ : Type u_2} [Finite υ] [Nonempty υ] (F : υ → ℝ) :
    (⨆ (i : υ), F i < 0 ↔ ∀ (i : υ), F i < 0) ∧ (0 ≤ ⨅ (i : υ), F i ↔ ∀ (i : υ), 0 ≤ F i)

    (CC3.4): on a finite nonempty battery the supremum of the margins is negative exactly when every margin is, and their infimum nonnegative exactly when every margin is.

    Paired records (10.14 (CC5.1)) #

    def MindFormal.recordsDiffer {L : Type u_2} (o : L) (Δ : ℝ) (r r' : L × ℝ) :

    (CC5.1): two records (label, time), o standing for no arrival, differ when their labels differ (missing versus present included) or the same real label arrives more than Δ apart; two missing records agree.

    Equations
    Instances For

      (CC5.1): a record agrees with itself at a nonnegative tolerance, so two probes whose laws are the same point mass have disagreement zero.

      theorem MindFormal.bracket_records {L : Type u_2} (o : L) (Δ : ℝ) {a b : L} (ha : a ≠ o) (hb : b ≠ o) (tm tp sm sp : ℝ) :
      (a ≠ b ∨ Δ < tm - sp ∨ Δ < sm - tp → ∀ t ∈ Set.Icc tm tp, ∀ s ∈ Set.Icc sm sp, recordsDiffer o Δ (a, t) (b, s)) ∧ (a = b ∧ tp - sm ≤ Δ ∧ sp - tm ≤ Δ → ∀ t ∈ Set.Icc tm tp, ∀ s ∈ Set.Icc sm sp, ¬recordsDiffer o Δ (a, t) (b, s)) ∧ (∀ (s : ℝ), recordsDiffer o Δ (o, 0) (b, s) ∧ recordsDiffer o Δ (b, s) (o, 0)) ∧ ¬recordsDiffer o Δ (o, 0) (o, 0)

      (CC5.1), the time brackets: with a real label a (a ≠ o), labels a ≠ b or brackets separated by more than Δ give records that differ for every pair of times in them; one label whose largest bracket separation is at most Δ gives records that agree; a missing record differs from a present one, and two missing records agree.

      theorem MindFormal.protected_pair {Ω₁ : Type u_2} {Ω₂ : Type u_3} [MeasurableSpace Ω₁] [MeasurableSpace Ω₂] (μ₁ : MeasureTheory.Measure Ω₁) (μ₂ : MeasureTheory.Measure Ω₂) [MeasureTheory.IsProbabilityMeasure μ₁] [MeasureTheory.IsProbabilityMeasure μ₂] {G₁ : Set Ω₁} {G₂ : Set Ω₂} (h₁ : MeasurableSet G₁) (h₂ : MeasurableSet G₂) {ε : ℝ} (hε₁ : 1 - ε ≤ μ₁.real G₁) (hε₂ : 1 - ε ≤ μ₂.real G₂) (D : Set (Ω₁ × Ω₂)) :
      (G₁ ×ˢ G₂ ⊆ D → 1 - 2 * ε ≤ (μ₁.prod μ₂).real D) ∧ (D ⊆ (G₁ ×ˢ G₂)ᶜ → (μ₁.prod μ₂).real D ≤ 2 * ε)

      (CC5.1), the continuing noisy learner: two independent probes (the product of their laws), each with a measurable event of chance at least 1−ε; if every pair of draws from the two events has records that differ, the disagreement is at least 1−2ε; if every such pair agrees, it is at most 2ε.

      theorem MindFormal.protected_pair_ae {Ω₁ : Type u_2} {Ω₂ : Type u_3} {L : Type u_4} [MeasurableSpace Ω₁] [MeasurableSpace Ω₂] (μ₁ : MeasureTheory.Measure Ω₁) (μ₂ : MeasureTheory.Measure Ω₂) [MeasureTheory.IsProbabilityMeasure μ₁] [MeasureTheory.IsProbabilityMeasure μ₂] {G₁ : Set Ω₁} {G₂ : Set Ω₂} (h₁ : MeasurableSet G₁) (h₂ : MeasurableSet G₂) {ε : ℝ} (hε₁ : 1 - ε ≤ μ₁.real G₁) (hε₂ : 1 - ε ≤ μ₂.real G₂) (r₁ : Ω₁ → L) (r₂ : Ω₂ → L) (R R' : Set L) (hR : ∀ᵐ (z : Ω₁) ∂μ₁, z ∈ G₁ → r₁ z ∈ R) (hR' : ∀ᵐ (z : Ω₂) ∂μ₂, z ∈ G₂ → r₂ z ∈ R') (D : L → L → Prop) :
      ((∀ r ∈ R, ∀ r' ∈ R', D r r') → 1 - 2 * ε ≤ (μ₁.prod μ₂).real {p : Ω₁ × Ω₂ | D (r₁ p.1) (r₂ p.2)}) ∧ ((∀ r ∈ R, ∀ r' ∈ R', ¬D r r') → (μ₁.prod μ₂).real {p : Ω₁ × Ω₂ | D (r₁ p.1) (r₂ p.2)} ≤ 2 * ε)

      (CC5.1), the continuing noisy learner, with each probe's records protected on its event up to a null set: two independent probes (the product of their laws), each with a measurable event of chance at least 1−ε on almost every draw of which its record lies in R (respectively R′). If every record of R differs from every record of R′ the disagreement is at least 1−2ε; if every such pair agrees it is at most 2ε.