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.IsogenyQuotient.Geometric.Points |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatMono |
| 3 | |
| 4 | /-! # Flat Cartier Embedding Iso -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.FlatCartierEmbeddingIso.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite flat subfunctor of a finite etale scheme is etale. |
| 11 | Surjectivity on geometric points then makes its embedding an isomorphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem surjective_of_geometric_sections |
| 18 | {S : Scheme.{u}} {X Y : Over S} (f : X ⟶ Y) |
| 19 | (h : ∀ (k : Type u) [Field k] [IsAlgClosed k] (s : Spec (.of k) ⟶ S), |
| 20 | Function.Surjective (fun x : Over.mk s ⟶ X => x ≫ f)) : Surjective f.left := by |
| 21 | constructor |
| 22 | intro y |
| 23 | let k := AlgebraicClosure (Y.left.residueField y) |
| 24 | let a := Spec.map (CommRingCat.ofHom (algebraMap (Y.left.residueField y) k)) ≫ |
| 25 | Y.left.fromSpecResidueField y |
| 26 | let s := a ≫ Y.hom |
| 27 | let z : Over.mk s ⟶ Y := Over.homMk a rfl |
| 28 | obtain ⟨x, hx⟩ := h k s z |
| 29 | let t : Spec (.of k) := default |
| 30 | refine ⟨x.left t, ?_⟩ |
| 31 | have he := congrArg (fun m : Over.mk s ⟶ Y => m.left t) hx |
| 32 | exact he.trans (Y.left.fromSpecResidueField_apply y _) |
| 33 | |
| 34 | theorem finiteFlatEmbedding_etale |
| 35 | {S : Scheme.{u}} {X Y : Over S} |
| 36 | [IsFinite X.hom] [Flat X.hom] [LocallyOfFinitePresentation X.hom] [Etale Y.hom] [IsSeparated Y.hom] |
| 37 | (f : X ⟶ Y) [Mono f] : Etale f.left := by |
| 38 | have : IsFinite (f.left ≫ Y.hom) := f.w.symm ▸ inferInstanceAs (IsFinite X.hom) |
| 39 | have : IsFinite f.left := IsFinite.of_comp f.left Y.hom |
| 40 | have : Mono f.left := inferInstanceAs (Mono ((Over.forget S).map f)) |
| 41 | have : IsClosedImmersion f.left := |
| 42 | (IsClosedImmersion.iff_isFinite_and_mono f.left).mpr ⟨inferInstance, inferInstance⟩ |
| 43 | have : FormallyUnramified f.left := inferInstance |
| 44 | have : FormallyUnramified X.hom := by |
| 45 | rw [← f.w] |
| 46 | exact MorphismProperty.comp_mem @FormallyUnramified f.left Y.hom inferInstance inferInstance |
| 47 | have : Etale X.hom := Etale.of_formallyUnramified_of_flat X.hom |
| 48 | have : Etale (f.left ≫ Y.hom) := f.w.symm ▸ inferInstanceAs (Etale X.hom) |
| 49 | exact Etale.of_comp f.left Y.hom |
| 50 | |
| 51 | theorem finiteFlatEmbedding_isIso_of_geometric_surjective |
| 52 | {S : Scheme.{u}} {X Y : Over S} |
| 53 | [IsFinite X.hom] [Flat X.hom] [LocallyOfFinitePresentation X.hom] [Etale Y.hom] [IsSeparated Y.hom] |
| 54 | (f : X ⟶ Y) [Mono f] |
| 55 | (h : ∀ (k : Type u) [Field k] [IsAlgClosed k] (s : Spec (.of k) ⟶ S), |
| 56 | Function.Surjective (fun x : Over.mk s ⟶ X => x ≫ f)) : IsIso f := by |
| 57 | have : Etale f.left := finiteFlatEmbedding_etale f |
| 58 | have : Surjective f.left := surjective_of_geometric_sections f h |
| 59 | have : Mono f.left := inferInstanceAs (Mono ((Over.forget S).map f)) |
| 60 | have : IsOpenImmersion f.left := IsOpenImmersion.of_flat_of_mono f.left |
| 61 | have : IsIso f.left := (isIso_iff_isOpenImmersion_and_surjective f.left).mpr ⟨inferInstance, inferInstance⟩ |
| 62 | have : IsIso ((Over.forget S).map f) := inferInstanceAs (IsIso f.left) |
| 63 | exact isIso_of_reflects_iso f (Over.forget S) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.FlatCartierEmbeddingIso.Construction |