Mathlib Map

Theorems · Theorem · number theory

Nat.eq_sq_add_sq_of_isSquare_mod_neg_one

∀ {n : ℕ}, IsSquare (-1) → ∃ x y, n = x ^ 2 + y ^ 2

If -1 is a square modulo the natural number n, then n is a sum of two squares.

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

Around this declaration

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

Cites10

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.