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.
Prediction problems, risks, and empirical minimization
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Complete Metrizability, Čech-Completeness, and Baire Category
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- 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
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Countability Axioms and Cardinal Functions
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Estimators and Randomized Procedures
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Infinite Product Measures and Kolmogorov Extension
- Lebesgue-Stieltjes Measures and Distribution Functions
- 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 Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Polynomial Rings, the Division Algorithm and Roots
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Signed and Complex Measures Hahn and Jordan
- Simple Field Extensions and the Construction of the Complex Numbers
- Standard-Borel Real Codings and Determining Classes
- Statistical Experiments, Models and Identifiability
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Lebesgue Integral and the Convergence Theorems
- The Topology of Euclidean Space
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
2 · Logical flowchart
3 · Definitions, theorems and proofs
Supervised prediction problems
Definition
A supervised prediction problem consists of nonempty measurable spaces of instances, of labels, and of prediction actions; the product measurable space ; a probability measure on that product; a nonempty class of measurable predictors ; and a loss that is measurable with respect to . The law need not be supported on a deterministic labeling function, and this definition imposes no assumption that sample observations be independent or share a common law.
Definition references
Measurable spaces and measurable sets: a measurable space is a set with a specified sigma-algebra.
A measurable function between measurable spaces: a function is measurable when preimages of measurable sets are measurable.
The product sigma-algebra and its finite iterates: the product sigma-algebra is generated by measurable rectangles.
Probability measures and probability spaces: a probability measure has total mass one.
Loss functions and risk: a loss is nonnegative and measurable in the action variable; risk is an extended nonnegative integral.
Remarks
The joint law can be used at a fixed member of a statistical experiment. If it is selected from a parametric family, this prediction definition makes no parameter-recovery claim, and the family of laws need not distinguish parameter labels.
Remarks references
Statistical experiments: an experiment is a measurable sample space with a parameter-indexed family of probability measures.
Parametric statistical models: the parameter-to-law map need not be injective.
Population and empirical risk
Definition
For a supervised prediction problem with joint law , the population risk of any measurable predictor (in particular, every ) is the extended nonnegative integral For an ordered sample of length , the empirical risk or training risk of any such is Neither definition assumes finite risk. The sum uses extended nonnegative arithmetic; since , any summand equal to makes the empirical risk .
Definition references
Supervised prediction problems: fixes the measurable spaces, joint law, predictor class and loss.
Expectation of a nonnegative or integrable random variable: the expectation of a nonnegative measurable function is its extended integral.
Empirical risk minimizers
Definition
Fix a sample and a nonempty class of predictors. Its empirical minimum is . An exact empirical risk minimizer is a predictor with . If the infimum is finite but is not attained, no exact minimizer exists. If the infimum is , nonemptiness implies that every member has infinite empirical risk and is an exact minimizer.
For finite , a predictor is an -approximate empirical risk minimizer if either the empirical minimum is and is an exact minimizer, or the empirical minimum is finite and has finite empirical risk at most . The membership requirement applies in both branches. Thus the definition never forms . When and the finite infimum is not attained, no such predictor exists.
For a fixed sample size , a measurable prediction rule with class is a jointly measurable evaluation map from the sample space and a new instance in to , whose slice at each sample belongs to . It is an exact or approximate ERM rule when every slice satisfies the corresponding samplewise definition above. This definition asserts no existence of a measurable selector for an arbitrary class.
Definition references
Supervised prediction problems: fixes the measurable observation and predictor spaces.
Population and empirical risk: defines the samplewise empirical risk being minimized.
Population and empirical risks are measurable
Statement
In a supervised prediction problem, for every measurable predictor , the function is measurable, so its population risk is a defined extended nonnegative integral. For every sample size , the empirical risk is an extended nonnegative measurable function on the finite product sample space.
Facts & Assumptions
Given: A supervised prediction problem, a measurable predictor , and a positive integer . The sample domain is with its recursively formed product sigma-algebra.
Predictors are measurable, and the loss is measurable on the action-label product. Supervised prediction problems
The product sigma-algebra is generated by measurable rectangles and finite products are formed recursively. The product sigma-algebra and its finite iterates
Population risk is the nonnegative integral of , and empirical risk is its finite sample average. Population and empirical risk
Finite sums of measurable extended-real functions are measurable when pointwise defined; real scalar multiples of real-valued measurable functions, functions for nonnegative measurable extended-real and measurable , countable infima, and increasing pointwise limits of measurable extended-real functions are measurable. Closure properties of measurable functions used by the integral
A map is measurable when preimages of measurable sets are measurable; preimages under a composition are taken successively. A measurable function between measurable spaces
An extended-real-valued function is measurable when all of its strict-superlevel preimages are measurable. Extended-real-valued measurable functions
Proof
Given: A supervised prediction problem, a measurable predictor , and a sample size .
Define . For each measurable rectangle in , its preimage is , which belongs to by measurability of . Since the rectangles generate the target product sigma-algebra by [F2], is measurable by [F5]. Therefore is measurable by successive preimages in [F5] and nonnegative; [F3] defines .
For each coordinate , the sample projection is measurable by the finite product construction in [F2]. Hence is measurable by [F5]. The finite sum is a defined nonnegative extended-real function and is measurable by [F4]. Since , for every real we have , including when . Thus is measurable by the strict-superlevel criterion [F6], and [F3] gives measurability of .
A conditional Bayes rule minimizes population risk
Statement
Assume the Axiom of Choice. Let and be standard Borel spaces, let be a measurable action space, and let be a probability measure on . Write and for its coordinate marginals. There are regular conditional probability kernels for given and for given , with Let be measurable with respect to and define . If a measurable predictor has a measurable set with such that for every and every , then for every measurable predictor . All risks may be .
Statement references
Standard Borel spaces: a standard Borel space is measurably isomorphic to a Polish space.
Regular conditional distribution: a regular conditional distribution is an everywhere probability kernel satisfying the conditional-event integral identities.
The product sigma-algebra and its finite iterates: product sigma-algebras are generated by measurable rectangles.
The Axiom of Choice: AC asserts that every family of nonempty sets has a choice function.
Facts & Assumptions
Given: AC; standard Borel instance and label spaces; a joint probability law ; a measurable action space; a nonnegative product-measurable loss; and a measurable predictor that minimizes conditional risk on one measurable -full-measure set.
Assume the Axiom of Choice. The Axiom of Choice
A standard Borel space is measurably isomorphic to a Polish space. Standard Borel spaces
Under AC, a joint law on a product of standard Borel spaces admits a probability kernel in either coordinate direction with the rectangle disintegration identity. Disintegration of a joint law on standard borel spaces
The disintegration identity also holds for every nonnegative product-measurable integrand, including value infinity. Disintegration of a joint law on standard borel spaces
Under AC and standard Borel parameter/data hypotheses, a measurable rule attaining posterior minimum almost everywhere minimizes prior-integrated risk among all randomized rules. A posterior-risk minimizer minimizes prior risk
Population risk is the extended nonnegative integral of the loss under the joint law. Population and empirical risk
A regular conditional distribution is a probability kernel whose evaluations satisfy the conditional-event integral identity. Regular conditional distribution
Integrating a nonnegative product-measurable function against a probability kernel gives a measurable extended-valued function. Measurability of integration against a kernel
Product sigma-algebras are generated by measurable rectangles, so the coordinate swap between finite products is measurable. The product sigma-algebra and its finite iterates
A map is measurable when preimages of measurable sets are measurable; this criterion is preserved by composition. A measurable function between measurable spaces
Proof
The spaces satisfy the standard-Borel hypothesis [F1]. Apply [F2] to and to its coordinate swap. This gives and with the two displayed disintegrations; [F6] identifies them as regular conditional distributions. With prior and sampling kernel , the joint prior-data law is and the posterior is . The loss is jointly measurable because the coordinate swap on product spaces has rectangle preimages that are rectangles by [F8], and composition preserves measurability by [F9]. The lifted kernel is a probability kernel, since its evaluations are measurable by projection from ; [F7] therefore makes measurable.
For any measurable , the point-mass rule is a probability kernel, since each section is a Dirac probability measure and each evaluation is measurable by [F9]. The function is product-measurable by the rectangle-preimage criterion [F8, F9]. Its prior-integrated risk is by [F3, F5], with the same identity for . Under [F4], use parameter , prior , data , model kernel , posterior , action space , loss , and rule . Its posterior risk is , so the common full-measure minimizing premise applies; the theorem gives prior risk of no larger than that of . Thus . Since was arbitrary, the claim follows.
A standard-Borel label has a conditional kernel over an arbitrary measurable instance space
Statement
Assume the Axiom of Choice. Let be a nonempty measurable space, let be a nonempty standard Borel space, and let be a probability measure on . Put . There exists an everywhere probability kernel such that
No standard-Borel, countable-generation, or completeness hypothesis is imposed on the instance space.
Statement references
Facts & Assumptions
Given: AC, the nonempty measurable instance space, the nonempty standard Borel label space, and the joint law in the Statement.
AC is assumed for the regular-conditional-distribution existence supplier. The Axiom of Choice
Under AC, a measurable random element with standard-Borel target has a regular conditional distribution given any sub-sigma-algebra; all sections are probability measures everywhere, with no completeness or countable-generation assumption on the conditioning sigma-algebra. Existence of regular conditional distributions for standard borel targets
A regular conditional distribution of given is a probability kernel from whose evaluations satisfy for every and . In particular every evaluation is -measurable everywhere and every section is a probability measure. Regular conditional distribution, Measure kernel and probability kernel
Product sigma-algebras are generated by measurable rectangles; coordinate projections are measurable. A map is measurable when preimages of all target measurable sets are measurable, and this criterion is preserved by composition. The product sigma-algebra and its finite iterates, A measurable function between measurable spaces
Between two unequal real numbers there is a rational number. Both and are dense in , and every nonempty open subset of is uncountable
If a random element has law and is nonnegative real-valued measurable, then . Change of variables for expectation
Restricting a nonnegative measurable function to a measurable set and setting it to zero elsewhere preserves measurability. Closure properties of measurable functions used by the integral
Proof
Work on with sigma-algebra and probability . Let and . These projections are measurable by [F3], and has law . The family is a sigma-algebra, since inverse images preserve the full set, complements and countable unions; it is contained in and is exactly . Apply [F1] to the label coordinate given this exact, uncompleted , obtaining a kernel as in [F2].
Fix one and define by . As a map into it is measurable: for every , , and step 1.1 describes every set of in this form. Also for every .
Every -measurable real function is constant on each -fiber. Indeed, if but , choose a rational strictly between these values by [F4]. The measurable set equals for some by step 1.1, and so cannot contain exactly one of , a contradiction. Reversing the two points rules out the other inequality. Applying this to separately for each gives for every and every . These are pointwise identities, with no event-dependent null sets.
Define . Every is a probability measure by [F2]. For fixed , the evaluation is the composition of the -measurable evaluation of with the measurable map from step 2.1, so it is -measurable by [F3]. Thus is an everywhere probability kernel, and step 3.1 gives for every .
Fix and . The real function is measurable, nonnegative and bounded by one by [F6] and step 4.1. Apply [F5] and then [F2] to obtain . Since were arbitrary, this proves the Statement on the original arbitrary measurable instance space.
Bayes predictors and excess risk
Definition
Let be the class of all measurable predictors from to . The class Bayes risk is , and the unrestricted Bayes risk is . A class Bayes predictor is a member of attaining the first infimum; an unrestricted Bayes predictor, also called a Bayes predictor, is a member of attaining the second. No attainment is asserted. If an infimum is , every member of its nonempty class has infinite risk and attains that extended infimum, but no finite excess risk results.
For with both terms finite, its class excess risk is . For a measurable predictor with both terms finite, its unrestricted excess risk is . These differences are left undefined if either risk is infinite.
Write for the instance marginal. If a regular conditional label law given is supplied, its conditional risk is . This function is measurable when the loss is product-measurable. A conditional Bayes rule is a measurable predictor that attains on one measurable set of full -measure. Such a kernel exists under AC whenever the label space is standard Borel, even if the instance space is an arbitrary measurable space; if the label space is an arbitrary measurable space, no conditional law or measurable minimizer is asserted. When both instance and label spaces are standard Borel and AC holds, the conditional Bayes theorem shows that any such rule is an unrestricted Bayes predictor.
Definition references
Supervised prediction problems: fixes the measurable instance, label and action spaces, joint law, predictor class and loss.
Population and empirical risk: defines as the extended nonnegative population risk.
Standard Borel spaces: a standard Borel space is measurably isomorphic to a Polish space.
Regular conditional distribution: a regular conditional distribution is an everywhere probability kernel satisfying the conditional-event integral identities.
The Axiom of Choice: AC asserts that every family of nonempty sets has a choice function.
A standard-Borel label has a conditional kernel over an arbitrary measurable instance space: under AC, a joint law with standard Borel label space admits an everywhere label-given-instance probability kernel even for an arbitrary measurable instance space.
Measurability of integration against a kernel: integration of a nonnegative product-measurable function against a probability kernel is measurable.
A conditional Bayes rule minimizes population risk: under standard-Borel and AC hypotheses, a measurable conditional minimizer is globally risk-minimizing.
Kallenberg, Foundations of Modern Probability, 2nd ed., Theorem 6.3: a Borel target admits a conditional-distribution kernel from any measurable conditioning space.
Finite-list empirical risk minimization
Definition
Given a sample of length , an ordered finite nonempty list of measurable predictors , and a finite tolerance , compute for each . If every , return index . Otherwise set and return the least index for which and . The output index denotes the selected predictor from the supplied list. When , the output is a first exact minimizer, including the all-infinite case. The algorithm evaluates only a finite number of empirical risks and makes no population-risk guarantee.
Definition references
Supervised prediction problems: fixes the measurable observation and predictor spaces.
Population and empirical risk: defines each empirical risk evaluated by the procedure.
Empirical risk minimizers: defines exact and approximate ERM, including the all-infinite branch.
Population and empirical risks are measurable: the sample objective for each listed predictor is measurable.
Approximate empirical risk minimization with a supplied selector
Definition
Fix a positive sample size , a nonempty predictor class , and a finite tolerance . The input includes a supplied jointly measurable evaluation map such that every sample slice belongs to . For each sample , require that the slice is an exact empirical risk minimizer if , and otherwise has finite empirical risk at most . The procedure returns the predictor on input . Its selector is an explicit input; this procedure asserts no existence or construction of such a selector for an arbitrary class. In particular, requires attainment whenever the empirical minimum is finite.
Definition references
Supervised prediction problems: fixes the measurable sample and predictor spaces.
Population and empirical risk: defines the sample objective.
Empirical risk minimizers: defines exact and approximate ERM without forming .
Population and empirical risks are measurable: establishes measurability of the sample objective for a fixed predictor.
The finite-list ERM selector is measurable
Statement
For a sample of positive length, a finite ordered nonempty list of measurable predictors, and finite tolerance , let be the index returned by the finite-list empirical-risk algorithm. Then is measurable into the finite index set with its discrete sigma-algebra, the evaluation map is jointly measurable, and the returned predictor is an -approximate empirical risk minimizer as defined in the algorithm's input conditions. When , it is an exact minimizer.
Facts & Assumptions
Given: A supervised prediction problem, sample size , an ordered list of measurable predictors with , and finite tolerance .
The algorithm returns index when every list risk is infinite; otherwise it returns the first finite-risk index within of the finite list minimum. Finite-list empirical risk minimization
For each fixed predictor, the empirical-risk map on the sample space is extended-real measurable. Population and empirical risks are measurable
A finite-list exact or approximate ERM is defined by its empirical risk relative to the list infimum, with a separate all-infinite case. Empirical risk minimizers
Finite sums of measurable extended-real functions are measurable when pointwise defined; real scalar multiples of real-valued measurable functions, functions for nonnegative measurable extended-real and measurable , countable infima, and increasing pointwise limits of measurable extended-real functions are measurable. Closure properties of measurable functions used by the integral
The finite sample-and-instance product sigma-algebra contains measurable rectangles and is closed under finite unions and differences. The product sigma-algebra and its finite iterates
An extended-real function is measurable when preimages of Borel sets, including the finite-value ray, are measurable. Extended-real-valued measurable functions
A map between measurable spaces is measurable exactly when preimages of measurable sets are measurable. A measurable function between measurable spaces
Proof
For , put and . By [F2] each is measurable. The finite minimum is the infimum of the measurable sequence , so [F4] makes measurable. Thus is measurable by [F6].
Define finite nonnegative measurable functions and . Their measurability follows from [F4], including the convention . The sets and are measurable by [F6]. On , and each finite equals , so is measurable by [F4, F6]. At every a finite minimizing index lies in some .
The algorithm's selected-index events are and, for , . They are measurable by step 2.1, so is measurable into the finite discrete index set by [F7]. For each measurable , the evaluation preimage is , a finite union of measurable rectangles by [F5]; hence is jointly measurable by [F7].
On all list risks are , so the returned first predictor is an exact minimizer by [F3]. On , at least one finite minimizer exists in the finite list, belongs to some , and the first selected has finite risk at most by its definition. If , this inequality forces the selected risk to equal . Thus the output has the asserted ERM property in both branches.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Chapters 2–3
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 2
- Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Chapter 3 §3.2.2
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 2 §§2.1–2.2
- Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Chapter 2 §2.2 and Chapter 3 §3.2.2
- Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Chapter 3 Remark 3.1
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 2 §2.1
- Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Chapter 3 §3.2
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 2 §2.4.2
- Olav Kallenberg, Foundations of Modern Probability, 2nd ed., Theorem 6.3 (conditional distribution)
- Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Chapter 2 §2.2
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 2 §2.2