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.Resolution.Blowups.Locally.PrincipalRegular |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Global.ClosedCarrierBoundaryAtlas |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Open.CoverDimension |
| 4 | import Mathlib.RingTheory.KrullDimension.NonZeroDivisors |
| 5 | |
| 6 | /-! # Cartier Dimension -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Global.CartierDimension.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A nonzero locally principal closed carrier drops the ambient dimension. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem locallyPrincipal_subscheme_dimension_le |
| 17 | {X : Scheme.{0}} [IsIntegral X] [IsLocallyNoetherian X] |
| 18 | (H : X.IdealSheafData) (hH : H ≠ ⊥) (hlocal : Locally.PrincipalIdealSheaf.Construction.LocallyPrincipalIdealSheaf H) |
| 19 | (d : ℕ) (hd : topologicalKrullDim X ≤ (d + 1 : ℕ)) : |
| 20 | topologicalKrullDim H.subscheme ≤ d := by |
| 21 | classical |
| 22 | choose U hx r hregular hHlocal using Locally.PrincipalRegular.Construction.locallyPrincipal_regular_generators H hH hlocal |
| 23 | have hcover : ⨆ x, (U x).1 = ⊤ := by |
| 24 | apply top_le_iff.mp |
| 25 | intro x _ |
| 26 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨x, hx x⟩ |
| 27 | let C := ClosedCarrierBoundaryAtlas.Construction.subschemeChosenAffineCover H U hcover |
| 28 | let : ∀ i, IsOpenImmersion (C.f i) := fun i => C.openCover.map_prop i |
| 29 | apply Open.CoverDimension.Construction.scheme_dimension_le_of_open_affine_cover C.X C.f |
| 30 | (fun x => ⟨C.idx x, C.covers x⟩) d |
| 31 | intro x |
| 32 | change ringKrullDim (Γ(X, U x) ⧸ H.ideal (U x)) ≤ d |
| 33 | rw [hHlocal x] |
| 34 | let : IsOpenImmersion (U x).2.fromSpec := (U x).2.isOpenImmersion_fromSpec |
| 35 | have h := (ringKrullDim_quotient_succ_le_of_nonZeroDivisor |
| 36 | (hregular x).mem_nonZeroDivisors).trans |
| 37 | ((Open.CoverDimension.Construction.ringKrullDim_le_of_affine_open_map Γ(X, U x) (U x).2.fromSpec).trans hd) |
| 38 | rw [Nat.cast_add, Nat.cast_one] at h |
| 39 | exact ENat.WithBot.add_le_add_one_right_iff.mp h |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.Resolution.Blowups.Global.CartierDimension.Construction |