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.
Conformal Prediction and Exchangeable Ranks
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- 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
- 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
- limsup, liminf, and Subsequential Limits
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- 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
- 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
- Sequences and Limits
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Suprema and Infima
- The Lebesgue Integral and the Convergence Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
2 · Summary
Exchangeability means invariance of the joint law under coordinate permutations; it is weaker than independent identical sampling. Conformal prediction converts measurable nonconformity scores into finite-sample prediction sets by ranking a candidate together with calibration data. This page defines split scores fixed after training and full scores recomputed on each augmented candidate sample, with permutation-equivariance required in the full method.
Ties matter. Counting all scores equal to the candidate in an upper-rank p-value gives conservative validity, while an independent uniform variable spreads the candidate across its whole tie block and makes the rank exactly uniform. The split quantile uses the ceiling-adjusted index and the sentinel when that index exceeds the calibration sample size. Under conditional exchangeability given training, split conformal has conditional and marginal coverage at least ; full conformal has the same marginal guarantee under exchangeability. These results do not give coverage conditional on features or subgroups and do not survive arbitrary distribution shift.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Coordinate maps and permutations are measurable on finite products
Statement
Let , , be finitely many measurable spaces, with , and equip with its finite product sigma-algebra. If are measurable, then the tuple is measurable. If all factors equal one measurable space , every coordinate permutation is measurable, where .
Facts & Assumptions
Given: The finite product sigma-algebra convention, measurable coordinate maps, and the stated coordinate-permutation convention.
The finite product sigma-algebra is generated by the finite measurable rectangles. The product sigma-algebra and its finite iterates
A measurable rectangle is a product of measurable sets in the coordinate spaces. Measurable rectangles in a product of measurable spaces
A map is measurable when the preimage of each measurable target set is measurable. A measurable function between measurable spaces
A sigma-algebra is closed under complements and countable unions, hence under finite intersections. Sigma-algebras
Each coordinate map is -measurable.
Proof
By induction on , the finite product sigma-algebra is generated by the -coordinate rectangles. The base case is . At the induction step, let be the sigma-algebra generated by -coordinate rectangles. For each measurable last-coordinate set , the class of first-coordinate sets with is a sigma-algebra: it contains the whole first product since the whole-first-product times is a coordinate rectangle, and complements and countable unions follow by relative difference inside that set and by countable unions. It contains the -coordinate rectangles by construction, so it contains the recursively defined -fold product sigma-algebra. Thus contains every rectangle used in the recursive binary product. Conversely, each -coordinate rectangle belongs to that recursive product sigma-algebra by its defining binary rectangle clause, so the two generated sigma-algebras agree.
For a generating rectangle , its preimage under is . Each set in this finite intersection belongs to by [A1], so the preimage belongs to by [F4]. The class of target sets whose preimages under lie in is a sigma-algebra because preimages preserve complements and countable unions; by step 1.1 it contains the generators, so it contains the product sigma-algebra and [F3] makes measurable.
For a permutation, , which is a generating rectangle by [F2]. The same generated-sigma-algebra argument of step 2.1 proves that is measurable.
Regular conditional kernels push forward under measurable random maps
Statement
Let be a probability space, let , let be a random element of , and let be a regular conditional distribution of given . If is a measurable space and is measurable, then is a regular conditional distribution of given .
If, in addition, is a random element of a measurable space , is independent of , and has law , then is a regular conditional distribution of given .
Facts & Assumptions
Given: The probability space, sub-sigma-algebra, random element, regular conditional distribution, and measurable map in the statement; for the second assertion, the independent random element and its law .
A regular conditional distribution is an everywhere probability kernel whose evaluations satisfy for every and . Regular conditional distribution
Product sigma-algebras are generated by measurable rectangles. The product sigma-algebra and its finite iterates
Every section of a probability kernel is a probability measure, and each event evaluation is measurable in the conditioning point. Measure kernel and probability kernel
The product of two probability measures exists, is a probability measure, and has the rectangle formula. For sigma-finite factors, the product measure exists, has the rectangle formula, is sigma-finite, and is unique
Independence of sigma-algebras gives for events from the respective sigma-algebras. Independent sigma-algebras and independent events
Increasing limits pass through nonnegative integrals. Monotone convergence for the integral
A lambda-system containing a generating pi-system contains its generated sigma-algebra. Dynkin's pi-lambda theorem
Increasing pointwise limits of measurable extended-real functions are measurable. Sequential suprema, infima, limsup, liminf, and pointwise limits of measurable functions are measurable
A finite tuple of measurable coordinate maps is measurable into the finite product sigma-algebra. Coordinate maps and permutations are measurable on finite products
Every section of a product-measurable set is measurable in the corresponding factor. Every section of a product-measurable set is measurable
The map is measurable for and .
In the second assertion, is independent of and has law .
Proof
Let consist of product-measurable sets for which is -measurable and for every . For a rectangle , is measurable by [F1], and its integral identity follows by applying [F1] to . Thus all rectangles lie in .
For each , define , which is a probability measure by [F4]. On a rectangle , its evaluation is , a -measurable function. For , the integral of this evaluation over equals by [F1]. Since , independence [A2, F5] makes this .
The whole space is in . If , then and the integral identity for follows by subtracting the identity for from . If are disjoint members of , then their sections are disjoint, so pointwise; [F8] makes the increasing partial sums' limit measurable, and [F6] gives the integral identity for the union. Hence is a lambda-system. Measurable rectangles contain and are closed under finite intersections, so they form a pi-system generating by [F2]; [F7] therefore gives .
For , [A1] makes product-measurable and [F10] makes its sections measurable, so is defined. The map is measurable from into : the identity map into is measurable because , and is measurable, so [F9] applies. Therefore is the measurable preimage of under this map. Step 2.1 gives measurability and the conditional-event identity for . For every , is the pushforward of the probability measure , hence is a probability measure. These are exactly the clauses in [F1], so is a regular conditional distribution of .
The tuple is measurable into the product space by [F9]. The class of sets in for which the evaluation of is measurable and the conditional-event identity holds is a lambda-system: complements subtract from the whole-space identity, and disjoint unions follow from countable additivity, measurable increasing limits [F8], and [F6]. It contains all rectangles by step 1.2, so [F2, F7] show that it contains . Every section is the product probability measure from [F4]; consequently is a regular conditional distribution of given .
Exchangeable random elements
Definition
Let be random elements, , of one measurable space . Their tuple is a random element of by Coordinate maps and permutations are measurable on finite products, and its law is the pushforward probability measure from Law or distribution of a random element. For a permutation of , let . The tuple is exchangeable if
This is invariance of the joint law, not an assertion of independence or identical marginal construction by independent sampling. The coordinate maps are measurable by the cited finite-product lemma.
Conformal scores and rank p-values
Definition
Let be a feature-response measurable space, let , and put . A split score rule is a jointly measurable map , where is a training statistic with values in the specified measurable rule space . The measurable-statistic convention is that of Statistics and estimators. Once is fixed, calibration and test scores are ; the rule does not change when it scores the calibration or test example.
A full score assignment of length is a measurable map that is permutation-equivariant: For a candidate response , append as the th example and write and .
For either a split score vector or a full augmented score vector, the nonrandomized upper-rank p-value of the candidate is An optional tie-randomized rank p-value is defined when a supplied random variable has Lebesgue probability law on and is independent of the data and training information: The added counts the candidate itself in its tie group. A single such is shared across a candidate scan. This is an explicit randomization; the general Markov-kernel definition of a randomized procedure Randomized procedures as probability kernels does not assert that arbitrary kernels have a random-seed representation.
Here “uniform on ” means for .
Smaller scores are treated as more conforming. The rank formula counts all ties conservatively in the nonrandomized version; the randomized formula spreads the candidate uniformly over its entire tie block.
For a split candidate scan at a fixed feature value , the notation in these formulas is for and , with . Thus the calibration scores do not depend on , and the candidate is scored by the same fixed rule.
Finite order statistics and rank maps are measurable
Statement
Let be a measurable space, let be measurable real-valued functions with , and let . The th order statistic is measurable. For a finite real score vector and another measurable real-valued function on the same space, its upper-rank p-value and tie-randomized rank are measurable.
Facts & Assumptions
Given: The measurable real score functions, integer bounds on , and, for the randomized formula, a measurable -valued input on the same measurable space.
Finite maxima and minima, finite sums and scalar multiples of measurable real functions are measurable. Arithmetic and lattice operations preserve measurability whenever they are defined
Real measurability is preimage measurability for the Borel sigma-algebra. A measurable function between measurable spaces
The Borel sigma-algebra contains closed intervals and half-lines because it is generated by open sets. The Borel sigma-algebra of a topological space
The conformal p-value and tie-randomized p-value are the finite rank formulas in the definition. Conformal scores and rank p-values
Proof
For each -element subset , let . Then : every -element subset has maximum at least the th smallest score, and the subset of the smallest scores has that maximum exactly. There are finitely many such nonempty subsets, so [F1] makes this finite minimum of finite maxima measurable.
For any two indices, is measurable by [F1]–[F3]. The upper-rank p-value is a finite sum of indicators of these events divided by , so is measurable.
On the same domain, the tie count is a finite sum of the comparison indicators from step 1.2. Multiplication by the measurable real function , addition, and division by the positive integer preserve measurability by [F1]. Hence the randomized rank map is measurable.
Permutation-equivariant scores preserve exchangeability
Statement
Let be an exchangeable random element of , and let be measurable and permutation-equivariant in the sense of Conformal scores and rank p-values. Then is an exchangeable real random vector.
Facts & Assumptions
Given: The exchangeable data tuple and measurable permutation-equivariant score assignment in the statement.
Exchangeability means the law is invariant under every coordinate permutation. Exchangeable random elements
The score assignment satisfies for every permutation. Conformal scores and rank p-values
Coordinate permutations on finite product measurable spaces are measurable. Coordinate maps and permutations are measurable on finite products
Proof
The measurable map sends to a random vector by the composition rule for measurable maps; [F3] makes every coordinate permutation of that vector measurable, so its law is defined.
For each permutation , [F2] gives . By exchangeability [F1], and have the same law; applying the measurable map shows that and have the same law. Hence is exchangeable.
Split conformal prediction set
Definition
Let calibration examples be scored by one fixed, measurable score rule obtained from the training statistic , and let . Set Compute for . Sort calibration observations by the ordered keys , so ties are broken by the fixed index order. If , let be the score component of the th ordered pair; if , set . For a feature value , return
The optional tie-randomized version uses one independent with Lebesgue probability law on , shared across the candidate scan, and returns where is the score-rank formula in Conformal scores and rank p-values. The candidate score is included in its tie group. The score maps must be jointly measurable in the training, calibration, feature, and response variables; then membership in each returned set is a measurable event by Finite order statistics and rank maps are measurable.
Full conformal prediction set
Definition
Let observed examples and be given. For each candidate , append it to the examples and apply a measurable, permutation-equivariant full score assignment of length from Conformal scores and rank p-values, obtaining . Compute and return
An optional exact-randomized version uses one independent with Lebesgue probability law on , shared across the candidate scan, and returns . The full score map must be jointly measurable in the observed examples, , and ; the membership event is measurable by Finite order statistics and rank maps are measurable.
Conformal rank superuniformity under exchangeability
Statement
Let be an exchangeable real random vector with . Define its last-coordinate upper-rank p-value by Then for every . If has Lebesgue probability law on and is independent of , define Then has the uniform law on .
Facts & Assumptions
Given: The exchangeable score vector, , and, for the randomized assertion, an independent -valued random element with Lebesgue probability law.
Exchangeability means joint-law invariance under every coordinate permutation. Exchangeable random elements
The upper-rank and tie-randomized p-values count scores greater than or equal to the candidate, with the randomized formula spreading uniformly across all tied scores. Conformal scores and rank p-values
These finite comparison sums are measurable, so their probability events are defined. Finite order statistics and rank maps are measurable
Independence of random elements or their generated sigma-algebras is defined by factorization of probabilities of finite intersections. Independent sigma-algebras and independent events
An indicator has expectation equal to the probability of its event, and expectation is linear for finite sums of integrable random variables. The expectation of an indicator is the probability of the event Linearity, monotonicity, and the modulus bound for expectation
Proof
Fix a deterministic vector . List its distinct values in decreasing order , let be the multiplicity of , and put . Each coordinate in the th tie group has upper rank . Hence the number of coordinates whose upper rank is at most is either zero or one of the cumulative counts , and is therefore at most .
For fixed , the th tie group has scores strictly above it and scores equal to it, so for any index in that group the randomized rank is . Averaging uniformly over the coordinate indices selects this interval with probability ; conditional on the group, its value is uniform on . These intervals partition and their lengths are , so the averaged rank law is Uniform.
By exchangeability [F1], each coordinate has the same upper-rank distribution. Thus [F5] and the pointwise bound of step 1.1 give . The last coordinate therefore has a superuniform upper-rank p-value.
Since is exchangeable and is independent of by [F4], permuting score coordinates leaves the joint law of unchanged. Thus every randomized coordinate rank has the same distribution, equal to the averaged distribution in step 1.2. In particular is Uniform.
Split conformal marginal coverage
Statement
Let , , be random elements of one measurable example space , and let be the training sigma-field. Suppose the tuple has a regular conditional distribution given in the sense of Regular conditional distribution, whose sections have joint laws invariant under every coordinate permutation, as in Exchangeable random elements, for almost every . Let be a -measurable training statistic, and let be a jointly measurable split score rule. Use the split set in Split conformal prediction set at . Then If the tie-randomized set is used with one of Lebesgue probability law on independent of , then In either case, integration over the training sigma-field gives the same marginal lower bound or exact marginal coverage.
Facts & Assumptions
Given: A conditional regular distribution of the example tuple with exchangeable sections, a training-measurable statistic, and a jointly measurable fixed score rule; for the randomized clause, an independent uniform random element.
A regular conditional distribution is a probability kernel satisfying the conditional-event identity, and its sections are probability measures. Regular conditional distribution
A jointly measurable score map pushes the regular conditional distribution forward to the conditional distribution of the score vector; an independent uniform input is adjoined by a product kernel. Regular conditional kernels push forward under measurable random maps
A measurable permutation-equivariant map sends an exchangeable tuple to an exchangeable score vector. Permutation-equivariant scores preserve exchangeability
For an exchangeable score vector, the upper-rank p-value is superuniform and its specified independent-uniform tie randomization is uniform. Conformal rank superuniformity under exchangeability
The split threshold uses , the th calibration score if , and when . Split conformal prediction set
Proof
Define . For each , the map is measurable into : the preimage of a rectangle is , which belongs to , and such rectangles generate the target product sigma-algebra. Joint measurability of therefore makes every coordinate of measurable. The finite tuple is measurable into the product Borel sigma-algebra because preimages of Borel rectangles are finite intersections of coordinate preimages. For each fixed , is permutation-equivariant because the same fixed rule is applied coordinatewise. By [F2] its pushforward is a regular conditional distribution of the score vector; by the sectionwise exchangeability in the hypothesis and [F3], that score-vector distribution is exchangeable.
Put and . If , [F5] sets , so every true response is covered. If and the true test score exceeds the th calibration score , then at least calibration scores are strictly below ; consequently at most of all scores are at least , and . Thus implies coverage in every case.
Apply [F4] to the conditional exchangeable score law from step 1.1. The event has conditional probability at least , and step 1.2 includes it in the nonrandomized coverage event. For the randomized version, the second assertion of [F2] makes a regular conditional distribution of given . The map that sends to the tie-randomized rank computed from and is jointly measurable: the score coordinates are measurable by step 1.1, comparisons of real-valued measurable functions are measurable, and the rank formula uses finite sums, products, and scalar division. Applying the first assertion of [F2] to this map gives the conditional law of . For almost every , is exchangeable, is fixed, and is independent uniform; [F4] therefore gives conditional probability exactly for , which is precisely randomized-set coverage.
The conditional-kernel identity in [F1], applied with the conditioning event , integrates the conditional coverage probabilities from step 2.1 to their unconditional probabilities. The lower bound and the exact equality therefore also hold marginally.
Remarks
These are marginal guarantees over the test feature and response, conditional only on the training sigma-field. They do not assert coverage conditional on or on a subgroup, and they do not cover a distribution shift that breaks the stated conditional exchangeability.
Full conformal marginal coverage
Statement
Let and be measurable feature and response spaces, let , and let , , be random elements of the product measurable space . Suppose their joint law is invariant under every coordinate permutation, as in Exchangeable random elements. Suppose a measurable, permutation-equivariant full score assignment is used for every augmented candidate sample, as in Full conformal prediction set. Then, for , its nonrandomized full conformal set satisfies If the tie-randomized set uses one with Lebesgue probability law on , independent of and shared across the candidate scan, then These are marginal guarantees over the exchangeable examples and any stated tie randomization.
Facts & Assumptions
Given: The exchangeable tuple of feature-response pairs in the stated product measurable space, the measurable permutation-equivariant full score assignment, and ; for the randomized clause, a uniform random element independent of the example tuple.
Exchangeability is invariance of the joint law under every coordinate permutation. Exchangeable random elements
Measurable permutation-equivariant scores of an exchangeable tuple remain exchangeable. Permutation-equivariant scores preserve exchangeability
The full conformal set includes a candidate exactly when its upper-rank p-value exceeds , or in the randomized version when . Full conformal prediction set
The upper-rank p-value is superuniform under exchangeability, and the independent tie-randomized rank is uniform. Conformal rank superuniformity under exchangeability
Proof
By [F1], the data tuple has an exchangeable law. The full score assignment is measurable and permutation-equivariant by hypothesis, so [F2] makes the augmented score vector exchangeable.
For the true candidate , the full set membership condition in [F3] is . By [F4], its probability is at least ; for the randomized version, is uniform and .
Remarks
The theorem gives marginal coverage, not coverage conditional on the test features or on a subgroup. It does not provide a distribution-shift guarantee.
5 · Examples, counterexamples and false statements
None yet.
Sources
- John K. Hunter, Measure Theory, §§3.1 and 5.1
- John K. Hunter, Measure Theory, §§3.1, 5.1, 5.4–5.5
- Glenn Shafer and Vladimir Vovk, A Tutorial on Conformal Prediction, JMLR 9 (2008), §3.1
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024, §1
- Jing Lei, Max G'Sell, Alessandro Rinaldo, Ryan J. Tibshirani, and Larry Wasserman, Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), §§2.1–2.2 and Appendix A.1
- Glenn Shafer and Vladimir Vovk, A Tutorial on Conformal Prediction, JMLR 9 (2008), §§3.1, 4.1–4.2
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024, §§1–3
- Jing Lei et al., Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), §2.1 and Remark 2.4
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024, §3
- Jing Lei et al., Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), §2.2 and Appendix A.1
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024, §2
- Jing Lei et al., Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), §2.1 and Appendix A.1
- Glenn Shafer and Vladimir Vovk, A Tutorial on Conformal Prediction, JMLR 9 (2008), §§4.1–4.2
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024, §§1–2
- Jing Lei et al., Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), Theorem 2.2 and Appendix A.1
- Jing Lei et al., Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018), Theorem 2.1, Remark 2.4, and Appendix A.1