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.Picard.PoincareBundle.InvariantRestriction |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.BeckDescent |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Line.Bundles |
| 4 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.InvariantComparison |
| 5 | import Mathlib.CategoryTheory.Adjunction.FullyFaithful |
| 6 | |
| 7 | /-! # Iso Descent -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.IsoDescent |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Invariant sheaves under isomorphisms of schemes |
| 15 | |
| 16 | These constructions transport geometric descent to affine coordinate |
| 17 | spectra without changing the line bundles or their coaction equations. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Functor _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {X Y X' Y' : Scheme.{u}} |
| 25 | |
| 26 | /-- Pullback along a scheme isomorphism is an equivalence of module-sheaf categories. -/ |
| 27 | def pullbackEquivalence (e : X' ≅ X) : X.Modules ≌ X'.Modules := |
| 28 | CategoryTheory.Equivalence.mk (Scheme.Modules.pullback e.hom) (Scheme.Modules.pullback e.inv) |
| 29 | (Scheme.Modules.pullbackComp e.inv e.hom ≪≫ |
| 30 | Scheme.Modules.pullbackCongr e.inv_hom_id ≪≫ Scheme.Modules.pullbackId X).symm |
| 31 | (Scheme.Modules.pullbackComp e.hom e.inv ≪≫ |
| 32 | Scheme.Modules.pullbackCongr e.hom_inv_id ≪≫ Scheme.Modules.pullbackId X') |
| 33 | |
| 34 | theorem pullback_isEquivalence (e : X' ≅ X) : |
| 35 | (Scheme.Modules.pullback e.hom).IsEquivalence := |
| 36 | (pullbackEquivalence e).isEquivalence_functor |
| 37 | |
| 38 | /-- Local rank one is detected after changing the scheme by an isomorphism. -/ |
| 39 | theorem isLine_of_pullback (e : X' ≅ X) (M : X.Modules) |
| 40 | (h : Line.Bundles.IsLine ((Scheme.Modules.pullback e.hom).obj M)) : |
| 41 | Line.Bundles.IsLine M := by |
| 42 | let a : (Scheme.Modules.pullback e.inv).obj |
| 43 | ((Scheme.Modules.pullback e.hom).obj M) ≅ M := |
| 44 | ((Scheme.Modules.pullbackComp e.inv e.hom ≪≫ |
| 45 | Scheme.Modules.pullbackCongr e.inv_hom_id ≪≫ Scheme.Modules.pullbackId X).app M) |
| 46 | exact (h.pullback e.inv).of_iso a |
| 47 | |
| 48 | variable (f : X ⟶ Y) (g : X' ⟶ Y') (i : X' ≅ X) (j : Y' ≅ Y) |
| 49 | (w : g ≫ j.hom = i.hom ≫ f) |
| 50 | |
| 51 | /-- The two composed direct images in an isomorphic square agree. -/ |
| 52 | def pushforwardSquareIso : |
| 53 | Scheme.Modules.pushforward i.hom ⋙ Scheme.Modules.pushforward f ≅ |
| 54 | Scheme.Modules.pushforward g ⋙ Scheme.Modules.pushforward j.hom := |
| 55 | Scheme.Modules.pushforwardComp i.hom f ≪≫ |
| 56 | Scheme.Modules.pushforwardCongr w.symm ≪≫ (Scheme.Modules.pushforwardComp g j.hom).symm |
| 57 | |
| 58 | /-- The corresponding commutative square of pullback functors. -/ |
| 59 | def pullbackSquareIso : |
| 60 | Scheme.Modules.pullback j.hom ⋙ Scheme.Modules.pullback g ≅ |
| 61 | Scheme.Modules.pullback f ⋙ Scheme.Modules.pullback i.hom := |
| 62 | (conjugateIsoEquiv |
| 63 | ((Scheme.Modules.pullbackPushforwardAdjunction f).comp |
| 64 | (Scheme.Modules.pullbackPushforwardAdjunction i.hom)) |
| 65 | ((Scheme.Modules.pullbackPushforwardAdjunction j.hom).comp |
| 66 | (Scheme.Modules.pullbackPushforwardAdjunction g))).symm |
| 67 | (pushforwardSquareIso f g i j w) |
| 68 | |
| 69 | /-- Direct-image base change along the vertical scheme isomorphisms. -/ |
| 70 | def baseChangeMap : |
| 71 | Scheme.Modules.pushforward f ⋙ Scheme.Modules.pullback j.hom ⟶ |
| 72 | Scheme.Modules.pullback i.hom ⋙ Scheme.Modules.pushforward g := |
| 73 | ((mateEquiv (Scheme.Modules.pullbackPushforwardAdjunction i.hom) |
| 74 | (Scheme.Modules.pullbackPushforwardAdjunction j.hom)).symm |
| 75 | (TwoSquare.mk _ _ _ _ (pushforwardSquareIso f g i j w).hom)).natTrans |
| 76 | |
| 77 | theorem baseChangeMap_isIso : IsIso (baseChangeMap f g i j w) := by |
| 78 | have := pullback_isEquivalence i |
| 79 | have := pullback_isEquivalence j |
| 80 | dsimp [baseChangeMap, mateEquiv] |
| 81 | infer_instance |
| 82 | |
| 83 | /-- The canonical adjunction mate is the invertible base-change map. -/ |
| 84 | theorem rightMate_eq : |
| 85 | DescentRestriction.rightMate |
| 86 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 87 | (Scheme.Modules.pullbackPushforwardAdjunction g) |
| 88 | (pullbackSquareIso f g i j w) = baseChangeMap f g i j w := by |
| 89 | let γ := TwoSquare.mk _ _ _ _ (pushforwardSquareIso f g i j w).hom |
| 90 | have h := iterated_mateEquiv_conjugateEquiv_symm |
| 91 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 92 | (Scheme.Modules.pullbackPushforwardAdjunction g) |
| 93 | (Scheme.Modules.pullbackPushforwardAdjunction j.hom) |
| 94 | (Scheme.Modules.pullbackPushforwardAdjunction i.hom) γ |
| 95 | apply congrArg TwoSquare.natTrans |
| 96 | apply (mateEquiv (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 97 | (Scheme.Modules.pullbackPushforwardAdjunction g)).symm.injective |
| 98 | change (mateEquiv (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 99 | (Scheme.Modules.pullbackPushforwardAdjunction g)).symm |
| 100 | ((mateEquiv (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 101 | (Scheme.Modules.pullbackPushforwardAdjunction g)) |
| 102 | (TwoSquare.mk _ _ _ _ (pullbackSquareIso f g i j w).hom)) = _ |
| 103 | rw [Equiv.symm_apply_apply] |
| 104 | exact h.symm |
| 105 | |
| 106 | /-- Full geometric coactions transport through an isomorphic scheme square. -/ |
| 107 | def transportDatum : BeckDescent.SheafDatum f ⥤ BeckDescent.SheafDatum g := |
| 108 | DescentRestriction.coalgebraRestriction |
| 109 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 110 | (Scheme.Modules.pullbackPushforwardAdjunction g) (pullbackSquareIso f g i j w) |
| 111 | |
| 112 | /-- Taking invariants commutes with this change of schemes. -/ |
| 113 | def invariantSheafIso (D : BeckDescent.SheafDatum f) : |
| 114 | (Scheme.Modules.pullback j.hom).obj (BeckDescent.invariantSheaf f D) ≅ |
| 115 | BeckDescent.invariantSheaf g ((transportDatum f g i j w).obj D) := by |
| 116 | have := pullback_isEquivalence j |
| 117 | have : IsIso (DescentRestriction.rightMate |
| 118 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 119 | (Scheme.Modules.pullbackPushforwardAdjunction g) (pullbackSquareIso f g i j w)) := by |
| 120 | rw [rightMate_eq] |
| 121 | exact baseChangeMap_isIso f g i j w |
| 122 | exact InvariantRestriction.invariantRestrictionIso |
| 123 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 124 | (Scheme.Modules.pullbackPushforwardAdjunction g) (pullbackSquareIso f g i j w) D |
| 125 | |
| 126 | /-- Isomorphism of the canonical pullback comparison is detected after |
| 127 | transporting the entire geometric coaction through scheme isomorphisms. -/ |
| 128 | theorem comparison_isIso_of_transport (D : BeckDescent.SheafDatum f) |
| 129 | (h : IsIso (BeckDescent.invariantComparison g |
| 130 | ((transportDatum f g i j w).obj D)).f) : |
| 131 | IsIso (BeckDescent.invariantComparison f D).f := by |
| 132 | have := pullback_isEquivalence i |
| 133 | have := pullback_isEquivalence j |
| 134 | have : IsIso (DescentRestriction.rightMate |
| 135 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 136 | (Scheme.Modules.pullbackPushforwardAdjunction g) (pullbackSquareIso f g i j w)) := by |
| 137 | rw [rightMate_eq] |
| 138 | exact baseChangeMap_isIso f g i j w |
| 139 | have hmap : IsIso ((Scheme.Modules.pullback i.hom).map |
| 140 | (BeckDescent.invariantComparison f D).f) := |
| 141 | @InvariantComparison.comparison_map_isIso _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 142 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 143 | (Scheme.Modules.pullbackPushforwardAdjunction g) (pullbackSquareIso f g i j w) |
| 144 | inferInstance inferInstance inferInstance inferInstance D h |
| 145 | exact isIso_of_reflects_iso (BeckDescent.invariantComparison f D).f |
| 146 | (Scheme.Modules.pullback i.hom) |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.IsoDescent |