Even solutions of come from the fundamental Pell solution
ProvedMathlibGap.sq_le_of_pow_four_eq_of_evendiophantine-equationsnumber-theory
Let be a natural number that is not a perfect square, and let be natural numbers with even, and
Then is the first coordinate of the fundamental solution of the Pell equation . Equivalently, every solution of that Pell equation in natural numbers with satisfies
In particular, for each the quartic equation has at most one solution in positive integers with even. This is the case of even of a theorem that goes back to Ljunggren (1942) and that Cohn (1997) states as follows: if the fundamental solution of is , then the only possible solutions of are given by and . The second value is odd, so it cannot occur for even .
Preamble
import Mathlib
Formal statement
theorem MathlibGap.sq_le_of_pow_four_eq_of_even (D x y : ℕ) (hD : ¬ IsSquare D) (hx : Even x) (hy : 0 < y)
(h : x ^ 4 = D * y ^ 2 + 1) (r s : ℕ) (hs : 0 < s) (hrs : r ^ 2 = D * s ^ 2 + 1) :
x ^ 2 ≤ r := by sorrySource
J. H. E. Cohn, The Diophantine equation x^4 - Dy^2 = 1, II, Acta Arithmetica 78 (1997), 401-403, Theorem on p. 401 (restricted to even x), http://matwbn.icm.edu.pl/ksiazki/aa/aa78/aa7847.pdf; W. Ljunggren, Uber die Gleichung x^4 - Dy^2 = 1, Arch. Math. Naturv. 45 (5) (1942), 61-70