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.HodgeConjecture.HeckeCycles.StandardLattice |
| 2 | import Mathlib.NumberTheory.Padics.RingHoms |
| 3 | |
| 4 | /-! # Lattice -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Lattice.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! At primes avoiding the two constructed lattice denominators, every |
| 11 | integral local embedding identifies the reference lattice with Z_q³. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | open _root_.NumberField |
| 15 | |
| 16 | variable {E : Type*} [Field E] [NumberField E] {q : ℕ} [Fact q.Prime] |
| 17 | |
| 18 | def localImage (τ : E →+* ℚ_[q]) : (Fin 3 → E) →ₗ[ℤ] (Fin 3 → ℚ_[q]) where |
| 19 | toFun x i := τ (x i) |
| 20 | map_add' x y := by ext i; exact map_add τ _ _ |
| 21 | map_smul' n x := by ext i; exact map_zsmul τ n (x i) |
| 22 | |
| 23 | def localLattice (τ : E →+* ℚ_[q]) (Λ : Submodule ℤ (Fin 3 → E)) : |
| 24 | Submodule ℤ_[q] (Fin 3 → ℚ_[q]) := |
| 25 | Submodule.span ℤ_[q] (localImage τ '' (Λ : Set (Fin 3 → E))) |
| 26 | |
| 27 | def standard : Submodule ℤ_[q] (Fin 3 → ℚ_[q]) := |
| 28 | Submodule.span ℤ_[q] (Set.range fun i : Fin 3 => Pi.single i 1) |
| 29 | |
| 30 | theorem natCast_isUnit (n : ℕ) (hn : Nat.Coprime q n) : IsUnit (n : ℤ_[q]) := by |
| 31 | apply IsLocalRing.notMem_maximalIdeal.mp |
| 32 | intro h |
| 33 | rw [← PadicInt.ker_toZMod] at h |
| 34 | have hz : (n : ZMod q) = 0 := by |
| 35 | simpa only [RingHom.mem_ker, map_natCast] using h |
| 36 | exact ((ZMod.isUnit_iff_coprime n q).mpr hn.symm).ne_zero hz |
| 37 | |
| 38 | theorem localImage_single (τ : E →+* ℚ_[q]) (i : Fin 3) (x : E) : |
| 39 | localImage τ (Pi.single i x) = Pi.single i (τ x) := by |
| 40 | ext j |
| 41 | by_cases h : i = j |
| 42 | · subst j; simp [localImage] |
| 43 | · simp [localImage, Pi.single_eq_of_ne (Ne.symm h)] |
| 44 | |
| 45 | theorem localImage_nsmul (τ : E →+* ℚ_[q]) (n : ℕ) (x : Fin 3 → E) : |
| 46 | localImage τ (n • x) = (n : ℤ_[q]) • localImage τ x := by |
| 47 | rw [map_nsmul, Nat.cast_smul_eq_nsmul] |
| 48 | |
| 49 | omit [NumberField E] in |
| 50 | theorem integral_vector_mem (v : Fin 3 → ℤ_[q]) : |
| 51 | (fun i => (v i : ℚ_[q])) ∈ standard (q := q) := by |
| 52 | have hsingle (i : Fin 3) : |
| 53 | Pi.single i (v i : ℚ_[q]) ∈ standard (q := q) := by |
| 54 | have h := (standard (q := q)).smul_mem (v i) |
| 55 | (Submodule.subset_span ⟨i, rfl⟩) |
| 56 | convert h using 1 |
| 57 | ext j |
| 58 | by_cases hij : i = j |
| 59 | · subst j |
| 60 | simp only [Pi.smul_apply, Pi.single_eq_same] |
| 61 | change (v i : ℚ_[q]) = (v i : ℚ_[q]) * 1 |
| 62 | exact (mul_one _).symm |
| 63 | · simp [Pi.single_eq_of_ne (Ne.symm hij)] |
| 64 | rw [← Finset.univ_sum_single (fun i => (v i : ℚ_[q]))] |
| 65 | exact Submodule.sum_mem _ (fun i _ => hsingle i) |
| 66 | |
| 67 | theorem standard_image_mem (τ : E →+* ℚ_[q]) |
| 68 | (χ : RingOfIntegers E →+* ℤ_[q]) |
| 69 | (hχ : ∀ a : RingOfIntegers E, τ a = (χ a : ℚ_[q])) |
| 70 | (x : Fin 3 → E) (hx : x ∈ StandardLattice.CM.standardLattice E) : |
| 71 | localImage τ x ∈ standard (q := q) := by |
| 72 | obtain ⟨y, rfl⟩ := hx |
| 73 | convert integral_vector_mem (fun i => χ (y i)) using 1 |
| 74 | ext i |
| 75 | exact hχ (y i) |
| 76 | |
| 77 | /-- The two integral inclusions alone imply the standard local frame when |
| 78 | their multipliers are units. No local-frame hypothesis is used. -/ |
| 79 | theorem localLattice_eq_standard (τ : E →+* ℚ_[q]) |
| 80 | (χ : RingOfIntegers E →+* ℤ_[q]) |
| 81 | (hχ : ∀ a : RingOfIntegers E, τ a = (χ a : ℚ_[q])) |
| 82 | (Λ : Submodule ℤ (Fin 3 → E)) (m n : ℕ) |
| 83 | (hm : Nat.Coprime q m) (hn : Nat.Coprime q n) |
| 84 | (hml : ∀ x ∈ StandardLattice.CM.standardLattice E, m • x ∈ Λ) |
| 85 | (hnl : ∀ x ∈ Λ, n • x ∈ StandardLattice.CM.standardLattice E) : |
| 86 | localLattice τ Λ = standard (q := q) := by |
| 87 | apply le_antisymm |
| 88 | · apply Submodule.span_le.mpr |
| 89 | rintro _ ⟨x, hx, rfl⟩ |
| 90 | apply ((standard (q := q)).smul_mem_iff_of_isUnit (natCast_isUnit n hn)).mp |
| 91 | rw [← localImage_nsmul] |
| 92 | exact standard_image_mem τ χ hχ _ (hnl x hx) |
| 93 | · apply Submodule.span_le.mpr |
| 94 | rintro _ ⟨i, rfl⟩ |
| 95 | apply ((localLattice τ Λ).smul_mem_iff_of_isUnit (natCast_isUnit m hm)).mp |
| 96 | have h := Submodule.subset_span (R := ℤ_[q]) |
| 97 | (s := localImage τ '' (Λ : Set (Fin 3 → E))) |
| 98 | ⟨m • Pi.single i (1 : E), |
| 99 | hml _ (StandardLattice.CM.single_integer_mem E i 1), rfl⟩ |
| 100 | change localImage τ (m • Pi.single i 1) ∈ localLattice τ Λ at h |
| 101 | rw [localImage_nsmul, localImage_single, map_one] at h |
| 102 | exact h |
| 103 | |
| 104 | /-- A single positive bound works simultaneously for every integral local |
| 105 | embedding of the number field. -/ |
| 106 | theorem exists_uniform_local_frame (Λ : Submodule ℤ (Fin 3 → E)) |
| 107 | (hfg : Λ.FG) (hfull : Submodule.span ℚ (Λ : Set (Fin 3 → E)) = ⊤) : |
| 108 | ∃ d : ℕ, 0 < d ∧ ∀ (p : ℕ) [Fact p.Prime], Nat.Coprime p d → |
| 109 | ∀ (τ : E →+* ℚ_[p]) (χ : RingOfIntegers E →+* ℤ_[p]), |
| 110 | (∀ a : RingOfIntegers E, τ a = (χ a : ℚ_[p])) → |
| 111 | localLattice τ Λ = standard (q := p) := by |
| 112 | obtain ⟨m, n, hm, hn, hml, hnl⟩ := |
| 113 | StandardLattice.CM.integer_bounds E Λ hfg hfull |
| 114 | refine ⟨m * n, Nat.mul_pos hm hn, ?_⟩ |
| 115 | intro p _ hp τ χ hχ |
| 116 | exact localLattice_eq_standard τ χ hχ Λ m n |
| 117 | (Nat.coprime_mul_iff_right.mp hp).1 (Nat.coprime_mul_iff_right.mp hp).2 hml hnl |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Lattice.CM |