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.AbelianModuli.HilbertConstruction.Open.ParameterPoints |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.CoordinateFunctor |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.AffineSchemeModels |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 5 | |
| 6 | /-! # Open Diagram -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.OpenDiagram |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual affine open subfamilies of a family over an affine base |
| 13 | form a diagram. Their coordinate maps are etale, and their coordinate |
| 14 | algebras are smooth whenever the original family is smooth. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | variable {S : Scheme} (X : Over S) |
| 19 | |
| 20 | def familyOpenMap {V W : X.left.Opens} (h : V ≤ W) : |
| 21 | HilbertConstruction.Open.ParameterPoints.openParameterScheme X V ⟶ HilbertConstruction.Open.ParameterPoints.openParameterScheme X W := |
| 22 | Over.homMk (X.left.homOfLE h) (by |
| 23 | change X.left.homOfLE h ≫ (W.ι ≫ X.hom) = V.ι ≫ X.hom |
| 24 | rw [← Category.assoc, Scheme.homOfLE_ι]) |
| 25 | |
| 26 | theorem familyOpenMap_inclusion {V W : X.left.Opens} (h : V ≤ W) : |
| 27 | familyOpenMap X h ≫ HilbertConstruction.Open.ParameterPoints.openParameterInclusion X W = HilbertConstruction.Open.ParameterPoints.openParameterInclusion X V := by |
| 28 | apply Over.OverMorphism.ext |
| 29 | exact Scheme.homOfLE_ι X.left h |
| 30 | |
| 31 | instance familyOpenMap_open {V W : X.left.Opens} (h : V ≤ W) : |
| 32 | IsOpenImmersion (familyOpenMap X h).left := |
| 33 | inferInstanceAs (IsOpenImmersion (X.left.homOfLE h)) |
| 34 | |
| 35 | theorem familyOpenMap_id (V : X.left.Opens) : |
| 36 | familyOpenMap X (le_refl V) = 𝟙 (HilbertConstruction.Open.ParameterPoints.openParameterScheme X V) := by |
| 37 | have : Mono (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X V) := |
| 38 | Over.mono_of_mono_left (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X V) |
| 39 | apply (cancel_mono (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X V)).mp |
| 40 | rw [familyOpenMap_inclusion, Category.id_comp] |
| 41 | |
| 42 | theorem familyOpenMap_comp {U V W : X.left.Opens} (h : U ≤ V) (j : V ≤ W) : |
| 43 | familyOpenMap X h ≫ familyOpenMap X j = familyOpenMap X (h.trans j) := by |
| 44 | have : Mono (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X W) := |
| 45 | Over.mono_of_mono_left (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X W) |
| 46 | apply (cancel_mono (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X W)).mp |
| 47 | rw [Category.assoc, familyOpenMap_inclusion, familyOpenMap_inclusion, familyOpenMap_inclusion] |
| 48 | |
| 49 | def familyAffineOpenDiagram : X.left.affineOpens ⥤ Over S where |
| 50 | obj V := HilbertConstruction.Open.ParameterPoints.openParameterScheme X V.1 |
| 51 | map f := familyOpenMap X f.le |
| 52 | map_id V := familyOpenMap_id X V.1 |
| 53 | map_comp f g := (familyOpenMap_comp X f.le g.le).symm |
| 54 | |
| 55 | instance familyAffineOpenDiagram_affine (V : X.left.affineOpens) : |
| 56 | IsAffine ((familyAffineOpenDiagram X).obj V).left := V.2 |
| 57 | |
| 58 | instance familyAffineOpenDiagram_smooth [Smooth X.hom] (V : X.left.affineOpens) : |
| 59 | Smooth ((familyAffineOpenDiagram X).obj V).hom := |
| 60 | inferInstanceAs (Smooth (V.1.ι ≫ X.hom)) |
| 61 | |
| 62 | variable (R : Type) [CommRing R] (Y : Over (Spec (.of R))) |
| 63 | |
| 64 | def familyAffineCoordinateFunctor : Y.left.affineOpensᵒᵖ ⥤ CommAlgCat R := |
| 65 | HilbertConstruction.Affine.CoordinateFunctor.affineCoordinateFunctor R (familyAffineOpenDiagram Y) |
| 66 | |
| 67 | theorem familyAffineCoordinate_smooth [Smooth Y.hom] (V : Y.left.affineOpens) : |
| 68 | Algebra.Smooth R ((familyAffineCoordinateFunctor R Y).obj (Opposite.op V)) := |
| 69 | HilbertConstruction.Smooth.AffineSchemeModels.affineOverAlgebra_smooth R ((familyAffineOpenDiagram Y).obj V) |
| 70 | |
| 71 | def familyAffineCoordinateMap {V W : Y.left.affineOpens} (h : V.1 ≤ W.1) : |
| 72 | HilbertConstruction.Affine.OverChartPoints.affineOverAlgebra R ((familyAffineOpenDiagram Y).obj W) →ₐ[R] |
| 73 | HilbertConstruction.Affine.OverChartPoints.affineOverAlgebra R ((familyAffineOpenDiagram Y).obj V) := |
| 74 | HilbertConstruction.Affine.OverMorphisms.affineOverMap R (X := (familyAffineOpenDiagram Y).obj V) |
| 75 | (Y := (familyAffineOpenDiagram Y).obj W) (familyOpenMap Y h) |
| 76 | |
| 77 | theorem familyAffineCoordinateMap_etale {V W : Y.left.affineOpens} (h : V.1 ≤ W.1) : |
| 78 | (familyAffineCoordinateMap R Y h).toRingHom.Etale := by |
| 79 | have : IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 80 | (familyAffineCoordinateMap R Y h).toRingHom)) := |
| 81 | @HilbertConstruction.Affine.OverMorphisms.affineOverMap_isOpenImmersion R _ ((familyAffineOpenDiagram Y).obj V) |
| 82 | ((familyAffineOpenDiagram Y).obj W) _ _ (familyOpenMap Y h) (familyOpenMap_open Y h) |
| 83 | exact (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 84 | (inferInstanceAs (Etale (Spec.map (CommRingCat.ofHom |
| 85 | (familyAffineCoordinateMap R Y h).toRingHom)))) |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.OpenDiagram |