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.
Fermat's little theorem: for prime , implies , and always
Statement
Let be a prime integer and . If , then
For every integer , without the nondivisibility hypothesis,
Facts & Assumptions
Given: A prime integer and an integer .
A prime satisfies , and implies , hence by symmetry of the gcd (Prime and composite integers: is prime when and its only positive divisors are and , For a prime and any integer , is when and otherwise; so makes and coprime, is symmetric and unchanged by signs: ; moreover , , , and unless ).
Euler's theorem gives when , and for prime (Euler's theorem: if and , then , , and for every prime ).
Congruence is preserved by multiplication, and is equivalent to (Congruent integers may be added, subtracted and multiplied: representative changes preserve both arithmetic operations, Congruence modulo an integer: when , including the moduli and , Divisibility in : when for some integer ).
Integer powers satisfy for the positive exponent (Powers : natural exponents in a monoid and integer exponents in a group, with , Exponent laws in a group: and for all , and when and commute).
Proof
Assume first that . Then , so [L1] gives . Multiplying by and using [L2] gives .
Assume instead that . Then , so repeated multiplication gives .
The first assertion is contained in step 1.1, and the two exhaustive cases and give the unconditional congruence.
Depends on
- Euler's theorem: if $n\ge1$ and $\gcd(a,n)=1$, then $a^{\varphi(n)}\equiv1\pmod n$
- $\varphi(1)=1$, and $\varphi(p)=p-1$ for every prime $p$
- Prime and composite integers: $p$ is prime when $p > 1$ and its only positive divisors are $1$ and $p$
- For a prime $p$ and any integer $a$, $\gcd(p,a)$ is $p$ when $p \mid a$ and $1$ otherwise; so $p \nmid a$ makes $p$ and $a$ coprime
- $\gcd$ is symmetric and unchanged by signs: $\gcd(a,b) = \gcd(b,a) = \gcd(|a|,|b|)$; moreover $\gcd(a,0) = |a|$, $\gcd(a,1) = 1$, $\gcd(a,a) = |a|$, and $\gcd(a,b) \ge 1$ unless $a = b = 0$
- Divisibility in $\mathbb{Z}$: $d \mid a$ when $a = dq$ for some integer $q$
- Congruence modulo an integer: $a\equiv b\pmod n$ when $n\mid(a-b)$, including the moduli $0$ and $1$
- Congruent integers may be added, subtracted and multiplied: representative changes preserve both arithmetic operations
- Powers $g^{n}$: natural exponents in a monoid and integer exponents in a group, with $g^{0} = e$
- Exponent laws in a group: $g^{m+n} = g^{m}g^{n}$ and $(g^{m})^{n} = g^{mn}$ for all $m, n \in \mathbb{Z}$, and $(gh)^{n} = g^{n}h^{n}$ **when $g$ and $h$ commute**
Used by
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 91 results over 24 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.
Sources
- Thomas W. Judson, Abstract Algebra: Theory and Applications, Lagrange's Theorem (standard reference, not scraped)
- Thomas W. Judson, Abstract Algebra: Theory and Applications, §6.3: Fermat's and Euler's Theorems (standard reference, not scraped)