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.FormallyUnramified |
| 2 | import Mathlib.AlgebraicGeometry.OpenImmersion |
| 3 | |
| 4 | /-! # Unramified Field Point Detection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.UnramifiedFieldPointDetection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Morphisms into an unramified relative scheme are determined by their composites with all residue-field points, without any reducedness assumption on the source. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem unramified_hom_eq_of_residueFieldPoints {X T S : Scheme.{u}} |
| 17 | (p : X ⟶ S) [LocallyOfFiniteType p] [FormallyUnramified p] |
| 18 | (f g : T ⟶ X) (hbase : f ≫ p = g ≫ p) |
| 19 | (h : ∀ x : T, T.fromSpecResidueField x ≫ f = T.fromSpecResidueField x ≫ g) : f = g := by |
| 20 | let d := pullback.lift f g hbase |
| 21 | let δ := pullback.diagonal p |
| 22 | have : IsOpenImmersion δ := inferInstance |
| 23 | have hr : Set.range d ⊆ Set.range δ := by |
| 24 | rintro _ ⟨x, rfl⟩ |
| 25 | let s := T.fromSpecResidueField x |
| 26 | have H : s ≫ d = (s ≫ f) ≫ δ := by |
| 27 | apply pullback.hom_ext |
| 28 | · simp only [Category.assoc, d, δ, pullback.lift_fst, pullback.diagonal_fst, Category.comp_id] |
| 29 | · simpa only [Category.assoc, d, δ, pullback.lift_snd, pullback.diagonal_snd, Category.comp_id] using (h x).symm |
| 30 | obtain ⟨z⟩ := (inferInstance : Nonempty (Spec (T.residueField x))) |
| 31 | refine ⟨f x, ?_⟩ |
| 32 | have Hx := congrArg (fun v : Spec (T.residueField x) ⟶ pullback p p => v z) H |
| 33 | change d (T.fromSpecResidueField x z) = δ (f (T.fromSpecResidueField x z)) at Hx |
| 34 | simpa only [Scheme.fromSpecResidueField_apply] using Hx.symm |
| 35 | let a := IsOpenImmersion.lift δ d hr |
| 36 | have ha : a ≫ δ = d := IsOpenImmersion.lift_fac δ d hr |
| 37 | have hf : a = f := by |
| 38 | have H := congrArg (fun v => v ≫ pullback.fst p p) ha |
| 39 | simpa only [Category.assoc, δ, d, pullback.diagonal_fst, Category.comp_id, pullback.lift_fst] using H |
| 40 | have hg : a = g := by |
| 41 | have H := congrArg (fun v => v ≫ pullback.snd p p) ha |
| 42 | simpa only [Category.assoc, δ, d, pullback.diagonal_snd, Category.comp_id, pullback.lift_snd] using H |
| 43 | exact hf.symm.trans hg |
| 44 | |
| 45 | theorem unramified_overHom_eq_of_fieldPoints {S : Scheme.{u}} {T M : Over S} |
| 46 | [LocallyOfFiniteType M.hom] [FormallyUnramified M.hom] (a b : T ⟶ M) |
| 47 | (h : ∀ (K : Type u) [Field K] (s : Spec (.of K) ⟶ T.left), s ≫ a.left = s ≫ b.left) : a = b := by |
| 48 | apply Over.OverMorphism.ext |
| 49 | apply unramified_hom_eq_of_residueFieldPoints M.hom a.left b.left (a.w.trans b.w.symm) |
| 50 | intro x |
| 51 | exact h (T.left.residueField x) (T.left.fromSpecResidueField x) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.UnramifiedFieldPointDetection |