Documentation

CslibFrontier.MachineLearning.PACLearning.SampleComplexityLower.InvolutionPairing

Involution Pairing Argument #

The combinatorial core of the EHKV lower bound proof. For each "bad" sample (one that reveals at most half the shattered set), an involution on 2^d concepts pairs each concept with its complement on the unseen points. At least one concept per pair forces large error.

Main statements #

References #

theorem Cslib.MachineLearning.PACLearning.involution_half_count {ι : Type u_2} {F : Finset ι} {σ : ι → ι} (hσ_self : ∀ x ∈ F, σ (σ x) = x) (hσ_mem : ∀ x ∈ F, σ x ∈ F) {P : ι → Prop} (hpair : ∀ x ∈ F, P x ∨ P (σ x)) :

If σ is an involution on a finset F that maps F into itself, and every element is paired with a "failing" partner (i.e., P x ∨ P (σ x)), then at least half the elements satisfy P.

theorem Cslib.MachineLearning.PACLearning.concepts_agree_of_seen_inter {α : Type u_1} {W W' : Finset α} {w₀ : α} {m : ℕ} {xs : Fin m → α} (cMap : (S : Finset α) → S ∈ W'.powerset → Set α) (hcMap_eq : ∀ (S : Finset α) (hS : S ∈ W'.powerset), cMap S hS ∩ ↑W = {w₀} ∪ ↑S) {S₁ S₂ : Finset α} (hS₁ : S₁ ∈ W'.powerset) (hS₂ : S₂ ∈ W'.powerset) (hinter : S₁ ∩ seenElements W' xs = S₂ ∩ seenElements W' xs) (hxs : ∀ (i : Fin m), xs i ∈ ↑W) (i : Fin m) :
xs i ∈ cMap S₁ hS₁ ↔ xs i ∈ cMap S₂ hS₂

Two cMap concepts agree on all sample points when their underlying subsets have the same intersection with the seen elements T = seenElements W' xs.

theorem Cslib.MachineLearning.PACLearning.unseen_measure_ge {α : Type u_1} [MeasurableSpace α] [MeasurableSingletonClass α] {U : Finset α} {d : ℕ} {ε' : ℝ} {P : MeasureTheory.Measure α} (hε'_pos : 0 < ε') (hd_pos : 0 < d) (h2U : d ≤ 2 * U.card) (hP_each : ∀ w ∈ U, P {w} = ENNReal.ofReal (8 * ε' / ↑d)) :
ENNReal.ofReal (4 * ε') ≤ P ↑U

The measure of an unseen set U is at least 4ε' when each point has measure 8ε'/d and |U| ≥ d/2.

theorem Cslib.MachineLearning.PACLearning.complementary_error_contradiction {α : Type u_1} [MeasurableSpace α] {P : MeasureTheory.Measure α} {h c₁ c₂ U : Set α} {ε' : ℝ} (hε'_pos : 0 < ε') (hU_sub : U ⊆ symmDiff h c₁ ∪ symmDiff h c₂) (hP_U : ENNReal.ofReal (4 * ε') ≤ P U) (herr₁ : P (symmDiff h c₁) ≤ ENNReal.ofReal ε') (herr₂ : P (symmDiff h c₂) ≤ ENNReal.ofReal ε') :

If two sets' symmetric differences with a hypothesis cover a set of measure ≥ 4ε', but each symmetric difference has measure ≤ ε', we derive a contradiction.