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.Picard.Homomorphisms.Smooth |
| 2 | |
| 3 | /-! # Finite Presentation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.FinitePresentation.Construction |
| 6 | |
| 7 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | set_option backward.isDefEq.respectTransparency.types false in |
| 12 | /-- A morphism to a scheme locally of finite type over the base is locally |
| 13 | of finite presentation when its composite to the base is. -/ |
| 14 | theorem locallyOfFinitePresentation_of_comp_of_finiteType |
| 15 | {X Y Z : Scheme.{u}} {f : X ⟶ Y} {g : Y ⟶ Z} |
| 16 | (h : LocallyOfFinitePresentation (f ≫ g)) (hg : LocallyOfFiniteType g) : |
| 17 | LocallyOfFinitePresentation f := by |
| 18 | wlog hZ : IsAffine Z generalizing X Y Z |
| 19 | · rw [IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @LocallyOfFinitePresentation) _ |
| 20 | (g.iSup_preimage_eq_top (iSup_affineOpens_eq_top Z))] |
| 21 | intro U |
| 22 | have H := IsZariskiLocalAtTarget.restrict h U.1 |
| 23 | rw [morphismRestrict_comp] at H |
| 24 | exact this H (IsZariskiLocalAtTarget.restrict hg U.1) U.2 |
| 25 | wlog hY : IsAffine Y generalizing X Y |
| 26 | · rw [IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @LocallyOfFinitePresentation) _ |
| 27 | (iSup_affineOpens_eq_top Y)] |
| 28 | intro U |
| 29 | have H := IsZariskiLocalAtSource.comp h (f ⁻¹ᵁ U.1).ι |
| 30 | rw [← morphismRestrict_ι_assoc] at H |
| 31 | exact this H (IsZariskiLocalAtSource.comp hg U.1.ι) U.2 |
| 32 | wlog hX : IsAffine X generalizing X |
| 33 | · rw [IsZariskiLocalAtSource.iff_of_iSup_eq_top (P := @LocallyOfFinitePresentation) _ |
| 34 | (iSup_affineOpens_eq_top X)] |
| 35 | intro U |
| 36 | have H := IsZariskiLocalAtSource.comp h U.1.ι |
| 37 | rw [← Category.assoc] at H |
| 38 | exact this H U.2 |
| 39 | rw [HasRingHomProperty.iff_of_isAffine (P := @LocallyOfFinitePresentation)] at h ⊢ |
| 40 | have hg' := HasRingHomProperty.appTop (P := @LocallyOfFiniteType) g hg |
| 41 | exact RingHom.FinitePresentation.of_comp_finiteType g.appTop.hom h hg' |
| 42 | |
| 43 | set_option backward.isDefEq.respectTransparency.types false in |
| 44 | instance relativeFrobenius_locallyOfFinitePresentation |
| 45 | (p : ℕ) (hp : p.Prime) {S : Scheme.{u}} |
| 46 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [LocallyOfFinitePresentation A.hom] : |
| 47 | LocallyOfFinitePresentation (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 48 | have hcomp : LocallyOfFinitePresentation ((Frobenius.Construction.relativeFrobenius p hp hS A).left ≫ |
| 49 | (Frobenius.Construction.frobeniusTwist p hp hS A).hom) := by |
| 50 | rw [Over.w] |
| 51 | infer_instance |
| 52 | have hft : LocallyOfFiniteType (Frobenius.Construction.frobeniusTwist p hp hS A).hom := |
| 53 | inferInstanceAs (LocallyOfFiniteType (pullback.snd A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS))) |
| 54 | exact locallyOfFinitePresentation_of_comp_of_finiteType hcomp hft |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.FinitePresentation.Construction |