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.TensorProjectionNaturality |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Pullback.MapRealizationIso |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 4 | import Mathlib.CategoryTheory.Comma.Over.Pullback |
| 5 | |
| 6 | /-! # Pullback Iso -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PullbackIso |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Bijectivity of the coordinate tensor map implies an isomorphism of actual base-changed affine schemes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem isIso_affine_pullback_of_tensor_bijective |
| 19 | {C R : Type u} [CommRing C] [CommRing R] [Algebra C R] |
| 20 | {X Y : Over (Spec (.of C))} [IsAffine X.left] [IsAffine Y.left] (f : X ⟶ Y) |
| 21 | (hf : Function.Bijective (Algebra.TensorProduct.map (AlgHom.id R R) (OverMorphisms.affineOverMap C f))) : |
| 22 | IsIso ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap C R)))).map f) := by |
| 23 | let c := Spec.map (CommRingCat.ofHom (algebraMap C R)) |
| 24 | let f' := Spec.map (CommRingCat.ofHom |
| 25 | (Algebra.TensorProduct.map (AlgHom.id R R) (OverMorphisms.affineOverMap C f)).toRingHom) |
| 26 | have : IsIso f' := isIso_SpecMap_iff.mpr hf |
| 27 | have hk := HilbertConstruction.Pullback.MapRealizationIso.isIso_pullback_map_of_isIso_realization X.hom Y.hom c f.left f.w |
| 28 | (TensorProjection.affineTensorProjection C R X) (TensorProjection.affineTensorProjection C R Y) _ _ |
| 29 | (TensorProjection.affineTensorProjection_isPullback C R X) (TensorProjection.affineTensorProjection_isPullback C R Y) |
| 30 | f' (TensorProjectionNaturality.affineTensorProjection_natural R f) |
| 31 | (Tensor.ComparisonIso.algebraSpecMap_over (Algebra.TensorProduct.map (AlgHom.id R R) (OverMorphisms.affineOverMap C f))) |
| 32 | have he : ((Over.pullback c).map f).left = |
| 33 | pullback.map X.hom c Y.hom c f.left (𝟙 _) (𝟙 _) |
| 34 | ((Category.comp_id X.hom).trans f.w.symm) (by simp) := by |
| 35 | apply pullback.hom_ext <;> simp [Over.pullback_map_left, pullback.map] |
| 36 | have hleft : IsIso ((Over.pullback c).map f).left := (congrArg IsIso he).mpr hk |
| 37 | have : IsIso ((Over.forget (Spec (.of R))).map ((Over.pullback c).map f)) := hleft |
| 38 | exact isIso_of_reflects_iso ((Over.pullback c).map f) (Over.forget _) |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PullbackIso |