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.SourceOrderStep |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Affine.PrincipalSchemeOrder |
| 3 | |
| 4 | /-! # Scheme Order Step -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.SchemeOrderStep |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Regular intersection devissage with the exact Scheme.ord |
| 11 | coefficients of the actual affine source rational function. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits RingTheory.Sequence _root_.AlgebraicGeometry |
| 14 | open scoped Classical |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Euler.Tor OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.SourceOrderStep |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.ResidualMinimalSourcePrime.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.MinimalSupportPrimes.Constructions |
| 18 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.PrincipalSchemeOrder.Constructions |
| 19 | |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | universe u |
| 23 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] (P : Ideal R) [P.IsPrime] (r : R) |
| 24 | |
| 25 | omit [IsNoetherianRing R] in |
| 26 | theorem equation_image_ne_zero (hn : IsSMulRegular (R ⧸ P) r) : |
| 27 | algebraMap R (R ⧸ P) r ≠ 0 := by |
| 28 | intro hz |
| 29 | change Function.Injective (fun x : R ⧸ P => r • x) at hn |
| 30 | have he : r • (1 : R ⧸ P) = r • (0 : R ⧸ P) := by |
| 31 | rw [← algebraMap_smul (R ⧸ P) r, hz, zero_smul, smul_zero] |
| 32 | exact one_ne_zero (hn he) |
| 33 | |
| 34 | theorem source_prime_height_one (p : SourceOrderStep.ResidualComponent R P r) (hn : IsSMulRegular (R ⧸ P) r) : |
| 35 | (SourceOrderStep.residualSourcePrime R P r p).asIdeal.height = 1 := |
| 36 | ResidualMinimalSourcePrime.Constructions.minimalSourcePrime_height_one R P r p.val |
| 37 | ((MinimalSupportPrimes.Constructions.mem_minimalSupportPrimes (R ⧸ Ideal.span {r}) (QuotSMulTop r (R ⧸ P)) p.val).mp p.property) |
| 38 | (mem_nonZeroDivisors_of_ne_zero (equation_image_ne_zero R P r hn)) |
| 39 | |
| 40 | theorem source_schemeOrder (p : SourceOrderStep.ResidualComponent R P r) (hn : IsSMulRegular (R ⧸ P) r) : |
| 41 | (Spec (CommRingCat.of (R ⧸ P))).ord (Affine.PrincipalSchemeOrder.Constructions.affineFunction (R ⧸ P) (algebraMap R (R ⧸ P) r)) |
| 42 | (SourceOrderStep.residualSourcePrime R P r p) = |
| 43 | ((Ring.ord (Localization.AtPrime (SourceOrderStep.residualSourcePrime R P r p).asIdeal) |
| 44 | (algebraMap (R ⧸ P) (Localization.AtPrime (SourceOrderStep.residualSourcePrime R P r p).asIdeal) |
| 45 | (algebraMap R (R ⧸ P) r))).toNat : ℤ) := |
| 46 | Affine.PrincipalSchemeOrder.Constructions.schemeOrder_eq_localOrder (R ⧸ P) (SourceOrderStep.residualSourcePrime R P r p) |
| 47 | (source_prime_height_one R P r p hn) _ (equation_image_ne_zero R P r hn) |
| 48 | |
| 49 | variable [IsLocalRing R] (rs : List R) |
| 50 | (hr : IsWeaklyRegular R (r :: rs)) |
| 51 | (hm : ∀ x ∈ r :: rs, x ∈ IsLocalRing.maximalIdeal R) |
| 52 | (hn : IsSMulRegular (R ⧸ P) r) |
| 53 | (hd : Module.supportDim R (R ⧸ P) ≤ ((r :: rs).length : WithBot ℕ∞)) |
| 54 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList (r :: rs) : Set R) ∩ Module.support R (R ⧸ P) ⊆ |
| 55 | {IsLocalRing.closedPoint R}) |
| 56 | |
| 57 | include hr hm hn hd hi |
| 58 | |
| 59 | theorem euler_eq_source_schemeOrder_sum (d : ℕ) (hD : rs.length ≤ d) : |
| 60 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList (r :: rs))) (ModuleCat.of R (R ⧸ P)) d = |
| 61 | ∑ p : SourceOrderStep.ResidualComponent R P r, |
| 62 | ((Spec (CommRingCat.of (R ⧸ P))).ord |
| 63 | (Affine.PrincipalSchemeOrder.Constructions.affineFunction (R ⧸ P) (algebraMap R (R ⧸ P) r)) (SourceOrderStep.residualSourcePrime R P r p) : ℚ) * |
| 64 | Euler.Tor.euler (R ⧸ Ideal.span {r}) |
| 65 | (ModuleCat.of (R ⧸ Ideal.span {r}) |
| 66 | ((R ⧸ Ideal.span {r}) ⧸ Ideal.ofList (rs.map (algebraMap R (R ⧸ Ideal.span {r}))))) |
| 67 | (ModuleCat.of (R ⧸ Ideal.span {r}) ((R ⧸ Ideal.span {r}) ⧸ p.val.asIdeal)) d := by |
| 68 | rw [SourceOrderStep.euler_eq_source_order_sum R P r rs hr hm hn hd hi d hD] |
| 69 | apply Finset.sum_congr rfl |
| 70 | intro p _ |
| 71 | rw [source_schemeOrder R P r p hn, Int.cast_natCast] |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.SchemeOrderStep |