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.ArithmeticGeometry.OrdinaryLocus.Openness.OpenBaseChange |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 3 | |
| 4 | /-! # Affine Chart Pullback -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineChartPullback.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite morphisms on their canonical affine source and target charts. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | theorem isPullback_affine_preimage |
| 15 | {X Y : Scheme} (f : X ⟶ Y) [IsAffineHom f] |
| 16 | (U : Y.Opens) (hU : IsAffineOpen U) : |
| 17 | IsPullback (hU.preimage f).fromSpec (Spec.map (f.app U)) f hU.fromSpec := by |
| 18 | have h : Spec.map (f.app U) ≫ hU.fromSpec = (hU.preimage f).fromSpec ≫ f := by |
| 19 | simpa only [Scheme.Hom.app_eq_appLE] using |
| 20 | IsAffineOpen.SpecMap_appLE_fromSpec f hU (hU.preimage f) le_rfl |
| 21 | apply (IsOpenImmersion.isPullback (Spec.map (f.app U)) |
| 22 | (hU.preimage f).fromSpec hU.fromSpec f h.symm ?_).flip |
| 23 | simp only [IsAffineOpen.opensRange_fromSpec] |
| 24 | |
| 25 | def affinePreimageIso |
| 26 | {X Y : Scheme} (f : X ⟶ Y) [IsAffineHom f] |
| 27 | (U : Y.Opens) (hU : IsAffineOpen U) : |
| 28 | Over.mk (Spec.map (f.app U)) ≅ (Over.pullback hU.fromSpec).obj (Over.mk f) := by |
| 29 | let h := isPullback_affine_preimage f U hU |
| 30 | let h' := IsPullback.of_hasPullback f hU.fromSpec |
| 31 | exact Over.isoMk (h.isoIsPullback _ _ h') (h.isoIsPullback_hom_snd _ _ h') |
| 32 | |
| 33 | theorem geometricPointCard_affine_preimage |
| 34 | {X Y : Scheme} (f : X ⟶ Y) [IsAffineHom f] |
| 35 | (U : Y.Opens) (hU : IsAffineOpen U) (t : Spec Γ(Y, U)) : |
| 36 | Nat.card (DefinitionsTorsion.geometricPoint (Spec Γ(Y, U)) t ⟶ |
| 37 | Over.mk (Spec.map (f.app U))) = |
| 38 | Nat.card (DefinitionsTorsion.geometricPoint Y (hU.fromSpec t) ⟶ Over.mk f) := by |
| 39 | exact (Nat.card_congr (Iso.homCongr (Iso.refl _) |
| 40 | (affinePreimageIso f U hU))).trans |
| 41 | (OpenBaseChange.Construction.geometricPointCard_openBaseChange hU.fromSpec (Over.mk f) t) |
| 42 | |
| 43 | theorem finrank_affine_preimage |
| 44 | {X Y : Scheme} (f : X ⟶ Y) [IsFinite f] [Flat f] |
| 45 | (U : Y.Opens) (hU : IsAffineOpen U) (t : Spec Γ(Y, U)) : |
| 46 | (Spec.map (f.app U)).finrank t = f.finrank (hU.fromSpec t) := |
| 47 | Scheme.Hom.finrank_of_isPullback _ _ _ _ (isPullback_affine_preimage f U hU) t |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineChartPullback.Construction |