Skip to main content

Verification dashboard

Lean verification in TheoremPath.

TheoremPath publishes a scoped set of Lean-verified theorems governed by a manifest. Statements in the manifest are the canonical claims; page prose is informal exposition. Verification is per-claim, not per-page.

Source repository: github.com/Robby955/FormalSLT. Public source links point to exact files; internal-only rows retain a labeled finder fallback.

Theorem statements
56
Manifest entries, all at status lean_verified. 56 of 56 record sorryCount 0 and admitCount 0.
Publicly reproducible
14 of 56
Public wrapper file and the check-time site pin are both available on public main.
Public source, pin pending
10 of 56
The wrapper file is public; the check-time site pin is not yet public.
Internally checked only
32 of 56
Compiled in a private tree. The wrapper file is not in public FormalSLT, so the command below does not check these.

Axiom profile. No manifest entry records an axiom outside the mathlib core set. Entries naming propext, Classical.choice, Quot.sound explicitly: 1 of 56. The remaining 55 record an empty non-core axiom list, shown as "core only" in the status table below.

Pins. Toolchain leanprover/lean4:v4.30.0-rc2, mathlib 25b7ac7d0cf8eef34ced5525f4a62b7613ad649b. Every manifest entry carries those two values, and the Lean tree committed under verification/lean pins the same pair.

git clone https://github.com/Robby955/FormalSLT.git
cd FormalSLT
git checkout 3a3ee0d566f7916fc630db59de6a100d4e511eb0
lake exe cache get
lake build

That builds the public FormalSLT library at the revision the reproducibility audit was taken against. It covers the publicly reproducible entries. The internal-only entries are not in that repository, and the command says nothing about them.

Manifest 2026-05-07, generated May 7, 2026 (107 days old at this site build) · core axiom set: propext, Classical.choice, Quot.sound · most recent per-entry check May 7, 2026 · reproducibility audit generated August 2, 2026 (21 days old at this site build) against FormalSLT 3a3ee0d566. Counts are as of those dates and have not been re-run since.

FormalSLT package

FormalSLT is a public Lean 4 / Mathlib4 library for finite-sample statistical learning theory.

The library records explicit theorem statements, constants, and scope boundaries for finite learning-theory proof routes, with every hypothesis and constant in the type signature rather than buried in tactic blocks. It is sorry-free and axiom-clean. The checked surface spans PAC-Bayes (Donsker-Varadhan, Catoni, McAllester, finite Bernstein margin-proxy), VC and finite-class routes (Sauer-Shelah, Massart, the binary-VC bridge, ERM excess-risk sample complexity), sharp McDiarmid with the 2B² exponent, Dudley-to-Rademacher chaining to a covering-number entropy-integral endpoint, and anytime-valid sub-Gamma confidence sequences.

The contribution is complementary breadth. It does not claim to be the first or the only such library. FormalSLT is one of the known Lean 4 SLT formalizations and is built to compose with the others: peers hold the continuous empirical-process priority (Zhang et al., 2026; Sonoda et al., 2025), while FormalSLT targets the finite PAC-VC, PAC-Bayes, and Bousquet-Elisseeff stability chains.

Explore the library

FormalSLT theorem families with concrete Lean declarations.

These entries summarize the public-facing surface and the adjacent checked families in the FormalSLT README. Each card has a theorem statement, a scope line, and an axiom-clean profile.

Rademacher

High-probability Rademacher bound

axiom-clean

Bounds the one-sided generalization gap by expected empirical Rademacher complexity plus an Azuma tail term.

Scope: finite class, bounded measurable loss, iid product sample.

FormalSLT.Rademacher.HighProbability.genGap_highProb_rademacher

VC

VC ERM excess-risk tail

axiom-clean

Composes VC-style growth, Massart, uniform deviation, and ERM to obtain an excess-risk tail bound.

Scope: finite class, user-supplied growth assumptions, Azuma constant.

FormalSLT.VC.SampleComplexity.vc_erm_excessRisk_tail

Stability

Uniform-stability corollary

axiom-clean

Derives a finite high-probability stability bound from explicit uniform-stability hypotheses.

Scope: finite sample, stability parameter, bounded difference route.

FormalSLT.AlgorithmicStability.bousquet_elisseeff_uniform_stability_corollary

Measure stability

Bounded-loss measurable stability wrapper

axiom-clean

Routes bounded measurable losses through the iid product-measure stability expected-gap theorem.

Scope: iid product measure, bounded loss, expected one-sided gap.

FormalSLT.AlgorithmicStability.expectedStabilityGap_le_uniformStability_piMeasure_of_boundedLoss

PAC-Bayes finite

Finite Catoni bad-event bound

axiom-clean

Bounds the mass of finite bounded-loss samples where a Catoni-style posterior certificate fails.

