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.AbelianScheme.CartierDuality.LocalRepresentatives |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SmallCharacters |
| 3 | |
| 4 | /-! # Representability Descent -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # CartierDuality: descent of character-sheaf representability |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u v w z |
| 17 | |
| 18 | namespace RepresentabilityDescent.Construction.Representability |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] {D : Type w} [Category.{v} D] |
| 21 | |
| 22 | /-- A representation pulls back along a left adjoint to the image of |
| 23 | its representing object under the right adjoint. -/ |
| 24 | def alongAdjunction {L : C ⥤ D} {R : D ⥤ C} (adj : L ⊣ R) |
| 25 | {F : Dᵒᵖ ⥤ Type z} {Y : D} (r : F.RepresentableBy Y) : |
| 26 | (L.op ⋙ F).RepresentableBy (R.obj Y) where |
| 27 | homEquiv := (adj.homEquiv _ _).symm.trans r.homEquiv |
| 28 | homEquiv_comp f g := by |
| 29 | exact (congrArg r.homEquiv (adj.homEquiv_naturality_left_symm f g)).trans |
| 30 | (r.homEquiv_comp (L.map f) _) |
| 31 | |
| 32 | /-- An equivalence of test categories reflects representability. -/ |
| 33 | theorem of_equivalence (e : C ≌ D) (F : Cᵒᵖ ⥤ Type z) |
| 34 | [(e.inverse.op ⋙ F).IsRepresentable] : F.IsRepresentable := by |
| 35 | let r := alongAdjunction e.toAdjunction (e.inverse.op ⋙ F).representableBy |
| 36 | let i : e.functor.op ⋙ e.inverse.op ⋙ F ≅ F := |
| 37 | (Functor.associator _ _ _).symm ≪≫ |
| 38 | Functor.isoWhiskerRight (NatIso.op e.unitIso) F ≪≫ F.leftUnitor |
| 39 | exact (r.ofIso i).isRepresentable |
| 40 | |
| 41 | end RepresentabilityDescent.Construction.Representability |
| 42 | |
| 43 | /-- A finite locally free representative is in particular a genuine |
| 44 | representation of the underlying presheaf. -/ |
| 45 | theorem CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable.isRepresentable {S : Scheme.{u}} |
| 46 | {F : Sheaf (Scheme.fppfTopology.over S) (Type (u + 1))} |
| 47 | (h : CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable F) : F.obj.IsRepresentable := by |
| 48 | obtain ⟨X, _, _, _, ⟨i⟩⟩ := h |
| 49 | exact ((Functor.RepresentableBy.equivUliftYonedaIso F.obj X).symm |
| 50 | ((sheafToPresheaf _ _).mapIso i)).isRepresentable |
| 51 | |
| 52 | /-- Representability of characters after a base change implies |
| 53 | representability of the corresponding iterated-slice restriction. -/ |
| 54 | theorem RepresentabilityDescent.Construction.Schemes.nativeCharacterRestriction_isRepresentable {S : Scheme.{u}} |
| 55 | (G : Grp (Over S)) (U : Over S) |
| 56 | (h : CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable |
| 57 | (CharacterSheaf.Construction.Schemes.characterSheaf U.left ((Over.pullback U.hom).mapGrp.obj G))) : |
| 58 | ((Over.forget U).op ⋙ SmallCharacters.Construction.Schemes.nativeCharacterPresheaf S G).IsRepresentable := by |
| 59 | apply Functor.isRepresentable_comp_uliftFunctor_iff.mp |
| 60 | let F := (Over.forget U).op ⋙ (CharacterSheaf.Construction.Schemes.characterSheaf S G).obj |
| 61 | let e := U.iteratedSliceEquiv |
| 62 | let hchar := h.isRepresentable |
| 63 | let i : e.inverse.op ⋙ F ≅ |
| 64 | (CharacterSheaf.Construction.Schemes.characterSheaf U.left ((Over.pullback U.hom).mapGrp.obj G)).obj := |
| 65 | CharacterBaseChange.Construction.Schemes.characterBaseChangePresheafIso U.hom G |
| 66 | let : (e.inverse.op ⋙ F).IsRepresentable := |
| 67 | isRepresentable_of_natIso _ i.symm |
| 68 | let : F.IsRepresentable := RepresentabilityDescent.Construction.Representability.of_equivalence e F |
| 69 | exact isRepresentable_of_natIso F |
| 70 | (Functor.isoWhiskerLeft (Over.forget U).op (SmallCharacters.Construction.Schemes.nativeCharacterPresheafIso S G)).symm |
| 71 | |
| 72 | /-- The big Zariski topology on a slice is contained in its fppf topology. -/ |
| 73 | theorem RepresentabilityDescent.Construction.Schemes.zariskiOver_le_fppfOver (S : Scheme.{u}) : |
| 74 | Scheme.zariskiTopology.over S ≤ Scheme.fppfTopology.over S := by |
| 75 | intro X R hR |
| 76 | rw [GrothendieckTopology.mem_over_iff] at hR ⊢ |
| 77 | exact Precoverage.toGrothendieck_mono Scheme.zariskiPrecoverage_le_fppfPrecoverage _ hR |
| 78 | |
| 79 | /-- The actual native character presheaf is also a Zariski sheaf. -/ |
| 80 | def RepresentabilityDescent.Construction.Schemes.nativeCharacterZariskiSheaf (S : Scheme.{u}) (G : Grp (Over S)) : |
| 81 | Sheaf (Scheme.zariskiTopology.over S) (Type u) := |
| 82 | ⟨SmallCharacters.Construction.Schemes.nativeCharacterPresheaf S G, |
| 83 | (SmallCharacters.Construction.Schemes.nativeCharacterPresheaf_isSheaf S G).of_le (RepresentabilityDescent.Construction.Schemes.zariskiOver_le_fppfOver S)⟩ |
| 84 | |
| 85 | /-- Local finite locally free representatives on an open base cover |
| 86 | give a global representative of the character sheaf. -/ |
| 87 | theorem RepresentabilityDescent.Construction.Schemes.nativeCharacter_isRepresentable_of_openCover {S : Scheme.{u}} |
| 88 | (G : Grp (Over S)) (𝒰 : Scheme.OpenCover.{u} S) |
| 89 | (h : ∀ i, CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable |
| 90 | (CharacterSheaf.Construction.Schemes.characterSheaf (𝒰.X i) ((Over.pullback (𝒰.f i)).mapGrp.obj G))) : |
| 91 | (SmallCharacters.Construction.Schemes.nativeCharacterPresheaf S G).IsRepresentable := |
| 92 | LocalRepresentatives.Construction.Schemes.isRepresentable_of_openCover (RepresentabilityDescent.Construction.Schemes.nativeCharacterZariskiSheaf S G) 𝒰 |
| 93 | (fun i => RepresentabilityDescent.Construction.Schemes.nativeCharacterRestriction_isRepresentable G (Over.mk (𝒰.f i)) (h i)) |
| 94 | |
| 95 | /-- A scheme representing a finite locally free representable sheaf |
| 96 | itself has a finite, flat, finitely presented structure morphism. -/ |
| 97 | theorem RepresentabilityDescent.Construction.Schemes.finiteLocallyFree_of_pointSheafIso {S : Scheme.{u}} (X : Over S) |
| 98 | {F : Sheaf (Scheme.fppfTopology.over S) (Type (u + 1))} |
| 99 | (i : CharacterFunctor.Construction.Schemes.pointSheaf S X ≅ F) (h : CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable F) : |
| 100 | IsFinite X.hom ∧ Flat X.hom ∧ LocallyOfFinitePresentation X.hom := by |
| 101 | obtain ⟨Y, hf, hflat, hfp, ⟨j⟩⟩ := h |
| 102 | let : IsFinite Y.hom := hf |
| 103 | let : Flat Y.hom := hflat |
| 104 | let : LocallyOfFinitePresentation Y.hom := hfp |
| 105 | let e : X ≅ Y := uliftYoneda.{u + 1}.preimageIso |
| 106 | ((sheafToPresheaf _ _).mapIso (i ≪≫ j.symm)) |
| 107 | let : IsIso e.hom.left := inferInstanceAs (IsIso ((Over.forget S).map e.hom)) |
| 108 | have hw : e.hom.left ≫ Y.hom = X.hom := e.hom.w |
| 109 | rw [← hw] |
| 110 | exact ⟨inferInstance, inferInstance, inferInstance⟩ |
| 111 | |
| 112 | /-- For a represented sheaf, finite local freeness of the representing |
| 113 | scheme can be checked after restricting to an open cover of the base. -/ |
| 114 | theorem RepresentabilityDescent.Construction.Schemes.finiteLocallyFree_of_localRepresentatives {S : Scheme.{u}} (X : Over S) |
| 115 | {F : Sheaf (Scheme.fppfTopology.over S) (Type (u + 1))} |
| 116 | (i : CharacterFunctor.Construction.Schemes.pointSheaf S X ≅ F) (𝒰 : Scheme.OpenCover.{u} S) |
| 117 | (h : ∀ k, CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable |
| 118 | ((Scheme.fppfTopology.overMapPullback (Type (u + 1)) (𝒰.f k)).obj F)) : |
| 119 | IsFinite X.hom ∧ Flat X.hom ∧ LocallyOfFinitePresentation X.hom := by |
| 120 | let : IsZariskiLocalAtTarget (@IsFinite.{u}) := |
| 121 | @HasAffineProperty.instIsZariskiLocalAtTarget _ _ |
| 122 | IsFinite.instHasAffinePropertyAndIsAffineFiniteCarrierObjOppositeOpensCarrierCarrierCommRingCatPresheafOpOpensTopHomAppTop |
| 123 | let : IsZariskiLocalAtTarget (@Flat.{u}) := |
| 124 | @HasRingHomProperty.instIsZariskiLocalAtTarget _ _ Flat.instHasRingHomPropertyFlat |
| 125 | let : IsZariskiLocalAtTarget (@LocallyOfFinitePresentation.{u}) := |
| 126 | @HasRingHomProperty.instIsZariskiLocalAtTarget _ _ |
| 127 | instHasRingHomPropertyLocallyOfFinitePresentationFinitePresentation |
| 128 | have hlocal (k : 𝒰.I₀) := RepresentabilityDescent.Construction.Schemes.finiteLocallyFree_of_pointSheafIso |
| 129 | ((Over.pullback (𝒰.f k)).obj X) |
| 130 | ((CharacterBaseChange.Construction.Schemes.pointBaseChangeIso (𝒰.f k) X).symm ≪≫ |
| 131 | (Scheme.fppfTopology.overMapPullback (Type (u + 1)) (𝒰.f k)).mapIso i) (h k) |
| 132 | exact ⟨IsZariskiLocalAtTarget.of_openCover (P := @IsFinite.{u}) 𝒰 |
| 133 | (fun k => (hlocal k).1), |
| 134 | IsZariskiLocalAtTarget.of_openCover (P := @Flat.{u}) 𝒰 |
| 135 | (fun k => (hlocal k).2.1), |
| 136 | IsZariskiLocalAtTarget.of_openCover (P := @LocallyOfFinitePresentation.{u}) 𝒰 |
| 137 | (fun k => (hlocal k).2.2)⟩ |
| 138 | |
| 139 | /-- Finite locally free representability of the actual character sheaf |
| 140 | is local on an open cover of an arbitrary base scheme. -/ |
| 141 | theorem RepresentabilityDescent.Construction.Schemes.character_finiteLocallyFree_of_openCover {S : Scheme.{u}} |
| 142 | (G : Grp (Over S)) (𝒰 : Scheme.OpenCover.{u} S) |
| 143 | (h : ∀ k, CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable |
| 144 | (CharacterSheaf.Construction.Schemes.characterSheaf (𝒰.X k) ((Over.pullback (𝒰.f k)).mapGrp.obj G))) : |
| 145 | CharacterFunctor.Construction.Schemes.FiniteLocallyFreeRepresentable (CharacterSheaf.Construction.Schemes.characterSheaf S G) := by |
| 146 | let : (SmallCharacters.Construction.Schemes.nativeCharacterPresheaf S G).IsRepresentable := |
| 147 | RepresentabilityDescent.Construction.Schemes.nativeCharacter_isRepresentable_of_openCover G 𝒰 h |
| 148 | let X := (SmallCharacters.Construction.Schemes.nativeCharacterPresheaf S G).reprX |
| 149 | let r := (Functor.representableByUliftFunctorEquiv.symm |
| 150 | (SmallCharacters.Construction.Schemes.nativeCharacterPresheaf S G).representableBy).ofIso (SmallCharacters.Construction.Schemes.nativeCharacterPresheafIso S G) |
| 151 | let i : CharacterFunctor.Construction.Schemes.pointSheaf S X ≅ CharacterSheaf.Construction.Schemes.characterSheaf S G := |
| 152 | (fullyFaithfulSheafToPresheaf _ _).preimageIso |
| 153 | ((Functor.RepresentableBy.equivUliftYonedaIso (CharacterSheaf.Construction.Schemes.characterSheaf S G).obj X) r) |
| 154 | obtain ⟨hf, hflat, hfp⟩ := RepresentabilityDescent.Construction.Schemes.finiteLocallyFree_of_localRepresentatives X i 𝒰 |
| 155 | (fun k => (h k).of_iso (CharacterBaseChange.Construction.Schemes.characterBaseChangeIso (𝒰.f k) G).symm) |
| 156 | exact ⟨X, hf, hflat, hfp, ⟨i⟩⟩ |
| 157 | |
| 158 | end |
| 159 | |
| 160 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality |