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 OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Groups |
| 2 | import Mathlib.RingTheory.Algebraic.Integral |
| 3 | |
| 4 | /-! # Lattice Denominators -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LatticeDenominators |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Clear denominators against the actual integral lattice. These |
| 11 | lemmas make sufficiently deep congruences comparable to integral |
| 12 | matrix congruences without assuming a preferred lattice basis. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {V : Type*} [AddCommGroup V] [Module ℚ V] |
| 17 | |
| 18 | theorem integer_multiple_mem_of_span (Λ : Submodule ℤ V) (x : V) |
| 19 | (hx : x ∈ Submodule.span ℚ (Λ : Set V)) : |
| 20 | ∃ n : ℤ, n ≠ 0 ∧ n • x ∈ Λ := by |
| 21 | induction hx using Submodule.span_induction with |
| 22 | | mem x hx => exact ⟨1, one_ne_zero, (one_smul ℤ x).symm ▸ hx⟩ |
| 23 | | zero => exact ⟨1, one_ne_zero, by simp⟩ |
| 24 | | add x y _ _ hx hy => |
| 25 | obtain ⟨n, hn, hx⟩ := hx |
| 26 | obtain ⟨m, hm, hy⟩ := hy |
| 27 | refine ⟨n * m, mul_ne_zero hn hm, ?_⟩ |
| 28 | rw [smul_add] |
| 29 | exact Λ.add_mem |
| 30 | (by simpa only [mul_smul, smul_comm n m x] using Λ.smul_mem m hx) |
| 31 | (by simpa only [mul_smul] using Λ.smul_mem n hy) |
| 32 | | smul a x _ hx => |
| 33 | obtain ⟨n, hn, hx⟩ := hx |
| 34 | refine ⟨n * (a.den : ℤ), mul_ne_zero hn (by exact_mod_cast a.den_nz), ?_⟩ |
| 35 | have hscalar : (((n * (a.den : ℤ) : ℤ) : ℚ) * a) = (a.num : ℚ) * (n : ℚ) := by |
| 36 | rw [Int.cast_mul, Int.cast_natCast, mul_assoc, Rat.den_mul_eq_num] |
| 37 | exact mul_comm _ _ |
| 38 | have he : (n * (a.den : ℤ)) • (a • x) = a.num • (n • x) := by |
| 39 | calc |
| 40 | _ = ((((n * (a.den : ℤ) : ℤ) : ℚ) * a)) • x := by |
| 41 | exact (Int.cast_smul_eq_zsmul ℚ (n * (a.den : ℤ)) (a • x)).symm.trans |
| 42 | (mul_smul _ _ _).symm |
| 43 | _ = ((a.num : ℚ) * (n : ℚ)) • x := congrArg (fun c : ℚ => c • x) hscalar |
| 44 | _ = _ := by rw [mul_smul, Int.cast_smul_eq_zsmul, Int.cast_smul_eq_zsmul] |
| 45 | rw [he] |
| 46 | exact Λ.smul_mem a.num hx |
| 47 | |
| 48 | /-- Finitely many vectors have one common nonzero lattice denominator. -/ |
| 49 | theorem common_integer_multiple_mem (Λ : Submodule ℤ V) |
| 50 | (hΛ : Submodule.span ℚ (Λ : Set V) = ⊤) |
| 51 | {I : Type*} [Fintype I] (v : I → V) : |
| 52 | ∃ n : ℤ, n ≠ 0 ∧ ∀ i, n • v i ∈ Λ := by |
| 53 | choose n hn hv using fun i => integer_multiple_mem_of_span Λ (v i) |
| 54 | (hΛ.symm ▸ (Submodule.mem_top : v i ∈ (⊤ : Submodule ℚ V))) |
| 55 | refine ⟨∏ i, n i, Finset.prod_ne_zero_iff.mpr (fun i _ => hn i), ?_⟩ |
| 56 | intro i |
| 57 | obtain ⟨c, hc⟩ := Finset.dvd_prod_of_mem n (Finset.mem_univ i) |
| 58 | rw [hc, mul_smul, smul_comm] |
| 59 | exact Λ.smul_mem c (hv i) |
| 60 | |
| 61 | /-- All coordinates of a finitely generated lattice have one common |
| 62 | nonzero denominator in the ring of integers of the number field. -/ |
| 63 | theorem common_integral_coordinate_multiple {E : Type*} [Field E] [NumberField E] |
| 64 | (Λ : Submodule ℤ (Fin 3 → E)) (hΛ : Λ.FG) : |
| 65 | ∃ n : ℤ, n ≠ 0 ∧ ∀ x ∈ Λ, ∀ i, IsIntegral ℤ (n • x i) := by |
| 66 | obtain ⟨s, hs⟩ := hΛ |
| 67 | let t : Finset E := s.biUnion (fun x => Finset.univ.image x) |
| 68 | let : Algebra.IsAlgebraic ℤ ℚ := IsLocalization.isAlgebraic ℚ (nonZeroDivisors ℤ) |
| 69 | let : Algebra.IsAlgebraic ℤ E := Algebra.IsAlgebraic.trans ℤ ℚ E |
| 70 | obtain ⟨n, hn, hint⟩ := Algebra.IsAlgebraic.exists_integral_multiples ℤ t |
| 71 | refine ⟨n, hn, ?_⟩ |
| 72 | intro x hx |
| 73 | have hx' : x ∈ Submodule.span ℤ (s : Set (Fin 3 → E)) := hs.symm ▸ hx |
| 74 | clear hx |
| 75 | induction hx' using Submodule.span_induction with |
| 76 | | mem x hx => |
| 77 | intro i |
| 78 | exact hint (x i) (Finset.mem_biUnion.mpr ⟨x, hx, Finset.mem_image.mpr ⟨i, Finset.mem_univ i, rfl⟩⟩) |
| 79 | | zero => |
| 80 | intro i |
| 81 | simpa only [Pi.zero_apply, smul_zero] using (isIntegral_zero : IsIntegral ℤ (0 : E)) |
| 82 | | add x y _ _ hx hy => |
| 83 | intro i |
| 84 | simpa only [Pi.add_apply, smul_add] using (hx i).add (hy i) |
| 85 | | smul a x _ hx => |
| 86 | intro i |
| 87 | simpa only [Pi.smul_apply, smul_comm n a] using (hx i).smul a |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LatticeDenominators |