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.
Finite bit random streams and variate generation — Examples
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Areas of Elementary Plane Figures
- Binary Operations, Monoids, Groups and Subgroups
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- 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
- Determinants of Matrices over a Commutative Ring
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Euclidean Surface Measure, Divergence, and Green Identities
- Filters and Ultrafilters
- Finite bit random streams and variate generation
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Fubini and Change of Variables
- Fundamental Trigonometric Identities
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Hausdorff via the Diagonal
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Infinite Product Measures and Kolmogorov Extension
- Lebesgue Measure on Euclidean Space
- Lebesgue-Stieltjes Measures and Distribution Functions
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- 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
- Norming and Separation under Hahn–Banach
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Radon Measures and the Riesz Markov Kakutani Theorem
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- 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
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Stationary Markov Chains and Ergodic Limits
- Subspaces, Products, and Quotients
- Suprema and Infima
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Inverse and Implicit Function Theorems
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Uniform Spaces: the Three Definitions
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
These examples make the limits of finite random streams concrete: a full-period LCG can alternate its low bit, midpoint Box–Muller has a finite radial cutoff, and a raw zero endpoint makes its logarithm undefined. The inverse-CDF example shows why a small CDF residual gives no uniform linear spatial error bound near a vanishing density. Each example records the endpoint or distributional caveat needed to interpret the corresponding theorem.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
A full-period LCG can alternate its low bit
Example
Take , , , and seed . The recurrence visits every residue modulo before returning to , yet its least significant bit alternates at every step.
Facts & Assumptions
Given: The LCG recurrence with modulus , multiplier , increment , and a seed chosen uniformly from the eight states.
Under and odd increment, every seed has full period , but a uniform seed does not make adjacent states independent. The power-of-two mixed LCG has full period but dependent adjacent states
The state update is . Linear congruential generator modulo a power of two
The uniform law on eight states assigns mass to each state. The uniform probability space on a nonempty finite set
Verification
Direct iteration gives . These are the eight residues modulo , so the cycle is full. The parameters satisfy and is odd, also verifying [F1]'s hypotheses.
Reducing [F2] modulo gives , because and . Thus the low bit alternates deterministically. By [F3], a uniform seed gives each state mass ; since the update is a permutation, each time marginal is uniform. The adjacent pair lies on the eight-point graph of the recurrence rather than the 64-point product space, so the pair is dependent.
Eight-bit Box–Muller has a finite radial cutoff
Example
For , a midpoint uniform is at least . The exact real-arithmetic Box–Muller reference transform therefore has radius at most . Its radial target law assigns probability beyond that radius, while the finite midpoint grid attains the cutoff at but never exceeds it.
Facts & Assumptions
Given: Two independent 8-bit midpoint uniforms and the exact Box–Muller map used as a mathematical reference.
A -bit midpoint has the form with integer . Its smallest value, at , is ; this is finite arithmetic, independent of any countable-bit-stream realization.
Under the ideal Box–Muller transform, . Box–Muller has a product Gaussian density and Rayleigh second moment
The natural logarithm is increasing on positive reals. Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm
A square root is nonnegative and squares to its argument; squaring is order-preserving on nonnegatives. Square roots exist: a unique with ; the positives are , Squaring is monotone on the nonnegatives
The exact Box–Muller change-of-variables supplier assumes Countable Choice. The Axiom of Countable Choice ()
Verification
For , and the smallest midpoint is by [F1].
For , [F3] gives . Their nonnegative square roots satisfy by [F4]; thus is nonincreasing, and the largest radius occurs at and equals . The logarithm laws [F3] give . By [F2] and [F5], the ideal radial tail beyond the cutoff is , while no finite midpoint input has a larger radius.
A raw zero uniform breaks Box–Muller but the midpoint avoids it
Example
A raw grid value can equal zero, so the Box–Muller logarithm is undefined on that input. Its midpoint version is always strictly positive; an ideal uniform input equals zero only on a null event.
Facts & Assumptions
Given: An integer uniform on and the Box–Muller radius formula for .
The midpoint value is and belongs to . Midpoint bit discretization has bounded coupling and CDF error
An ideal bit-stream uniform has CDF on and hence assigns probability zero to . Disjoint streams of independent fair bits produce independent uniform variables
For , the exact Box–Muller reference radius is . Box–Muller has a product Gaussian density and Rayleigh second moment
The countable fair-bit product supplying [F2] assumes Countable Choice and Dependent Choice. The Axiom of Countable Choice (), The axiom of dependent choice: a relation in which every element is related to something admits an -indexed chain
Verification
The raw endpoint event is exactly , which has probability ; the radius expression [F3] has an undefined logarithm at that input.
By [F1], the midpoint input is at least and is less than , so its logarithm is finite. By [F2], the ideal stream hits with probability zero; a software interface still needs an explicit endpoint convention if it accepts closed-interval inputs.
A vanishing density prevents a uniform linear spatial inverse bound
Example
Let for , for , and for . Its density on has no positive lower bound near zero. At target , the endpoint inverse is by convention; for each , the point has CDF residual but spatial error .
Facts & Assumptions
Given: The CDF and points in the Example.
A nonnegative real has a unique nonnegative square root whose square equals . Square roots exist: a unique with ; the positives are
For , a CDF residual at most yields the spatial bound if both points lie in the bracket, there, and almost everywhere. This is a sufficient condition for a linear bound. Certified bisection controls CDF residual, spatial error, and distribution error
Verification
For , [F1] gives and , so . If , then , contradicting ; hence and . Under the stated endpoint convention, the target is , so the residual is while the spatial error is .
The ratio is unbounded as : for any , take , so [F1] gives by comparing nonnegative squares, and the ratio exceeds . Thus no constant independent of gives for these points; their nonlinear error is exactly . The density has essential infimum on every with , so the sufficient positive-density condition in [F2] fails near zero. The endpoint computation uses the declared convention , independently of [F2]'s interior-target theorem.
Sources
- J. Jung, Monte-Carlo Methods lecture notes, §3.1 and Theorem 3.6
- Luc Devroye, Non-Uniform Random Variate Generation, Chapter V §4.4
- E. M. Raz, Lecture Notes in Probability, Chapter 5, Exercise 5.2
- Luc Devroye, Non-Uniform Random Variate Generation, Chapter II §2.2, numerical inversion
- D. Pollard, A User's Guide to Measure Theoretic Probability, generalized inverse discussion