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.RelativeGluing |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.FinitePresentation |
| 5 | import Mathlib.CategoryTheory.Limits.Shapes.KernelPair |
| 6 | |
| 7 | /-! # Quotient Gluing Is -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.QuotientGluingIs.Construction.QuotientGluing |
| 10 | |
| 11 | /-! |
| 12 | # Gluing local quotient diagrams |
| 13 | |
| 14 | Cartesian, surjective quotient maps transmit the local intersection condition |
| 15 | from a source cover to its quotient charts. This is the condition required by |
| 16 | the existing scheme-colimit gluing construction. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | universe u v w |
| 22 | |
| 23 | /-- A cartesian natural transformation with surjective components sends a |
| 24 | locally directed source diagram to a locally directed quotient diagram. -/ |
| 25 | theorem isLocallyDirected_of_equifibered_of_surjective |
| 26 | {J : Type w} [Category.{v} J] {F G : J ⥤ Scheme.{u}} |
| 27 | (q : F ⟶ G) (hq : q.Equifibered) (hqs : ∀ i, Surjective (q.app i)) |
| 28 | [(F ⋙ Scheme.forget).IsLocallyDirected] : |
| 29 | (G ⋙ Scheme.forget).IsLocallyDirected := by |
| 30 | constructor |
| 31 | intro i j k fi fj yi yj heq |
| 32 | change G.map fi yi = G.map fj yj at heq |
| 33 | obtain ⟨xk, hxk⟩ := (hqs k).surj (G.map fi yi) |
| 34 | obtain ⟨xi, hxi, hqi⟩ := Scheme.exists_preimage_of_isPullback (hq fi) xk yi hxk |
| 35 | obtain ⟨xj, hxj, hqj⟩ := Scheme.exists_preimage_of_isPullback (hq fj) xk yj |
| 36 | (hxk.trans heq) |
| 37 | obtain ⟨l, fli, flj, x, hli, hlj⟩ := |
| 38 | (F ⋙ Scheme.forget).exists_map_eq_of_isLocallyDirected fi fj xi xj (hxi.trans hxj.symm) |
| 39 | refine ⟨l, fli, flj, q.app l x, ?_, ?_⟩ |
| 40 | · change G.map fli (q.app l x) = yi |
| 41 | change F.map fli x = xi at hli |
| 42 | rw [← Scheme.Hom.comp_apply, ← q.naturality, Scheme.Hom.comp_apply, hli, hqi] |
| 43 | · change G.map flj (q.app l x) = yj |
| 44 | change F.map flj x = xj at hlj |
| 45 | rw [← Scheme.Hom.comp_apply, ← q.naturality, Scheme.Hom.comp_apply, hlj, hqj] |
| 46 | |
| 47 | /-- A property local on the target can be checked on any cartesian charts |
| 48 | above an open cover, rather than only the chosen categorical pullbacks. -/ |
| 49 | theorem property_of_cartesian_openCover |
| 50 | (P : MorphismProperty Scheme.{u}) [IsZariskiLocalAtTarget P] |
| 51 | {X Y : Scheme.{u}} (f : X ⟶ Y) (𝒰 : Y.OpenCover) |
| 52 | {Xᵢ : 𝒰.I₀ → Scheme.{u}} (iX : ∀ i, Xᵢ i ⟶ X) (fᵢ : ∀ i, Xᵢ i ⟶ 𝒰.X i) |
| 53 | (h : ∀ i, IsPullback (fᵢ i) (iX i) (𝒰.f i) f) (hf : ∀ i, P (fᵢ i)) : P f := by |
| 54 | apply IsZariskiLocalAtTarget.of_openCover 𝒰 |
| 55 | intro i |
| 56 | change P (pullback.snd f (𝒰.f i)) |
| 57 | rw [← (h i).flip.isoPullback_inv_snd, P.cancel_left_of_respectsIso] |
| 58 | exact hf i |
| 59 | |
| 60 | /-- Exact kernel pairs can be checked on cartesian quotient charts. The |
| 61 | relation chart is only required to be the source restriction of the original |
| 62 | relation; no global effectiveness assumption is made. -/ |
| 63 | theorem isKernelPair_of_cartesian_openCover |
| 64 | {R X Q : Scheme.{u}} (s t : R ⟶ X) (q : X ⟶ Q) (𝒰 : X.OpenCover) |
| 65 | (Qᵢ Rᵢ : 𝒰.I₀ → Scheme.{u}) (qᵢ : ∀ i, 𝒰.X i ⟶ Qᵢ i) |
| 66 | (jQ : ∀ i, Qᵢ i ⟶ Q) (jR : ∀ i, Rᵢ i ⟶ R) |
| 67 | (sᵢ tᵢ : ∀ i, Rᵢ i ⟶ 𝒰.X i) |
| 68 | (hs : ∀ i, IsPullback (sᵢ i) (jR i) (𝒰.f i) s) |
| 69 | (ht : ∀ i, tᵢ i ≫ 𝒰.f i = jR i ≫ t) |
| 70 | (hq : ∀ i, IsPullback (qᵢ i) (𝒰.f i) (jQ i) q) |
| 71 | (hk : ∀ i, IsKernelPair (qᵢ i) (sᵢ i) (tᵢ i)) : IsKernelPair q s t := by |
| 72 | apply Scheme.isPullback_of_openCover s t q q 𝒰 |
| 73 | intro i |
| 74 | have h := (hk i).paste_vert (hq i) |
| 75 | rw [(hq i).w, ht i] at h |
| 76 | exact h.of_iso (hs i).flip.isoPullback (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 77 | (by change sᵢ i ≫ 𝟙 _ = (hs i).flip.isoPullback.hom ≫ pullback.snd s (𝒰.f i) |
| 78 | simpa only [Category.comp_id] using (hs i).flip.isoPullback_hom_snd.symm) |
| 79 | (by change (jR i ≫ t) ≫ 𝟙 _ = (hs i).flip.isoPullback.hom ≫ |
| 80 | pullback.fst s (𝒰.f i) ≫ t |
| 81 | simp) (by simp) (by simp) |
| 82 | |
| 83 | variable {J : Type w} [Category.{v} J] [Small.{u} J] [Quiver.IsThin J] |
| 84 | variable (G : J ⥤ Scheme.{u}) |
| 85 | variable [hG : ∀ {i j} (f : i ⟶ j), IsOpenImmersion (G.map f)] |
| 86 | variable [(G ⋙ Scheme.forget).IsLocallyDirected] |
| 87 | |
| 88 | /-- A transparently indexed cover by the colimit charts. -/ |
| 89 | noncomputable abbrev chartCover : (colimit G).OpenCover where |
| 90 | I₀ := J |
| 91 | X := G.obj |
| 92 | f := colimit.ι G |
| 93 | mem₀ := by |
| 94 | rw [Scheme.presieve₀_mem_precoverage_iff] |
| 95 | exact ⟨Scheme.IsLocallyDirected.ι_jointly_surjective G, fun _ => inferInstance⟩ |
| 96 | |
| 97 | /-- The charts of a glued locally directed scheme retain their original |
| 98 | index category and transition maps as a locally directed open cover. -/ |
| 99 | noncomputable local instance openCoverLocallyDirected : |
| 100 | (chartCover G).LocallyDirected where |
| 101 | trans := G.map |
| 102 | trans_id := G.map_id |
| 103 | trans_comp := G.map_comp |
| 104 | w f := colimit.w G f |
| 105 | property_trans {i j} f := by |
| 106 | change IsOpenImmersion (G.map (show (i : J) ⟶ (j : J) from f)) |
| 107 | exact hG f |
| 108 | directed {i j} x := by |
| 109 | have heq : colimit.ι G i (pullback.fst (colimit.ι G i) (colimit.ι G j) x) = |
| 110 | colimit.ι G j (pullback.snd (colimit.ι G i) (colimit.ι G j) x) := by |
| 111 | exact congrArg (fun f => f x) (pullback.condition (f := colimit.ι G i) (g := colimit.ι G j)) |
| 112 | obtain ⟨k, fki, fkj, y, hyi, _⟩ := (Scheme.IsLocallyDirected.ι_eq_ι_iff G).mp heq |
| 113 | refine ⟨k, fki, fkj, y, ?_⟩ |
| 114 | have : IsOpenImmersion (colimit.ι G (show J from j)) := inferInstance |
| 115 | apply (pullback.fst (colimit.ι G i) (colimit.ι G j)).isOpenEmbedding.injective |
| 116 | change (pullback.lift (G.map fki) (G.map fkj) _ ≫ |
| 117 | pullback.fst (colimit.ι G i) (colimit.ι G j)) y = _ |
| 118 | rw [pullback.lift_fst] |
| 119 | exact hyi |
| 120 | |
| 121 | /-- An equifibered natural transformation provides relative gluing data over |
| 122 | the scheme obtained by gluing its target charts. -/ |
| 123 | noncomputable def relativeData {F : J ⥤ Scheme.{u}} (q : F ⟶ G) (hq : q.Equifibered) : |
| 124 | Scheme.Cover.RelativeGluingData (chartCover G) where |
| 125 | functor := F |
| 126 | natTrans := q |
| 127 | equifibered := hq |
| 128 | |
| 129 | /-- Finite locally free surjective chart maps glue to a finite locally free |
| 130 | surjective morphism, and the chart squares are cartesian. -/ |
| 131 | theorem glued_projection_properties {F : J ⥤ Scheme.{u}} (q : F ⟶ G) (hq : q.Equifibered) |
| 132 | (hf : ∀ i, IsFinite (q.app i)) (hflat : ∀ i, Flat (q.app i)) |
| 133 | (hfp : ∀ i, LocallyOfFinitePresentation (q.app i)) (hs : ∀ i, Surjective (q.app i)) : |
| 134 | IsFinite (relativeData G q hq).toBase ∧ Flat (relativeData G q hq).toBase ∧ |
| 135 | LocallyOfFinitePresentation (relativeData G q hq).toBase ∧ |
| 136 | Surjective (relativeData G q hq).toBase := by |
| 137 | let d := relativeData G q hq |
| 138 | let : ∀ {i j} (f : i ⟶ j), IsOpenImmersion (F.map f) := fun f => |
| 139 | MorphismProperty.of_isPullback (hq f).flip (hG f) |
| 140 | let : (F ⋙ Scheme.forget).IsLocallyDirected := |
| 141 | Scheme.isLocallyDirected_of_equifibered_of_injective q hq fun f => (F.map f).injective |
| 142 | let : HasColimit d.functor := inferInstanceAs (HasColimit F) |
| 143 | let : IsZariskiLocalAtTarget (@IsFinite.{u}) := |
| 144 | @HasAffineProperty.instIsZariskiLocalAtTarget _ _ |
| 145 | IsFinite.instHasAffinePropertyAndIsAffineFiniteCarrierObjOppositeOpensCarrierCarrierCommRingCatPresheafOpOpensTopHomAppTop |
| 146 | let : IsZariskiLocalAtTarget (@Flat.{u}) := |
| 147 | @HasRingHomProperty.instIsZariskiLocalAtTarget _ _ Flat.instHasRingHomPropertyFlat |
| 148 | let : IsZariskiLocalAtTarget (@LocallyOfFinitePresentation.{u}) := |
| 149 | @HasRingHomProperty.instIsZariskiLocalAtTarget _ _ |
| 150 | instHasRingHomPropertyLocallyOfFinitePresentationFinitePresentation |
| 151 | have H (P : MorphismProperty Scheme.{u}) [IsZariskiLocalAtTarget P] |
| 152 | (hp : ∀ i, P (q.app i)) : P d.toBase := |
| 153 | property_of_cartesian_openCover P d.toBase (chartCover G) |
| 154 | (colimit.ι d.functor) d.natTrans.app d.isPullback_natTrans_ι_toBase hp |
| 155 | exact ⟨H (fun {_ _} f => IsFinite f) hf, H (fun {_ _} f => Flat f) hflat, |
| 156 | H (fun {_ _} f => LocallyOfFinitePresentation f) hfp, H @Surjective hs⟩ |
| 157 | |
| 158 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.QuotientGluingIs.Construction.QuotientGluing |