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.AbelianModuli.HilbertConstruction.SubterminalOpenChartsCover |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.LocalRepresentability |
| 3 | |
| 4 | /-! # General Restricted Represented Charts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GeneralRestrictedRepresentedCharts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A representation over an open part of the base defines a representable |
| 11 | open chart of any presheaf. No subterminality of the presheaf or of its |
| 12 | representing scheme is needed. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u v |
| 16 | |
| 17 | private theorem yonedaNat_precomp {C : Type v} [Category.{u} C] |
| 18 | {F : Cᵒᵖ ⥤ Type u} {X Y Z : C} (α : yoneda.obj X ⟶ F) (a : Y ⟶ Z) (b : Z ⟶ X) : |
| 19 | α.app (.op Y) (a ≫ b) = F.map a.op (α.app (.op Z) b) := |
| 20 | NatTrans.naturality_apply α a.op b |
| 21 | |
| 22 | variable {S U : Scheme.{u}} (F : (Over S)ᵒᵖ ⥤ Type u) |
| 23 | (i : U ⟶ S) (M : Over U) |
| 24 | (e : (Over.map i).op ⋙ F ≅ yoneda.obj M) |
| 25 | |
| 26 | theorem restrictedRepresentedChartMap_onMap {V : Over U} (a : V ⟶ M) : |
| 27 | (SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e).app (.op ((Over.map i).obj V)) |
| 28 | ((Over.map i).map a) = e.inv.app (.op V) a := by |
| 29 | change F.map ((Over.map i).map a).op (e.inv.app (.op M) (𝟙 M)) = _ |
| 30 | have hn : e.inv.app (.op V) (a ≫ 𝟙 M) = |
| 31 | F.map ((Over.map i).map a).op (e.inv.app (.op M) (𝟙 M)) := |
| 32 | NatTrans.naturality_apply e.inv a.op (𝟙 M) |
| 33 | exact hn.symm.trans (congrArg (fun b : V ⟶ M => e.inv.app (.op V) b) (Category.comp_id a)) |
| 34 | |
| 35 | theorem restrictedRepresentedChartMap_injective [Mono i] (V : Over S) : |
| 36 | Function.Injective ((SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e).app (.op V)) := by |
| 37 | intro a b hab |
| 38 | let W : Over U := Over.mk (a.left ≫ M.hom) |
| 39 | let q : (Over.map i).obj W ≅ V := |
| 40 | Over.isoMk (Iso.refl V.left) (by |
| 41 | change (𝟙 V.left) ≫ V.hom = (a.left ≫ M.hom) ≫ i |
| 42 | rw [Category.id_comp, Category.assoc] |
| 43 | exact a.w.symm) |
| 44 | let a' : W ⟶ M := Over.homMk a.left |
| 45 | let b' : W ⟶ M := Over.homMk b.left (by |
| 46 | apply (cancel_mono i).mp |
| 47 | exact ((Category.assoc b.left M.hom i).trans b.w).trans |
| 48 | ((Category.assoc a.left M.hom i).trans a.w).symm) |
| 49 | have ha : (Over.map i).map a' = q.hom ≫ a := by |
| 50 | apply Over.OverMorphism.ext |
| 51 | exact (Category.id_comp a.left).symm |
| 52 | have hb : (Over.map i).map b' = q.hom ≫ b := by |
| 53 | apply Over.OverMorphism.ext |
| 54 | exact (Category.id_comp b.left).symm |
| 55 | have h : e.inv.app (.op W) a' = e.inv.app (.op W) b' := by |
| 56 | rw [← restrictedRepresentedChartMap_onMap F i M e a', |
| 57 | ← restrictedRepresentedChartMap_onMap F i M e b', ha, hb] |
| 58 | exact (yonedaNat_precomp (SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e) q.hom a).trans |
| 59 | ((congrArg (F.map q.hom.op) hab).trans |
| 60 | (yonedaNat_precomp (SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e) q.hom b).symm) |
| 61 | have h' : a' = b' := (e.app (.op W)).toEquiv.symm.injective h |
| 62 | apply Over.OverMorphism.ext |
| 63 | exact congrArg (fun z : W ⟶ M => z.left) h' |
| 64 | |
| 65 | theorem restrictedRepresentedChartPullbackArrow_value |
| 66 | (T : Over S) (β : yoneda.obj T ⟶ F) : |
| 67 | (SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e).app (.op (SubterminalRelativeChart.baseChartTest i T)) |
| 68 | (SubterminalOpenChartRepresentation.restrictedRepresentedChartPullbackArrow F i M e T β) = |
| 69 | β.app (.op (SubterminalRelativeChart.baseChartTest i T)) (SubterminalRelativeChart.baseChartProjection i T) := by |
| 70 | let V := (Over.pullback i).obj T |
| 71 | let s : ((Over.map i).op ⋙ F).obj (.op V) := |
| 72 | F.map (SubterminalRelativeChart.baseChartProjection i T).op (yonedaEquiv β) |
| 73 | have h₁ := restrictedRepresentedChartMap_onMap F i M e (e.hom.app (.op V) s) |
| 74 | have h₂ : e.inv.app (.op V) (e.hom.app (.op V) s) = s := |
| 75 | (e.app (.op V)).toEquiv.symm_apply_apply s |
| 76 | have h₃ : F.map (SubterminalRelativeChart.baseChartProjection i T).op (yonedaEquiv β) = |
| 77 | β.app (.op (SubterminalRelativeChart.baseChartTest i T)) (SubterminalRelativeChart.baseChartProjection i T) := |
| 78 | (yonedaNat_precomp β (SubterminalRelativeChart.baseChartProjection i T) (𝟙 T)).symm.trans |
| 79 | (congrArg (fun a : SubterminalRelativeChart.baseChartTest i T ⟶ T => β.app (.op (SubterminalRelativeChart.baseChartTest i T)) a) |
| 80 | (Category.comp_id (SubterminalRelativeChart.baseChartProjection i T))) |
| 81 | exact h₁.trans (h₂.trans h₃) |
| 82 | |
| 83 | theorem generalRestrictedRepresentedChart_isOpenImmersion [IsOpenImmersion i] : |
| 84 | (Relative.RepresentableOpenGlueData.relativeOpenImmersions S).presheaf (SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e) := by |
| 85 | have : (Relative.RepresentableOpenGlueData.relativeOpenImmersions S).RespectsIso := |
| 86 | inferInstanceAs (((IsOpenImmersion : MorphismProperty Scheme.{u}).inverseImage |
| 87 | (Over.forget S)).RespectsIso) |
| 88 | apply MorphismProperty.relative.of_exists |
| 89 | intro T β |
| 90 | let L := SubterminalRelativeChart.baseChartTest i T |
| 91 | let r := SubterminalRelativeChart.baseChartProjection i T |
| 92 | let a := SubterminalOpenChartRepresentation.restrictedRepresentedChartPullbackArrow F i M e T β |
| 93 | let α := SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F i M e |
| 94 | have hr : Mono r := SubterminalRelativeChart.baseChartProjection_mono i T |
| 95 | have hvalue : α.app (.op L) a = β.app (.op L) r := |
| 96 | restrictedRepresentedChartPullbackArrow_value F i M e T β |
| 97 | have hcomm (V : Over S) (z : V ⟶ L) : |
| 98 | α.app (.op V) (z ≫ a) = β.app (.op V) (z ≫ r) := |
| 99 | (yonedaNat_precomp α z a).trans |
| 100 | ((congrArg (F.map z.op) hvalue).trans (yonedaNat_precomp β z r).symm) |
| 101 | refine ⟨L, yoneda.map a, r, ?_, SubterminalRelativeChart.baseChartProjection_open i T⟩ |
| 102 | apply IsPullback.of_forall_isPullback_app |
| 103 | intro V |
| 104 | apply (Types.isPullback_iff _ _ _ _).mpr |
| 105 | refine ⟨?_, ?_, ?_⟩ |
| 106 | · apply ConcreteCategory.hom_ext |
| 107 | intro z |
| 108 | exact hcomm V.unop z |
| 109 | · intro x y hxy |
| 110 | exact (cancel_mono r).mp hxy.2 |
| 111 | · intro x y hxy |
| 112 | let z := SubterminalRelativeChart.baseChartTestLift i T M x y |
| 113 | have hz : z ≫ r = y := SubterminalRelativeChart.baseChartTestLift_projection i T M x y |
| 114 | refine ⟨z, ?_, hz⟩ |
| 115 | apply restrictedRepresentedChartMap_injective F i M e V.unop |
| 116 | exact (hcomm V.unop z).trans |
| 117 | ((congrArg (β.app V) hz).trans hxy.symm) |
| 118 | |
| 119 | theorem generalRestrictedRepresentedCharts_locallySurjective |
| 120 | {S : Scheme.{u}} (F : (Over S)ᵒᵖ ⥤ Type u) (U : S.OpenCover.{u}) |
| 121 | (M : ∀ a, Over (U.X a)) |
| 122 | (e : ∀ a, (Over.map (U.f a)).op ⋙ F ≅ yoneda.obj (M a)) : |
| 123 | Presheaf.IsLocallySurjective (Scheme.zariskiTopology.over S) |
| 124 | (Sigma.desc (fun a => SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F (U.f a) (M a) (e a))) := by |
| 125 | constructor |
| 126 | intro T s |
| 127 | let V := fun a => SubterminalRelativeChart.baseChartTest (U.f a) T |
| 128 | let r := fun a => SubterminalRelativeChart.baseChartProjection (U.f a) T |
| 129 | have hcover : Sieve.ofArrows V r ∈ (Scheme.zariskiTopology.over S) T := by |
| 130 | rw [GrothendieckTopology.mem_over_iff, Sieve.overEquiv_ofArrows] |
| 131 | exact Scheme.Cover.mem_grothendieckTopology (U.pullback₁ T.hom) |
| 132 | apply (Scheme.zariskiTopology.over S).superset_covering _ hcover |
| 133 | apply (Sieve.generate_le_iff _ _).mpr |
| 134 | rintro W f ⟨a⟩ |
| 135 | let m := SubterminalOpenChartRepresentation.restrictedRepresentedChartPullbackArrow F (U.f a) (M a) (e a) |
| 136 | T (yonedaEquiv.symm s) |
| 137 | refine ⟨(Sigma.ι (fun a => yoneda.obj ((Over.map (U.f a)).obj (M a))) a).app |
| 138 | (.op (V a)) m, ?_⟩ |
| 139 | have hι := congrArg |
| 140 | (fun z : yoneda.obj ((Over.map (U.f a)).obj (M a)) ⟶ F => z.app (.op (V a)) m) |
| 141 | (Sigma.ι_comp_desc (fun a => SubterminalOpenChartRepresentation.restrictedRepresentedChartMap F (U.f a) (M a) (e a)) a) |
| 142 | exact hι.trans (restrictedRepresentedChartPullbackArrow_value |
| 143 | F (U.f a) (M a) (e a) T (yonedaEquiv.symm s)) |
| 144 | |
| 145 | end |
| 146 | |
| 147 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GeneralRestrictedRepresentedCharts |