Lean / Reader
Lean reader

BealTorsion.lean

30 lines2 declarationsno sorry
  1. /-!
  2. # Round 6: the Mordell point of a solution is not integral
  3. For a solution of `{3,4,p}` with `p = 6m + r`, the point attached to it on `Y^2 = X^3 + k` has
  4. `X = ± a / b^(2m)` with `gcd(a, b) = 1`, `b ≥ 2`, `m ≥ 1` (paper §12.3). By the Nagell–Lutz theorem a torsion
  5. point has integer coordinates, so the arithmetic fact below is what makes the point non-torsion (Lemma 12.3).
  6. Core Lean only.
  7. -/
  8. namespace BealTorsion
  9. /-- If `gcd(a, b) = 1` and `b ≥ 2`, then `b` does not divide `a`. -/
  10. theorem not_dvd_of_coprime {a b : Nat} (h : Nat.gcd a b = 1) (hb : 2 ≤ b) : ¬ b ∣ a := by
  11. intro hd
  12. have : Nat.gcd a b = b := Nat.gcd_eq_right hd
  13. omega
  14. /-- `b^(2m)` does not divide `a` when `gcd(a, b) = 1`, `b ≥ 2` and `m ≥ 1`: the X-coordinate `a / b^(2m)` of the
  15. Mordell point of a primitive solution is not an integer. -/
  16. theorem pow_not_dvd {a b m : Nat} (h : Nat.gcd a b = 1) (hb : 2 ≤ b) (hm : 1 ≤ m) : ¬ b ^ (2 * m) ∣ a := by
  17. intro hd
  18. have h1 : b ∣ b ^ (2 * m) := by
  19. have := Nat.pow_dvd_pow b (show 1 ≤ 2 * m by omega)
  20. simpa using this
  21. exact not_dvd_of_coprime h hb (Nat.dvd_trans h1 hd)
  22. end BealTorsion
  23. #print axioms BealTorsion.pow_not_dvd