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.Smooth.AffineModelsAbove |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.OverChartPoints |
| 3 | |
| 4 | /-! # Affine Scheme Models -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.AffineSchemeModels |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Smooth affine schemes over an arbitrary ring descend with an actual Cartesian recovery map. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] (X : Over (Spec (.of R))) [IsAffine X.left] |
| 17 | |
| 18 | theorem affineOverAlgebra_smooth [Smooth X.hom] : Algebra.Smooth R (Affine.OverChartPoints.affineOverAlgebra R X) := by |
| 19 | let e := Affine.OverChartPoints.affineOverIso R X |
| 20 | have : IsIso e.inv.left := (Over.forget _).map_isIso e.inv |
| 21 | have hs : Smooth (e.inv.left ≫ X.hom) := inferInstance |
| 22 | have he : e.inv.left ≫ X.hom = |
| 23 | Spec.map (CommRingCat.ofHom (algebraMap R (Affine.OverChartPoints.affineOverAlgebra R X))) := e.inv.w |
| 24 | have h : Smooth (Spec.map (CommRingCat.ofHom (algebraMap R (Affine.OverChartPoints.affineOverAlgebra R X)))) := |
| 25 | (congrArg Smooth he).mp hs |
| 26 | exact RingHom.smooth_algebraMap.mp (HasRingHomProperty.Spec_iff.mp h) |
| 27 | |
| 28 | def affineSchemeModelMap (M : AffineModels.SmoothAffineModel R (Affine.OverChartPoints.affineOverAlgebra R X)) : |
| 29 | X.left ⟶ Spec (.of M.algebra) := (Affine.OverChartPoints.affineOverIso R X).hom.left ≫ M.map |
| 30 | |
| 31 | theorem affineSchemeModel_isPullback (M : AffineModels.SmoothAffineModel R (Affine.OverChartPoints.affineOverAlgebra R X)) : |
| 32 | IsPullback (affineSchemeModelMap R X M) X.hom M.structureMap |
| 33 | (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)) := by |
| 34 | let e := Affine.OverChartPoints.affineOverIso R X |
| 35 | have : IsIso e.hom.left := (Over.forget _).map_isIso e.hom |
| 36 | have H : IsPullback e.hom.left X.hom |
| 37 | (Spec.map (CommRingCat.ofHom (algebraMap R (Affine.OverChartPoints.affineOverAlgebra R X)))) |
| 38 | (𝟙 (Spec (.of R))) := |
| 39 | IsPullback.of_horiz_isIso ⟨e.hom.w.trans (Category.comp_id _).symm⟩ |
| 40 | have h := H.paste_horiz M.isPullback |
| 41 | exact (congrArg (fun a => IsPullback (affineSchemeModelMap R X M) X.hom M.structureMap a) |
| 42 | (Category.id_comp _)).mp h |
| 43 | |
| 44 | theorem exists_smoothAffineSchemeModel_above [Smooth X.hom] |
| 45 | (C : Subalgebra ℤ R) [Algebra.FiniteType ℤ C] : |
| 46 | ∃ M : AffineModels.SmoothAffineModel R (Affine.OverChartPoints.affineOverAlgebra R X), C ≤ M.coefficients ∧ |
| 47 | ∃ q : X.left ⟶ Spec (.of M.algebra), IsPullback q X.hom M.structureMap |
| 48 | (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)) := by |
| 49 | have := affineOverAlgebra_smooth R X |
| 50 | obtain ⟨M, hM⟩ := AffineModelsAbove.exists_smoothAffineModel_above R (Affine.OverChartPoints.affineOverAlgebra R X) C |
| 51 | exact ⟨M, hM, affineSchemeModelMap R X M, affineSchemeModel_isPullback R X M⟩ |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.AffineSchemeModels |