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 Mathlib.AlgebraicGeometry.Gluing |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Diagram Gluing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.DiagramGluing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite locally directed diagram of smooth affine charts glues to a smooth noetherian scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {C : Type u} [CommRing C] {J : Type v} [Category.{w} J] [Quiver.IsThin J] [Small.{u} J] |
| 18 | variable (F : J ⥤ Over (Spec (.of C))) |
| 19 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion ((F ⋙ Over.forget (Spec (.of C))).map h)] |
| 20 | variable [((F ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 21 | |
| 22 | def smoothDiagramGluedMap : colimit (F ⋙ Over.forget (Spec (.of C))) ⟶ Spec (.of C) := |
| 23 | colimit.desc (F ⋙ Over.forget (Spec (.of C))) { |
| 24 | pt := Spec (.of C) |
| 25 | ι := { |
| 26 | app := fun i => (F.obj i).hom |
| 27 | naturality := fun _ _ h => (F.map h).w.trans (Category.comp_id _).symm } } |
| 28 | |
| 29 | theorem smoothDiagramGluedMap_ι (i : J) : |
| 30 | colimit.ι (F ⋙ Over.forget (Spec (.of C))) i ≫ smoothDiagramGluedMap (C := C) F = (F.obj i).hom := |
| 31 | colimit.ι_desc _ _ |
| 32 | |
| 33 | instance smoothDiagramGluedMap_smooth [hs : ∀ i, Smooth (F.obj i).hom] : |
| 34 | Smooth (smoothDiagramGluedMap (C := C) F) := by |
| 35 | have : IsZariskiLocalAtSource (@Smooth.{u}) := |
| 36 | HasRingHomProperty.instIsZariskiLocalAtSource (Q := RingHom.Smooth) |
| 37 | apply (IsZariskiLocalAtSource.iff_of_openCover (P := (@Smooth : MorphismProperty Scheme.{u})) |
| 38 | (Scheme.IsLocallyDirected.openCover (F ⋙ Over.forget (Spec (.of C))))).mpr |
| 39 | change ∀ i : J, Smooth (colimit.ι (F ⋙ Over.forget (Spec (.of C))) i ≫ |
| 40 | smoothDiagramGluedMap (C := C) F) |
| 41 | intro i |
| 42 | rw [smoothDiagramGluedMap_ι (C := C) F i] |
| 43 | exact hs i |
| 44 | |
| 45 | instance smoothDiagramGlued_compact [Finite J] [∀ i, IsAffine (F.obj i).left] : |
| 46 | CompactSpace ↥(colimit (F ⋙ Over.forget (Spec (.of C))) : Scheme.{u}) := by |
| 47 | let U := Scheme.IsLocallyDirected.openCover (F ⋙ Over.forget (Spec (.of C))) |
| 48 | have : Finite U.I₀ := inferInstanceAs (Finite J) |
| 49 | have hc : ∀ i : J, CompactSpace (F.obj i).left := fun i => Scheme.compactSpace_of_isAffine (F.obj i).left |
| 50 | have : ∀ i : U.I₀, CompactSpace (U.X i) := hc |
| 51 | exact U.compactSpace |
| 52 | |
| 53 | theorem smoothDiagramGlued_noetherian [IsNoetherianRing C] [Finite J] |
| 54 | [∀ i, IsAffine (F.obj i).left] [∀ i, Smooth (F.obj i).hom] : |
| 55 | IsNoetherian (colimit (F ⋙ Over.forget (Spec (.of C)))) := by |
| 56 | have : IsLocallyNoetherian (colimit (F ⋙ Over.forget (Spec (.of C)))) := |
| 57 | LocallyOfFiniteType.isLocallyNoetherian (smoothDiagramGluedMap (C := C) F) |
| 58 | exact AlgebraicGeometry.IsNoetherian.mk |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.DiagramGluing |