The quadratic security gap: 2^d dominates d² for d ≥ 4.
ProvedAlgebraicLearningTheory.postQuantum_quadratic_gapaether-catalogmachinelearning
The quadratic security gap: 2^d dominates d² for d ≥ 4. This gives a stronger-than-linear security margin.
Impact: even if learning requires Θ(d²) operations, the breaking
time 2^d is still exponentially larger for lattice_crypto.
theorem AlgebraicLearningTheory.postQuantum_quadratic_gap(d : ℕ) (hd : 4 ≤ d) :
d ^ 2 ≤ 2 ^ d := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/Foundations.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/Foundations.lean
import Mathlib
import Definitions.Def_MachineLearning_Foundations
/-
Copyright (c) 2025. All rights reserved.
Released under Apache 2.0 license.
# Algebraic Learning Theory — Foundations
This file opens the field of **algebraic learning theory**: the systematic transfer
of statistical learning theory (VC dimension, Rademacher complexity, PAC bounds) from
vector spaces over ℝ to modules over arbitrary semirings.
## Bridge: Commutative Algebra ↔ Statistical Learning Theory
Classical learning theory secretly depends only on the *algebraic* structure of hypothesis
classes, not on the analytic structure of ℝ. By replacing vector spaces with modules and
norms with spectral valuations, we obtain a strictly more general framework.
## Main Results
- `AlgebraicHypothesisClass`: Hypothesis class parametrized by an S-module M
- `algebraicShattering`: The semiring analogue of VC shattering
- `ModuleRestrictionMap`: The S-linear restriction map from M to S^A
- `field_shattering_card_le_finrank`: **The fundamental theorem** — over a field,
shattering a set of size n requires finrank ≥ n
- `SpectralLearningWeight`: Bridge to algebraic geometry via Spec(S)
- `PostQuantumHypothesis`: Bridge to lattice-based post-quantum cryptography
## Applications
- **Post-quantum cryptography**: Lattice-based security from ℤ-module VC bounds
- **Certified robustness**: Lipschitz bounds from module structure
- **Tropical ML**: Spectral decomposition over idempotent semirings
-/
open scoped Classical NNReal
open AlgebraicLearningTheory
/-! ## Core Definitions -/
/-! ## Embed Linearity Consequences -/
/-! ## The Restriction Map
The key construction connecting algebra to learning theory:
given a finite set A ⊆ X, the **restriction map** sends each module element m
to the tuple of evaluations (H.embed m a)_{a ∈ A}. This is an S-linear map
from M to S^A, and shattering is equivalent to its surjectivity. -/
/-! ## Shattering Characterization -/
/-! ## The Fundamental VC Bound over Fields
**Theorem**: Over a field K, if a finite-dimensional K-vector space V parametrizes
a hypothesis class H, and A ⊆ X is shattered, then |A| ≤ dim_K(V).
This is the algebraic core of the Vapnik-Chervonenkis theorem, proved purely
via linear algebra (rank of the restriction map). -/
/-! ## Direct Sum Decomposition
The direct product of two hypothesis classes gives a new hypothesis class.
This connects ensemble learning (combining classifiers) to module direct sums. -/
/-! ## Spectral Learning Weight
Bridge to algebraic geometry: assign a learning-theoretic weight to each
prime ideal of S, measuring the "local complexity" of the hypothesis class
at that prime. This is the foundation for the spectral Rademacher decomposition. -/
/-! ## Lipschitz-Certified Hypothesis Classes
Bridge to certified robustness in ML: a hypothesis class with a Lipschitz
certificate ensures that small perturbations of input produce small changes
in output. -/
/-! ## Post-Quantum Hypothesis Classes
Bridge to post-quantum cryptography: hypothesis classes over ℤ-modules
whose hardness is tied to lattice problems (SVP, CVP). -/
/-! ## Algebraic PAC Learning -/
/-! ## VC Dimension Predicate -/
/-! ## Instances and Examples -/
/-! ## Morphisms and Functoriality
Hypothesis classes form a category: morphisms are module homomorphisms
that respect the embedding. -/
/-! ## Kernel and Rank-Nullity -/
/-! ## Sample Complexity Bounds -/
/-! ## Security Gap Theorems
The security gap between polynomial-time learning and exponential-time
lattice breaking establishes post-quantum security. -/Formal statement
theorem AlgebraicLearningTheory.postQuantum_quadratic_gap(d : ℕ) (hd : 4 ≤ d) :
d ^ 2 ≤ 2 ^ d := by sorrySource