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.CycleClass.Thom.SurjectiveModuleSupport |
| 2 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 3 | import Mathlib.RingTheory.Regular.RegularSequence |
| 4 | |
| 5 | /-! # Isolated Equation Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.IsolatedEquationDimension.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An isolated common zero of a finite equation list bounds the |
| 12 | local support dimension by the length of that list. This follows from |
| 13 | the height theorem in the actual quotient ring. -/ |
| 14 | |
| 15 | open RingTheory.Sequence |
| 16 | |
| 17 | universe u |
| 18 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 19 | |
| 20 | theorem ringKrullDim_le_length (rs : List R) |
| 21 | (hm : ∀ r ∈ rs, r ∈ IsLocalRing.maximalIdeal R) |
| 22 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) ⊆ {IsLocalRing.closedPoint R}) : |
| 23 | ringKrullDim R ≤ (rs.length : WithBot ℕ∞) := by |
| 24 | classical |
| 25 | have hmin : IsLocalRing.maximalIdeal R ∈ (Ideal.span (rs.toFinset : Set R)).minimalPrimes := by |
| 26 | refine ⟨⟨inferInstance, ?_⟩, ?_⟩ |
| 27 | · apply Ideal.span_le.mpr |
| 28 | intro r hr |
| 29 | exact hm r (List.mem_toFinset.mp hr) |
| 30 | · intro Q hQ _ |
| 31 | have he := Set.mem_singleton_iff.mp (hi (show (⟨Q, hQ.1⟩ : PrimeSpectrum R) ∈ |
| 32 | PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) from by |
| 33 | change Ideal.ofList rs ≤ Q |
| 34 | simpa only [Ideal.ofList, List.coe_toFinset] using hQ.2)) |
| 35 | exact le_of_eq (congrArg PrimeSpectrum.asIdeal he).symm |
| 36 | have hh := Ideal.height_le_card_of_mem_minimalPrimes_span_finset hmin |
| 37 | have hc : (rs.toFinset.card : ℕ∞) ≤ rs.length := by exact_mod_cast List.toFinset_card_le rs |
| 38 | have h := hh.trans hc |
| 39 | have h' : ((IsLocalRing.maximalIdeal R).height : WithBot ℕ∞) ≤ rs.length := by exact_mod_cast h |
| 40 | rwa [IsLocalRing.maximalIdeal_height_eq_ringKrullDim] at h' |
| 41 | |
| 42 | theorem quotient_supportDim_le_length (P : Ideal R) [P.IsPrime] (rs : List R) |
| 43 | (hm : ∀ r ∈ rs, r ∈ IsLocalRing.maximalIdeal R) |
| 44 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) ∩ Module.support R (R ⧸ P) ⊆ |
| 45 | {IsLocalRing.closedPoint R}) : Module.supportDim R (R ⧸ P) ≤ (rs.length : WithBot ℕ∞) := by |
| 46 | let S := R ⧸ P |
| 47 | let : IsLocalRing S := IsLocalRing.of_surjective' (Ideal.Quotient.mk P) Ideal.Quotient.mk_surjective |
| 48 | let : IsLocalHom (algebraMap R S) := IsLocalHom.of_surjective _ Ideal.Quotient.mk_surjective |
| 49 | have his := SurjectiveModuleSupport.Constructions.isolated_ideal_intersection R S S |
| 50 | Ideal.Quotient.mk_surjective (Ideal.ofList rs) hi |
| 51 | have hm' : ∀ r ∈ rs.map (algebraMap R S), r ∈ IsLocalRing.maximalIdeal S := by |
| 52 | rintro _ h |
| 53 | obtain ⟨r, hr, rfl⟩ := List.mem_map.mp h |
| 54 | exact map_nonunit (algebraMap R S) r (hm r hr) |
| 55 | have hi' : PrimeSpectrum.zeroLocus (Ideal.ofList (rs.map (algebraMap R S)) : Set S) ⊆ |
| 56 | {IsLocalRing.closedPoint S} := by |
| 57 | intro q hq |
| 58 | apply his |
| 59 | refine ⟨?_, ?_⟩ |
| 60 | · rwa [Ideal.map_ofList] |
| 61 | · rw [Module.mem_support_iff_of_finite, Module.annihilator_eq_bot.mpr inferInstance] |
| 62 | exact bot_le |
| 63 | rw [Module.supportDim_quotient_eq_ringKrullDim] |
| 64 | simpa only [List.length_map] using ringKrullDim_le_length S (rs.map (algebraMap R S)) hm' hi' |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.CycleClass.Thom.IsolatedEquationDimension.Constructions |