The fundamental theorem of arithmetic
ProvedFamousTheorems.primeFactorsList_uniquemathlibnumber-theory
Prime factorisation is unique up to order.
Any list of primes whose product is is a permutation of 's canonical prime factorisation.
Existence is easy induction; uniqueness is the content, and it rests on Euclid's lemma — if a prime divides a product it divides a factor — which in turn comes from Bézout's identity. Without it uniqueness genuinely fails: in one has with all four factors irreducible.
That failure is precisely what motivated Kummer's ideal numbers and Dedekind's ideals, so this theorem marks the boundary where elementary number theory ends and algebraic number theory begins.
Formalization note. Stated as a List.Perm against Mathlib's canonical
Nat.primeFactorsList, which is the uniqueness assertion.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem primeFactorsList_unique : ∀ {n : ℕ} {l : List ℕ}, l.prod = n → (∀ p ∈ l, Nat.Prime p) →
l.Perm n.primeFactorsList := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.