/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/modulepublicimportFormalConjecturesUtil
Diophantine $m$-tuples
A Diophantine $m$-tuple is a set of $m$ distinct positive integers
${a_1, \dots, a_m}$ such that $a_i a_j + 1$ is a perfect square for every
$i \neq j$.
A finite set s is a Diophantine tuple if each element is nonzero and the product
of any two distinct elements is one less than a perfect square.
We define this for all semirings and specialize to the integral and rational cases in this file;
these are the most common in the literature. Note that the cases of ℕ and ℕ+ are
mathematically equivalent.
Given an integral Diophantine 3-tuple, there is a standard way to extend it to a 4-tuple by
adjoining the value of this function. This is $d_+$ in [Du].
Note that when ${a, b, c}$ is a Diophantine tuple, each factor under the square root
(e.g. $ab + 1$) is a perfect square.
The "strong Diophantine 5-tuple conjecture", so-called because it implies the Diophantine
5-tuple theorem (see noIntegralDiophantineFiveTuple_of_hasUniqueExtensionOfForall). [Du]
HasUniqueExtension is known to hold for certain triples, including ${1, 3, 8}$: this is
essentially the Baker–Davenport theorem [BD69], which states that $120$ is the only integer
$d$ such that ${1, 3, 8, d}$ is a Diophantine tuple. Together with a finite check ruling out
$d < 8$, this shows that no integral Diophantine tuple properly extends ${1, 3, 8, 120}$.
@[categoryresearchsolved,AMS11]theoremhasUniqueExtension_of_1_3_8:HasUniqueExtension138:=by⊢ HasUniqueExtension138sorryAll goals completed! 🐙/-
Theorems and conjectures about the rational case
-/
/--
An example due to Euler which extends fermat_4_tuple, showing that
hasUniqueExtension_of_1_3_8 requires integrality.