Alphabeta Math
Pipeline-generated
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

2 · Logical flowchart

3 · Definitions, theorems and proofs

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Split conformal prediction set for classification

Definition

Let K≥2, let the feature space be a measurable space X, and let the label set be Y={1,…,K} with all subsets measurable. Let H be a training statistic valued in a measurable rule space H, and let s:H×X×Y→R be a jointly measurable score rule. The rule is fixed after training and is used unchanged on calibration and test examples. Given m≥0 calibration examples (Xi,Yi) and 0<α<1, compute Ri=s(H,Xi,Yi),k=⌈(m+1)(1−α)⌉. If k≤m, sort the calibration scores by the ordered keys (Ri,i) and let q be the score value at position k. If k=m+1, set q=+∞. For a feature value x, return the prediction set

C(x)={y∈Y:s(H,x,y)≤q}.

For the optional tie-randomized version, use one random variable U that is uniform on [0,1] and independent of the training information and all calibration and test examples, shared across the candidate-label scan. For ry=s(H,x,y), define pU(y)=#{i≤m:Ri>ry}+U(1+#{i≤m:Ri=ry})m+1,CU(x)={y∈Y:pU(y)>α}. 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.

DefinitionDefinition: Literature-sourcedProof: Not applicableOpen item page →

Top-label calibration

Definition

Let (Ω,F,P) be a probability space, let K≥2, let Y:Ω→{1,…,K} be a random variable, with the label set carrying the full power-set sigma-algebra, and let G=(G1,…,GK):Ω→ΔK be a measurable random forecast, where the probability simplex is ΔK={p∈[0,1]K:∑j=1Kpj=1}. Define the predicted label and top confidence by Y^=min⁡{j:Gj=max⁡ℓ∈{1,…,K}Gℓ},C=max⁡ℓ∈{1,…,K}Gℓ. The smallest-index rule resolves ties. The forecast is top-label calibrated if for every Borel set B⊆[0,1], P(Y=Y^, C∈B)=E[1{C∈B}C]. 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.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Validation temperature scaling

Definition

Fix K≥2. The input is a trained classifier with a measurable, finite-valued logit map z:X→RK, a nonempty finite validation sample (xi,yi)i=1nv with nv≥1 and yi∈{1,…,K}, and a finite nonempty set of candidate temperatures T⊂(0,∞). The validation labels were not used to fit the logits. For T∈T, compute pT(j∣x)=exp⁡(zj(x)/T)∑ℓ=1Kexp⁡(zℓ(x)/T)(j=1,…,K),Lval(T)=−1nv∑i=1nvlog⁡pT(yi∣xi). Choose the smallest temperature among the minimizers, T∗=min⁡arg⁡min⁡T∈TLval(T). and return the forecasts pT∗(⋅∣x) and predicted label min⁡arg⁡max⁡jpT∗(j∣x) for each input x. 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 e 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.

DefinitionDefinition: Literature-sourcedProof: Not applicableOpen item page →

Binned expected and maximum calibration error

Definition

Let K≥2 and let (p^i,yi)i=1n be a nonempty finite evaluation sample, where p^i∈ΔK and yi∈{1,…,K}. For each i, let y^i=min⁡arg⁡max⁡jp^ij, ci=max⁡jp^ij, and ai=1{y^i=yi}. Fix before evaluating the sample a finite Borel partition (B1,…,BM) of [0,1]. For Ib={i:ci∈Bb} and nb=∣Ib∣>0, define acc⁡(Bb)=1nb∑i∈Ibai,conf⁡(Bb)=1nb∑i∈Ibci. The binned expected calibration error and binned maximum calibration error for this sample and partition are ECE⁡(Bb)=∑b:nb>0nbn∣acc⁡(Bb)−conf⁡(Bb)∣,MCE⁡(Bb)=max⁡b:nb>0∣acc⁡(Bb)−conf⁡(Bb)∣. 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 [0,1].

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.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

Positive temperature scaling preserves the maximizing class

Statement

Let K≥2, let z∈RK, and let T>0. Define pj(T)=exp⁡(zj/T)∑ℓ=1Kexp⁡(zℓ/T)(j=1,…,K). Then p(T) lies in the relative interior of ΔK in the affine hyperplane {p∈RK:∑jpj=1} and arg⁡max⁡j∈{1,…,K}pj(T)=arg⁡max⁡j∈{1,…,K}zj. 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 e by a power series: defines the real exponential used in the softmax formula.

The exponential is positive and satisfies exp⁡(−x)=1/exp⁡(x): 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: K≥2, a finite logit vector z∈RK, a positive temperature T, and, for the algorithmic consequence, a nonempty finite validation sample and finite nonempty candidate temperature set.

[F1]

The temperature-scaling algorithm uses the displayed softmax probabilities, restricts candidate temperatures to a finite nonempty subset of (0,∞), and chooses the smallest validation-NLL minimizer. Validation temperature scaling

[F3]

The real exponential is strictly increasing. The exponential function is strictly increasing

[F4]

The natural logarithm is defined on (0,∞). The natural logarithm as the inverse of the exponential function

Proof

1.1F1F2givenalgebra

For every j, wj=exp⁡(zj/T) is a finite positive real by [F2]. Hence S=∑ℓ=1Kwℓ>0, each pj(T)=wj/S is positive, and ∑jpj(T)=1. Put ε=12min⁡jpj(T)>0. If u lies in the hyperplane ∑juj=1 and ∥u−p(T)∥2<ε, then every uj>0; since the coordinates sum to one, u∈ΔK. Thus p(T) is in the relative interior of ΔK.

2.1F1F4step 1.1algebra

For each validation example and class j, step 1.1 gives pT(j∣xi)>0, so its logarithm is finite by [F4]. Thus each candidate loss is finite. The finite nonempty set T has a nonempty finite set of minimizers, which has a unique smallest element; the algorithm therefore returns a unique T∗.

3.1F1F2F3givenstep 1.1algebra∎

For any classes j,ℓ, positivity of T preserves the sign of zj−zℓ. By [F3], exp⁡(zj/T) and exp⁡(zℓ/T) have the same strict order as zj and zℓ; division by their common positive denominator S from step 1.1 preserves that order and preserves ties. Every pairwise comparison is therefore identical for p(T) and z, proving equality of their maximizing index sets.

4 · Examples, counterexamples and false statements

None yet.

Sources