Scope: finite hypotheses, finite PMFs, bounded loss in [0,1].

FormalSLT.PACBayesBoundedLoss.finiteCatoni_badEventMass_le_delta

Confidence sequence

Finite-class dyadic confidence sequence

axiom-clean

Bounds the event that any finite-class hypothesis crosses a dyadic Hoeffding radius at any counted time.

Scope: finite class, countable dyadic time budget, zero-one range.

FormalSLT.UniformConvergence.FiniteClassConfidenceSequence.failure_probability_le

Dudley

Unit-interval finite-net Dudley bridge

axiom-clean

Routes a concrete non-finite unit-interval index example through rounded finite dyadic grids and finite chaining.

Scope: concrete process X(b,t) = sign(b) * t, finite-net bridge, supplied supremum.

FormalSLT.Covering.UnitIntervalDudley.unitIntervalRademacherLinearSup_roundedDyadicGrid_dudley_m_bound_prefixFree

Verified SLT spine

These cards form the learning-theory front door: selected topic claims mapped to governed Lean declarations, with scope and proof boundaries shown beside the theorem. The complete audit log remains the manifest table below, one row per entry with its reproducibility class. This section highlights 13 entries.

Symmetrization

Finite-sample Rademacher symmetrization

Lean verified

Internally checked

E[genGap] <= 2 * E[empirical Rademacher complexity]

Lean declaration

expected_genGap_le_two_expected_empiricalRademacherComplexityInternal-only file finderInternal-only entry; public source is not available.

Scope

finite index class, iid sample, bounded measurable losses

Boundary

finite index class, iid sample, bounded measurable losses

Rademacher

High-probability Rademacher bound

Lean verified

Internally checked

P(genGap >= 2 * E[Rad] + eps) has Azuma tail

Lean declaration

genGap_highProb_rademacherInternal-only file finderInternal-only entry; public source is not available.

Scope

finite class, bounded loss, one-sided genGap, Azuma constant

Boundary

Lean formalization proves the one-sided genGap bound with Azuma constant (factor-of-4 looser than sharp McDiarmid). The governed page claim states the full two-sided uniformDeviation form with sharp McDiarmid constant and confidence-delta parametrization. The Lean result is a strict subset of the page claim.

Rademacher

Massart finite-class bound

Lean verified

Internally checked

empirical Rademacher complexity <= B * sqrt(2 log card / n)

Lean declaration

empiricalRademacherComplexity_le_massart_effectiveInternal-only file finderInternal-only entry; public source is not available.

Scope

finite effective class, bounded loss, nontrivial cardinality case

Boundary

finite effective class, bounded loss, nontrivial cardinality case

VC

VC-style Rademacher bound

Lean verified

Internally checked

Rad <= B * sqrt(2d log(en/d) / n)

Lean declaration

vcRademacher_pointwiseInternal-only file finderInternal-only entry; public source is not available.

Scope

finite class, user-supplied effective-growth assumption

Boundary

User supplies the effective-growth assumption for generic losses. For binary classifiers with 0-1 loss, the bridge is closed (BinaryVCBridge.lean).

VC

VC uniform-deviation bound

Lean verified

Internally checked

two-sided uniform deviation via VC growth and Azuma

Lean declaration

uniformDeviation_highProb_vcClassInternal-only file finderInternal-only entry; public source is not available.

Scope

finite class, bounded loss, growth assumptions for loss and negated loss

Boundary

Azuma constant (8B² not 2B²). Binary VC bridge now closed for 0-1 loss. Generic losses still need user-supplied growth.

VC

Binary VC bridge

Lean verified

Publicly reproducible

0-1 loss effective class card = binary trace card

Lean declaration

effectiveClass_zeroOneLoss_card_eq_binaryClassTraceFormalSLT/VC/BinaryVCBridge.lean

Scope

binary classifiers, 0-1 loss, finite class

Boundary

Binary classifiers with 0-1 loss only. Does not cover real-valued loss or multi-class. No contraction.

Rademacher

Finite scalar contraction

Lean verified

Internally checked

Rad_S(phi o F) <= L * Rad_S(F)

Lean declaration

empiricalRademacherComplexity_contraction_lipschitzInternal-only file finderInternal-only entry; public source is not available.

Scope

finite sample, finite class, scalar-valued functions

Boundary

Finite sample, finite nonempty hypothesis class, scalar outputs only; not full general Talagrand contraction.

Rademacher

Linear predictors

Lean verified

Internally checked

Rad_S({x -> <w, x>}) <= R / n * sqrt(sum_i ||x_i||^2)

Lean declaration

linearPredictor_rademacherInternal-only file finderInternal-only entry; public source is not available.

Scope

finite-dimensional Euclidean features, finite indexed weights

Boundary

