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.GeneralRestrictedRepresentedCharts |
| 2 | import Mathlib.CategoryTheory.ShrinkYoneda |
| 3 | import Mathlib.CategoryTheory.Sites.SheafOfTypes |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Basic |
| 5 | |
| 6 | /-! # Cover Representability -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.CoverRepresentability |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Representability is local on the base for a Zariski sheaf of sets. |
| 13 | The values of the sheaf may lie in a larger universe: their smallness is |
| 14 | proved from separatedness and the supplied local representing schemes. |
| 15 | The output has native pullback comparisons with those original schemes. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | universe u v |
| 19 | |
| 20 | def restrictSchemeRepresentable {S U : Scheme.{u}} |
| 21 | {F : (Over S)ᵒᵖ ⥤ Type v} {X : Over S} |
| 22 | (r : F.RepresentableBy X) (i : U ⟶ S) : |
| 23 | ((Over.map i).op ⋙ F).RepresentableBy ((Over.pullback i).obj X) where |
| 24 | homEquiv {T} := ((Over.mapPullbackAdj i).homEquiv T X).symm.trans r.homEquiv |
| 25 | homEquiv_comp {T V} a b := by |
| 26 | have h : ((Over.mapPullbackAdj i).homEquiv T X).symm (a ≫ b) = |
| 27 | (Over.map i).map a ≫ ((Over.mapPullbackAdj i).homEquiv V X).symm b := by |
| 28 | apply Over.OverMorphism.ext |
| 29 | exact Category.assoc _ _ _ |
| 30 | exact (congrArg r.homEquiv h).trans |
| 31 | (r.homEquiv_comp ((Over.map i).map a) |
| 32 | (((Over.mapPullbackAdj i).homEquiv V X).symm b)) |
| 33 | |
| 34 | namespace OpenCoverRepresentability |
| 35 | |
| 36 | variable {S : Scheme.{u}} (F : (Over S)ᵒᵖ ⥤ Type v) (U : S.OpenCover.{u}) |
| 37 | (M : ∀ j, Over (U.X j)) |
| 38 | (r : ∀ j, ((Over.map (U.f j)).op ⋙ F).RepresentableBy (M j)) |
| 39 | (hF : Presieve.IsSheaf (Scheme.zariskiTopology.over S) F) |
| 40 | |
| 41 | def restrictionCode (T : Over S) (s : F.obj (.op T)) : |
| 42 | ∀ j, (Over.pullback (U.f j)).obj T ⟶ M j := |
| 43 | fun j => (r j).homEquiv.symm (F.map (SubterminalRelativeChart.baseChartProjection (U.f j) T).op s) |
| 44 | |
| 45 | include hF in |
| 46 | theorem restrictionCode_injective (T : Over S) : |
| 47 | Function.Injective (restrictionCode F U M r T) := by |
| 48 | intro s t hst |
| 49 | have hcover : |
| 50 | Sieve.ofArrows (fun j => SubterminalRelativeChart.baseChartTest (U.f j) T) |
| 51 | (fun j => SubterminalRelativeChart.baseChartProjection (U.f j) T) ∈ (Scheme.zariskiTopology.over S) T := by |
| 52 | rw [GrothendieckTopology.mem_over_iff, Sieve.overEquiv_ofArrows] |
| 53 | exact Scheme.Cover.mem_grothendieckTopology (U.pullback₁ T.hom) |
| 54 | apply (hF _ hcover).isSeparatedFor.ext |
| 55 | intro V f hf |
| 56 | obtain ⟨j, a, ha⟩ := (Sieve.mem_ofArrows_iff _ _ _).mp hf |
| 57 | have hj : F.map (SubterminalRelativeChart.baseChartProjection (U.f j) T).op s = |
| 58 | F.map (SubterminalRelativeChart.baseChartProjection (U.f j) T).op t := |
| 59 | (r j).homEquiv.symm.injective (congrFun hst j) |
| 60 | rw [ha, op_comp, F.map_comp_apply, F.map_comp_apply, hj] |
| 61 | |
| 62 | include U M r hF in |
| 63 | theorem smallValues : FunctorToTypes.Small.{u} F := |
| 64 | fun T => small_of_injective (restrictionCode_injective F U M r hF T.unop) |
| 65 | |
| 66 | def smallPresheaf : (Over S)ᵒᵖ ⥤ Type u := by |
| 67 | let : FunctorToTypes.Small.{u} F := smallValues F U M r hF |
| 68 | exact FunctorToTypes.shrink.{u} F |
| 69 | |
| 70 | def chartRepresentable (j : U.I₀) : |
| 71 | ((Over.map (U.f j)).op ⋙ smallPresheaf F U M r hF).RepresentableBy (M j) := by |
| 72 | let : FunctorToTypes.Small.{u} F := smallValues F U M r hF |
| 73 | refine |
| 74 | { homEquiv := (r j).homEquiv.trans (equivShrink.{u} _) |
| 75 | homEquiv_comp := ?_ } |
| 76 | intro T V a b |
| 77 | change equivShrink.{u} _ ((r j).homEquiv (a ≫ b)) = |
| 78 | equivShrink.{u} _ (F.map ((Over.map (U.f j)).map a).op |
| 79 | ((equivShrink.{u} _).symm (equivShrink.{u} _ ((r j).homEquiv b)))) |
| 80 | rw [Equiv.symm_apply_apply] |
| 81 | exact congrArg (equivShrink.{u} _) ((r j).homEquiv_comp a b) |
| 82 | |
| 83 | def chartIso (j : U.I₀) : |
| 84 | (Over.map (U.f j)).op ⋙ smallPresheaf F U M r hF ≅ yoneda.obj (M j) := |
| 85 | (chartRepresentable F U M r hF j).toIso.symm |
| 86 | |
| 87 | theorem smallPresheaf_isSheaf : |
| 88 | Presheaf.IsSheaf (Scheme.zariskiTopology.over S) (smallPresheaf F U M r hF) := by |
| 89 | let : FunctorToTypes.Small.{u} F := smallValues F U M r hF |
| 90 | apply (isSheaf_iff_isSheaf_of_type _ _).mpr |
| 91 | apply Presieve.isSheaf_of_nat_equiv |
| 92 | (fun {T} => equivShrink.{u} (F.obj (.op T))) _ hF |
| 93 | intro T V a s |
| 94 | change equivShrink.{u} _ (F.map a.op s) = |
| 95 | equivShrink.{u} _ (F.map a.op ((equivShrink.{u} _).symm (equivShrink.{u} _ s))) |
| 96 | rw [Equiv.symm_apply_apply] |
| 97 | |
| 98 | theorem chart_open (j : U.I₀) : |
| 99 | (Relative.RepresentableOpenGlueData.relativeOpenImmersions S).presheaf |
| 100 | (SubterminalOpenChartRepresentation.restrictedRepresentedChartMap (smallPresheaf F U M r hF) (U.f j) (M j) |
| 101 | (chartIso F U M r hF j)) := |
| 102 | GeneralRestrictedRepresentedCharts.generalRestrictedRepresentedChart_isOpenImmersion _ _ _ _ |
| 103 | |
| 104 | local instance chart_cover : |
| 105 | Presheaf.IsLocallySurjective (Scheme.zariskiTopology.over S) |
| 106 | (Sigma.desc (fun j => SubterminalOpenChartRepresentation.restrictedRepresentedChartMap |
| 107 | (smallPresheaf F U M r hF) (U.f j) (M j) (chartIso F U M r hF j))) := |
| 108 | GeneralRestrictedRepresentedCharts.generalRestrictedRepresentedCharts_locallySurjective _ _ _ _ |
| 109 | |
| 110 | def scheme : Over S := Relative.LocalRepresentationSection.relativeLocalRepresentationScheme (chart_open F U M r hF) |
| 111 | |
| 112 | def smallRepresentable : |
| 113 | (smallPresheaf F U M r hF).RepresentableBy (scheme F U M r hF) := |
| 114 | Functor.representableByEquiv.symm |
| 115 | (Relative.LocalRepresentability.relativeLocalRepresentationIso (chart_open F U M r hF) |
| 116 | (smallPresheaf_isSheaf F U M r hF)).symm |
| 117 | |
| 118 | def representable : F.RepresentableBy (scheme F U M r hF) := by |
| 119 | let : FunctorToTypes.Small.{u} F := smallValues F U M r hF |
| 120 | refine |
| 121 | { homEquiv := (smallRepresentable F U M r hF).homEquiv.trans (equivShrink.{u} _).symm |
| 122 | homEquiv_comp := ?_ } |
| 123 | intro T V a b |
| 124 | change (equivShrink.{u} _).symm ((smallRepresentable F U M r hF).homEquiv (a ≫ b)) = _ |
| 125 | rw [(smallRepresentable F U M r hF).homEquiv_comp] |
| 126 | change (equivShrink.{u} _).symm |
| 127 | (equivShrink.{u} _ (F.map a.op |
| 128 | ((equivShrink.{u} _).symm ((smallRepresentable F U M r hF).homEquiv b)))) = _ |
| 129 | exact (equivShrink.{u} _).symm_apply_apply _ |
| 130 | |
| 131 | def chartPullbackIso (j : U.I₀) : |
| 132 | M j ≅ (Over.pullback (U.f j)).obj (scheme F U M r hF) := |
| 133 | (r j).uniqueUpToIso (restrictSchemeRepresentable (representable F U M r hF) (U.f j)) |
| 134 | |
| 135 | theorem chartPullbackIso_class (j : U.I₀) : |
| 136 | (restrictSchemeRepresentable (representable F U M r hF) (U.f j)).homEquiv |
| 137 | (chartPullbackIso F U M r hF j).hom = |
| 138 | (r j).homEquiv (𝟙 (M j)) := by |
| 139 | exact (restrictSchemeRepresentable (representable F U M r hF) (U.f j)).homEquiv.apply_symm_apply _ |
| 140 | |
| 141 | theorem localProperty (Q : MorphismProperty Scheme.{u}) [IsZariskiLocalAtTarget Q] |
| 142 | (hQ : ∀ j, Q (M j).hom) : Q (scheme F U M r hF).hom := by |
| 143 | apply IsZariskiLocalAtTarget.of_openCover U |
| 144 | intro j |
| 145 | let e := chartPullbackIso F U M r hF j |
| 146 | let a : Arrow.mk (M j).hom ≅ |
| 147 | Arrow.mk (U.pullbackHom (scheme F U M r hF).hom j) := |
| 148 | Arrow.isoMk ((Over.forget (U.X j)).mapIso e) (Iso.refl _) (by |
| 149 | change e.hom.left ≫ pullback.snd (scheme F U M r hF).hom (U.f j) = |
| 150 | (M j).hom ≫ 𝟙 (U.X j) |
| 151 | exact e.hom.w.trans (Category.comp_id (M j).hom).symm) |
| 152 | exact (Q.arrow_mk_iso_iff a).mp (hQ j) |
| 153 | |
| 154 | end OpenCoverRepresentability |
| 155 | |
| 156 | end |
| 157 | |
| 158 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.CoverRepresentability |