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.RegularEquationEulerStep |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.ResidualMinimalSourcePrime |
| 3 | |
| 4 | /-! # Source Order Step -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.SourceOrderStep |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The regular-equation reduction of a source quotient, with every |
| 11 | coefficient written as the actual order in its canonical source local ring. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits RingTheory.Sequence |
| 14 | open scoped Classical |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Euler.Tor OAI.AlgebraicGeometry.CycleClass.Thom.MinimalSupportPrimes.Constructions |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.ResidualMinimalSourcePrime.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedModuleLength.Constructions |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] (P : Ideal R) (r : R) |
| 23 | |
| 24 | abbrev ResidualComponent := |
| 25 | ↥(MinimalSupportPrimes.Constructions.minimalSupportPrimes (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P))) |
| 26 | |
| 27 | def residualSourcePrime (p : ResidualComponent R P r) : PrimeSpectrum (R ⧸ P) := |
| 28 | ResidualMinimalSourcePrime.Constructions.minimalSourcePrime R P r p.val |
| 29 | ((MinimalSupportPrimes.Constructions.mem_minimalSupportPrimes (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P)) p.val).mp p.property) |
| 30 | |
| 31 | variable [IsLocalRing R] (rs : List R) |
| 32 | (hr : IsWeaklyRegular R (r :: rs)) |
| 33 | (hm : ∀ x ∈ r :: rs, x ∈ IsLocalRing.maximalIdeal R) |
| 34 | (hn : IsSMulRegular (R ⧸ P) r) |
| 35 | (hd : Module.supportDim R (R ⧸ P) ≤ ((r :: rs).length : WithBot ℕ∞)) |
| 36 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList (r :: rs) : Set R) ∩ Module.support R (R ⧸ P) ⊆ |
| 37 | {IsLocalRing.closedPoint R}) |
| 38 | |
| 39 | include hr hm hn hd hi |
| 40 | |
| 41 | theorem euler_eq_source_order_sum (d : ℕ) (hD : rs.length ≤ d) : |
| 42 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList (r :: rs))) (ModuleCat.of R (R ⧸ P)) d = |
| 43 | ∑ p : ResidualComponent R P r, |
| 44 | ((Ring.ord (Localization.AtPrime (residualSourcePrime R P r p).asIdeal) |
| 45 | (algebraMap (R ⧸ P) (Localization.AtPrime (residualSourcePrime R P r p).asIdeal) |
| 46 | (algebraMap R (R ⧸ P) r))).toNat : ℚ) * |
| 47 | Euler.Tor.euler (R ⧸ Ideal.span {r}) |
| 48 | (ModuleCat.of (R ⧸ Ideal.span {r}) |
| 49 | ((R ⧸ Ideal.span {r}) ⧸ Ideal.ofList (rs.map (algebraMap R (R ⧸ Ideal.span {r}))))) |
| 50 | (ModuleCat.of (R ⧸ Ideal.span {r}) ((R ⧸ Ideal.span {r}) ⧸ p.val.asIdeal)) d := by |
| 51 | rw [RegularEquationEulerStep.euler_eq_residual_prime_sum R |
| 52 | (ModuleCat.of R (R ⧸ P)) r rs hr hm hn hd hi d hD] |
| 53 | symm |
| 54 | trans ∑ p : ResidualComponent R P r, |
| 55 | ((LocalizedModuleLength.Constructions.localLength (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P)) p.val).toNat : ℚ) * |
| 56 | Euler.Tor.euler (R ⧸ Ideal.span {r}) |
| 57 | (ModuleCat.of (R ⧸ Ideal.span {r}) |
| 58 | ((R ⧸ Ideal.span {r}) ⧸ Ideal.ofList (rs.map (algebraMap R (R ⧸ Ideal.span {r}))))) |
| 59 | (ModuleCat.of (R ⧸ Ideal.span {r}) ((R ⧸ Ideal.span {r}) ⧸ p.val.asIdeal)) d |
| 60 | · apply Finset.sum_congr rfl |
| 61 | intro p _ |
| 62 | rw [ResidualMinimalSourcePrime.Constructions.localLength_eq_minimalSourcePrime_ord R P r p.val |
| 63 | ((MinimalSupportPrimes.Constructions.mem_minimalSupportPrimes (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P)) p.val).mp p.property)] |
| 64 | rfl |
| 65 | · exact Finset.sum_coe_sort |
| 66 | (MinimalSupportPrimes.Constructions.minimalSupportPrimes (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P))) |
| 67 | (fun p : PrimeSpectrum (R ⧸ Ideal.span {r}) => |
| 68 | ((LocalizedModuleLength.Constructions.localLength (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P)) p).toNat : ℚ) * |
| 69 | Euler.Tor.euler (R ⧸ Ideal.span {r}) |
| 70 | (ModuleCat.of (R ⧸ Ideal.span {r}) |
| 71 | ((R ⧸ Ideal.span {r}) ⧸ Ideal.ofList (rs.map (algebraMap R (R ⧸ Ideal.span {r}))))) |
| 72 | (ModuleCat.of (R ⧸ Ideal.span {r}) ((R ⧸ Ideal.span {r}) ⧸ p.asIdeal)) d) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.SourceOrderStep |