Finite sample, finite nonempty indexed weight family, finite-dimensional Euclidean feature space only.

PAC-Bayes

Finite Catoni bound

Lean verified

Public source, re-verification pending

finite bounded-loss Catoni bad-event mass <= delta

Lean declaration

finiteCatoni_badEventMass_le_deltaFormalSLT/PACBayesBoundedLoss.lean

Scope

finite hypotheses, finite prior/posterior PMFs, [0,1] losses

Boundary

Finite data domain, finite nonempty hypothesis index, finite prior/posterior PMFs, scalar [0,1] losses, positive n/lambda/delta, and fixed lambda only. The fixed-budget and finite-grid square-root corollaries are separate finite claims; continuous posterior PAC-Bayes and infinite hypothesis classes remain outside this claim.

PAC-Bayes

Fixed-budget McAllester bound

Lean verified

Public source, re-verification pending

R(rho) <= Rhat_S(rho) + sqrt(C / (2n)) outside a delta event

Lean declaration

finiteMcAllesterBoundedComplexity_badEventMass_le_deltaFormalSLT/PACBayesBoundedLoss.lean

Scope

finite hypotheses, finite PMFs, [0,1] losses, fixed budget C

Boundary

Finite data domain, finite nonempty hypothesis index, finite prior/posterior PMFs, scalar [0,1] losses, positive n/delta, and one fixed positive complexity budget C. The finite-grid theorem removes the single-budget restriction under an explicit grid-cover certificate; continuous posteriors and infinite hypothesis classes remain outside this claim.

PAC-Bayes

Finite-grid McAllester bound

Lean verified

Public source, re-verification pending

finite lambda-grid peeling removes the single-budget restriction

Lean declaration

finiteMcAllesterGridOptimized_badEventMass_le_deltaFormalSLT/PACBayesBoundedLoss.lean

Scope

finite hypotheses, finite PMFs, [0,1] losses, explicit grid cover

Boundary

Finite data domain, finite nonempty hypothesis index, finite prior/posterior PMFs, scalar [0,1] losses, positive n and grid confidence allocations, and an explicit finite grid-cover certificate. Does not prove continuous posterior PAC-Bayes, infinite hypothesis classes, or all-real-lambda optimization.

Stability

Expected uniform-stability gap

Lean verified

Public source, re-verification pending

uniform stability beta => E[genGap(A(S), S)] <= beta

Lean declaration

expectedFiniteGeneralizationGap_le_uniformStability_finiteProductFormalSLT/AlgorithmicStability.lean

Scope

finite iid product sample weights, scalar loss, one-sided expectation

Boundary

The Lean wrapper proves the finite one-sided expected bound E_S[R(A(S)) - Rhat_S(A(S))] <= beta. The page theorem also discusses an absolute-value expected form and a high-probability Bousquet-Elisseeff concentration bound, which remain outside this Lean entry.

Status table

One row per manifest entry, sorted by claim ID. Public wrapper files link to their exact blob paths in github.com/Robby955/FormalSLT. Internal-only entries use a labeled file-finder fallback. The reproducibility label states whether the wrapper and check-time pin are public.

