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.Affine.OverFunctoriality |
| 2 | |
| 3 | /-! # Coordinate Functor -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.CoordinateFunctor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The coordinate rings of an affine scheme diagram form a contravariant algebra functor. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | def affineCoordinateFunctor (C : Type u) [CommRing C] |
| 16 | {J : Type v} [Category.{w} J] (F : J ⥤ Over (Spec (.of C))) |
| 17 | [∀ i, IsAffine (F.obj i).left] : Jᵒᵖ ⥤ CommAlgCat C where |
| 18 | obj i := OverChartPoints.affineOverAlgebra C (F.obj i.unop) |
| 19 | map {i j} h := CommAlgCat.ofHom |
| 20 | (X := ↥(OverChartPoints.affineOverAlgebra C (F.obj i.unop))) |
| 21 | (Y := ↥(OverChartPoints.affineOverAlgebra C (F.obj j.unop))) |
| 22 | (OverMorphisms.affineOverMap C (F.map h.unop)) |
| 23 | map_id i := by |
| 24 | apply CommAlgCat.hom_ext |
| 25 | change OverMorphisms.affineOverMap C (F.map (𝟙 i.unop)) = AlgHom.id C (OverChartPoints.affineOverAlgebra C (F.obj i.unop)) |
| 26 | rw [F.map_id, OverFunctoriality.affineOverMap_id] |
| 27 | map_comp f g := by |
| 28 | apply CommAlgCat.hom_ext |
| 29 | change OverMorphisms.affineOverMap C (F.map (g.unop ≫ f.unop)) = |
| 30 | (OverMorphisms.affineOverMap C (F.map g.unop)).comp (OverMorphisms.affineOverMap C (F.map f.unop)) |
| 31 | rw [F.map_comp, OverFunctoriality.affineOverMap_comp] |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.CoordinateFunctor |