Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-01
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 p, p∤a implies ap−1≡1(modp), and always ap≡a(modp)

Statement

Let p be a prime integer and a∈Z. If p∤a, then

ap−1≡1(modp).

For every integer a, without the nondivisibility hypothesis,

ap≡a(modp).

Facts & Assumptions

Given: A prime integer p and an integer a.

[L1]

Euler's theorem gives aφ(p)≡1(modp) when gcd⁡(a,p)=1, and φ(p)=p−1 for prime p (Euler's theorem: if n≥1 and gcd⁡(a,n)=1, then aφ(n)≡1(modn), φ(1)=1, and φ(p)=p−1 for every prime p).

Proof

technique · cases
1.1

Assume first that p∤a. Then gcd⁡(a,p)=1, so [L1] gives ap−1≡1(modp). Multiplying by a and using [L2] gives ap≡a(modp).

assume-case nondivF1L1F2L2
1.2

Assume instead that p∣a. Then a≡0(modp), so repeated multiplication gives ap≡0p=0≡a(modp).

assume-case divF1F2
2.1

The first assertion is contained in step 1.1, and the two exhaustive cases p∤a and p∣a give the unconditional congruence.

step 1.1step 1.2cases-exhaustive∎

Depends on

Used by

Dependency tree · two levels

46 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