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.
Predictive calibration and uncertainty under shift
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Calibration, proper losses, and surrogate classification
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- Conformal Prediction and Exchangeable Ranks
- 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
- 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
- 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
- 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 ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
Split conformal prediction set for classification
Definition
Let , let the feature space be a measurable space , and let the label set be with all subsets measurable. Let be a training statistic valued in a measurable rule space , and let be a jointly measurable score rule. The rule is fixed after training and is used unchanged on calibration and test examples. Given calibration examples and , compute If , sort the calibration scores by the ordered keys and let be the score value at position . If , set . For a feature value , return the prediction set
For the optional tie-randomized version, use one random variable that is uniform on and independent of the training information and all calibration and test examples, shared across the candidate-label scan. For , define The candidate is included in its own tie group. The algorithm defines these sets; any coverage claim requires separate distributional hypotheses.
Definition references
Statistics and estimators: a training statistic is a measurable map into its stated measurable rule space.
Conformal scores and rank p-values: fixes the split-score convention, upper-rank formula, tie randomization, and independent uniform input.
Split conformal prediction set: supplies the general split-conformal quantile construction, including the sentinel.
Finite order statistics and rank maps are measurable: gives measurability of the finite score order statistic and rank maps.
Independent sigma-algebras and independent events: defines independence of the optional uniform variable from the data.
Lei et al., full paper, Section 2.2 and Appendix A.1: gives the split-conformal order-statistic construction and its finite-sample exchangeable-rank argument for regression.
Tibshirani, full lecture notes, Sections 1.2–2: derives the adjusted rank, split calibration score, sentinel convention, and optional exact tie randomization.
Top-label calibration
Definition
Let be a probability space, let , let be a random variable, with the label set carrying the full power-set sigma-algebra, and let be a measurable random forecast, where the probability simplex is . Define the predicted label and top confidence by The smallest-index rule resolves ties. The forecast is top-label calibrated if for every Borel set , Thus, among predictions whose top confidence lies in any specified set of confidence values, the frequency of a correct top label equals the average reported top confidence.
Definition references
Probability calibration and calibration error: its top-confidence condition is the same event-integral identity, with the same smallest-index tie rule.
Probability measures and probability spaces: fixes the probability law and expectation used in the event-integral identity.
The Borel sigma-algebra of a topological space: specifies the Borel sets quantified over in the definition.
Guo et al., full paper, Section 2: defines confidence as the probability attached to the predicted label and motivates calibration by correctness frequency.
Validation temperature scaling
Definition
Fix . The input is a trained classifier with a measurable, finite-valued logit map , a nonempty finite validation sample with and , and a finite nonempty set of candidate temperatures . The validation labels were not used to fit the logits. For , compute Choose the smallest temperature among the minimizers, and return the forecasts and predicted label for each input . This is a finite-candidate version of validation negative-log-likelihood temperature scaling. It selects only by empirical validation loss; it makes no finite-sample calibration guarantee for future data, particularly when the validation and future data laws differ.
Definition references
Strictly proper scoring rules on a finite label set: defines the finite-label logarithmic loss used by the validation objective.
Log and Brier losses are strictly proper: establishes that log loss is strictly proper; this does not itself give a finite-sample calibration guarantee.
The natural logarithm as the inverse of the exponential function: fixes the logarithm and its domain on positive reals.
The real exponential function and the number by a power series: defines the exponential used in the softmax formula.
A measurable function between measurable spaces: specifies the measurability condition on the logit map.
Positive temperature scaling preserves the maximizing class ↗: proves normalization, finite validation loss, existence of the finite-grid minimizer, and preservation of the maximizing class.
Guo et al., full paper, Section 4.2: introduces multiclass temperature scaling, validation NLL selection, and preservation of the class prediction.
Binned expected and maximum calibration error
Definition
Let and let be a nonempty finite evaluation sample, where and . For each , let , , and . Fix before evaluating the sample a finite Borel partition of . For and , define The binned expected calibration error and binned maximum calibration error for this sample and partition are These are finite-sample, bin-dependent summaries, not the population expected calibration error. They compare observed top-label accuracy with average confidence within bins; log loss and Brier loss instead score probability forecasts directly and are strictly proper.
Definition references
Top-label calibration: fixes the top-confidence and smallest-index tie conventions used for each sample prediction.
The Borel sigma-algebra of a topological space: specifies the measurable sets used in the fixed partition of .
Probability calibration and calibration error: defines a population expected calibration error using a supplied calibration function and discrepancy, distinct from the empirical binned statistic here.
Strictly proper scoring rules on a finite label set: defines proper scoring rules and the finite-label log and Brier losses.
Log and Brier losses are strictly proper: proves strict propriety of the log and Brier losses.
Guo et al., full paper, Section 2: defines binned ECE and MCE from within-bin accuracy and confidence.
Positive temperature scaling preserves the maximizing class
Statement
Let , let , and let . Define Then lies in the relative interior of in the affine hyperplane and . For the finite validation inputs and candidate temperatures specified in the validation temperature-scaling algorithm, every validation loss is finite and the stated smallest-minimizer rule returns a unique candidate.
Statement references
Validation temperature scaling: defines the finite candidate set, validation NLL, and tie-breaking rule whose well-definedness is also proved here.
The real exponential function and the number by a power series: defines the real exponential used in the softmax formula.
The exponential is positive and satisfies : gives positivity of the exponential.
The exponential function is strictly increasing: supplies strict monotonicity for pairwise logit comparisons.
The natural logarithm as the inverse of the exponential function: defines the logarithm on positive reals, the domain of the validation losses.
Guo et al., full paper, Section 4.2: states that the scalar temperature leaves the maximizing class unchanged; the argument here verifies the claim under the stated positive-temperature hypotheses.
Facts & Assumptions
Given: , a finite logit vector , a positive temperature , and, for the algorithmic consequence, a nonempty finite validation sample and finite nonempty candidate temperature set.
The temperature-scaling algorithm uses the displayed softmax probabilities, restricts candidate temperatures to a finite nonempty subset of , and chooses the smallest validation-NLL minimizer. Validation temperature scaling
The real exponential is finite-valued and strictly positive on . The real exponential function and the number by a power series The exponential is positive and satisfies
The real exponential is strictly increasing. The exponential function is strictly increasing
The natural logarithm is defined on . The natural logarithm as the inverse of the exponential function
Proof
For every , is a finite positive real by [F2]. Hence , each is positive, and . Put . If lies in the hyperplane and , then every ; since the coordinates sum to one, . Thus is in the relative interior of .
For each validation example and class , step 1.1 gives , so its logarithm is finite by [F4]. Thus each candidate loss is finite. The finite nonempty set has a nonempty finite set of minimizers, which has a unique smallest element; the algorithm therefore returns a unique .
For any classes , positivity of preserves the sign of . By [F3], and have the same strict order as and ; division by their common positive denominator from step 1.1 preserves that order and preserves ties. Every pairwise comparison is therefore identical for and , proving equality of their maximizing index sets.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Jing Lei, Max G'Sell, Alessandro Rinaldo, Ryan J. Tibshirani, and Larry Wasserman, Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), Section 2.2 and Appendix A.1
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024, Sections 1.2–2
- Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger, On Calibration of Modern Neural Networks, ICML 2017, Section 2
- Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger, On Calibration of Modern Neural Networks, ICML 2017, Section 4.2