Claim IDTopic pageLean declarationModeReproducibilityAxiomsLast checked
claim:algorithmic-stability::uniform-stability-generalizationalgorithmic-stability
AlgorithmicStability.expectedFiniteGeneralizationGap_le_uniformStability_finiteProductFormalSLT/AlgorithmicStability.lean
scoped bridgePublic source, re-verification pendingpropext, Classical.choice, Quot.soundMay 7, 2026
claim:asymptotic-statistics::continuous-mapping-theoremasymptotic-statistics
AsymptoticStatistics.continuousMappingTheoremContinuousInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:asymptotic-statistics::slutsky-theoremasymptotic-statistics
AsymptoticStatistics.slutskyTheoremPairInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyMay 2, 2026
claim:common-inequalities::cauchy-schwarz-inequalitycommon-inequalities
CommonInequalities.cauchySchwarzRealInnerInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:common-inequalities::jensen-inequalitycommon-inequalities
CommonInequalities.jensenIntegralAverageConvexInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 30, 2026
claim:concentration-inequalities::chebyshev-inequalityconcentration-inequalities
Concentration.chebyshevInequalityVarianceFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 28, 2026
claim:concentration-inequalities::hoeffding-one-sided-finite-sumconcentration-inequalities
Concentration.hoeffdingBoundedFiniteSumTailFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 28, 2026
claim:concentration-inequalities::markov-inequalityconcentration-inequalities
Concentration.markovInequalityRealIntegrableFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 28, 2026
claim:concentration-inequalities::sub-gaussian-sum-tail-boundconcentration-inequalities
Concentration.subGaussianFiniteSumTailBoundFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 28, 2026
claim:empirical-risk-minimization::finite-class-hoeffding-approx-erm-excess-risk-tailempirical-risk-minimization
ERMGeneralization.finiteClass_hoeffding_approxERM_excessRisk_tailFormalSLT/Rademacher/ERMGeneralization.lean
scoped bridgePublicly reproduciblecore onlyMay 3, 2026
claim:empirical-risk-minimization::finite-class-hoeffding-erm-excess-risk-tailempirical-risk-minimization
ERMGeneralization.finiteClass_hoeffding_exactERM_excessRisk_tailFormalSLT/Rademacher/ERMGeneralization.lean
scoped bridgePublicly reproduciblecore onlyMay 3, 2026
claim:empirical-risk-minimization::vc-style-erm-excess-risk-tailempirical-risk-minimization
VCSampleComplexity.vc_erm_excessRisk_tailInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 5, 2026
claim:expectation-variance-covariance-moments::law-of-total-varianceexpectation-variance-covariance-moments
Moments.lawOfTotalVarianceInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 30, 2026
claim:expectation-variance-covariance-moments::linearity-of-expectationexpectation-variance-covariance-moments
FiniteExpectation.linearityOfExpectationIntegrableFormalSLT/Probability/FiniteExpectation.lean
exact wrapperPublicly reproduciblecore onlyApril 28, 2026
claim:expectation-variance-covariance-moments::variance-of-sumexpectation-variance-covariance-moments
Moments.varianceOfFiniteSumWithCovarianceInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-basic-identitieskolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureBasicIdentitiesInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-complement-rulekolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureComplementRuleInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-continuity-from-abovekolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureContinuityFromAboveInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-continuity-from-belowkolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureContinuityFromBelowInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-countable-additivitykolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureCountableAdditivityInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-countable-union-boundkolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureCountableUnionBoundInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-finite-additivitykolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureFiniteAdditivityInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:kolmogorov-probability-axioms::probability-measure-finite-union-boundkolmogorov-probability-axioms
KolmogorovAxioms.probabilityMeasureFiniteUnionBoundInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:law-of-large-numbers::strong-law-of-large-numberslaw-of-large-numbers
LawOfLargeNumbers.strongLawAverageTendstoAlmostSureInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 30, 2026
claim:law-of-large-numbers::weak-law-of-large-numberslaw-of-large-numbers
LawOfLargeNumbers.weakLawAverageTendstoInMeasureInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 30, 2026
claim:martingale-theory::azuma-hoeffdingmartingale-theory
Concentration.azumaHoeffdingConditionalSubGaussianTailFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 30, 2026
claim:martingale-theory::doob-weak-maximal-inequalitymartingale-theory
Martingale.doobWeakMaximalInequalityInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 30, 2026
claim:measure-theoretic-probability::borel-cantelli-firstmeasure-theoretic-probability
BorelCantelli.borelCantelliFirstLimsupMeasureZeroInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:measure-theoretic-probability::borel-cantelli-secondmeasure-theoretic-probability
BorelCantelli.borelCantelliSecondIndependentLimsupMeasureOneInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 29, 2026
claim:measure-theoretic-probability::dominated-convergence-theoremmeasure-theoretic-probability
MeasureConvergence.dominatedConvergenceIntegralInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:measure-theoretic-probability::fatou-lemmameasure-theoretic-probability
MeasureConvergence.fatouLemmaLIntegralInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:measure-theoretic-probability::monotone-convergence-theoremmeasure-theoretic-probability
MeasureConvergence.monotoneConvergenceLIntegralInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026
claim:pac-bayes-bounds::donsker-varadhan-finite-change-of-measurepac-bayes-bounds
PACBayesKL.donsker_varadhanFormalSLT/PACBayesKL.lean
scoped bridgePublicly reproduciblecore onlyMay 6, 2026
claim:pac-bayes-bounds::finite-catoni-bounded-loss-pac-bayes-boundpac-bayes-bounds
PACBayesBoundedLoss.finiteCatoni_badEventMass_le_deltaFormalSLT/PACBayesBoundedLoss.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 7, 2026
claim:pac-bayes-bounds::finite-grid-mcallester-optimized-pac-bayes-boundpac-bayes-bounds
PACBayesBoundedLoss.finiteMcAllesterGridOptimized_badEventMass_le_deltaFormalSLT/PACBayesBoundedLoss.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 7, 2026
claim:pac-bayes-bounds::finite-mcallester-fixed-budget-pac-bayes-boundpac-bayes-bounds
PACBayesBoundedLoss.finiteMcAllesterBoundedComplexity_badEventMass_le_deltaFormalSLT/PACBayesBoundedLoss.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 7, 2026
claim:pac-bayes-bounds::finite-pmf-kl-nonnegativitypac-bayes-bounds
PACBayesKL.klDiv_nonnegFormalSLT/PACBayesKL.lean
scoped bridgePublicly reproduciblecore onlyMay 6, 2026
claim:pac-bayes-bounds::posterior-gap-finite-change-of-measurepac-bayes-bounds
PACBayesKL.posterior_generalization_gap_change_of_measureFormalSLT/PACBayesKL.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 6, 2026
claim:pac-bayes-bounds::posterior-risk-finite-lambda-rearrangementpac-bayes-bounds
PACBayesKL.posterior_risk_le_empiricalRisk_plus_of_log_moment_boundFormalSLT/PACBayesKL.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 6, 2026
claim:pac-bayes-bounds::prior-exp-moment-finite-markov-confidence-adapterpac-bayes-bounds
PACBayesKL.priorExpMoment_tailMass_le_delta_of_expected_boundFormalSLT/PACBayesKL.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 6, 2026
claim:rademacher-complexity::finite-sample-contractionrademacher-complexity
RademacherContraction.empiricalRademacherComplexity_contraction_lipschitzInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 6, 2026
claim:rademacher-complexity::high-probability-rademacher-gengap-boundrademacher-complexity
HighProbRademacher.genGap_highProb_rademacherInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 4, 2026
claim:rademacher-complexity::linear-predictor-rademacher-boundrademacher-complexity
LinearPredictorRademacher.linearPredictor_rademacherInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 6, 2026
claim:rademacher-complexity::massart-finite-class-boundrademacher-complexity
VCRademacher.empiricalRademacherComplexity_le_massart_effectiveInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 5, 2026
claim:rademacher-complexity::one-lipschitz-empirical-rademacher-contractionrademacher-complexity
RademacherContraction.contraction_empiricalInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 6, 2026
claim:rademacher-complexity::vc-style-rademacher-boundrademacher-complexity
VCSampleComplexity.vcRademacher_pointwiseInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 5, 2026
claim:subgaussian-random-variables::hoeffding-lemmasubgaussian-random-variables
Concentration.hoeffdingLemmaBoundedCenteredSubgaussianMGFFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 29, 2026
claim:subgaussian-random-variables::subgaussian-linear-combinationsubgaussian-random-variables
Concentration.subGaussianIndependentFiniteLinearCombinationMGFFormalSLT/Probability/Concentration.lean
exact wrapperPublicly reproduciblecore onlyApril 29, 2026
claim:subgaussian-random-variables::subgaussian-mgf-characterizationsubgaussian-random-variables
Concentration.subGaussianMGFImpliesRightTailBoundFormalSLT/Probability/Concentration.lean
exact wrapperPublic source, re-verification pendingcore onlyApril 29, 2026
claim:symmetrization-inequality::finite-sample-rademacher-symmetrizationsymmetrization-inequality
RademacherSymmetrization.expected_genGap_le_two_expected_empiricalRademacherComplexityInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 4, 2026
claim:symmetrization-inequality::one-sample-finite-class-symmetrizationsymmetrization-inequality
Rademacher.oneSampleFiniteClassSymmetrizationFormalSLT/Covering/Rademacher.lean
scoped bridgePublic source, re-verification pendingcore onlyMay 3, 2026
claim:uniform-convergence::epsilon-representative-sampleuniform-convergence
UniformConvergence.epsilonRepresentativeERMWorksFormalSLT/UniformConvergence.lean
standalonePublic source, re-verification pendingcore onlyApril 28, 2026
claim:uniform-convergence::finite-class-uniform-convergenceuniform-convergence
UniformConvergence.finiteClassEpsilonRepresentativeHighProbabilityFromOneSidedTailsFormalSLT/UniformConvergence.lean
scoped bridgePublicly reproduciblecore onlyApril 30, 2026
claim:uniform-convergence::vc-style-uniform-deviation-bounduniform-convergence
VCSampleComplexity.uniformDeviation_highProb_vcClassInternal-only file finderInternal-only entry; public source is not available.
scoped bridgeInternally checkedcore onlyMay 5, 2026
claim:vc-dimension::binary-vc-zero-one-loss-bridgevc-dimension
BinaryVCBridge.effectiveClass_zeroOneLoss_card_eq_binaryClassTraceFormalSLT/VC/BinaryVCBridge.lean
scoped bridgePublicly reproduciblecore onlyMay 5, 2026
claim:vc-dimension::sauer-shelah-lemmavc-dimension
VCDimension.sauerShelahFiniteSetFamilyInternal-only file finderInternal-only entry; public source is not available.
exact wrapperInternally checkedcore onlyApril 28, 2026

