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.TorAlgebra.RegularEulerMultiplicity |
| 2 | |
| 3 | /-! # Regular Equation Euler Step -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularEquationEulerStep |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A regular first equation reduces the native intersection Euler |
| 10 | sum to the residual minimal-prime cycles, with actual local lengths. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits RingTheory.Sequence |
| 13 | open scoped Classical |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Euler.Tor OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedModuleLength.Constructions |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.Regular.EquationQuotientSupport.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Regular.EquationQuotients.Constructions |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u |
| 21 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 22 | (N : ModuleCat.{u} R) [Module.Finite R N] (r : R) (rs : List R) |
| 23 | (hr : IsWeaklyRegular R (r :: rs)) |
| 24 | (hm : ∀ x ∈ r :: rs, x ∈ IsLocalRing.maximalIdeal R) |
| 25 | (hn : IsSMulRegular N r) |
| 26 | (hd : Module.supportDim R N ≤ ((r :: rs).length : WithBot ℕ∞)) |
| 27 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList (r :: rs) : Set R) ∩ Module.support R N ⊆ |
| 28 | {IsLocalRing.closedPoint R}) |
| 29 | |
| 30 | include hr hm hn hd hi |
| 31 | |
| 32 | theorem euler_eq_residual_prime_sum (d : ℕ) (hD : rs.length ≤ d) : |
| 33 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList (r :: rs))) N d = |
| 34 | ∑ p ∈ MinimalSupportPrimes.Constructions.minimalSupportPrimes (R ⧸ Ideal.span {r}) (QuotSMulTop r N), |
| 35 | ((LocalizedModuleLength.Constructions.localLength (R ⧸ Ideal.span {r}) (QuotSMulTop r N) p).toNat : ℚ) * |
| 36 | Euler.Tor.euler (R ⧸ Ideal.span {r}) |
| 37 | (ModuleCat.of (R ⧸ Ideal.span {r}) |
| 38 | ((R ⧸ Ideal.span {r}) ⧸ Ideal.ofList (rs.map (algebraMap R (R ⧸ Ideal.span {r}))))) |
| 39 | (ModuleCat.of (R ⧸ Ideal.span {r}) ((R ⧸ Ideal.span {r}) ⧸ p.asIdeal)) d := by |
| 40 | let : IsLocalRing (R ⧸ Ideal.span {r}) := Regular.EquationQuotientSupport.Constructions.quotientLocalRing R r (hm r (List.mem_cons_self)) |
| 41 | let : Module.Finite (R ⧸ Ideal.span {r}) (QuotSMulTop r N) := |
| 42 | Module.Finite.of_restrictScalars_finite R (R ⧸ Ideal.span {r}) _ |
| 43 | let tail := rs.map (algebraMap R (R ⧸ Ideal.span {r})) |
| 44 | have hrt : IsWeaklyRegular (R ⧸ Ideal.span {r}) tail := Regular.EquationQuotients.Constructions.weaklyRegular_tail R r rs hr |
| 45 | have hmt : ∀ x ∈ tail, x ∈ IsLocalRing.maximalIdeal (R ⧸ Ideal.span {r}) := |
| 46 | Regular.EquationQuotientSupport.Constructions.maximalIdeal_tail R r rs (fun x hx => hm x (List.mem_cons_of_mem r hx)) |
| 47 | have hdt : Module.supportDim (R ⧸ Ideal.span {r}) (QuotSMulTop r N) ≤ (tail.length : WithBot ℕ∞) := by |
| 48 | rw [Regular.EquationQuotientSupport.Constructions.quotient_supportDim R r N] |
| 49 | simp only [tail, List.length_map] |
| 50 | apply ENat.WithBot.add_le_add_one_right_iff.mp |
| 51 | rw [Module.supportDim_quotSMulTop_succ_eq_supportDim hn (hm r (List.mem_cons_self))] |
| 52 | simpa only [List.length_cons, Nat.cast_add, Nat.cast_one] using hd |
| 53 | have hit := Regular.EquationQuotientSupport.Constructions.isolated_tail R r N rs hi |
| 54 | exact (SequenceChangeOfRings.euler_eq R r rs N |
| 55 | ((isWeaklyRegular_cons_iff R r rs).mp hr).1 hn d).trans |
| 56 | (RegularEulerMultiplicity.euler_eq_minimalSupportPrimes_sum |
| 57 | (R ⧸ Ideal.span {r}) (ModuleCat.of (R ⧸ Ideal.span {r}) (QuotSMulTop r N)) |
| 58 | tail hrt hmt hdt hit d (by simpa only [tail, List.length_map] using hD)) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularEquationEulerStep |