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 | /-! # Affine Chart Pullback -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.AffineChartPullback.Dimension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite morphisms on their canonical affine source and target charts. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | theorem isPullback_affine_preimage |
| 14 | {X Y : Scheme} (f : X ⟶ Y) [IsAffineHom f] |
| 15 | (U : Y.Opens) (hU : IsAffineOpen U) : |
| 16 | IsPullback (hU.preimage f).fromSpec (Spec.map (f.app U)) f hU.fromSpec := by |
| 17 | have h : Spec.map (f.app U) ≫ hU.fromSpec = (hU.preimage f).fromSpec ≫ f := by |
| 18 | simpa only [Scheme.Hom.app_eq_appLE] using |
| 19 | IsAffineOpen.SpecMap_appLE_fromSpec f hU (hU.preimage f) le_rfl |
| 20 | apply (IsOpenImmersion.isPullback (Spec.map (f.app U)) |
| 21 | (hU.preimage f).fromSpec hU.fromSpec f h.symm ?_).flip |
| 22 | simp only [IsAffineOpen.opensRange_fromSpec] |
| 23 | |
| 24 | def affinePreimageIso |
| 25 | {X Y : Scheme} (f : X ⟶ Y) [IsAffineHom f] |
| 26 | (U : Y.Opens) (hU : IsAffineOpen U) : |
| 27 | Over.mk (Spec.map (f.app U)) ≅ (Over.pullback hU.fromSpec).obj (Over.mk f) := by |
| 28 | let h := isPullback_affine_preimage f U hU |
| 29 | let h' := IsPullback.of_hasPullback f hU.fromSpec |
| 30 | exact Over.isoMk (h.isoIsPullback _ _ h') (h.isoIsPullback_hom_snd _ _ h') |
| 31 | |
| 32 | theorem finrank_affine_preimage |
| 33 | {X Y : Scheme} (f : X ⟶ Y) [IsFinite f] [Flat f] |
| 34 | (U : Y.Opens) (hU : IsAffineOpen U) (t : Spec Γ(Y, U)) : |
| 35 | (Spec.map (f.app U)).finrank t = f.finrank (hU.fromSpec t) := |
| 36 | Scheme.Hom.finrank_of_isPullback _ _ _ _ (isPullback_affine_preimage f U hU) t |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.AffineChartPullback.Dimension |