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.Divisors.LineBundles.Ord |
| 2 | import Mathlib.AlgebraicGeometry.Fiber |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 4 | import Mathlib.RingTheory.HopkinsLevitzki |
| 5 | import Mathlib.LinearAlgebra.Finsupp.LSum |
| 6 | |
| 7 | /-! # Fiber Fundamental Cycle -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.FiberFundamentalCycle.BundleCycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! # LineBundleCycles: actual finite fiber cycles, with all irreducible components and local-ring multiplicities -/ |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 18 | |
| 19 | def componentGenericPoint (X : Scheme.{0}) (C : irreducibleComponents X) : X := |
| 20 | irreducibleSetEquivPoints ⟨C.val, C.property.1, isClosed_of_mem_irreducibleComponents _ C.property⟩ |
| 21 | |
| 22 | theorem componentGenericPoint_coheight (X : Scheme.{0}) (C : irreducibleComponents X) : |
| 23 | coheight (componentGenericPoint X C) = 0 := by |
| 24 | apply IsMax.coheight_eq_zero |
| 25 | apply (irreducibleSetEquivPoints.isMax_apply).mpr |
| 26 | intro W hW |
| 27 | exact C.property.2 W.isIrreducible hW |
| 28 | |
| 29 | theorem componentGenericPoint_length_finite (X : Scheme.{0}) [IsLocallyNoetherian X] |
| 30 | (C : irreducibleComponents X) : |
| 31 | Module.length (X.presheaf.stalk (componentGenericPoint X C)) |
| 32 | (X.presheaf.stalk (componentGenericPoint X C)) ≠ ⊤ := by |
| 33 | have : Ring.KrullDimLE 0 (X.presheaf.stalk (componentGenericPoint X C)) := |
| 34 | krullDimLE_of_coheight_le (componentGenericPoint_coheight X C).le |
| 35 | have : IsArtinianRing (X.presheaf.stalk (componentGenericPoint X C)) := |
| 36 | IsNoetherianRing.isArtinianRing_of_krullDimLE_zero |
| 37 | exact Module.length_ne_top |
| 38 | |
| 39 | variable {X Y : Scheme.{0}} (p : X ⟶ Y) [LocallyOfFiniteType p] [QuasiCompact p] |
| 40 | |
| 41 | instance finiteTypeFiber_isNoetherian (y : Y) : AlgebraicGeometry.IsNoetherian (p.fiber y) := by |
| 42 | have : LocallyOfFiniteType (p.fiberToSpecResidueField y) := |
| 43 | inferInstanceAs (LocallyOfFiniteType (Limits.pullback.snd p (Y.fromSpecResidueField y))) |
| 44 | have : IsLocallyNoetherian (p.fiber y) := LocallyOfFiniteType.isLocallyNoetherian (p.fiberToSpecResidueField y) |
| 45 | exact ⟨⟩ |
| 46 | |
| 47 | def fiberFundamentalPointCycle (y : Y) : X →₀ ℚ := by |
| 48 | let := (NoetherianSpace.finite_irreducibleComponents (α := p.fiber y)).fintype |
| 49 | exact ∑ C : irreducibleComponents (p.fiber y), |
| 50 | Finsupp.single (p.fiberι y (componentGenericPoint (p.fiber y) C)) |
| 51 | ((Module.length ((p.fiber y).presheaf.stalk (componentGenericPoint (p.fiber y) C)) |
| 52 | ((p.fiber y).presheaf.stalk (componentGenericPoint (p.fiber y) C))).toNat : ℚ) |
| 53 | |
| 54 | /-- On a flat finite-type morphism this is the usual pullback of finite cycles: |
| 55 | the fiber's actual generic points, weighted by the lengths of their local rings. -/ |
| 56 | def fiberPointCyclePullback : (Y →₀ ℚ) →ₗ[ℚ] (X →₀ ℚ) := |
| 57 | Finsupp.linearCombination ℚ (fiberFundamentalPointCycle p) |
| 58 | |
| 59 | theorem fiberPointCyclePullback_single (y : Y) (a : ℚ) : |
| 60 | fiberPointCyclePullback p (Finsupp.single y a) = a • fiberFundamentalPointCycle p y := |
| 61 | Finsupp.linearCombination_single ℚ a y |
| 62 | |
| 63 | end |
| 64 | |
| 65 | /-! Every actual generic local ring of a reduced scheme has length one. -/ |
| 66 | |
| 67 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 68 | |
| 69 | theorem componentGenericPoint_length_one_of_reduced (X : Scheme.{0}) [IsReduced X] |
| 70 | (C : irreducibleComponents X) : |
| 71 | Module.length (X.presheaf.stalk (componentGenericPoint X C)) |
| 72 | (X.presheaf.stalk (componentGenericPoint X C)) = 1 := by |
| 73 | have hx : closure {componentGenericPoint X C} = C.val := |
| 74 | C.property.1.closure_genericPoint (isClosed_of_mem_irreducibleComponents _ C.property) |
| 75 | have hf : IsField (X.presheaf.stalk (componentGenericPoint X C)) := |
| 76 | isField_stalk_of_closure_mem_irreducibleComponents X _ (hx.symm ▸ C.property) |
| 77 | let := hf.toField |
| 78 | exact Module.length_eq_one _ _ |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.Divisors.LineBundles.FiberFundamentalCycle.BundleCycles |