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.NumberTheory.ArithmeticGroups.Trace |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.CM.IntegralPolarization |
| 3 | |
| 4 | /-! # Lattice -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open scoped Classical |
| 11 | |
| 12 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.IntegralPolarization |
| 13 | |
| 14 | variable {E : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 15 | [NumberField.IsCMField E] |
| 16 | |
| 17 | def integerCoordinates : (Fin 3 → NumberField.RingOfIntegers E) →ₗ[ℤ] Data.CongruenceLevel.VE E where |
| 18 | toFun x i := x i |
| 19 | map_add' x y := by ext i; simp |
| 20 | map_smul' a x := by ext i; simp |
| 21 | |
| 22 | def standardLattice : Submodule ℤ (Data.CongruenceLevel.VE E) := LinearMap.range (integerCoordinates (E := E)) |
| 23 | |
| 24 | omit [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] in |
| 25 | lemma mem_standardLattice (x : Data.CongruenceLevel.VE E) : |
| 26 | x ∈ standardLattice (E := E) ↔ ∀ i, IsIntegral ℤ (x i) := by |
| 27 | constructor |
| 28 | · rintro ⟨a, rfl⟩ i |
| 29 | exact (a i).property |
| 30 | · intro hx |
| 31 | exact ⟨fun i => ⟨x i, hx i⟩, rfl⟩ |
| 32 | |
| 33 | omit [NumberField.IsCMField E] in |
| 34 | theorem standardLattice_full_stable : Data.CongruenceLevel.FullStableLattice (standardLattice (E := E)) := by |
| 35 | refine ⟨Submodule.fg_range _, ?_, ?_⟩ |
| 36 | · apply top_unique |
| 37 | intro x _ |
| 38 | have hs (i : Fin 3) (a : E) : Pi.single i a ∈ |
| 39 | Submodule.span ℚ (standardLattice (E := E) : Set (Data.CongruenceLevel.VE E)) := by |
| 40 | obtain ⟨n, hn, hi⟩ := AlgebraicGeometry.ComplexMultiplication.CM.IntegralPolarization.exists_positive_integral_multiple E a |
| 41 | have hin : Pi.single i (n • a) ∈ standardLattice (E := E) := by |
| 42 | apply (mem_standardLattice _).mpr |
| 43 | intro j |
| 44 | by_cases hij : i = j |
| 45 | · subst j; simpa using hi |
| 46 | · simpa only [Pi.single_eq_of_ne (Ne.symm hij)] using (isIntegral_zero : IsIntegral ℤ (0 : E)) |
| 47 | have h := (Submodule.span ℚ (standardLattice (E := E) : Set (Data.CongruenceLevel.VE E))).smul_mem |
| 48 | ((n : ℚ)⁻¹) (Submodule.subset_span hin) |
| 49 | convert h using 1 |
| 50 | ext j |
| 51 | by_cases hij : i = j |
| 52 | · subst j |
| 53 | simp only [Pi.smul_apply, Pi.single_eq_same, nsmul_eq_mul] |
| 54 | have hne : (n : E) ≠ 0 := by exact_mod_cast hn.ne' |
| 55 | simp [Algebra.smul_def, hne] |
| 56 | · simp only [Pi.smul_apply, Pi.single_eq_of_ne (Ne.symm hij)] |
| 57 | change (0 : E) = ((n : ℚ)⁻¹) • (0 : E) |
| 58 | simp only [Algebra.smul_def, mul_zero] |
| 59 | have hx : x = ∑ i : Fin 3, Pi.single i (x i) := by |
| 60 | ext j |
| 61 | simp |
| 62 | rw [hx] |
| 63 | exact Submodule.sum_mem _ (fun i _ => hs i (x i)) |
| 64 | · intro a x hx |
| 65 | apply (mem_standardLattice _).mpr |
| 66 | intro i |
| 67 | exact a.property.mul ((mem_standardLattice x).mp hx i) |
| 68 | |
| 69 | omit [NumberField.IsCMField E] in |
| 70 | /-- Clear both coefficients δ and δb using a single positive integer. -/ |
| 71 | lemma exists_integral_trace_coefficients (b δ : E) : |
| 72 | ∃ m : ℕ, 0 < m ∧ |
| 73 | IsIntegral ℤ (m • δ) ∧ IsIntegral ℤ (m • (δ * b)) := by |
| 74 | obtain ⟨m₁, hm₁, h₁⟩ := AlgebraicGeometry.ComplexMultiplication.CM.IntegralPolarization.exists_positive_integral_multiple E δ |
| 75 | obtain ⟨m₂, hm₂, h₂⟩ := AlgebraicGeometry.ComplexMultiplication.CM.IntegralPolarization.exists_positive_integral_multiple E (δ * b) |
| 76 | refine ⟨m₁ * m₂, Nat.mul_pos hm₁ hm₂, ?_, ?_⟩ |
| 77 | · rw [mul_comm m₁ m₂, mul_smul] |
| 78 | exact h₁.nsmul m₂ |
| 79 | · rw [mul_smul] |
| 80 | exact h₂.nsmul m₁ |
| 81 | |
| 82 | theorem trace_integral_on_standardLattice |
| 83 | (b δ : E) (m : ℕ) |
| 84 | (hδ : IsIntegral ℤ (m • δ)) |
| 85 | (hδb : IsIntegral ℤ (m • (δ * b))) |
| 86 | (x y : Data.CongruenceLevel.VE E) (hx : x ∈ standardLattice (E := E)) (hy : y ∈ standardLattice (E := E)) : |
| 87 | ∃ n : ℤ, (m : ℚ) * Trace.CongruenceLevel.rationalTrace b δ x y = (n : ℚ) := by |
| 88 | have hi : IsIntegral ℤ (m • (δ * Data.CongruenceLevel.hermitian b x y)) := by |
| 89 | have he : m • (δ * Data.CongruenceLevel.hermitian b x y) = |
| 90 | ∑ i : Fin 3, (m • (δ * (if i = 2 then b else 1))) * x i * |
| 91 | NumberField.IsCMField.complexConj E (y i) := by |
| 92 | simp only [Data.CongruenceLevel.hermitian, Finset.mul_sum, Finset.smul_sum, nsmul_eq_mul] |
| 93 | apply Finset.sum_congr rfl |
| 94 | intro i _ |
| 95 | ring |
| 96 | rw [he] |
| 97 | apply IsIntegral.sum |
| 98 | intro i _ |
| 99 | have hc : IsIntegral ℤ (m • (δ * (if i = 2 then b else 1))) := by |
| 100 | split_ifs |
| 101 | · exact hδb |
| 102 | · simpa using hδ |
| 103 | exact (hc.mul ((mem_standardLattice x).mp hx i)).mul |
| 104 | (map_isIntegral_int (NumberField.IsCMField.complexConj E).toRingHom |
| 105 | ((mem_standardLattice y).mp hy i)) |
| 106 | have ht : IsIntegral ℤ (Algebra.trace ℚ E (m • (δ * Data.CongruenceLevel.hermitian b x y))) := |
| 107 | Algebra.isIntegral_trace hi |
| 108 | obtain ⟨n, hn⟩ := IsIntegrallyClosed.isIntegral_iff.mp ht |
| 109 | refine ⟨n, ?_⟩ |
| 110 | calc |
| 111 | (m : ℚ) * Trace.CongruenceLevel.rationalTrace b δ x y = |
| 112 | Algebra.trace ℚ E (m • (δ * Data.CongruenceLevel.hermitian b x y)) := by |
| 113 | rw [map_nsmul] |
| 114 | rfl |
| 115 | _ = (n : ℚ) := hn.symm |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel |