/-!# Round 6: the Mordell point of a solution is not integralFor a solution of `{3,4,p}` with `p = 6m + r`, the point attached to it on `Y^2 = X^3 + k` has`X = ± a / b^(2m)` with `gcd(a, b) = 1`, `b ≥ 2`, `m ≥ 1` (paper §12.3). By the Nagell–Lutz theorem a torsionpoint has integer coordinates, so the arithmetic fact below is what makes the point non-torsion (Lemma 12.3).Core Lean only.-/namespace BealTorsion/-- If `gcd(a, b) = 1` and `b ≥ 2`, then `b` does not divide `a`. -/theorem not_dvd_of_coprime {a b : Nat} (h : Nat.gcd a b = 1) (hb : 2 ≤ b) : ¬ b ∣ a := byintro hdhave : Nat.gcd a b = b := Nat.gcd_eq_right hdomega/-- `b^(2m)` does not divide `a` when `gcd(a, b) = 1`, `b ≥ 2` and `m ≥ 1`: the X-coordinate `a / b^(2m)` of theMordell point of a primitive solution is not an integer. -/theorem pow_not_dvd {a b m : Nat} (h : Nat.gcd a b = 1) (hb : 2 ≤ b) (hm : 1 ≤ m) : ¬ b ^ (2 * m) ∣ a := byintro hdhave h1 : b ∣ b ^ (2 * m) := byhave := Nat.pow_dvd_pow b (show 1 ≤ 2 * m by omega)simpa using thisexact not_dvd_of_coprime h hb (Nat.dvd_trans h1 hd)end BealTorsion#print axioms BealTorsion.pow_not_dvd