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.ResidueField |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.SurjectiveOnStalks |
| 3 | |
| 4 | /-! # Residue Field Point Lift -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ResidueFieldPointLift.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A map surjective on stalks identifies the residue fields and lifts the target residue-field point. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem residueFieldMap_isIso_of_surjectiveOnStalks |
| 17 | {X Y : Scheme.{u}} (f : X ⟶ Y) [SurjectiveOnStalks f] (x : X) : IsIso (f.residueFieldMap x) := by |
| 18 | apply (ConcreteCategory.isIso_iff_bijective _).mpr |
| 19 | refine ⟨(f.residueFieldMap x).hom.injective, ?_⟩ |
| 20 | intro y |
| 21 | obtain ⟨a, ha⟩ := IsLocalRing.residue_surjective (R := X.presheaf.stalk x) y |
| 22 | obtain ⟨b, hb⟩ := f.stalkMap_surjective x a |
| 23 | refine ⟨Y.residue (f x) b, ?_⟩ |
| 24 | have h := ConcreteCategory.congr_hom (Scheme.residue_residueFieldMap f x) b |
| 25 | exact h.trans ((congrArg (X.residue x) hb).trans ha) |
| 26 | |
| 27 | def residueFieldPointLift |
| 28 | {X Y : Scheme.{u}} (f : X ⟶ Y) [SurjectiveOnStalks f] (x : X) : |
| 29 | Spec (Y.residueField (f x)) ⟶ X := |
| 30 | have := residueFieldMap_isIso_of_surjectiveOnStalks f x |
| 31 | inv (Spec.map (f.residueFieldMap x)) ≫ X.fromSpecResidueField x |
| 32 | |
| 33 | theorem residueFieldPointLift_comp |
| 34 | {X Y : Scheme.{u}} (f : X ⟶ Y) [SurjectiveOnStalks f] (x : X) : |
| 35 | residueFieldPointLift f x ≫ f = Y.fromSpecResidueField (f x) := by |
| 36 | have := residueFieldMap_isIso_of_surjectiveOnStalks f x |
| 37 | change (inv (Spec.map (f.residueFieldMap x)) ≫ X.fromSpecResidueField x) ≫ f = _ |
| 38 | rw [Category.assoc, ← f.SpecMap_residueFieldMap_fromSpecResidueField, |
| 39 | ← Category.assoc, IsIso.inv_hom_id, Category.id_comp] |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ResidueFieldPointLift.Construction |