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.FlatRank |
| 2 | |
| 3 | /-! # Flat Affine Section Rank -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAffineSectionRank |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The rank of a finite flat scheme map agrees with the rank of its algebra of sections on every affine open. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 11 | universe u |
| 12 | |
| 13 | theorem affineSection_fromSpec_isPullback {X Y : Scheme.{u}} (f : Y ⟶ X) |
| 14 | {U : X.Opens} (hU : IsAffineOpen U) (hY : IsAffineOpen (f ⁻¹ᵁ U)) : |
| 15 | IsPullback hY.fromSpec (Spec.map (f.app U)) f hU.fromSpec := by |
| 16 | have hw : hY.isoSpec.inv ≫ (f ∣_ U) = Spec.map (f.app U) ≫ hU.isoSpec.inv := by |
| 17 | apply (cancel_mono U.ι).mp |
| 18 | have he := hU.SpecMap_appLE_fromSpec f hY (le_refl (f ⁻¹ᵁ U)) |
| 19 | rw [Scheme.Hom.appLE_eq_app] at he |
| 20 | simpa only [Category.assoc, morphismRestrict_ι, IsAffineOpen.fromSpec] using he.symm |
| 21 | have hi : IsPullback hY.isoSpec.inv (Spec.map (f.app U)) (f ∣_ U) hU.isoSpec.inv := |
| 22 | IsPullback.of_horiz_isIso ⟨hw⟩ |
| 23 | exact hi.paste_horiz (isPullback_morphismRestrict f U).flip |
| 24 | |
| 25 | theorem finiteFlat_affineSection_rank {X Y : Scheme.{u}} (f : Y ⟶ X) |
| 26 | [IsFinite f] [Flat f] {U : X.Opens} (hU : IsAffineOpen U) |
| 27 | (p : PrimeSpectrum Γ(X, U)) : (f.app U).hom.finrank p = f.finrank (hU.fromSpec p) := by |
| 28 | have hY : IsAffineOpen (f ⁻¹ᵁ U) := hU.preimage f |
| 29 | have hf : (f.app U).hom.Flat := by |
| 30 | simpa only [Scheme.Hom.appLE_eq_app] using f.flat_appLE hU hY (le_refl (f ⁻¹ᵁ U)) |
| 31 | rw [← Scheme.Hom.finrank_SpecMap_eq_finrank (f.finite_app U hU) hf] |
| 32 | exact Scheme.Hom.finrank_of_isPullback _ _ _ _ (affineSection_fromSpec_isPullback f hU hY) p |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAffineSectionRank |