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.Foundations.Scheme.SmoothProjectiveDecomposition |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Integral |
| 3 | import Mathlib.AlgebraicGeometry.Geometrically.Connected |
| 4 | import Mathlib.Topology.Connected.Clopen |
| 5 | |
| 6 | /-! # Integrality -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Integrality.GeometricIntegrality |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Geometric integrality follows from smoothness, geometric connectedness, and quasi-compactness. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem smooth_connected_integral {K : Type u} [Field K] {X : Scheme.{u}} |
| 19 | (f : X ⟶ Spec (.of K)) [Smooth f] [QuasiCompact f] [ConnectedSpace X] : |
| 20 | IsIntegral X := by |
| 21 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 22 | let : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace f |
| 23 | let : IsNoetherian X := ⟨⟩ |
| 24 | let : IsReduced X := OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_isReduced f |
| 25 | let x : X := Classical.choice inferInstance |
| 26 | have hc := irreducibleComponent_mem_irreducibleComponents x |
| 27 | have hopen := OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents.isOpen_irreducibleComponent_of_stalkDomains (OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_stalk_isDomain f) |
| 28 | (finite_irreducibleComponents_of_isNoetherian (X := X)) hc |
| 29 | have hclopen : IsClopen (irreducibleComponent x) := |
| 30 | ⟨isClosed_of_mem_irreducibleComponents _ hc, hopen⟩ |
| 31 | have heq : irreducibleComponent x = Set.univ := |
| 32 | hclopen.eq_univ ⟨x, mem_irreducibleComponent⟩ |
| 33 | let : PreirreducibleSpace X := ⟨by simpa only [heq] using hc.1.2⟩ |
| 34 | let : IrreducibleSpace X := ⟨inferInstance⟩ |
| 35 | exact isIntegral_of_irreducibleSpace_of_isReduced X |
| 36 | |
| 37 | theorem of_smooth_geometricallyConnected {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 38 | [Smooth f] [QuasiCompact f] [GeometricallyConnected f] : GeometricallyIntegral f := by |
| 39 | constructor |
| 40 | intro K _ y Z fst snd h |
| 41 | let : Smooth snd := MorphismProperty.of_isPullback h inferInstance |
| 42 | let : QuasiCompact snd := MorphismProperty.of_isPullback h inferInstance |
| 43 | let : ConnectedSpace Z := |
| 44 | GeometricallyConnected.geometrically_connectedSpace (f := f) y fst snd h |
| 45 | exact smooth_connected_integral snd |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Integrality.GeometricIntegrality |