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.OverChartPoints |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 3 | |
| 4 | /-! # Over Morphisms -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.OverMorphisms |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual morphisms of affine schemes over the base give coordinate-algebra maps with exact recovery. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] |
| 17 | variable {X Y : Over (Spec (.of R))} [IsAffine X.left] [IsAffine Y.left] |
| 18 | |
| 19 | def affineOverMap (f : X ⟶ Y) : OverChartPoints.affineOverAlgebra R Y →ₐ[R] OverChartPoints.affineOverAlgebra R X := |
| 20 | ((algSpec.fullyFaithful (R := CommRingCat.of R)).preimage |
| 21 | ((OverChartPoints.affineOverIso R X).inv ≫ f ≫ (OverChartPoints.affineOverIso R Y).hom)).unop.hom |
| 22 | |
| 23 | theorem affineOverMap_spec (f : X ⟶ Y) : |
| 24 | Spec.map (CommRingCat.ofHom (affineOverMap R f).toRingHom) = |
| 25 | (OverChartPoints.affineOverIso R X).inv.left ≫ f.left ≫ (OverChartPoints.affineOverIso R Y).hom.left := by |
| 26 | have h := (algSpec.fullyFaithful (R := CommRingCat.of R)).map_preimage |
| 27 | ((OverChartPoints.affineOverIso R X).inv ≫ f ≫ (OverChartPoints.affineOverIso R Y).hom) |
| 28 | exact congrArg (fun k => k.left) h |
| 29 | |
| 30 | theorem affineOverMap_isOpenImmersion (f : X ⟶ Y) [IsOpenImmersion f.left] : |
| 31 | IsOpenImmersion (Spec.map (CommRingCat.ofHom (affineOverMap R f).toRingHom)) := by |
| 32 | have : IsIso (OverChartPoints.affineOverIso R X).inv.left := (Over.forget _).map_isIso (OverChartPoints.affineOverIso R X).inv |
| 33 | have : IsIso (OverChartPoints.affineOverIso R Y).hom.left := (Over.forget _).map_isIso (OverChartPoints.affineOverIso R Y).hom |
| 34 | have : IsOpenImmersion (OverChartPoints.affineOverIso R X).inv.left := IsOpenImmersion.of_isIso _ |
| 35 | have : IsOpenImmersion (OverChartPoints.affineOverIso R Y).hom.left := IsOpenImmersion.of_isIso _ |
| 36 | have : IsOpenImmersion (f.left ≫ (OverChartPoints.affineOverIso R Y).hom.left) := IsOpenImmersion.comp _ _ |
| 37 | have hc : IsOpenImmersion ((OverChartPoints.affineOverIso R X).inv.left ≫ f.left ≫ |
| 38 | (OverChartPoints.affineOverIso R Y).hom.left) := IsOpenImmersion.comp _ _ |
| 39 | exact (congrArg (fun q : Spec (.of (OverChartPoints.affineOverAlgebra R X)) ⟶ Spec (.of (OverChartPoints.affineOverAlgebra R Y)) => |
| 40 | IsOpenImmersion q) (affineOverMap_spec R f)).mpr hc |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.OverMorphisms |