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.
Rejection sampling — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- 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
- 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
- Rejection sampling
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Suprema and Infima
- The Lebesgue Integral and the Convergence Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Weak Laws and Series of Independent Random Variables
2 · Summary
Examples
A two-point target and proposal give a bounded density ratio with an exact acceptance rate and proposal count. A countable Pareto-type pair has normalized masses but an unbounded target-to-proposal ratio, so no finite envelope works. A second two-point calculation uses unnormalized masses to verify the acceptance formula and the normalized accepted law.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
A lighter-tailed proposal has no finite rejection envelope
Example
On with counting measure, put and for define Both are probability masses, but their ratio for is unbounded. Thus this lighter-tailed proposal has no finite rejection envelope for the target.
Facts & Assumptions
The sample space is with counting measure. The displayed target and proposal masses are nonnegative and vanish at .
Rejection sampling: a finite rejection envelope requires at every point outside a common counting-null set.
Counting measure on an arbitrary set, Counting measure is a measure, and Counting-measure integration is a nonnegative series: counting measure assigns each set its cardinality, so its only null set is empty; integration of a nonnegative function against it is the nonnegative series of its point masses.
The reals form a totally ordered field and The Cauchy-sequence reals have the least-upper-bound property: is a complete ordered field.
For every in a complete ordered field there is a natural with : for every some positive integer satisfies .
Inverses of positives are positive, and reciprocation reverses order and Canonical naturals are positive and strictly increasing: reciprocation reverses positive order, and the canonical naturals are positive and strictly increasing.
Limits and Cauchy sequences of reals: a real sequence tends to when every positive rational tolerance eventually bounds its distance from .
Every complete ordered field is Archimedean: for every real there is a positive integer .
Verification
Given: The two mass functions in the Example, counting measure on , and the real number field.
The partial sums telescope: and . For any positive rational , [F4] applied to supplies with ; for all , [F5] gives and . Thus both remainders tend to zero by [F6], and [F2] gives total masses .
At each , . For any finite proposed envelope , [F7] gives a positive integer , so . Since [F2] says the only counting-null set is empty, no common null exception can remove these points. This contradicts the required envelope in [F1]; the pair has no finite rejection envelope.
A bounded target-to-proposal density ratio
Example
On with counting measure, let the target masses be and the proposal masses be . The density ratio is bounded by . Rejection sampling has acceptance probability , returns the target law, and has expected proposal count .
Facts & Assumptions
The sample space is the two-point set with counting measure. The listed target and proposal functions are nonnegative.
Counting measure on an arbitrary set, Counting measure is a measure, The integral of a nonnegative simple function, and The nonnegative integral agrees with the simple integral on simple functions: on this finite space, the integral of a nonnegative function is the sum of its two values.
Rejection sampling has the target acceptance law: normalized shapes with envelope constant have accepted density and acceptance probability .
Expected proposal count under a finite rejection envelope: for normalized target and proposal densities, the expected count is .
Rejection sampling: for normalized shapes, a proposal with is accepted when .
Verification
Given: The target and proposal masses in the Example, and the algorithm's ideal independent proposal-uniform draws.
By [F1], and . The ratios are and , so is a finite envelope and is the least such constant.
Applying [F2] gives the accepted masses and acceptance probability ; [F3] gives expected proposal count . The two-point calculation is exact: accepted submasses are at and at , totaling ; the factors follow from [F4], and dividing by gives .
Rejection sampling with unnormalized finite masses
Example
On with counting measure, take unnormalized target masses and proposal shape . With , the envelope holds and . Rejection sampling accepts with probability , returns normalized target masses , and uses proposals on average.
Facts & Assumptions
The sample space is the two-point set with counting measure. The displayed shapes are nonnegative.
Counting measure on an arbitrary set, Counting measure is a measure, The integral of a nonnegative simple function, and The nonnegative integral agrees with the simple integral on simple functions: on this finite space, the integral of a nonnegative function is the sum of its two values.
Rejection sampling has the target acceptance law: unnormalized shapes with envelope constant have acceptance probability and accepted masses .
Expected proposal count under a finite rejection envelope: the expected count is the reciprocal of the acceptance probability.
Rejection sampling: for unnormalized shapes, a proposal with is accepted when .
Verification
Given: The shapes and envelope constant in the Example, counting measure, and the ideal independent proposal-uniform draws.
By [F1], and . Pointwise, and , so is a valid finite envelope.
Applying [F2] gives acceptance probability and accepted masses .
Direct finite enumeration checks the same result: the proposal is uniform on ; by [F4], is always accepted and is accepted with probability . The accepted submasses are therefore and , their sum is , and normalization gives . By [F3] the expected count is .