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.ClosedImmersion |
| 2 | import Mathlib.AlgebraicGeometry.ResidueField |
| 3 | |
| 4 | /-! # Field Point Lift -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ClosedImmersion.FieldPointLift |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Field-valued points lift through a closed immersion exactly when their underlying point lies in its image. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | theorem closedImmersion_residueFieldMap_bijective |
| 15 | {X Y : Scheme.{0}} (f : X ⟶ Y) [IsClosedImmersion f] (x : X) : |
| 16 | Function.Bijective (f.residueFieldMap x) := by |
| 17 | refine ⟨(f.residueFieldMap x).hom.injective, ?_⟩ |
| 18 | intro b |
| 19 | obtain ⟨s, rfl⟩ := X.residue_surjective x b |
| 20 | obtain ⟨a, rfl⟩ := f.stalkMap_surjective x s |
| 21 | exact ⟨Y.residue (f x) a, ConcreteCategory.congr_hom (Scheme.residue_residueFieldMap f x) a⟩ |
| 22 | |
| 23 | theorem closedImmersion_fieldPoint_lift |
| 24 | {X Y : Scheme.{0}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 25 | (K : Type) [Field K] (g : Spec (CommRingCat.of K) ⟶ Y) |
| 26 | (x : X) (hx : f x = g (IsLocalRing.closedPoint K)) : |
| 27 | ∃ l : Spec (CommRingCat.of K) ⟶ X, l ≫ f = g := by |
| 28 | have : IsIso (f.residueFieldMap x) := |
| 29 | (ConcreteCategory.isIso_iff_bijective _).mpr (closedImmersion_residueFieldMap_bijective f x) |
| 30 | let c := (Y.residueFieldCongr hx).hom ≫ |
| 31 | Y.descResidueField (Scheme.stalkClosedPointTo g) |
| 32 | let l := Spec.map (inv (f.residueFieldMap x) ≫ c) ≫ X.fromSpecResidueField x |
| 33 | refine ⟨l, ?_⟩ |
| 34 | change (Spec.map (inv (f.residueFieldMap x) ≫ c) ≫ X.fromSpecResidueField x) ≫ f = g |
| 35 | rw [Category.assoc, ← f.SpecMap_residueFieldMap_fromSpecResidueField x, |
| 36 | ← Spec.map_comp_assoc, IsIso.hom_inv_id_assoc] |
| 37 | change Spec.map ((Y.residueFieldCongr hx).hom ≫ |
| 38 | Y.descResidueField (Scheme.stalkClosedPointTo g)) ≫ Y.fromSpecResidueField (f x) = g |
| 39 | rw [Spec.map_comp, Category.assoc, Scheme.residueFieldCongr_fromSpecResidueField] |
| 40 | exact Scheme.descResidueField_stalkClosedPointTo_fromSpecResidueField K Y g |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.Comparison.Betti.ClosedImmersion.FieldPointLift |