Genuine SQ objects: concept class, statistical query (SQ) dimension, oracle #
The statistical-query (SQ) model (Kearns 1998; Blum et al. 1994): the SQ oracle answers a query
φ : Input → [−1,1] with an estimate of E_D[φ] within tolerance τ; the statistical dimension
is "every τ-separated subfamily of M has size at most d_SQ(M, μ)" — distribution-SPECIFIC;
parity has d_SQ = 2^Ω(n); and a query separates a candidate R' from the truth whenever
|E_{R'}[φ] − E_R[φ]| > 2τ.
This file makes these objects GENUINE, in place of the real-valued stand-in SQBounds.dSQ, a bare
exponential. Candidates are
indexed by an abstract type ι (as in the other SQ files, to avoid DecidableEq-on-functions
pain), the answer functional ans : Q → ι → ℝ is abstract (covering both the distributional
E_{R'}[φ] and the correlational parity form), and the statistical dimension is the genuine max
separated-subfamily size.
The headline: parity's d_SQ = 2^Ω(n) becomes a THEOREM (sqDim_parity_ge, via character
orthogonality), bridging to the MODELED exponential SQBounds.dSQ (parity_dSQ_ge_exp).
What this DOES establish #
Separates,SepFam,sqDim,IsSQOracle— the SQ objects as genuine definitions.sepFam_card_le_sqDim— the characterization, now DEFINITIONAL (Finset.le_sup): everyτ-separated subfamily has card≤ sqDim.survivors_card_le_sqDim— the pigeonhole bound: a pairwise-separated survivor setV ⊆ MhasV.card ≤ sqDim M τ ans.survivors_polyBounded_of_separated— reusingSQBounds.PolyBoundedverbatim: Assumption A on the GENUINEsqDim(as a family) plus pairwise separation ⇒ survivor count ispoly. (For the envelope under2τ-identifiability seeSQEnvelope.lean; the unconditional version is not formalized.)sqDim_mono_queries— fewer separating queries ⇒ smaller-or-equal dimension: the distribution-specificity ofd_SQ(M, μ)(a distribution-specificansnever exceeds a distribution-freeans'that can realize all its separations).- Parity (
ι = Q = Finset (Fin n), uniform weights):chi_add_single,sum_chi_eq_zero, correlationalansParwith exact orthogonalityansPar_eq, and the headlinesqDim_parity_ge : 2^n ≤ sqDim univ τ ansParforτ < 1, bridged to the modeled exponential byparity_dSQ_ge_exp(dSQ (log 2) n ≤ sqDim, sinceexp(n·log 2) = 2^n).
What this does NOT establish (out of scope here; no overclaiming) #
- Not the BFJKMR envelope theorem proper (the version-space bound WITHOUT the pairwise-separation hypothesis) — that is the statistical-dimension machinery beyond this file.
- Not the query-schedule construction, nor connecting
ansParto actual dynamics/rules (the algorithm layer). - Not Raz's
Ω(r²)memory lower bound (context citation), nor the union-bound glue (sq_oracle_concentration) — de-scoped; the oracle predicateIsSQOracleis supplied, but the finite-query union bound is left as residue.
A query φ separates candidates i, j (at tolerance τ) when their answers differ by more
than τ (|E_{R'}[φ] − E_R[φ]| exceeds the threshold).
Instances For
A separated subfamily S ⊆ M: every two distinct members are distinguished by some query
(a τ-separated subfamily of M).
Equations
- SQObjects.SepFam M τ ans S = (S ⊆ M ∧ ∀ i ∈ S, ∀ j ∈ S, i ≠ j → ∃ (φ : Q), SQObjects.Separates τ ans φ i j)
Instances For
The statistical dimension d_SQ(M, μ): the largest size of a τ-separated subfamily
of M. Genuine max over the (finite) powerset — no longer a bare exponential stand-in.
Equations
- SQObjects.sqDim M τ ans = (Finset.filter (SQObjects.SepFam M τ ans) M.powerset).sup Finset.card
Instances For
The characterization, now definitional: every τ-separated subfamily has size at most
sqDim (Finset.le_sup on the filtered powerset).
Survivor pigeonhole (the definitional bound on a version space): a survivor set
V ⊆ M that is pairwise τ-separated has V.card ≤ sqDim M τ ans.
The statistical dimension never exceeds the family's own size. The sup runs over
subfamilies of M, and every one of them is a subset — so a finite rule class of size |M| has
d_SQ ≤ |M| unconditionally, which is how a concrete finite class discharges Assumption A.
BQ1 (distribution-specificity of d_SQ(M, μ)): if every separation achievable by ans is also
achievable by ans', then sqDim …ans ≤ sqDim …ans'. A distribution-specific answer functional
(fewer queries) never has larger statistical dimension than a distribution-free one that can realize
all its separations.
The statistical dimension is antitone in the tolerance: a coarser separation threshold
admits fewer separated subfamilies. If τ₁ ≤ τ₂ then every τ₂-separated subfamily is already
τ₁-separated (from τ₁ ≤ τ₂ < |·|), so the filtered powerset shrinks and its sup of cardinalities
can only decrease. No nonnegativity needed; this is what lets a 2τ-net be bounded by sqDim at
the working tolerance τ.
A maximum-cardinality 2τ-separated subfamily (a 2τ-net) of a finite candidate set V
exists: the powerset of V filtered by SepFam M (2τ) is finite and nonempty (∅ is separated),
so it has a cardinality-maximal element N. The filtering predicate is SepFam M, which already
entails N ⊆ M, so sqDim M measures the net at the same threshold (no V ⊆ M hypothesis needed).
Its linear sqDim bound and covering by maximality drive the identifiability-free envelope.
Maximality ⇒ covering. A cardinality-maximal 2τ-separated subfamily N ⊆ V is a 2τ-net
of V: every v ∈ V lies within 2τ of some n ∈ N on every query. Indeed, if v were
2τ-separated from all of N, then insert v N would be a larger 2τ-separated subfamily of V,
contradicting maximality — no transitivity is used, only closeness to a representative. The
v ∈ N case (take n := v) needs 0 ≤ τ.
The mass-merge averaging bound, fully abstract (no net object needed). Reassigning each
v ∈ V to a representative ρ v that is 2τ-close on every query, and summing the nonnegative
masses w v, moves each query answer by a mass-weighted average of 2τ-close values: the merged
answer differs from the full answer by at most 2τ · Σ w. Dividing by Σ w > 0 gives the
normalized statement |A_full − A_merge| ≤ 2τ; this unnormalized form is the clean core.
The identifiability-free version-space envelope (the BFJKMR clustering argument). For any
version space V ⊆ M and 0 ≤ τ, there is a net N ⊆ V of card ≤ sqDim M τ ans, with a
retraction ρ : ι → ι sending every v ∈ V into N within 2τ on every query. Crucially there
is no pairwise-separation / identifiability hypothesis on V: N is a maximal 2τ-separated
subfamily (exists_maximal_sepFam), bounded by sqDim at threshold 2τ ≥ τ via antitonicity
(sepFam_card_le_sqDim + sqDim_antitone_tol), and covering by maximality (sep_net_covers).
Composed with merge_answer_close (masses merged onto ρ) this bounds the merged predictor's
answer shift by 2τ. This is a learner-side net-and-merge, available under Assumption A alone,
in place of 2τ-identifiability.
Reusing SQBounds.PolyBounded verbatim: if the GENUINE statistical dimension of a
family is polynomially bounded (Assumption A) and each survivor set is pairwise τ-separated, then
the survivor count is poly. This is SQBounds.candidates_polyBounded instantiated with the
A = m = 1 envelope supplied by survivors_card_le_sqDim.
Correlational answer functional on the parity class: ansPar φ S is the normalized correlation
⟨χ_φ, χ_S⟩ of two characters (queries = characters too).
Equations
- SQObjects.ansPar φ S = (2 ^ n)⁻¹ * ∑ x : Fin n → ZMod 2, SQObjects.χ φ x * SQObjects.χ S x
Instances For
Headline: parity's statistical dimension is ≥ 2^n for any τ < 1 — the whole
2^n-element class Finset.univ is τ-separated (query φ = S gives |ansPar S S − ansPar S T| = 1). Turns the MODELED d_SQ = 2^Ω(n) premise into a theorem.
Bridge: the GENUINE parity dimension dominates the modeled exponential stand-in
(dSQ (log 2) n = exp(n·log 2) = 2^n).