Infinitude of primes
From Automated Assistance for Formal Reasoning
We want to show that there are infinitely many primes. We will argue this by assuming the opposite and deriving a contradiction.
[edit] Argument
We introduce a finite set P of all primes, and its product m.
Introduce P,m.
Assume for all
, if n is prime then
.
Assume P is a finite set, P is non-empty, and
.
Assume
.
The above notation for the product of a subset of
has equivalent alternatives.
Assert
.
Assert
.
We now demonstrate that the above assumptions allow us to derive a contradiction.
Assert
.
Assert for any
,
- if p is a prime factor of m + 1 then
- p is not a factor of m,
- p is prime,
,
- p is a factor of m,
- there is a contradiction.
