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 categorical sampling by inverse CDF and binary search
Definition
Input a nonempty finite list of outcomes () with probabilities and , and either an ideal bit-stream uniform as in Disjoint streams of independent fair bits produce independent uniform variables or a -bit midpoint as in Midpoint bit discretization has bounded coupling and CDF error. Write for the supplied input. Let and .
- If , return outcome . This assigns the ideal uniform's null zero-endpoint event an explicit value.
- Otherwise initialize integer bounds , . While , set . If , set ; otherwise set .
- When , return outcome .
Thus on positive inputs the intended output is the least index with , including equality at a cumulative threshold. For , this is the generalized inverse of the step CDF by Generalized inverse sublevel identity for a CDF. At , the same least-index rule specifies the endpoint extension ; this set contains . The midpoint and ideal-input law and binary-search properties are proved separately.
Remarks
With ideal , this is exact finite categorical inversion. Midpoint input has a discrete law; its threshold counts, rather than total-variation closeness to a continuous uniform law, control its categorical error.
Depends on
Used by
Dependency tree · two levels
19 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Luc Devroye, Non-Uniform Random Variate Generation, Chapter III §2.1 and §2.3, discrete inversion (standard reference, not scraped)
- D. Pollard, A User's Guide to Measure Theoretic Probability, generalized inverse discussion (standard reference, not scraped)