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.
Conditional and Finite-Group Exact Inference
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
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- 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 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
- Outer Measure and the Caratheodory Extension Theorem
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- 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
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- 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
- Sufficiency, Completeness and Exponential Families
- Suprema and Infima
- Tests, Neyman–Pearson and Valid P-values
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Lᵖ Spaces Holder Minkowski and Riesz Fischer
- The Radon Nikodym Theorem and Lebesgue Decomposition
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page develops exact finite-sample inference by conditioning and by finite group actions. It defines conditional rejection probabilities, shows that a common sufficiency kernel makes a test's conditional rejection probability nuisance-free, and proves that conditional level controls unconditional size. A local measurability lemma establishes conditional-kernel tail and atom evaluations at random arguments. It defines randomized upper-tail p-values and proves their conditional uniformity with a tie randomizer. For finite group actions, it defines orbit ranks and proves validity under invariant null laws, counting transformation multiplicities so nonfree actions are covered. The group results concern invariance of the null distribution and do not assume treatment assignment was randomized.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Conditional-kernel tail and atom evaluations are measurable
Statement
Let be a probability kernel from to . Define Both maps are -measurable. If and are measurable random elements of and on one probability space, and is any measurable real random variable on that space, then , , and are measurable. The middle expression equals .
Facts & Assumptions
Given: A probability kernel , measurable random elements , and a measurable real random variable .
For every measurable target set , is measurable, and each section is a probability measure. Measure kernel and probability kernel
Product sigma-algebras are generated by measurable rectangles. The product sigma-algebra and its finite iterates
The rationals are countable and dense in . is countably infinite, Both and are dense in , and every nonempty open subset of is uncountable
The Borel sigma-algebra is generated by open sets, so every open interval is Borel. The Borel sigma-algebra of a topological space
Integrating a nonnegative product-measurable function against a probability kernel gives a measurable function of the kernel parameter, with infinity allowed. Measurability of integration against a kernel
A random element is a measurable map into its specified measurable space. Random elements and real random variables
Continuous maps have Borel-measurable preimages, and measurable maps compose. A continuous map has Borel preimages of Borel sets, Composition with a Borel measurable outer map preserves measurability
Proof
Let be the first-coordinate projection and define . The projection is measurable because for every ; hence [F1] and [F2] show that is a probability kernel from to .
The relation is : density in [F3] supplies a rational strictly between and , and every point in a displayed rectangle has . The relation has the analogous representation . These are countable unions of Borel rectangles by [F3] and [F4], and the equality relation is their joint complement. Therefore all three relations belong to . The coordinate map is measurable because inverse images of generating rectangles are ; taking inverse images now proves the two relation indicators in the domain of are product-measurable.
Apply [F5] to and the two indicator functions of the relation sets in step 1.2. Their section integrals are and , so both maps are product-measurable.
For , fix a bijection supplied by [F3]. Each rational open box is encoded by a finite tuple of natural numbers, and iterating the injection shows there are only countably many such boxes. Density of then shows they form a base of : each point of an open set lies in such a box contained in that set. Thus each open set is a countable union of rectangles in the finite product sigma-algebra, giving . Conversely, each coordinate projection is continuous, so [F7] makes Borel for every ; finite intersections show every measurable rectangle is Borel, giving the reverse inclusion. Hence the Borel product and Euclidean Borel sigma-algebras agree in both dimensions. The map is measurable because the inverse image of each generating rectangle is ; therefore and are measurable by [F6] and [F7]. The sets and are disjoint and their union is , so finite additivity gives . The map is continuous by . The map is continuous because , and is bounded in a sufficiently small neighborhood of . The pairs and triples of the real measurable functions already obtained and are measurable because inverse images of generating product rectangles are finite intersections of coordinate preimages. The established Borel-product equalities make these continuous maps measurable by [F7]. Composition by [F7] proves measurability of the asserted sums.
Randomizing across CDF jumps gives a uniform variable
Statement
Let be a real random variable with cumulative distribution function , and let be independent of with the uniform Borel probability law on . Write and . Then has the uniform distribution on , for arbitrary continuous, discrete, mixed, or singular laws of .
Facts & Assumptions
Given: A real random variable with law , its distribution function , and an independent whose law is uniform on .
The distribution function is . Cumulative distribution function of a real random variable
Inclusion of measurable sets implies monotonicity of their measures. Measures are monotone
Measures are continuous along increasing sequences of measurable sets. Continuity from below for measures
A measure finite on the first set of a decreasing sequence is continuous along that sequence. Continuity from above when one set has finite measure
For nested measurable sets with finite smaller-set measure, the measure of their difference is the difference of their measures. Measure of a set difference when the smaller set has finite measure
Every nonempty subset of that is bounded above has a supremum. Complete ordered field (least-upper-bound property)
Product sigma-algebras are generated by measurable rectangles. The product sigma-algebra and its finite iterates
Continuous maps have Borel preimages, and measurable maps compose. A continuous map has Borel preimages of Borel sets, Composition with a Borel measurable outer map preserves measurability
Sums and scalar multiples of measurable real functions are measurable, as are pointwise increasing limits. Closure properties of measurable functions used by the integral
A real or extended-real function is measurable if all of its strict superlevel sets are measurable. Extended-real-valued measurable functions
The Borel sigma-algebra is generated by open sets. The Borel sigma-algebra of a topological space
The rationals are countable and dense in . is countably infinite, Both and are dense in , and every nonempty open subset of is uncountable
is independent of and has for ; this is the uniform randomization stipulated in the Statement. Independent random elements
Proof
All sequences below are indexed by integers .
By [F1] and [F2], is nondecreasing. For each real , is an upper set, hence is empty, all of , or a ray with or without its finite endpoint; each such ray is Borel by [F11]. Thus every strict superlevel set is Borel, and [F10] makes Borel-measurable. For each , the sets decrease to and have finite measure, so [F4] gives right continuity. The sets decrease to and increase to , so [F3] and [F4] give the limits and at the two infinities. Also increases to , so [F3] gives ; [F5] then gives .
For every , step 1.1 gives . Each translate is measurable because translation is continuous and [F8] preserves measurability under composition; [F9] makes their increasing limit measurable. Thus is measurable by [F9]. Since is measurable, and are measurable. Fix a bijection supplied by [F12]. Each rational open rectangle is encoded by four natural numbers, and iterating the injection shows there are only countably many such rectangles. Density of makes them a base of . Every Euclidean open set is therefore a countable union of rectangles in . Conversely the coordinate projections are continuous, and [F8] makes the inverse image of each Borel set under either projection Borel; finite intersections then show every Borel rectangle is Euclidean Borel. Thus the product Borel sigma-algebra equals . The pair is measurable into the product sigma-algebra because preimages of generating rectangles are intersections of coordinate preimages, hence it is measurable into . The map is continuous, as and is bounded near ; hence [F8] makes it Borel-measurable. Composing and then summing with proves is measurable.
Fix and set . The upper-tail limit in step 1.1 makes nonempty, and the lower-tail limit makes it bounded below. Applying [F6] to gives . For every , the infimum property gives , so right continuity from step 1.1 yields . Since and is a lower bound for , ; the sets increase to , so [F3] and step 1.1 give . Put and . If , then , so ; this event has probability . If , then and, conditional on , is uniform on , contributing to . If , the inequalities force and , so this contribution is zero.
For , monotonicity gives . If , then . If and , the event requires , which has probability zero by [A1]. In the remaining case , put . By steps 1.1 and 2.1, both and are Borel-measurable, so is Borel and therefore -measurable. If is empty it contributes no mass. Otherwise let , allowing when is unbounded. For every with , some has , so monotonicity gives and hence . If , define ; if , define . In either case (with the limit interpreted as in the second case), and [F5] gives . By [F3], . If finite belongs to , its mass is , so . Thus contributes no probability, and step 2.2 yields .
For with , the events decrease to ; [F4] and the formula from step 3.1 give . For with , the events increase to ; [F3] and step 3.1 give . Finally by its definition, so . Thus for all , which is the uniform law.
Finite-group randomization setups
Definition
A finite-group randomization setup consists of a finite probability space as in Finite probability spaces, outcome weights, events, and event probabilities, a finite group acting on as in Left group actions, transitive actions, and faithful actions, a statistic , and a family of null probability laws on that is invariant under the action. Invariance means that for every , , and , . The orbit of is , a finite subset of . The setup itself does not assert that the action is free or that distinct group elements give distinct orbit points.
Tied upper ranks on a finite multiset
Statement
Let with . Let be uniform on and let be independent of and uniform on . Set Then is uniform on , while is superuniform: for every .
Facts & Assumptions
Given: A nonempty finite list of real numbers, a uniform random index , and an independent uniform variable .
A uniform law on a nonempty finite set assigns equal weight to each point. The uniform probability space on a nonempty finite set
Every nonempty finite list of real values has a maximum; repeatedly removing all indices at that maximum sorts the distinct values. Every nonempty finite set of reals has a maximum and a minimum
The tie breaker is independent of the selected index. Independent random elements
has the uniform Borel law on , so its probability on an interval is that interval's length.
Proof
Starting from the given list, repeatedly take the maximum of the remaining entries and remove every index carrying that value. By [F2] each nonempty remaining list has a maximum, and each iteration removes at least one of the original indices, so the process ends after at most iterations. It produces distinct values with block sizes . Put , so . By [F1], the event that has probability . On that event, and, by [A1] and [F3], , uniform on the interval of length .
By step 1.1, the intervals are consecutive, begin at , and end at . Conditional on , , so for its conditional CDF is below the left endpoint, between the endpoints, and above the right endpoint, by [A1]. Multiplying each conditional CDF contribution by gives the length of . These lengths sum to because the intervals partition up to shared endpoints. Hence for every , so is uniform.
For , is the sum of over those blocks whose right endpoint is at most . These blocks form an initial segment; if the last is , the sum telescopes to , and if there is no such block the sum is zero. Hence .
Randomized conditional upper-tail p-values
Definition
Fix one null probability law . Let be a random element of a measurable space and let be a real random variable on the same probability space. Suppose a conditional law kernel of given is supplied, in the sense of Conditional law given a random element. On an auxiliary extension, let be independent of and have the uniform Borel probability law on , characterized by for . The randomized conditional upper-tail p-value is and its nonrandomized upper-tail value is The strict tail and atom terms are evaluated at the realized pair ; the independent randomizes only within the tie mass. Their measurability, including measurability of both displayed p-values, follows from Conditional-kernel tail and atom evaluations are measurable. The inclusive tail is the sum of the strict tail and the atom at . This definition asserts no existence of the conditional kernel; it is supplied as part of the input.
Orbit upper-tail rank p-values
Definition
For a finite-group randomization setup with statistic , the inclusive orbit upper-tail rank at is If is independent of the observed data and uniform on , the tie-randomized orbit rank is Both counts are over group elements, with multiplicity. Thus a nonfree action counts a distinct orbit point as many times as it has preimages under .
Randomized conditional p-values are uniform
Statement
Under the simple null and the supplied conditional law in Randomized conditional upper-tail p-values, for every , while the nonrandomized upper-tail value satisfies Thus the randomized value is conditionally uniform and the inclusive-tail value is conditionally superuniform, including when the conditional law has atoms.
Facts & Assumptions
Given: A simple null law , statistics , a supplied conditional law kernel of given , and an independent uniform randomizer .
The randomized and nonrandomized values are and . Randomized conditional upper-tail p-values
The kernel is a conditional law of given . Conditional law given a random element
is independent of the pair . Independent random elements
For sigma-finite measures, the product measure exists and has the rectangle formula. For sigma-finite factors, the product measure exists, has the rectangle formula, is sigma-finite, and is unique
Measurable rectangles generate the product sigma-algebra. The product sigma-algebra and its finite iterates
Equality of finite measures on a generating pi-system extends to the generated sigma-algebra. Dynkin's pi-lambda theorem
For any real law with CDF and independent uniform , is uniform. Randomizing across CDF jumps gives a uniform variable
The randomizer has the uniform law on , namely for ; this is stipulated in the p-value definition.
Proof
For each , let , where is the uniform law of . By [F4] this is a probability measure with rectangle values . For and Borel , the conditional-law identity [F2] gives . Independence in [F3] makes the right side . The class of product-Borel sets where the evaluation is measurable and every such conditional identity holds is a Dynkin system: complements subtract from the probability-one whole-space evaluation, and disjoint unions follow by countable additivity and increasing limits. It contains the generating rectangles, so [F5] and [F6] extend measurability and the conditional identity to every product-Borel set. Thus is a conditional law of given .
For almost every conditioning value , the conditional law just constructed makes have law and keeps independent uniform. Write and . By [F7], is uniform, since is also uniform. The p-value formula in [F1] gives , so is conditionally uniform.
For the same , and . Hence conditionally on . Step 2.1 gives . This holds for each and almost every conditioning value, proving conditional superuniformity.
Finite-group orbit-rank validity
Statement
In a finite-group randomization setup, fix a null law invariant under the group action. Conditional on every orbit with positive probability, the data are uniform on the distinct points of . For the orbit ranks of Orbit upper-tail rank p-values, the inclusive p-value is superuniform under the null, and the independent-uniform tie-randomized value is Uniform conditionally on each positive-probability orbit. Consequently, is also Uniform unconditionally.
Facts & Assumptions
Given: A finite set , finite group acting on , statistic , invariant null law , and the two orbit-rank definitions.
A finite-group randomization setup specifies a finite probability space, a finite group action, a statistic, and null-law invariance under every group element. Finite-group randomization setups
The inclusive and tie-randomized orbit ranks count group elements with multiplicity and divide by . Orbit upper-tail rank p-values
In a finite probability space, event probability is the sum of outcome weights; positive-probability conditioning uses the ratio definition. Finite probability spaces, outcome weights, events, and event probabilities, Conditional probability for , Normalization, nonnegativity, monotonicity, complements, and differences in a finite probability space
For a list of real values, the tie-randomized upper rank is uniform and its inclusive upper rank is superuniform when the index is uniform. Tied upper ranks on a finite multiset
The tie randomizer is independent of the observed data. Independent random elements
Every null law in the statement satisfies the invariance condition in [F1].
The independent tie randomizer has the uniform law on , as stipulated by the Statement.
Proof
Fix a positive-probability orbit and points . Choose with . Invariance gives . Thus all distinct points have equal mass; by [F3] their conditional probabilities given are each .
For fixed , define its stabilizer . If , then : every with sends to , and if then . Hence every distinct point of occurs exactly times in the group-transformed list. The strict and tied counts and denominator in [F2] all have this same factor, so the group-average ranks equal the ranks computed on the distinct orbit points.
Conditional on , [step 1.1] makes the observed orbit point a uniform index in the finite list . By [F5] and [A2], the randomizer remains independent and uniform. Apply [F4] to this list and use [step 2.1]: is Uniform and for every .
The positive-probability orbits form a finite partition up to null orbits. Summing the conditional superuniform bounds from step 3.1 with weights gives ; summing the conditional uniform laws gives . The argument applies to each invariant null law. Only finite counting is used, so no choice axiom is needed.
Conditional tests given a statistic
Definition
Let be a statistical experiment with nonempty disjoint null and alternative parameter sets . Let be a topological space with its Borel sigma-algebra , and let be measurable. Write , the sigma-algebra generated by as in The sigma-algebra generated by a function. A possibly randomized test is a measurable function as in Test size and power. For each , a conditional rejection probability given is a supplied version of , where conditional expectation is understood as in Conditional expectation given a sigma algebra. The test has conditional level at most given on if such versions can be supplied with -almost surely for every . The almost-sure qualification is separate under each null law; no common null set or pointwise statement at conditioning values of probability zero is asserted.
Sufficiency makes the conditional rejection probability nuisance-free
Statement
Let and be standard Borel spaces as in Standard Borel spaces. Fix Polish topologies realizing these specified Borel sigma-algebras, as the standard-Borel definition permits. Let be nonempty disjoint parameter subsets, and write for the null subfamily. Let be measurable. Suppose there is one probability kernel such that, for every , is a regular conditional distribution of the full data given under . This is the common-kernel premise of sufficiency for the null subfamily in Sufficient statistics. For any measurable , define Then is measurable and is a version of the conditional rejection probability of given under every . The same function works for every nuisance value, with conditional-expectation identities interpreted almost surely under each corresponding law.
Facts & Assumptions
Given: The spaces, null family, statistic, common probability kernel and bounded test function in the Statement.
For every , the same kernel satisfies the conditional event-integral identities for given under , which is the common-kernel sufficiency condition in Sufficient statistics.
A conditional law of a random element given composes with to give a regular conditional distribution given . Conditional law given a random element
Integrating a product-measurable function against a probability kernel gives a measurable function of the kernel parameter. Measurability of integration against a kernel
If is a supplied regular conditional distribution of given , then satisfies the conditional event-integral identities for nonnegative measurable ; for integrable real its signed integral is a conditional-expectation version. Conditional integration through a regular conditional law
A conditional test's rejection probability given is a conditional-expectation version of . Conditional tests given a statistic
The product sigma-algebra is generated by rectangles, so the second-coordinate projection is measurable; composing it with measurable makes product-measurable. The product sigma-algebra and its finite iterates, Composition with a Borel measurable outer map preserves measurability
Proof
The map is product-measurable by [F5]. Kernel integration [F2] therefore makes measurable. Since is a probability measure and , every value satisfies .
Fix . By [A1] and [F1], is a regular conditional distribution of given under . Applying [F3] to the bounded function shows that for every , . Thus is a version of the conditional rejection probability under this null law. The same kernel in [A1] defines the same for every , proving nuisance-freeness; only the individual laws' almost-sure qualifications are used.
Conditional level implies unconditional level
Statement
Let be a test for nonempty disjoint null and alternative parameter sets as in Test size and power, let be a statistic, and let . If for every there is a conditional-expectation version with -almost surely, then for every . Consequently, the test has size at most , where size is the supremum of its rejection expectation over the null family as in Test size and power.
Facts & Assumptions
Given: A test , null family , statistic , and conditional level bound .
Conditional level at most means that for each null parameter a supplied conditional-expectation version satisfies almost surely. Conditional tests given a statistic
A conditional-expectation version satisfies for every ; in particular . Conditional expectation given a sigma algebra
For integrable real random variables, almost-sure pointwise order implies the same order of expectations. Linearity, monotonicity, and the modulus bound for expectation
The test size convention is as in Test size and power.
Proof
Fix and choose the conditional version supplied by [F1]. Taking in [F2] gives .
Since almost surely and both variables are integrable, [F3] gives . Combining with step 1.1 yields .
The argument holds for every , so taking the supremum of these rejection expectations gives size at most under the convention [A1]. No common exceptional null set across parameter values is needed.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Ryan Martin, Lecture Notes on Advanced Statistical Theory, §2.3, PDF pp. 33–35
- A. J. Brockwell, Universal Residuals: A Multivariate Transformation, Lemma 2 and Theorem 1
- Peter B. Stark, Statistics 240 Lecture Notes, Part 8: Resampling Methods, §1.3, PDF pp. 10–11
- Jesse Hemerik and Jelle Goeman, Exact testing with random permutations, Sections 2–3
- Jesse Hemerik and Jelle Goeman, Exact testing with random permutations, randomized p-value result
- George Deligiannidis, Foundations of Statistical Inference, Chapter 13, PDF pp. 77–78
- Berkeley Stat 210A Course Reader, Testing with Nuisance Parameters, Conditional testing section