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 Mathlib.AlgebraicGeometry.Morphisms.FinitePresentation |
| 2 | |
| 3 | /-! # Presentation Cancellation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.PresentationCancellation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite presentation of a composite descends to the first map when the second map is locally of finite type. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem locallyFinitePresentation_of_comp_of_locallyFiniteType |
| 16 | {X Y Z : Scheme.{u}} {f : X ⟶ Y} {g : Y ⟶ Z} |
| 17 | (hfg : LocallyOfFinitePresentation (f ≫ g)) (hg : LocallyOfFiniteType g) : |
| 18 | LocallyOfFinitePresentation f := by |
| 19 | let : IsZariskiLocalAtTarget (@LocallyOfFinitePresentation.{u}) := |
| 20 | HasRingHomProperty.instIsZariskiLocalAtTarget (P := @LocallyOfFinitePresentation.{u}) |
| 21 | (Q := RingHom.FinitePresentation) |
| 22 | let : IsZariskiLocalAtSource (@LocallyOfFinitePresentation.{u}) := |
| 23 | HasRingHomProperty.instIsZariskiLocalAtSource (P := @LocallyOfFinitePresentation.{u}) |
| 24 | (Q := RingHom.FinitePresentation) |
| 25 | let : IsZariskiLocalAtTarget (@LocallyOfFiniteType.{u}) := |
| 26 | HasRingHomProperty.instIsZariskiLocalAtTarget (P := @LocallyOfFiniteType.{u}) |
| 27 | (Q := RingHom.FiniteType) |
| 28 | wlog hZ : IsAffine Z generalizing X Y Z |
| 29 | · rw [IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @LocallyOfFinitePresentation) _ |
| 30 | (g.iSup_preimage_eq_top (iSup_affineOpens_eq_top Z))] |
| 31 | intro U |
| 32 | have H := IsZariskiLocalAtTarget.restrict hfg U.1 |
| 33 | rw [morphismRestrict_comp] at H |
| 34 | exact this H (IsZariskiLocalAtTarget.restrict hg U.1) inferInstance |
| 35 | wlog hY : IsAffine Y generalizing X Y |
| 36 | · rw [IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @LocallyOfFinitePresentation) _ |
| 37 | (iSup_affineOpens_eq_top Y)] |
| 38 | intro U |
| 39 | have H := HasRingHomProperty.comp_of_isOpenImmersion |
| 40 | (@LocallyOfFinitePresentation) (f ⁻¹ᵁ U.1).ι (f ≫ g) hfg |
| 41 | rw [← morphismRestrict_ι_assoc] at H |
| 42 | exact this H (HasRingHomProperty.comp_of_isOpenImmersion |
| 43 | (@LocallyOfFiniteType) U.1.ι g hg) inferInstance |
| 44 | wlog hX : IsAffine X generalizing X |
| 45 | · rw [IsZariskiLocalAtSource.iff_of_iSup_eq_top (P := @LocallyOfFinitePresentation) _ |
| 46 | (iSup_affineOpens_eq_top X)] |
| 47 | intro U |
| 48 | have H := HasRingHomProperty.comp_of_isOpenImmersion |
| 49 | (@LocallyOfFinitePresentation) U.1.ι (f ≫ g) hfg |
| 50 | rw [← Category.assoc] at H |
| 51 | exact this H inferInstance |
| 52 | rw [HasRingHomProperty.iff_of_isAffine (P := @LocallyOfFinitePresentation)] at hfg ⊢ |
| 53 | rw [HasRingHomProperty.iff_of_isAffine (P := @LocallyOfFiniteType)] at hg |
| 54 | have H : (f.appTop.hom.comp g.appTop.hom).FinitePresentation := by |
| 55 | simpa only [Scheme.Hom.comp_appTop, CommRingCat.hom_comp] using hfg |
| 56 | exact H.of_comp_finiteType g.appTop.hom hg |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.PresentationCancellation |