Diagram A. Finite-class ERM chain

The probability layer behind the finite-class generalization theorem. Every arrow currently has a manifest entry behind it.

Diagram A. Finite-class ERM chain (probability layer). Solid arrows are Lean-verified. No dashed arrows yet at this layer.

Fixed-hypothesis Hoeffdingone-sided finite sumTwo-sided deviationfrom one-sided tailsFinite union boundprobability measureUniform convergencescoped bridgeExact / approximate ERMexcess-risk tailFinite-class generalizationdeterministic, finite classverifiedplanned

Diagram B. Rademacher chain

The core learning-theory generalization layer. These six nodes are verified end to end (Stages 1, 2, 3 chained by transitivity, plus the high-probability bound via Azuma concentration). The contraction and linear-predictor entries are listed separately in the manifest table and assumption blocks.

Diagram B. Rademacher chain (learning-theory layer). Solid arrows are Lean-verified. Dashed arrows are planned or future.

Finite sign vectorscombinatorialUniform sign PMFtwo-point RademacherEmpirical Rademacherexpectation formGhost-sample replacementStage 1, internalExpected Rademacher boundStage 3, manifest entryHigh-probability boundStage C, Azuma constantverifiedplanned / future

Diagram C. VC sample-complexity chain

Binary-classification VC-style ERM sample-complexity bound for 0-1 loss. Composes Sauer-Shelah polynomial bound, effective-class Massart, pointwise VC-Rademacher, high-probability genGap, two-sided uniform deviation, ERM excess-risk tail, and the binary-class VC bridge that closes the user-supplied growth assumption for 0-1 loss.

