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.Connected |
| 4 | import Mathlib.AlgebraicGeometry.GluingOneHypercover |
| 5 | import Mathlib.CategoryTheory.Sites.Over |
| 6 | |
| 7 | /-! # Relative Gluing -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.RelativeGluing.Construction.Schemes |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # CartierDuality: gluing schemes over a fixed base |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | /-- Scheme gluing data in the category over a fixed base, with open |
| 22 | immersions as the overlap maps. -/ |
| 23 | structure RelativeGlueData (S : Scheme.{u}) extends CategoryTheory.GlueData (Over S) where |
| 24 | f_open : ∀ i j, IsOpenImmersion (f i j).left |
| 25 | |
| 26 | attribute [instance] RelativeGlueData.f_open |
| 27 | |
| 28 | namespace RelativeGlueData |
| 29 | |
| 30 | variable {S : Scheme.{u}} (D : RelativeGlueData S) |
| 31 | |
| 32 | instance forget_preservesOverlapPullbacks : |
| 33 | ∀ i j k : D.J, PreservesLimit (cospan (D.f i j) (D.f i k)) (Over.forget S) := |
| 34 | fun _ _ _ => inferInstance |
| 35 | |
| 36 | /-- Forgetting the base gives ordinary scheme gluing data. -/ |
| 37 | def underlying : Scheme.GlueData where |
| 38 | toGlueData := D.toGlueData.mapGlueData (Over.forget S) |
| 39 | f_open := D.f_open |
| 40 | |
| 41 | /-- The underlying relative gluing diagram has its scheme colimit. -/ |
| 42 | instance underlyingDiagram_hasColimit : |
| 43 | HasColimit (D.toGlueData.diagram.multispan ⋙ Over.forget S) := by |
| 44 | let hmap : HasMulticoequalizer (D.toGlueData.mapGlueData (Over.forget S)).diagram := |
| 45 | inferInstanceAs (HasMulticoequalizer D.underlying.toGlueData.diagram) |
| 46 | exact @hasColimit_of_iso _ _ _ _ _ _ hmap (D.toGlueData.diagramIso (Over.forget S)) |
| 47 | |
| 48 | /-- The gluing colimit exists over the base because the forgetful |
| 49 | functor creates colimits and the underlying scheme gluing exists. -/ |
| 50 | instance : HasMulticoequalizer D.toGlueData.diagram := |
| 51 | hasColimit_of_created _ (Over.forget S) |
| 52 | |
| 53 | /-- The glued scheme together with its descended map to the base. -/ |
| 54 | abbrev glued : Over S := D.toGlueData.glued |
| 55 | |
| 56 | /-- The underlying scheme is the ordinary scheme gluing. -/ |
| 57 | def underlyingIso : D.glued.left ≅ D.underlying.glued := |
| 58 | D.toGlueData.gluedIso (Over.forget S) |
| 59 | |
| 60 | /-- Each chart embeds openly into the glued relative scheme. -/ |
| 61 | instance chart_isOpenImmersion (i : D.J) : IsOpenImmersion (D.toGlueData.ι i).left := by |
| 62 | have h := D.toGlueData.ι_gluedIso_inv (Over.forget S) i |
| 63 | change D.underlying.ι i ≫ D.underlyingIso.inv = (D.toGlueData.ι i).left at h |
| 64 | rw [← h] |
| 65 | let hι : IsOpenImmersion (D.underlying.ι i) := |
| 66 | Scheme.GlueData.ι_isOpenImmersion D.underlying i |
| 67 | let : IsIso D.underlyingIso.inv := inferInstance |
| 68 | let hinv : IsOpenImmersion D.underlyingIso.inv := IsOpenImmersion.of_isIso _ |
| 69 | exact @IsOpenImmersion.comp _ _ _ _ _ hι hinv |
| 70 | |
| 71 | /-- The overlaps remain the scheme-theoretic intersections after gluing |
| 72 | in the relative category. -/ |
| 73 | def overlapIsPullback (i j : D.J) : IsLimit (D.toGlueData.vPullbackCone i j) := |
| 74 | D.toGlueData.vPullbackConeIsLimitOfMap (Over.forget S) i j |
| 75 | (D.underlying.vPullbackConeIsLimit i j) |
| 76 | |
| 77 | /-- The relative charts cover the underlying glued scheme. -/ |
| 78 | theorem charts_jointly_surjective (x : D.glued.left) : |
| 79 | ∃ i y, (D.toGlueData.ι i).left y = x := by |
| 80 | obtain ⟨i, y, hy⟩ := D.underlying.ι_jointly_surjective (D.underlyingIso.hom x) |
| 81 | refine ⟨i, y, ?_⟩ |
| 82 | apply D.underlyingIso.hom.isOpenEmbedding.injective |
| 83 | change ((D.toGlueData.ι i).left ≫ D.underlyingIso.hom) y = D.underlyingIso.hom x |
| 84 | exact (congrArg (fun k => k y) |
| 85 | (D.toGlueData.ι_gluedIso_hom (Over.forget S) i)).trans hy |
| 86 | |
| 87 | /-- The glued relative charts form an open cover. -/ |
| 88 | def openCover : Scheme.OpenCover D.glued.left where |
| 89 | I₀ := D.J |
| 90 | X i := (D.U i).left |
| 91 | f i := (D.toGlueData.ι i).left |
| 92 | mem₀ := by |
| 93 | rw [Scheme.presieve₀_mem_precoverage_iff] |
| 94 | exact ⟨D.charts_jointly_surjective, inferInstance⟩ |
| 95 | |
| 96 | /-- The relative charts are a covering family in the slice Zariski site. -/ |
| 97 | theorem charts_covering : |
| 98 | Sieve.ofArrows D.U D.toGlueData.ι ∈ (Scheme.zariskiTopology.over S) D.glued := by |
| 99 | rw [GrothendieckTopology.mem_over_iff, Sieve.overEquiv_ofArrows] |
| 100 | exact D.openCover.mem_grothendieckTopology |
| 101 | |
| 102 | /-- The charts and their scheme-theoretic overlaps give a hypercover |
| 103 | of the relative gluing in the slice Zariski site. -/ |
| 104 | def oneHypercover : (Scheme.zariskiTopology.over S).OneHypercover D.glued where |
| 105 | I₀ := D.J |
| 106 | X := D.U |
| 107 | f := D.toGlueData.ι |
| 108 | I₁ _ _ := PUnit |
| 109 | Y i j _ := D.V (i, j) |
| 110 | p₁ i j _ := D.f i j |
| 111 | p₂ i j _ := D.t i j ≫ D.f j i |
| 112 | w i j _ := by simp only [Category.assoc, CategoryTheory.GlueData.glue_condition] |
| 113 | mem₀ := by |
| 114 | refine (Scheme.zariskiTopology.over S).superset_covering ?_ D.charts_covering |
| 115 | rw [Sieve.generate_le_iff] |
| 116 | rintro W _ ⟨i⟩ |
| 117 | exact ⟨_, 𝟙 _, _, ⟨i⟩, by simp⟩ |
| 118 | mem₁ i j W p q h := by |
| 119 | refine (Scheme.zariskiTopology.over S).superset_covering (fun T g _ => ?_) |
| 120 | ((Scheme.zariskiTopology.over S).top_mem _) |
| 121 | obtain ⟨φ, h₁, h₂⟩ := PullbackCone.IsLimit.lift' (D.overlapIsPullback i j) |
| 122 | (g ≫ p) (g ≫ q) (by simpa using congrArg (fun k => g ≫ k) h) |
| 123 | exact ⟨⟨⟩, φ, h₁.symm, h₂.symm⟩ |
| 124 | |
| 125 | variable {F : Sheaf (Scheme.zariskiTopology.over S) (Type v)} |
| 126 | (s : ∀ i : D.J, F.obj.obj (Opposite.op (D.U i))) |
| 127 | (h : ∀ i j : D.J, F.obj.map (D.f i j).op (s i) = |
| 128 | F.obj.map ((D.f j i).op ≫ (D.t i j).op) (s j)) |
| 129 | |
| 130 | /-- Compatible sheaf sections on the relative gluing charts determine |
| 131 | a section on the glued scheme over the base. -/ |
| 132 | def sheafValGluedMk : F.obj.obj (Opposite.op D.glued) := |
| 133 | Multifork.IsLimit.sectionsEquiv (D.oneHypercover.isLimitMultifork F) |
| 134 | { val := s, property := fun _ => h _ _ } |
| 135 | |
| 136 | /-- The glued section restricts to each prescribed chart section. -/ |
| 137 | theorem sheafValGluedMk_val (i : D.J) : |
| 138 | F.obj.map (D.toGlueData.ι i).op (D.sheafValGluedMk s h) = s i := |
| 139 | Multifork.IsLimit.sectionsEquiv_apply_val (D.oneHypercover.isLimitMultifork F) _ _ |
| 140 | |
| 141 | end RelativeGlueData |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.RelativeGluing.Construction.Schemes |