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.NumberTheory.PadicHodge.IntegralComparison.LineFrame |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Geometric.PullHom |
| 4 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.StructureUnitComposition |
| 5 | |
| 6 | /-! # Line Frame Cocycle -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LineFrameCocycle |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Local frames of an actual module sheaf give unit-valued transition |
| 13 | functions. Their cocycle law follows from the canonical pullback |
| 14 | comparisons; it is not an extra condition on the line bundle. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | theorem gluing_refl {X Y T : Scheme.{u}} (f : Y ⟶ X) (p : T ⟶ Y) : |
| 27 | AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p p rfl = Iso.refl _ := by |
| 28 | simp [AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing, Scheme.Modules.pullbackCongr] |
| 29 | |
| 30 | theorem gluing_trans {X Y T : Scheme.{u}} (f : Y ⟶ X) |
| 31 | (p q r : T ⟶ Y) (hpq : p ≫ f = q ≫ f) (hqr : q ≫ f = r ≫ f) : |
| 32 | AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q hpq ≪≫ AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f q r hqr = |
| 33 | AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p r (hpq.trans hqr) := by |
| 34 | have h : Scheme.Modules.pullbackCongr hpq ≪≫ Scheme.Modules.pullbackCongr hqr = |
| 35 | Scheme.Modules.pullbackCongr (hpq.trans hqr) := by |
| 36 | simp [Scheme.Modules.pullbackCongr] |
| 37 | calc |
| 38 | _ = Scheme.Modules.pullbackComp p f ≪≫ |
| 39 | (Scheme.Modules.pullbackCongr hpq ≪≫ Scheme.Modules.pullbackCongr hqr) ≪≫ |
| 40 | (Scheme.Modules.pullbackComp r f).symm := by |
| 41 | apply Iso.ext |
| 42 | simp [AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing] |
| 43 | _ = _ := by rw [h]; rfl |
| 44 | |
| 45 | theorem baseDatum_hom {X Y T : Scheme.{u}} (f : Y ⟶ X) (L : X.Modules) |
| 46 | (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : |
| 47 | (AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.baseDatum f L).hom (q ≫ f) |
| 48 | (i₁ := PUnit.unit) (i₂ := PUnit.unit) p q h rfl = |
| 49 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app L := by |
| 50 | change (AlgebraicGeometry.Picard.PoincareBundle.PullbackFiberComposition.fiberIsoTo |
| 51 | AlgebraicGeometry.Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks f L p (q ≫ f) h).hom ≫ |
| 52 | (AlgebraicGeometry.Picard.PoincareBundle.PullbackFiberComposition.fiberIsoTo |
| 53 | AlgebraicGeometry.Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks f L q (q ≫ f) rfl).inv = _ |
| 54 | rw [AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.fiberIsoTo_eq, AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.fiberIsoTo_eq] |
| 55 | simp only [Scheme.Modules.pullbackCongr, eqToIso_refl, Iso.trans_refl] |
| 56 | rfl |
| 57 | |
| 58 | theorem gluing_pullback {X Y T T' : Scheme.{u}} (f : Y ⟶ X) (L : X.Modules) |
| 59 | (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) (g : T' ⟶ T) : |
| 60 | (Scheme.Modules.pullback g).map ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app L) ≫ |
| 61 | (Scheme.Modules.pullbackComp g q).hom.app ((Scheme.Modules.pullback f).obj L) = |
| 62 | (Scheme.Modules.pullbackComp g p).hom.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 63 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f (g ≫ p) (g ≫ q) (by simp only [Category.assoc, h])).hom.app L := by |
| 64 | have hd := (AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.baseDatum f L).pullHom_hom g |
| 65 | (q ≫ f) ((g ≫ q) ≫ f) (Category.assoc _ _ _).symm |
| 66 | (i₁ := PUnit.unit) (i₂ := PUnit.unit) p q h rfl (g ≫ p) (g ≫ q) rfl rfl |
| 67 | rw [baseDatum_hom, baseDatum_hom, AlgebraicGeometry.Picard.PoincareBundle.Geometric.PullHom.pullHom_eq] at hd |
| 68 | simp only [Scheme.Modules.pullbackCongr, eqToIso_refl, Iso.trans_refl] at hd |
| 69 | change (Scheme.Modules.pullbackComp g p).inv.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 70 | (Scheme.Modules.pullback g).map ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app L) ≫ |
| 71 | (Scheme.Modules.pullbackComp g q).hom.app ((Scheme.Modules.pullback f).obj L) = _ at hd |
| 72 | have he := congrArg |
| 73 | (fun z => (Scheme.Modules.pullbackComp g p).hom.app ((Scheme.Modules.pullback f).obj L) ≫ z) hd |
| 74 | simpa only [Category.assoc, Iso.hom_inv_id_app_assoc] using he |
| 75 | |
| 76 | theorem unitOfIso_trans {T : Scheme.{u}} |
| 77 | (e d : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T) : |
| 78 | AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso (e ≪≫ d) = |
| 79 | AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso e * AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso d := by |
| 80 | apply Units.ext |
| 81 | exact AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar_comp e.hom d.hom |
| 82 | |
| 83 | theorem scalarEnd_unitOfIso {T : Scheme.{u}} (e : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T) : |
| 84 | AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T) (AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso e).val = e.hom := by |
| 85 | apply AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar_injective |
| 86 | rw [LineTrivializationCoboundary.scalar_value] |
| 87 | rfl |
| 88 | |
| 89 | variable {X Y T : Scheme.{u}} (f : Y ⟶ X) {L : X.Modules} |
| 90 | (t : (Scheme.Modules.pullback f).obj L ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule Y) |
| 91 | |
| 92 | theorem frame_pullback {T' : Scheme.{u}} (g : T' ⟶ T) (p : T ⟶ Y) : |
| 93 | (Scheme.Modules.pullback g).map (LineFrame.Comparison.frameAt f t p).hom ≫ |
| 94 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso g).hom = |
| 95 | (Scheme.Modules.pullbackComp g p).hom.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 96 | (LineFrame.Comparison.frameAt f t (g ≫ p)).hom := by |
| 97 | have hu := congrArg Iso.hom (AlgebraicGeometry.Picard.PoincareBundle.StructureUnitComposition.unitIso_comp g p) |
| 98 | change (Scheme.Modules.pullback g).map (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso p).hom ≫ |
| 99 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso g).hom = |
| 100 | (Scheme.Modules.pullbackComp g p).hom.app (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule Y) ≫ |
| 101 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso (g ≫ p)).hom at hu |
| 102 | change (Scheme.Modules.pullback g).map |
| 103 | ((Scheme.Modules.pullback p).map t.hom ≫ (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso p).hom) ≫ _ = _ |
| 104 | rw [Functor.map_comp, Category.assoc, hu, ← Category.assoc] |
| 105 | erw [(Scheme.Modules.pullbackComp g p).hom.naturality t.hom] |
| 106 | simp only [LineFrame.Comparison.frameAt, Iso.trans_hom, Functor.mapIso_hom, |
| 107 | Category.assoc] |
| 108 | |
| 109 | def transitionIso (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : |
| 110 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T := |
| 111 | (LineFrame.Comparison.frameAt f t p).symm ≪≫ |
| 112 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).app L ≪≫ LineFrame.Comparison.frameAt f t q |
| 113 | |
| 114 | def transition (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : Γ(T, ⊤)ˣ := |
| 115 | AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso (transitionIso f t p q h) |
| 116 | |
| 117 | theorem normalized (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : |
| 118 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app L ≫ (LineFrame.Comparison.frameAt f t q).hom = |
| 119 | (LineFrame.Comparison.frameAt f t p).hom ≫ |
| 120 | AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T) (transition f t p q h).val := by |
| 121 | rw [transition, scalarEnd_unitOfIso] |
| 122 | simp [transitionIso] |
| 123 | |
| 124 | theorem transition_refl (p : T ⟶ Y) : transition f t p p rfl = 1 := by |
| 125 | apply Units.ext |
| 126 | change AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar (transitionIso f t p p rfl).hom = 1 |
| 127 | simp [transitionIso, gluing_refl] |
| 128 | |
| 129 | theorem transition_unit (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : |
| 130 | transition f (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) p q h = 1 := by |
| 131 | have hu : (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) ≫ |
| 132 | (LineFrame.Comparison.frameAt f (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) q).hom = |
| 133 | (LineFrame.Comparison.frameAt f (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) p).hom := by |
| 134 | simpa only [LineFrame.Comparison.frameAt, Iso.trans_hom, Functor.mapIso_hom, |
| 135 | Category.assoc] using (AlgebraicGeometry.Picard.PoincareBundle.StructureUnitGluing.unit_gluing f p q h).symm |
| 136 | have he : (transitionIso f (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) p q h).hom = 𝟙 _ := by |
| 137 | change ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).app (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X)).hom ≫ |
| 138 | (LineFrame.Comparison.frameAt f (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) q).hom = _ at hu |
| 139 | simp only [transitionIso, Iso.trans_hom, Iso.symm_hom] |
| 140 | rw [hu, Iso.inv_hom_id] |
| 141 | apply Units.ext |
| 142 | exact congrArg AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar he |
| 143 | |
| 144 | theorem transition_cocycle (p q r : T ⟶ Y) |
| 145 | (hpq : p ≫ f = q ≫ f) (hqr : q ≫ f = r ≫ f) : |
| 146 | transition f t p q hpq * transition f t q r hqr = |
| 147 | transition f t p r (hpq.trans hqr) := by |
| 148 | change AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso (transitionIso f t p q hpq) * |
| 149 | AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso (transitionIso f t q r hqr) = _ |
| 150 | rw [← unitOfIso_trans] |
| 151 | apply congrArg AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso |
| 152 | apply Iso.ext |
| 153 | have hG : (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q hpq).hom.app L ≫ |
| 154 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f q r hqr).hom.app L = |
| 155 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p r (hpq.trans hqr)).hom.app L := |
| 156 | congrArg (fun e => e.hom.app L) (gluing_trans f p q r hpq hqr) |
| 157 | change ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q hpq).app L).hom ≫ ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f q r hqr).app L).hom = |
| 158 | ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p r (hpq.trans hqr)).app L).hom at hG |
| 159 | simp only [transitionIso, Iso.trans_hom, Iso.symm_hom, Category.assoc, |
| 160 | Iso.hom_inv_id_assoc, ← hG] |
| 161 | |
| 162 | theorem transition_restrict {T' : Scheme.{u}} (g : T' ⟶ T) |
| 163 | (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : |
| 164 | Units.map g.appTop.hom.toMonoidHom (transition f t p q h) = |
| 165 | transition f t (g ≫ p) (g ≫ q) (by simp only [Category.assoc, h]) := by |
| 166 | let F := Scheme.Modules.pullback g |
| 167 | let U := (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso g).hom |
| 168 | let h' : (g ≫ p) ≫ f = (g ≫ q) ≫ f := by simp only [Category.assoc, h] |
| 169 | let d := transition f t p q h |
| 170 | let d' := transition f t (g ≫ p) (g ≫ q) h' |
| 171 | have he : (F.map (LineFrame.Comparison.frameAt f t p).hom ≫ U) ≫ |
| 172 | AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T') (g.appTop d.val) = |
| 173 | (F.map (LineFrame.Comparison.frameAt f t p).hom ≫ U) ≫ |
| 174 | AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T') d'.val := by |
| 175 | calc |
| 176 | _ = F.map ((LineFrame.Comparison.frameAt f t p).hom ≫ |
| 177 | AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T) d.val) ≫ U := by |
| 178 | rw [Functor.map_comp, AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd_pullback] |
| 179 | simp only [Category.assoc] |
| 180 | exact congrArg (fun k => F.map (LineFrame.Comparison.frameAt f t p).hom ≫ k) |
| 181 | (AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd_naturality U (g.appTop d.val)).symm |
| 182 | _ = F.map ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app L ≫ |
| 183 | (LineFrame.Comparison.frameAt f t q).hom) ≫ U := by |
| 184 | rw [normalized] |
| 185 | _ = F.map ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q h).hom.app L) ≫ |
| 186 | (Scheme.Modules.pullbackComp g q).hom.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 187 | (LineFrame.Comparison.frameAt f t (g ≫ q)).hom := by |
| 188 | rw [Functor.map_comp, Category.assoc, frame_pullback] |
| 189 | _ = (Scheme.Modules.pullbackComp g p).hom.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 190 | ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f (g ≫ p) (g ≫ q) h').hom.app L ≫ |
| 191 | (LineFrame.Comparison.frameAt f t (g ≫ q)).hom) := by |
| 192 | rw [← Category.assoc, gluing_pullback, Category.assoc] |
| 193 | _ = (Scheme.Modules.pullbackComp g p).hom.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 194 | (LineFrame.Comparison.frameAt f t (g ≫ p)).hom ≫ |
| 195 | AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T') d'.val := by |
| 196 | rw [normalized] |
| 197 | _ = _ := by |
| 198 | rw [frame_pullback] |
| 199 | simp only [Category.assoc] |
| 200 | have hs := (cancel_epi (F.map (LineFrame.Comparison.frameAt f t p).hom ≫ U)).mp he |
| 201 | apply Units.ext |
| 202 | change g.appTop d.val = d'.val |
| 203 | simpa only [LineTrivializationCoboundary.scalar_value] using |
| 204 | congrArg AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar hs |
| 205 | |
| 206 | theorem comparison {M : X.Modules} |
| 207 | (s : (Scheme.Modules.pullback f).obj M ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule Y) (e : L ≅ M) |
| 208 | (p q : T ⟶ Y) (h : p ≫ f = q ≫ f) : |
| 209 | transition f t p q h / transition f s p q h = |
| 210 | Units.map p.appTop.hom.toMonoidHom (LineFrame.Comparison.correction f t s e) / |
| 211 | Units.map q.appTop.hom.toMonoidHom (LineFrame.Comparison.correction f t s e) := |
| 212 | LineFrame.Comparison.quotient_equation f t s e p q h |
| 213 | (transition f t p q h) (transition f s p q h) |
| 214 | (normalized f t p q h) (normalized f s p q h) |
| 215 | |
| 216 | end |
| 217 | |
| 218 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LineFrameCocycle |