Diagram C. VC sample-complexity chain. All nodes and arrows are Lean-verified, including the binary-class VC bridge for 0-1 loss.

Sauer-Shelah polynomial(en/d)^d boundEffective-class MassartRad ≤ B√(2 log K / n)VC pointwise RademacherRad ≤ B√(2d log(en/d)/n)High-prob VC genGapone-sided, Azuma constantVC uniform deviationtwo-sided, 2·exp(−ε²n/(8B²))VC ERM excess-risk tailO(√(d log(n/d) / n))Binary-class VC bridgetrace → effective class (0-1)Lean-verified

Assumption table

Scope, assumptions, and current boundaries for the finite-class ERM, Rademacher, VC, and finite chaining tracks. The four states are visually distinct and use no badges.

ResultStatusLimitation
Exact ERM oracle inequalityverifieddeterministic
Approximate ERM oracle inequalityverifieddeterministic
Finite-class Hoeffding ERM boundverifiedfinite class, bounded loss
Finite sign-vector Rademacher machineryverifiedcombinatorial
Rademacher probability bridgeverifiedexpectation form only
Expected Rademacher symmetrizationverifiedexpectation form, finite index, bounded loss
High-probability Rademacher boundverifiedone-sided genGap, Azuma constant, finite class, bounded loss
Finite-sample scalar contractionverifiedfinite sample, finite class, scalar-valued
Linear predictor Rademacher boundverifiedfinite-dimensional Euclidean, finite indexed weights
Effective-class Massart boundverifiedfinite class, bounded loss, effective class card > 1
VC pointwise Rademacher boundverifieduser-supplied effective-growth assumption, finite class, bounded loss
VC high-probability genGapverifiedone-sided, Azuma constant, user-supplied growth, finite class
VC two-sided uniform deviationverifiedAzuma constant, user-supplied growth for ℓ and -ℓ, finite class
VC ERM excess-risk tailverifiedAzuma constant, user-supplied growth, finite class, bounded loss
Binary-class VC bridge (trace → effective class, 0-1 loss)verifiedbinary classifiers only, 0-1 loss only, finite class
Experimental finite chaining foundationverifiedfinite support layer only; not a headline governed claim
Generic PAC learnabilityextension targetrequires a separate PAC-learnability framework

Headline-theorem assumption blocks

Each block records the informal statement, the literal Lean assumptions, and the verification boundary. The Lean assumptions are reproductions of the declaration signature, not paraphrase.

Finite-class Hoeffding ERM excess-risk tail (exact ERM)

Statement (informal)

For a finite nonempty hypothesis class with iid bounded loss in [a, b], an exact ERM hypothesis, and a population-risk oracle, the excess-risk-tail probability is bounded by delta once the sample size exceeds (b - a)^2 log(2|H|/delta) / (2 epsilon^2).

Lean assumptions

[Fintype H] [Nonempty H] (hLossBounded : ∀ h x y, a ≤ ℓ h x y ∧ ℓ h x y ≤ b) (hOracle : IsERM oracle riskTrue) (hHat : IsERM hhat riskEmp) (hN : (b - a)^2 * Real.log (2 * |H| / delta) / (2 * epsilon^2) ≤ n)

