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.IntersectionTheory.ProjectionFormula.Affine.PrincipalBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalCodimension |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizedTorEuler |
| 4 | |
| 5 | /-! # Principal Weight -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalWeight |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The principal quotient's generic-length weight is the genuine |
| 12 | geometric divisor order on the original affine reduced support. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped Classical |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |
| 18 | |
| 19 | variable (R : Type) [CommRing R] [IsNoetherianRing R] (v : PrimeSpectrum R) (r : R) |
| 20 | |
| 21 | def weight (w : PrimeSpectrum R) : ℚ := |
| 22 | if h : v.asIdeal ≤ w.asIdeal then |
| 23 | ((CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportStalk.support R v)).ord |
| 24 | (algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportStalk.support R v)).presheaf.stalk |
| 25 | (CycleClass.Thom.IntersectionGeometry.supportPreimage (SupportStalk.support R v) w (SupportStalk.mem R v w h))) |
| 26 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportStalk.support R v)).functionField |
| 27 | (Local.Principal.supportStalkMap (Spec (.of R)) (SupportStalk.support R v) w (SupportStalk.mem R v w h) |
| 28 | (StructureSheaf.toStalk R w r))) (CycleClass.Thom.IntersectionGeometry.supportPreimage (SupportStalk.support R v) w (SupportStalk.mem R v w h)) : ℚ) |
| 29 | else 0 |
| 30 | |
| 31 | theorem eq_length (hr : r ∉ v.asIdeal) |
| 32 | (w : PrimeSpectrum R) (hw : w ∈ Module.support R (QuotSMulTop r (R ⧸ v.asIdeal))) : |
| 33 | weight R v r w = |
| 34 | ((FiltrationBaseLength.length R (Localization.AtPrime w.asIdeal) |
| 35 | (.of R (QuotSMulTop r (R ⧸ v.asIdeal)))).toNat : ℚ) := by |
| 36 | have hvw := (PrincipalCodimension.mem_support v w r hw).1 |
| 37 | rw [weight, dite_eq_left hvw] |
| 38 | exact_mod_cast PrincipalBaseChange.SupportOrder.order R v w hvw r hr |
| 39 | |
| 40 | theorem eq_length_all (hr : r ∉ v.asIdeal) (w : PrimeSpectrum R) : |
| 41 | weight R v r w = |
| 42 | ((FiltrationBaseLength.length R (Localization.AtPrime w.asIdeal) |
| 43 | (.of R (QuotSMulTop r (R ⧸ v.asIdeal)))).toNat : ℚ) := by |
| 44 | by_cases hvw : v.asIdeal ≤ w.asIdeal |
| 45 | · rw [weight, dite_eq_left hvw] |
| 46 | exact_mod_cast PrincipalBaseChange.SupportOrder.order R v w hvw r hr |
| 47 | · have hw : w ∉ Module.support R (QuotSMulTop r (R ⧸ v.asIdeal)) := |
| 48 | fun h => hvw (PrincipalCodimension.mem_support v w r h).1 |
| 49 | rw [weight, dite_eq_right hvw, LocalizedTorEuler.length_zero R _ w hw] |
| 50 | rfl |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalWeight |