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.Gluing |
| 2 | import Mathlib.CategoryTheory.Limits.Over |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Basic |
| 4 | |
| 5 | /-! # Scheme Gluing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.SchemeGluing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Open gluing data in schemes over a fixed base have a glued scheme over that base. Its underlying scheme is the ordinary scheme gluing, and its chart maps are an open cover. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | |
| 15 | variable {S : Scheme.{u}} (D : CategoryTheory.GlueData.{u} (Over S)) |
| 16 | variable (hD : ∀ i j, IsOpenImmersion (D.f i j).left) |
| 17 | |
| 18 | def relativeSchemeGlueData : Scheme.GlueData where |
| 19 | toGlueData := D.mapGlueData (Over.forget S) |
| 20 | f_open := hD |
| 21 | |
| 22 | include hD in |
| 23 | theorem relativeGlueData_forget_hasColimit : HasColimit (D.diagram.multispan ⋙ Over.forget S) := by |
| 24 | have hcol : HasColimit (D.mapGlueData (Over.forget S)).diagram.multispan := |
| 25 | inferInstanceAs (HasColimit (relativeSchemeGlueData D hD).toGlueData.diagram.multispan) |
| 26 | exact @hasColimit_of_iso _ _ _ _ _ _ hcol (D.diagramIso (Over.forget S)) |
| 27 | |
| 28 | include hD in |
| 29 | theorem relativeGlueData_hasColimit : HasMulticoequalizer D.diagram := by |
| 30 | have : HasColimit (D.diagram.multispan ⋙ Over.forget S) := relativeGlueData_forget_hasColimit D hD |
| 31 | exact Over.hasColimit_of_hasColimit_comp_forget D.diagram.multispan |
| 32 | |
| 33 | def relativeGlued : Over S := by |
| 34 | have : HasMulticoequalizer D.diagram := relativeGlueData_hasColimit D hD |
| 35 | exact D.glued |
| 36 | |
| 37 | def relativeGlueComparison : (relativeGlued D hD).left ≅ (relativeSchemeGlueData D hD).glued := |
| 38 | by |
| 39 | have : HasMulticoequalizer D.diagram := relativeGlueData_hasColimit D hD |
| 40 | have : HasColimit (D.diagram.multispan ⋙ Over.forget S) := relativeGlueData_forget_hasColimit D hD |
| 41 | exact D.gluedIso (Over.forget S) |
| 42 | |
| 43 | def relativeGlueInclusion (i : D.J) : D.U i ⟶ relativeGlued D hD := by |
| 44 | have : HasMulticoequalizer D.diagram := relativeGlueData_hasColimit D hD |
| 45 | exact D.ι i |
| 46 | |
| 47 | theorem relativeGlueInclusion_comparison (i : D.J) : |
| 48 | (relativeGlueInclusion D hD i).left ≫ (relativeGlueComparison D hD).hom = |
| 49 | (relativeSchemeGlueData D hD).ι i := |
| 50 | by |
| 51 | have : HasMulticoequalizer D.diagram := relativeGlueData_hasColimit D hD |
| 52 | have : HasColimit (D.diagram.multispan ⋙ Over.forget S) := relativeGlueData_forget_hasColimit D hD |
| 53 | exact D.ι_gluedIso_hom (Over.forget S) i |
| 54 | |
| 55 | theorem relativeGlueInclusion_open (i : D.J) : |
| 56 | IsOpenImmersion (relativeGlueInclusion D hD i).left := by |
| 57 | have : HasMulticoequalizer D.diagram := relativeGlueData_hasColimit D hD |
| 58 | have : HasColimit (D.diagram.multispan ⋙ Over.forget S) := relativeGlueData_forget_hasColimit D hD |
| 59 | have he : (relativeGlueInclusion D hD i).left = |
| 60 | (relativeSchemeGlueData D hD).ι i ≫ (relativeGlueComparison D hD).inv := |
| 61 | (D.ι_gluedIso_inv (Over.forget S) i).symm |
| 62 | rw [he] |
| 63 | exact MorphismProperty.comp_mem IsOpenImmersion _ _ |
| 64 | (Scheme.GlueData.ι_isOpenImmersion (relativeSchemeGlueData D hD) i) inferInstance |
| 65 | |
| 66 | theorem relativeGlueInclusion_covers (x : (relativeGlued D hD).left) : |
| 67 | ∃ i y, (relativeGlueInclusion D hD i).left y = x := by |
| 68 | obtain ⟨i, y, hy⟩ := (relativeSchemeGlueData D hD).ι_jointly_surjective |
| 69 | ((relativeGlueComparison D hD).hom x) |
| 70 | refine ⟨i, y, ?_⟩ |
| 71 | apply (TopCat.homeoOfIso ((Scheme.forgetToTop).mapIso (relativeGlueComparison D hD))).injective |
| 72 | exact (congrArg (fun k : (D.U i).left ⟶ (relativeSchemeGlueData D hD).glued => k y) |
| 73 | (relativeGlueInclusion_comparison D hD i)).trans hy |
| 74 | |
| 75 | def relativeGlueOpenCover : Scheme.OpenCover (relativeGlued D hD).left := by |
| 76 | have (i : D.J) : IsOpenImmersion (relativeGlueInclusion D hD i).left := relativeGlueInclusion_open D hD i |
| 77 | exact Scheme.Cover.mkOfCovers D.J (fun i => (D.U i).left) |
| 78 | (fun i => (relativeGlueInclusion D hD i).left) (relativeGlueInclusion_covers D hD) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.SchemeGluing |