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 Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational
Definition
Throughout, denotes the chain of canonical embeddings (The naturals embed in the integers, The integers embed in the rationals, The rationals embed densely in the reals), and each set is identified with its image in , as elsewhere in this library. A natural denotes its canonical real value (The canonical natural of a field), and for (Canonical naturals are positive and strictly increasing). A real is rational when it lies in and irrational otherwise; both sets are dense in (Both and are dense in , and every nonempty open subset of is uncountable).
The Dirichlet function
This is the indicator of the rationals. It is a function because every real either lies in or does not, and the two clauses are exclusive.
The least denominator of a rational
Let and put
is nonempty. Every rational is with and a positive integer (The integers embed in the rationals), and a positive integer is for a unique natural (The naturals embed in the integers); then , so .
By the well-ordering principle (The well-ordering principle) the nonempty subset has a least element. Write
the least denominator of , and , so that
Nothing is selected here: is the least element of a set determined by , so it is a function of alone.
The least denominator is the denominator in lowest terms. The integers and are coprime (Coprime integers: ). Indeed put , which satisfies because makes the pair different from ( is symmetric and unchanged by signs: ; moreover , , , and unless , Common divisor, and the greatest common divisor , with the convention ). Then divides , so is a natural number . Since the canonical embeddings preserve products, this integer quotient agrees with real division (Canonical naturals are positive and strictly increasing); hence
so and therefore , which forces . Conversely, a lowest-terms denominator is the least one, so the description is unambiguous. Suppose with a natural, and . Then , so ; and from we get in , so , and gives (If and then ; and if , and then , claim 1), hence . So : writing "in lowest terms with " and taking describe the same integer, and If is nonzero then and are coprime is what produces such a representation from an arbitrary one.
Thomae's function
It is also called the popcorn function or the ruler function. The value is well defined because is, and is invertible.
Boundary values, stated rather than left to the reader.
- . Indeed , so and ; the representation is .
- for every integer , by the same computation with .
- for every rational , since ; and exactly at the irrationals.
On the range. The values of are and the reciprocals of the canonical naturals ; every such value is attained, being the value at the rational itself, whose least denominator is because with would give a positive integer smaller than .
Depends on
If and then ; and if , and then
The rationals embed densely in the reals
The integers embed in the rationals
The naturals embed in the integers
Coprime integers:
If is nonzero then and are coprime
is symmetric and unchanged by signs: ; moreover , , , and unless
Common divisor, and the greatest common divisor , with the convention
The well-ordering principle
Complete ordered field (least-upper-bound property)
The canonical natural of a field
Canonical naturals are positive and strictly increasing
Both and are dense in , and every nonempty open subset of is uncountable