IMO 1969 Q1 #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
Prove that there are infinitely many natural numbers $a$ with the following property: the number $z = n^4 + a$ is not prime for any natural number $n$.
The key to the solution is that you can factor $z$ into the product of two polynomials,
if $a = 4*m^4$. This is Sophie Germain's identity, called pow_four_add_four_mul_pow_four
in mathlib.
To show that the product is not prime, we need to show each of the factors is at least 2,
which nlinarith
can solve since they are each expressed as a sum of squares.
The factorization is over the integers, but we need the nonprimality over the natural numbers.
We define $a_{choice}(b) := 4*(2+b)^4$, so that we can take $m = 2+b$ in polynomial_not_prime
.
Equations
- imo1969_q1.a_choice b = 4 * (2 + b) ^ 4
a_choice
is a strictly monotone function; this is easily proven by chaining together lemmas
in the strict_mono
namespace.