Theorem. Fundamental Theorem of Arithmetic [00EG]

Every positive integer n \geq 1 is equal to a product of zero or more primes, known as its prime factorization. The product is unique up to reordering; say, if the primes are listed in order from smallest to largest.

There are two things to prove: first, that it is always possible to write any positive integer as a product of primes, and second, that the product is always unique. At this point, we will only prove that the product exists.

For completeness, a proof of uniqueness is included below, but it uses some material we have not covered yet.

Context

Primes [00EC]

Backlinks

★ Uniqueness of prime factorizations [00HP]

Theorem. Infinitude of primes [00EL]

Theorem. Composites have a divisor \leq \sqrt {n} [00EI]

Agda proof of the Fundamental Theorem of Arithmetic [00FY]