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.
The Lehmer code is a bijection
Statement
For every , the Lehmer-code map
is a bijection.
Facts & Assumptions
Given: A natural number and the Lehmer code map .
A function is bijective if it is both injective and surjective (Injection, surjection, bijection).
Proof
For , the component counts entries to the right of position , and there are exactly such positions, so . Thus lies in the stated codomain.
Conversely, let lie in the codomain. Begin with the increasing list of unused values. For , put in position the value of having exactly smaller elements in , and delete that value from . This choice exists and is unique because has elements and . Call the resulting permutation .
The permutation has Lehmer code . At the stage for , all values then left in will occupy the positions to the right of position . The chosen value has exactly smaller values in , so exactly later entries of are smaller than it. This is the defining equality .
The construction is unique. At position , all values are unused and the code coordinate requires the entry with exactly smaller unused values. After deleting it, coordinate uniquely determines the next entry among the remaining values, and so on. Thus any permutation with code is exactly . Step 2.1 gives surjectivity and this uniqueness gives injectivity.
Therefore is a bijection. The case is included: both sides are the singleton empty object.
Depends on
Used by
Dependency tree · two levels
5 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
- Felix Gotti, MIT 18.211 Combinatorial Analysis, Lecture 5 (standard reference, not scraped)