Mathlib Map

Theorems · Theorem · number theory

Nat.Prime.sq_add_sq

∀ {p : ℕ} [Fact (Nat.Prime p)], p % 4 ≠ 3 → ∃ a b, a ^ 2 + b ^ 2 = p

Fermat's theorem on the sum of two squares. Every prime not congruent to 3 mod 4 is the sum of two squares. Also known as Fermat's Christmas theorem.

Defined in
Mathlib.NumberTheory.SumTwoSquares
Cited by
1 results in Mathlib
Foundations
Depth 150 from the axioms · uses propext, Classical.choice, Quot.sound
Assumes
Fact

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites5

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by1

Results whose statement or proof uses this declaration.