Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import Mathlib.Algebra.Order.Ring.Nat |
| 2 | import Mathlib.Algebra.Group.Units.Basic |
| 3 | |
| 4 | /-! # Auxiliary Level Frame Bounds -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AuxiliaryLevelFrameBounds |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Raising the original level to a power produces an explicit level |
| 11 | larger than any prescribed frame threshold and introduces no new primes. |
| 12 | The resulting arithmetic converts a degree bound on hyperplane torsion |
| 13 | counts into the strict sparsity inequality. -/ |
| 14 | |
| 15 | def frameAuxiliaryLevel (N r D : ℕ) : ℕ := N ^ (r * D + 1) |
| 16 | |
| 17 | theorem threshold_lt_power (N : ℕ) (hN : 2 ≤ N) (a : ℕ) : a < N ^ (a + 1) := by |
| 18 | induction a with |
| 19 | | zero => simpa only [Nat.zero_add, pow_one] using (Nat.lt_of_lt_of_le (by decide : 0 < 2) hN) |
| 20 | | succ a ih => |
| 21 | calc |
| 22 | a + 1 < 2 * (a + 1) := by omega |
| 23 | _ ≤ N * N ^ (a + 1) := Nat.mul_le_mul hN (Nat.succ_le_of_lt ih) |
| 24 | _ = N ^ (a + 1 + 1) := (Nat.mul_comm _ _).trans (pow_succ N (a + 1)).symm |
| 25 | |
| 26 | theorem frameAuxiliaryLevel_multiple (N r D : ℕ) : N ∣ frameAuxiliaryLevel N r D := by |
| 27 | refine ⟨N ^ (r * D), ?_⟩ |
| 28 | exact (pow_succ N (r * D)).trans (Nat.mul_comm _ _) |
| 29 | |
| 30 | theorem frameAuxiliaryLevel_square_gt (N r D : ℕ) (hN : 2 ≤ N) : |
| 31 | r * D < (frameAuxiliaryLevel N r D) ^ 2 := by |
| 32 | have h := threshold_lt_power N hN (r * D) |
| 33 | change r * D < frameAuxiliaryLevel N r D at h |
| 34 | have hp : 0 < frameAuxiliaryLevel N r D := Nat.lt_of_le_of_lt (Nat.zero_le _) h |
| 35 | have hm : frameAuxiliaryLevel N r D ≤ frameAuxiliaryLevel N r D * frameAuxiliaryLevel N r D := by |
| 36 | simpa only [Nat.one_mul] using Nat.mul_le_mul_right (frameAuxiliaryLevel N r D) (Nat.succ_le_of_lt hp) |
| 37 | exact h.trans_le (by simpa only [pow_two] using hm) |
| 38 | |
| 39 | theorem frameAuxiliaryLevel_unit {R : Type*} [CommRing R] (N r D : ℕ) |
| 40 | (hN : IsUnit (N : R)) : IsUnit (frameAuxiliaryLevel N r D : R) := by |
| 41 | change IsUnit ((N ^ (r * D + 1) : ℕ) : R) |
| 42 | rw [Nat.cast_pow] |
| 43 | exact hN.pow _ |
| 44 | |
| 45 | theorem torsionCount_sparse_of_degree_bound (g r D L c : ℕ) |
| 46 | (hg : 0 < g) (hL : 0 < L) (hlarge : r * D < L ^ 2) |
| 47 | (hcount : c ≤ D * L ^ (2 * g - 2)) : r * c < L ^ (2 * g) := by |
| 48 | calc |
| 49 | r * c ≤ r * (D * L ^ (2 * g - 2)) := Nat.mul_le_mul_left r hcount |
| 50 | _ = (r * D) * L ^ (2 * g - 2) := (Nat.mul_assoc _ _ _).symm |
| 51 | _ < L ^ 2 * L ^ (2 * g - 2) := Nat.mul_lt_mul_of_pos_right hlarge (Nat.pow_pos hL) |
| 52 | _ = L ^ (2 * g) := by |
| 53 | rw [← pow_add] |
| 54 | congr 1 |
| 55 | omega |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AuxiliaryLevelFrameBounds |