Regularity formula:
Opendiophantine_quintuple_fujita_d_formulaLet be a Diophantine quintuple listed in increasing order, with , , and . Suppose are non-negative integers with
Then the fourth element is given by the regularity formula
In other words, the quadruple is regular: is the larger of the two values that extend the triple , and it is determined by together with the chosen square roots. This is Fujita's regularity statement as used by He–Togbé–Ziegler.
The lemma is stated with universally quantified rather than existentially bound. That is deliberate: the existence of such is immediate from the definition of a Diophantine quintuple, so the mathematical content lies entirely in the formula for . Quantifying them universally lets the formula be applied to any admissible choice of square roots at the point of use, instead of forcing a caller to accept opaque witnesses.
import Definitions.Def_diophantine_descent set_option autoImplicit false open DiophantineDescent
theorem diophantine_quintuple_fujita_d_formula (f : Fin 5 → Nat)
(hq : Quintuple f) (ho : Ordered f)
(r s t : Nat) (hr : f 0 * f 1 + 1 = r ^ 2) (hs : f 0 * f 2 + 1 = s ^ 2)
(ht : f 1 * f 2 + 1 = t ^ 2) :
f 3 = f 0 + f 1 + f 2 + 2 * f 0 * f 1 * f 2 + 2 * r * s * t := by sorry