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.AlgebraicGeometry.AbelianScheme.TateComparison.Neighbors |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 5 | |
| 6 | /-! # Geometric Ext -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.GeometricExt |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual morphisms from a reduced scheme to a separated scheme are |
| 13 | determined by their points over algebraically closed fields. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem over_hom_ext_geometric {S : Scheme.{u}} {X Y : Over S} |
| 20 | [IsReduced X.left] [IsSeparated Y.hom] (f g : X ⟶ Y) |
| 21 | (h : ∀ (k : Type u) [Field k] [IsAlgClosed k] |
| 22 | (b : Spec (.of k) ⟶ S) (x : Over.mk b ⟶ X), x ≫ f = x ≫ g) : f = g := by |
| 23 | apply Over.OverMorphism.ext |
| 24 | apply ext_of_fromSpecResidueField_eq f.left g.left Y.hom Set.univ dense_univ |
| 25 | · intro x _ |
| 26 | let k := AlgebraicClosure (X.left.residueField x) |
| 27 | let p : Spec (.of k) ⟶ Spec (X.left.residueField x) := |
| 28 | Spec.map (CommRingCat.ofHom (algebraMap (X.left.residueField x) k)) |
| 29 | have : Flat p := inferInstance |
| 30 | have : Surjective p := ⟨fun y => ⟨default, Subsingleton.elim _ _⟩⟩ |
| 31 | have : Epi p := Flat.epi_of_flat_of_surjective p |
| 32 | let a := p ≫ X.left.fromSpecResidueField x |
| 33 | let b := a ≫ X.hom |
| 34 | let z : Over.mk b ⟶ X := Over.homMk a rfl |
| 35 | have hz := congrArg (fun z => z.left) (h k b z) |
| 36 | apply (cancel_epi p).mp |
| 37 | simpa only [z, a, Over.homMk_left, Over.comp_left, Category.assoc] using hz |
| 38 | · exact f.w.trans g.w.symm |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.GeometricExt |