Boundary

  • infinite hypothesis classes
  • Rademacher or VC-based sample complexity
  • optimizer-specific certificates such as SGD or Adam
  • broader learning-rule selection claims

Finite-class Hoeffding ERM excess-risk tail (approximate ERM with optimization slack)

Statement (informal)

Same setup as the exact-ERM theorem, but the empirical minimizer is replaced by a hypothesis whose empirical risk is within an explicit optimization slack of the ERM.

Lean assumptions

[Fintype H] [Nonempty H] (hLossBounded : ...) (hApproxERM : riskEmp hhat ≤ riskEmp (argmin riskEmp) + optError) (hN : ...)

Boundary

  • optimizer certificates for a concrete method such as SGD or Adam
  • end-to-end statistical-plus-optimization guarantees

Empirical Rademacher complexity, expectation form (PR #364)

Statement (informal)

On a finite nonempty index set, the empirical Rademacher complexity expressed as an integral against the uniform sign-vector PMF equals the discrete average over sign vectors of the supremum.

Lean assumptions

[Fintype ι] [Nonempty ι] (f : ι → SignVec n → ℝ) (hf : ∀ σ, BddAbove (Set.range (fun i => f i σ)))

Boundary

  • measure-theoretic Rademacher product measures beyond the iid product used by the symmetrization theorem

Expected finite-sample Rademacher symmetrization

Statement (informal)

For an iid sample S of size n drawn from a probability measure mu on Z, a finite nonempty index set iota of measurable losses ell_i bounded by B in absolute value, the expected supremum of (population risk minus empirical risk) is at most twice the expected empirical Rademacher complexity. Proved by transitivity through ghost-sample replacement (Stage 1) and Rademacher decoupling (Stage 2), with Fubini converting an iterated integral into a joint integral against mu^{⊗n} ⊗ mu^{⊗n}.

Lean assumptions

{ι : Type*} [Fintype ι] [Nonempty ι] {Z : Type*} [MeasurableSpace Z] {n : ℕ} (μ : Measure Z) [IsProbabilityMeasure μ] (ℓ : ι → Z → ℝ) {B : ℝ} (hB : 0 ≤ B) (hℓ_meas : ∀ i, Measurable (ℓ i)) (hℓ_bdd : ∀ i z, |ℓ i z| ≤ B) (hn : 0 < n)

Boundary

  • two-sided uniform deviation and sharp-McDiarmid constants are separate targets
  • infinite hypothesis classes and VC-based sample complexity require later layers
  • Lipschitz-composed real-valued losses use the contraction route
  • algorithm-specific guarantees such as SGD, ERM, or estimator certificates are separate theorem statements

High-probability Rademacher generalization bound (Azuma constant)

Statement (informal)

For a finite nonempty hypothesis class with uniformly B-bounded measurable losses on an iid sample S ~ μⁿ: P(genGap(S) ≥ 2·E_S[empiricalRademacherComplexity] + ε) ≤ exp(-ε²n/(8B²)). Combines expected Rademacher symmetrization with the Azuma-style genGap tail bound via measure monotonicity.

Lean assumptions

{ι : Type*} [Fintype ι] [Nonempty ι] [Nonempty Z] [StandardBorelSpace Z] [IsProbabilityMeasure μ] {ℓ : ι → Z → ℝ} {B : ℝ} (hB : 0 < B) (hℓ_meas : ∀ i, Measurable (ℓ i)) (hℓ_bdd : ∀ i z, |ℓ i z| ≤ B) {n : ℕ} (hn : 0 < n) {ε : ℝ} (hε : 0 ≤ ε)

Boundary

  • two-sided uniform deviation is handled by the VC/uniform-deviation route
  • sharp McDiarmid is a future constant-improvement lane
  • infinite hypothesis classes require measurability and approximation infrastructure
  • contraction, VC/PAC sample complexity, and neural-network results are separate proof layers

Finite-sample scalar contraction

Statement (informal)

For a finite sample, finite nonempty hypothesis class, scalar-valued functions, positive Lipschitz constant L, and φ satisfying |φ s - φ t| ≤ L |s - t|: empiricalRademacherComplexity(φ ∘ ℓ, z) ≤ L · empiricalRademacherComplexity(ℓ, z).

Lean assumptions

{ι : Type*} [Fintype ι] [Nonempty ι] {Z : Type*} {n : ℕ} {φ : ℝ → ℝ} {L : ℝ} (hL : 0 < L) (hφ_lip : ∀ s t : ℝ, |φ s - φ t| ≤ L * |s - t|) (ℓ : ι → Z → ℝ) (z : Fin n → Z)

Boundary

  • not full Talagrand contraction
  • no infinite hypothesis classes
  • no vector-valued contraction
  • no generic stochastic-process comparison theorem

Finite-dimensional linear predictor Rademacher bound

Statement (informal)

For finite weights w_i in EuclideanSpace ℝ (Fin d) with ‖w_i‖ ≤ R and finite sample z : Fin n → EuclideanSpace ℝ (Fin d), empiricalRademacherComplexity({x ↦ ⟪w_i, x⟫}, z) ≤ R · n⁻¹ · sqrt(Σ_k ‖z_k‖²). A bounded-input corollary proves the RB/sqrt(n) form.

Lean assumptions

{d n : ℕ} {ι : Type*} [Fintype ι] [Nonempty ι] (w : ι → EuclideanSpace ℝ (Fin d)) (z : Fin n → EuclideanSpace ℝ (Fin d)) (R : ℝ) (hR : 0 ≤ R) (hw : ∀ i, ‖w i‖ ≤ R) (hn : 0 < (n : ℝ))

Boundary

  • not an arbitrary Hilbert-space theorem
  • not an unindexed infinite weight ball
  • not a neural-network generalization theorem
  • bounded-input RB/sqrt(n) statement is a Lean corollary, not a separate manifest claim here

Effective-growth VC-style sample-complexity theorem (ERM excess-risk tail)

Statement (informal)

For a hypothesis class with effective-class cardinality bounded by the growth function ∑_{k≤d} C(n,k) (for ℓ and -ℓ), B-bounded loss, and an iid sample S ~ μⁿ: P(risk(ERM) - risk(best) ≥ 4B·√(2d·log(en/d)/n) + 2ε) ≤ 2·exp(-ε²n/(8B²)). Chains Sauer-Shelah → Massart → VC Rademacher → Azuma → uniform deviation → ERM.

Lean assumptions

{ι : Type*} [Fintype ι] [Nonempty ι] [MeasurableSpace Z] [Nonempty Z] [StandardBorelSpace Z] {μ : Measure Z} [IsProbabilityMeasure μ] {ℓ : ι → Z → ℝ} {B : ℝ} (hB : 0 < B) (hℓ_meas : ∀ i, Measurable (ℓ i)) (hℓ_bdd : ∀ i z, |ℓ i z| ≤ B) {n d : ℕ} (hn : 0 < n) (hd : 0 < d) (hdn : d ≤ n) (hGrowth_uniform : ∀ z, (effectiveClass ℓ z).card ≤ ∑ k ∈ range (d+1), n.choose k) (hGrowth_neg : ∀ z, (effectiveClass (fun i w => -ℓ i w) z).card ≤ ...) (hhat : (Fin n → Z) → ι) (hERM : ∀ S, IsERM (empiricalRisk S ℓ) (hhat S)) (i_star : ι) {ε : ℝ} (hε : 0 ≤ ε)

Boundary

  • binary-class VC bridge closed for 0-1 loss; generic losses still need user-supplied growth
  • Azuma constant (8B² not sharp 2B²)
  • finite hypothesis classes only (no infinite classes)
  • contraction, generic PAC equivalence, and neural-network generalization are separate proof layers

Verification boundary and proof targets

These entries keep broader theorem ambitions separate from the narrower declarations already compiled by Lean. Boundaries are tracked as next-proof targets rather than inferred from adjacent results.

  • Sharp McDiarmid / two-sided Rademacher generalization bound

    The one-sided high-probability Rademacher generalization bound is verified for finite classes with the Azuma constant. Current boundaries: the two-sided uniformDeviation form, the sharp McDiarmid constant exp(-ε²n/(2B²)), infinite hypothesis classes, and the full textbook confidence-delta parametrization are separate targets.

  • Dudley's entropy integral

    The continuous entropy integral is not a governed manifest claim. The Lean tree has a verified finite chaining support layer, including finite dyadic entropy-budget and uniform entropy-cap bounds, but TheoremPath does not present it as a headline continuous Dudley theorem yet.

  • Full VC-to-PAC equivalence

    The effective-growth VC-style sample-complexity theorem is verified (Sauer-Shelah → Massart → Rademacher → ERM). The binary-class VC bridge for 0-1 loss is closed (effectiveClass.card = binaryClassTrace.card). Current boundaries: generic real-valued-loss VC bridges, the full fundamental theorem of PAC learning, and infinite hypothesis classes remain future work.

  • Generic PAC learnability

    TheoremPath verifies specific finite-class theorem chains today. A generic PAC-learnability framework is a larger formalization lane, not a consequence of a single checked declaration.

  • Page-level verification

    Manifest verification certifies exact theorem statements. Topic prose, examples, diagrams, and citations stay governed by source review unless a page explicitly links to a matching Lean claim.

  • Non-core axioms

    Every checked declaration uses only the mathlib core axiom set: propext, Classical.choice, Quot.sound. No third-party axioms.

Cross-references: evidence, methodology, and disclaimer.