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 |
| 2 | |
| 3 | /-! # Local Surjectivity -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.GroupSchemes.LocalSurjectivity.FiniteEtale |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Two applications of Nakayama for finite maps of local rings. -/ |
| 10 | |
| 11 | variable {R S : Type*} [CommRing R] [CommRing S] [IsLocalRing R] [IsLocalRing S] |
| 12 | |
| 13 | /-- A finite local map surjective on residues and on the maximal ideal is surjective. -/ |
| 14 | theorem surjective_of_map_maximalIdeal (f : R →+* S) (hf : f.Finite) |
| 15 | (hm : (IsLocalRing.maximalIdeal R).map f = IsLocalRing.maximalIdeal S) |
| 16 | (hres : ∀ y : S, ∃ x : R, y - f x ∈ IsLocalRing.maximalIdeal S) : |
| 17 | Function.Surjective f := by |
| 18 | algebraize [f] |
| 19 | have : Module.Finite R S := hf |
| 20 | change (IsLocalRing.maximalIdeal R).map (algebraMap R S) = IsLocalRing.maximalIdeal S at hm |
| 21 | change Function.Surjective (Algebra.linearMap R S) |
| 22 | rw [← LinearMap.range_eq_top, ← top_le_iff] |
| 23 | apply Submodule.le_of_le_smul_of_le_jacobson_bot Module.Finite.fg_top |
| 24 | (IsLocalRing.maximalIdeal_le_jacobson (⊥ : Ideal R)) |
| 25 | rw [Ideal.smul_top_eq_map, hm] |
| 26 | intro y _ |
| 27 | obtain ⟨x, hx⟩ := hres y |
| 28 | exact Submodule.mem_sup.mpr ⟨f x, ⟨x, rfl⟩, y - f x, hx, by abel⟩ |
| 29 | |
| 30 | /-- Surjectivity on cotangent spaces already gives surjectivity on the maximal ideal. -/ |
| 31 | theorem map_maximalIdeal_of_cotangent [IsNoetherianRing S] (f : R →+* S) |
| 32 | (hle : (IsLocalRing.maximalIdeal R).map f ≤ IsLocalRing.maximalIdeal S) |
| 33 | (hcot : IsLocalRing.maximalIdeal S ≤ |
| 34 | (IsLocalRing.maximalIdeal R).map f ⊔ IsLocalRing.maximalIdeal S ^ 2) : |
| 35 | (IsLocalRing.maximalIdeal R).map f = IsLocalRing.maximalIdeal S := by |
| 36 | apply le_antisymm hle |
| 37 | apply Submodule.le_of_le_smul_of_le_jacobson_bot |
| 38 | (IsNoetherian.noetherian (IsLocalRing.maximalIdeal S)) |
| 39 | (IsLocalRing.maximalIdeal_le_jacobson (⊥ : Ideal S)) |
| 40 | simpa only [Ideal.smul_eq_mul, pow_two] using hcot |
| 41 | |
| 42 | /-- A finite local map surjective on residues and cotangent spaces is surjective. -/ |
| 43 | theorem surjective_of_cotangent [IsNoetherianRing S] (f : R →+* S) (hf : f.Finite) |
| 44 | (hle : (IsLocalRing.maximalIdeal R).map f ≤ IsLocalRing.maximalIdeal S) |
| 45 | (hcot : IsLocalRing.maximalIdeal S ≤ |
| 46 | (IsLocalRing.maximalIdeal R).map f ⊔ IsLocalRing.maximalIdeal S ^ 2) |
| 47 | (hres : ∀ y : S, ∃ x : R, y - f x ∈ IsLocalRing.maximalIdeal S) : |
| 48 | Function.Surjective f := |
| 49 | surjective_of_map_maximalIdeal f hf (map_maximalIdeal_of_cotangent f hle hcot) hres |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.GroupSchemes.LocalSurjectivity.FiniteEtale |