How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Sample compression and PAC-Bayes bounds — Examples
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Convexity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Empirical-Process Complexity
- Estimators and Randomized Procedures
- Finite Counting, Factorials and Binomial Coefficients
- Finite-Alphabet Entropy and Divergence
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Prediction problems, risks, and empirical minimization
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sample compression and PAC-Bayes bounds
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Trust region and cubic regularization methods
- Vector Spaces, Linear Subspaces, Span and Direct Sums
- Weak Laws and Series of Independent Random Variables
2 · Logical flowchart
3 · Definitions, theorems and proofs
None yet.
4 · Examples, counterexamples and false statements
A posterior concentrated on one hypothesis
Example
Let the hypothesis space be the two-point measurable space with its full sigma-algebra, and let the prior be uniform on the two hypotheses. Let be any measurable observation space, let be a probability measure on , and let be product-measurable for a finite . Define and . For an IID sample of size with common law , take the posterior . Then , and for every fixed and , with probability at least ,
Example references
PAC-Bayes priors, posteriors, and relative entropy: defines the sample-independent prior, absolutely continuous posterior, and finite-partition relative entropy used here.
The PAC-Bayes KL generalization bound: gives the simultaneous posterior-average risk bound under the stated product-measurability and IID hypotheses.
The natural logarithm as the inverse of the exponential function: is the inverse of the real exponential on positive reals.
Alquier, User-friendly Introduction to PAC-Bayes Bounds, Chapter 2, §2.1.1: discusses the PAC-Bayes bound with a posterior concentrated on an individual predictor.
Facts & Assumptions
Given: The finite measurable hypothesis space, its uniform prior, the bounded jointly measurable loss, an IID sample with common law , and the point-mass posterior .
A prior and posterior are probability measures, and relative entropy is the supremum of finite-partition divergences using the natural logarithm. PAC-Bayes priors, posteriors, and relative entropy, Probability measures and probability spaces, The natural logarithm as the inverse of the exponential function
For the fixed prior and bounded product-measurable loss, with probability at least the PAC-Bayes inequality holds simultaneously for every posterior absolutely continuous with respect to the prior. The PAC-Bayes KL generalization bound
Verification
Given: The finite measurable hypothesis space, uniform sample-independent prior, bounded product-measurable loss, IID sample with common law , and posterior in the Example.
The posterior is absolutely continuous with respect to the uniform prior because every prior-null subset of is empty. For a finite measurable partition, if its cells keep together, its divergence is ; if it separates them, the cell containing contributes and the other cell contributes . Hence every partition divergence is at most , and the partition into singletons attains it, so [F1] gives .
Since is concentrated at , its population and empirical risk averages are respectively and . Applying [F2] to this posterior gives the displayed inequality with probability at least .
A data-dependent prior can invalidate the PAC-Bayes bound
Statement refuted
Let with its full sigma-algebra, let be uniform on , let , and let with its full sigma-algebra, where . Use the zero-one loss , the sample size , confidence , and tuning parameter . Draw independent observations with common law . For each sample , let be the lexicographically first ten-element subset disjoint from and put . Even if one drops the requirement that the prior be fixed independently of the sample, the same PAC-Bayes formula holds with probability at least over this sample: where , , and is the supremum of the finite-partition divergences with zero-numerator terms equal to and positive-numerator/zero-denominator terms equal to .
Statement references
The PAC-Bayes KL generalization bound: gives this form of bound when the prior is fixed independently of the sample.
PAC-Bayes priors, posteriors, and relative entropy: defines the prior's sample-independence requirement and the finite-partition relative entropy.
The natural logarithm as the inverse of the exponential function: is the inverse of the real exponential on positive reals.
Alquier, User-friendly Introduction to PAC-Bayes Bounds, Chapter 2, §2.1.1: states the PAC-Bayes result with a prior fixed before observing the sample.
Facts & Assumptions
Given: The finite instance space and hypothesis class with their full sigma-algebras, the uniform distribution , the target , the indicator hypotheses , and an IID sample .
A probability measure has total mass one; population risk is the integral of the loss, empirical risk is its sample average, and fixed-predictor risks are measurable under the stated assumptions. Probability measures and probability spaces, Population and empirical risk, Population and empirical risks are measurable
For each sample, relative entropy is the supremum over finite measurable partitions of the partition divergence, using the natural logarithm. PAC-Bayes priors, posteriors, and relative entropy, The natural logarithm as the inverse of the exponential function
The proved PAC-Bayes inequality assumes that its prior is fixed independently of the sample. The PAC-Bayes KL generalization bound
The natural logarithm is increasing and for satisfies . Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm, The natural logarithm is bounded above by its positive argument minus one
Counterexample
Given: The finite learning problem and the sample-dependent measures in the Statement.
For each sample , its observed support has at most ten points, so its complement in has at least ten points. Let be the lexicographically first ten-element subset of that complement. This defines a measurable function of the sample because the sample space is finite. Put .
Every has ten points, so [F1] gives . Since is disjoint from the sample support, every sampled label is predicted as zero and .
The measures and are equal, so every finite-partition divergence is zero and [F2] gives . By [F4], , and therefore the proposed right side is at most . Thus the displayed inequality fails for every sample.
The failure probability is one, contradicting the claimed success probability . The choice violates the fixed-prior hypothesis [F3], which is why this construction does not contradict the stated PAC-Bayes theorem.
A finite-support sample-compressed classifier
Example
Let with its full sigma-algebra, let be uniform on , and let for the target . Define to be the constant-zero map. For each positive sample length , the compressor selects the index of the first occurrence of each distinct input in the labeled sample; for length zero it selects the empty index set. For each selected ordered sequence of length , the fixed reconstruction map returns the selected label at the first selected entry whose input equals its argument, if such an entry exists, and returns otherwise; the empty sequence is reconstructed by . This is a deterministic consistent compression scheme of size at most . Draw independent observations with law and define . The reconstructed classifier has risk exactly when all observations are , and otherwise has risk . Consequently, at threshold its failure probability is , bounded by the compression theorem's value .
Example references
Deterministic sample-compression schemes: defines deterministic index selection, reconstruction from selected labeled entries alone, and consistency.
The sample-compression generalization bound: bounds the bad consistent reconstruction probability by the finite sum over index subsets.
Population and empirical risk: population risk is disagreement probability and empirical risk is the sample average for zero-one loss.
Floyd and Warmuth, Sample Compression, Learnability, and the Vapnik–Chervonenkis Dimension, §3 and Theorem 5: gives the sample-compression setup and its generalization bound.
Facts & Assumptions
Given: The two-point measurable instance space, uniform distribution, identity target, the first-occurrence compressor, and the reconstruction rule in the Example.
A size-at-most-two compression scheme measurably selects at most two indices and reconstructs using only the selected labeled entries in sample order through fixed measurable maps. It is consistent if the reconstruction reproduces every label of every target-labeled sample. Deterministic sample-compression schemes
For the fixed target, population risk is disagreement probability and empirical risk is the average sample disagreement; both are well-defined for measurable predictors. Population and empirical risk, Population and empirical risks are measurable
For a size-at-most- consistent scheme with , the probability of any consistent reconstructed hypothesis of risk greater than is at most . The sample-compression generalization bound
Verification
Given: The two-point measurable instance space, uniform distribution, identity target, first-occurrence compressor, and reconstruction rule in the Example.
For the empty sample, the selected index set is empty and consistency is vacuous. For a positive-length sequence, the set of first-occurrence indices has at most two members, and the reconstruction maps are fixed functions of the selected entries. On a sample labeled by , if an input occurs in the full sample, its first occurrence is selected and its selected label is ; if it does not occur, no sample-consistency condition applies at . Thus the reconstructed function agrees with every observed label, so the scheme is consistent in the sense of [F1]. All spaces are finite with their full sigma-algebras, so the compressor, reconstructor, risk, and output-risk event are measurable.
If at least one observation equals , then the reconstruction returns at input and returns at input , either from a selected entry or by the default rule, so its risk is . If every observation is , it returns at both inputs and errs only at , so [F2] gives risk . Independence and make the latter event have probability .
For , the size parameter satisfies . At , step 2.1 shows that the event is exactly the all-zero sample event, hence has probability . Its value is at most , which is the term in the sum in [F3]; all other terms are nonnegative. Thus the exact example probability is bounded by as stated.