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.LineValuedKoszulPurity |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.LineFrameRefinement |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Recovered.SquareDescent |
| 4 | |
| 5 | /-! # Line Frame Base Change -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LineFrameBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Pulling an actual line frame through a commuting square pulls its |
| 12 | transition units through the same square. The comparison comes from |
| 13 | the native isomorphism of descent data. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization OAI.AlgebraicGeometry.Picard.PoincareBundle.Geometric.KernelLinearization |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | theorem global_frame_transition {X U T : Scheme.{u}} (f : U ⟶ X) |
| 25 | {L : X.Modules} (e : L ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) |
| 26 | (p q : T ⟶ U) (h : p ≫ f = q ≫ f) : |
| 27 | LineFrameCocycle.transition f |
| 28 | ((Scheme.Modules.pullback f).mapIso e ≪≫ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) p q h = 1 := by |
| 29 | let t := (Scheme.Modules.pullback f).mapIso e ≪≫ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f |
| 30 | have hc := LineFrame.Comparison.correction_spec f t (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) e |
| 31 | have he : AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U) |
| 32 | (LineFrame.Comparison.correction f t (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) e).val = 𝟙 _ := |
| 33 | (cancel_epi t.hom).mp (hc.trans (Category.comp_id t.hom).symm) |
| 34 | have hv : LineFrame.Comparison.correction f t (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) e = 1 := by |
| 35 | apply Units.ext |
| 36 | change (LineFrame.Comparison.correction f t (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) e).val = (1 : Γ(U, ⊤)) |
| 37 | simpa only [LineTrivializationCoboundary.scalar_value, AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar_id] using |
| 38 | congrArg AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar he |
| 39 | simpa only [LineFrameCocycle.transition_unit, hv, map_one, div_one] using |
| 40 | LineFrameCocycle.comparison f t (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso f) e p q h |
| 41 | |
| 42 | theorem baseDatum_hom {X U T : Scheme.{u}} (f : U ⟶ X) (L : X.Modules) |
| 43 | (base : T ⟶ X) (p q : T ⟶ U) (hp : p ≫ f = base) (hq : q ≫ f = base) : |
| 44 | (AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.baseDatum f L).hom base |
| 45 | (i₁ := PUnit.unit) (i₂ := PUnit.unit) p q hp hq = |
| 46 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f p q (hp.trans hq.symm)).hom.app L := by |
| 47 | cases hq |
| 48 | exact LineFrameCocycle.baseDatum_hom f L p q hp |
| 49 | |
| 50 | variable {X Y U V T : Scheme.{u}} (f : U ⟶ X) (g : V ⟶ Y) |
| 51 | (a : V ⟶ U) (b : Y ⟶ X) (h : a ≫ f = g ≫ b) (L : X.Modules) |
| 52 | |
| 53 | def sourceIso : (Scheme.Modules.pullback g).obj ((Scheme.Modules.pullback b).obj L) ≅ |
| 54 | (Scheme.Modules.pullback a).obj ((Scheme.Modules.pullback f).obj L) := |
| 55 | AlgebraicGeometry.Picard.PoincareBundle.DescentComponentIsomorphisms.componentIso AlgebraicGeometry.Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks g |
| 56 | (AlgebraicGeometry.Picard.PoincareBundle.Recovered.SquareDescent.canonicalSquareIso f g a b h L).symm |
| 57 | |
| 58 | theorem sourceIso_natural {M : X.Modules} (z : L ⟶ M) : |
| 59 | (Scheme.Modules.pullback g).map ((Scheme.Modules.pullback b).map z) ≫ |
| 60 | (sourceIso f g a b h M).hom = |
| 61 | (sourceIso f g a b h L).hom ≫ |
| 62 | (Scheme.Modules.pullback a).map ((Scheme.Modules.pullback f).map z) := by |
| 63 | let E := Pseudofunctor.DescentData.toDescentDataCompPullFunctorIso AlgebraicGeometry.Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks |
| 64 | (f := fun (_ : PUnit.{1}) => f) (f' := fun (_ : PUnit.{1}) => g) (p := b) |
| 65 | (α := fun (_ : PUnit.{1}) => PUnit.unit) (p' := fun (_ : PUnit.{1}) => a) (fun _ => h) |
| 66 | have hz := E.inv.naturality z |
| 67 | exact congrArg (fun w => w.hom PUnit.unit) hz |
| 68 | |
| 69 | def comparison (p : T ⟶ V) : |
| 70 | (Scheme.Modules.pullback p).obj |
| 71 | ((Scheme.Modules.pullback g).obj ((Scheme.Modules.pullback b).obj L)) ⟶ |
| 72 | (Scheme.Modules.pullback (p ≫ a)).obj ((Scheme.Modules.pullback f).obj L) := |
| 73 | (Scheme.Modules.pullback p).map (sourceIso f g a b h L).hom ≫ |
| 74 | (Scheme.Modules.pullbackComp p a).hom.app ((Scheme.Modules.pullback f).obj L) |
| 75 | |
| 76 | include h in |
| 77 | theorem square_condition (p q : T ⟶ V) (hpq : p ≫ g = q ≫ g) : |
| 78 | (p ≫ a) ≫ f = (q ≫ a) ≫ f := by |
| 79 | simpa only [Category.assoc, h] using congrArg (fun z => z ≫ b) hpq |
| 80 | |
| 81 | private theorem gluingDatum (p q : T ⟶ V) (hpq : p ≫ g = q ≫ g) : |
| 82 | (Scheme.Modules.pullback p).map (sourceIso f g a b h L).hom ≫ |
| 83 | (AlgebraicGeometry.Picard.PoincareBundle.Ordinary.SquareGluing.pulledDatum f g a b h |
| 84 | (AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.baseDatum f L)).hom (q ≫ g) |
| 85 | (i₁ := PUnit.unit) (i₂ := PUnit.unit) p q hpq rfl = |
| 86 | (AlgebraicGeometry.Picard.PoincareBundle.Recovered.OrdinaryDatum.Ordinary.baseDatum g ((Scheme.Modules.pullback b).obj L)).hom |
| 87 | (q ≫ g) (i₁ := PUnit.unit) (i₂ := PUnit.unit) p q hpq rfl ≫ |
| 88 | (Scheme.Modules.pullback q).map (sourceIso f g a b h L).hom := by |
| 89 | let d := (AlgebraicGeometry.Picard.PoincareBundle.Recovered.SquareDescent.canonicalSquareIso f g a b h L).symm |
| 90 | exact d.hom.comm (q ≫ g) (i₁ := PUnit.unit) (i₂ := PUnit.unit) p q hpq rfl |
| 91 | |
| 92 | private theorem gluing_of_comm {C : Type*} [Category C] |
| 93 | {A₁ A₂ B₁ B₂ D₁ D₂ : C} |
| 94 | (a : A₁ ⟶ B₁) (b : A₂ ⟶ B₂) (f : A₁ ⟶ A₂) (g : D₁ ⟶ D₂) |
| 95 | (e₁ : B₁ ≅ D₁) (e₂ : B₂ ≅ D₂) |
| 96 | (h : a ≫ (e₁.hom ≫ g ≫ e₂.inv) = f ≫ b) : |
| 97 | f ≫ (b ≫ e₂.hom) = (a ≫ e₁.hom) ≫ g := by |
| 98 | have h' := congrArg (fun z => z ≫ e₂.hom) h |
| 99 | simpa only [Category.assoc, e₂.inv_hom_id, Category.comp_id] using h'.symm |
| 100 | |
| 101 | theorem gluing (p q : T ⟶ V) (hpq : p ≫ g = q ≫ g) : |
| 102 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing g p q hpq).hom.app ((Scheme.Modules.pullback b).obj L) ≫ |
| 103 | comparison f g a b h L q = |
| 104 | comparison f g a b h L p ≫ |
| 105 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f (p ≫ a) (q ≫ a) |
| 106 | (square_condition f g a b h p q hpq)).hom.app L := by |
| 107 | have hd := gluingDatum f g a b h L p q hpq |
| 108 | rw [AlgebraicGeometry.Picard.PoincareBundle.Ordinary.SquareGluing.pulledHom, baseDatum_hom, baseDatum_hom] at hd |
| 109 | change (Scheme.Modules.pullback p).map (sourceIso f g a b h L).hom ≫ |
| 110 | ((Scheme.Modules.pullbackComp p a).hom.app ((Scheme.Modules.pullback f).obj L) ≫ |
| 111 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f (p ≫ a) (q ≫ a) (square_condition f g a b h p q hpq)).hom.app L ≫ |
| 112 | (Scheme.Modules.pullbackComp q a).inv.app ((Scheme.Modules.pullback f).obj L)) = |
| 113 | (AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing g p q hpq).hom.app ((Scheme.Modules.pullback b).obj L) ≫ |
| 114 | (Scheme.Modules.pullback q).map (sourceIso f g a b h L).hom at hd |
| 115 | exact gluing_of_comm |
| 116 | ((Scheme.Modules.pullback p).map (sourceIso f g a b h L).hom) |
| 117 | ((Scheme.Modules.pullback q).map (sourceIso f g a b h L).hom) |
| 118 | ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing g p q hpq).hom.app ((Scheme.Modules.pullback b).obj L)) |
| 119 | ((AlgebraicGeometry.Picard.PoincareBundle.Cech.MateNormalization.standardGluing f (p ≫ a) (q ≫ a) (square_condition f g a b h p q hpq)).hom.app L) |
| 120 | ((Scheme.Modules.pullbackComp p a).app ((Scheme.Modules.pullback f).obj L)) |
| 121 | ((Scheme.Modules.pullbackComp q a).app ((Scheme.Modules.pullback f).obj L)) hd |
| 122 | |
| 123 | variable {L} (t : (Scheme.Modules.pullback f).obj L ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U) |
| 124 | |
| 125 | def frame : (Scheme.Modules.pullback g).obj ((Scheme.Modules.pullback b).obj L) ≅ |
| 126 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule V := |
| 127 | sourceIso f g a b h L ≪≫ LineFrame.Comparison.frameAt f t a |
| 128 | |
| 129 | theorem frame_at (p : T ⟶ V) : |
| 130 | (LineFrame.Comparison.frameAt g (frame f g a b h t) p).hom = |
| 131 | comparison f g a b h L p ≫ (LineFrame.Comparison.frameAt f t (p ≫ a)).hom := by |
| 132 | change (Scheme.Modules.pullback p).map |
| 133 | ((sourceIso f g a b h L).hom ≫ (LineFrame.Comparison.frameAt f t a).hom) ≫ |
| 134 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso p).hom = _ |
| 135 | rw [Functor.map_comp, Category.assoc, LineFrameCocycle.frame_pullback] |
| 136 | exact (Category.assoc _ _ _).symm |
| 137 | |
| 138 | theorem transition (p q : T ⟶ V) (hpq : p ≫ g = q ≫ g) : |
| 139 | LineFrameCocycle.transition g (frame f g a b h t) p q hpq = |
| 140 | LineFrameCocycle.transition f t (p ≫ a) (q ≫ a) |
| 141 | (square_condition f g a b h p q hpq) := by |
| 142 | apply congrArg AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.unitOfIso |
| 143 | apply Iso.ext |
| 144 | apply (cancel_epi (LineFrame.Comparison.frameAt g (frame f g a b h t) p).hom).mp |
| 145 | simp only [LineFrameCocycle.transitionIso, Iso.trans_hom, Iso.symm_hom, |
| 146 | Iso.hom_inv_id_assoc] |
| 147 | rw [frame_at, frame_at] |
| 148 | simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 149 | exact (Category.assoc _ _ _).symm.trans |
| 150 | ((congrArg (fun z => z ≫ (LineFrame.Comparison.frameAt f t (q ≫ a)).hom) |
| 151 | (gluing f g a b h L p q hpq)).trans (Category.assoc _ _ _)) |
| 152 | |
| 153 | /-- Restriction to a new relation scheme agrees with the transition |
| 154 | of the pulled frame, including for a closed base change. -/ |
| 155 | theorem transition_square {T₀ : Scheme.{u}} |
| 156 | (p q : T ⟶ U) (hpq : p ≫ f = q ≫ f) |
| 157 | (p₀ q₀ : T₀ ⟶ V) (hpq₀ : p₀ ≫ g = q₀ ≫ g) (r : T₀ ⟶ T) |
| 158 | (hp : r ≫ p = p₀ ≫ a) (hq : r ≫ q = q₀ ≫ a) : |
| 159 | Units.map r.appTop.hom.toMonoidHom (LineFrameCocycle.transition f t p q hpq) = |
| 160 | LineFrameCocycle.transition g (frame f g a b h t) p₀ q₀ hpq₀ := by |
| 161 | rw [LineFrameCocycle.transition_restrict] |
| 162 | simpa only [hp, hq] using (transition f g a b h t p₀ q₀ hpq₀).symm |
| 163 | |
| 164 | theorem transition_one_of_reduced_frame {T₀ : Scheme.{u}} |
| 165 | (p q : T ⟶ U) (hpq : p ≫ f = q ≫ f) |
| 166 | (p₀ q₀ : T₀ ⟶ V) (hpq₀ : p₀ ≫ g = q₀ ≫ g) (r : T₀ ⟶ T) |
| 167 | (hp : r ≫ p = p₀ ≫ a) (hq : r ≫ q = q₀ ≫ a) |
| 168 | (e : (Scheme.Modules.pullback b).obj L ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule Y) |
| 169 | (ht : frame f g a b h t = |
| 170 | (Scheme.Modules.pullback g).mapIso e ≪≫ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso g) : |
| 171 | Units.map r.appTop.hom.toMonoidHom (LineFrameCocycle.transition f t p q hpq) = 1 := by |
| 172 | rw [transition_square f g a b h t p q hpq p₀ q₀ hpq₀ r hp hq, ht] |
| 173 | exact global_frame_transition g e p₀ q₀ hpq₀ |
| 174 | |
| 175 | /-- The correction comparing two frames restricts by the actual map |
| 176 | on global units, including along a closed thickening. -/ |
| 177 | theorem correction {M : X.Modules} |
| 178 | (s : (Scheme.Modules.pullback f).obj M ≅ AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U) (e : L ≅ M) : |
| 179 | LineFrame.Comparison.correction g (frame f g a b h t) (frame f g a b h s) |
| 180 | ((Scheme.Modules.pullback b).mapIso e) = |
| 181 | Units.map a.appTop.hom.toMonoidHom (LineFrame.Comparison.correction f t s e) := by |
| 182 | let t' := frame f g a b h t |
| 183 | let s' := frame f g a b h s |
| 184 | let e' := (Scheme.Modules.pullback b).mapIso e |
| 185 | let v := LineFrame.Comparison.correction f t s e |
| 186 | have hn : t'.hom ≫ AlgebraicGeometry.Isogenies.NeighborCounting.ModuleScalar.scalarEnd (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.structureModule V) (a.appTop v.val) = |
| 187 | (Scheme.Modules.pullback g).map e'.hom ≫ s'.hom := by |
| 188 | change ((sourceIso f g a b h L).hom ≫ (LineFrame.Comparison.frameAt f t a).hom) ≫ _ = |
| 189 | (Scheme.Modules.pullback g).map ((Scheme.Modules.pullback b).map e.hom) ≫ |
| 190 | ((sourceIso f g a b h M).hom ≫ (LineFrame.Comparison.frameAt f s a).hom) |
| 191 | rw [Category.assoc, ← LineFrame.Comparison.correction_at f t s e a, |
| 192 | ← Category.assoc, ← sourceIso_natural f g a b h L e.hom, Category.assoc] |
| 193 | have hc := LineFrame.Comparison.correction_spec g t' s' e' |
| 194 | have heq := (cancel_epi t'.hom).mp (hc.trans hn.symm) |
| 195 | apply Units.ext |
| 196 | change (LineFrame.Comparison.correction g t' s' e').val = a.appTop v.val |
| 197 | simpa only [LineTrivializationCoboundary.scalar_value] using |
| 198 | congrArg AlgebraicGeometry.Picard.PoincareBundle.Line.FrameUnits.scalar heq |
| 199 | |
| 200 | open scoped TensorProduct |
| 201 | |
| 202 | /-- The map on residue coefficients, viewed over the original scalar rings. -/ |
| 203 | private def quotientScalarMap (R S : Type u) [CommRing R] [CommRing S] |
| 204 | (φ : R →+* S) (I : Ideal R) (J : Ideal S) (hIJ : I ≤ J.comap φ) : |
| 205 | (R ⧸ I) →ₛₗ[φ] (S ⧸ J) where |
| 206 | toFun := Ideal.quotientMap J φ hIJ |
| 207 | map_add' := (Ideal.quotientMap J φ hIJ).map_add |
| 208 | map_smul' r x := by |
| 209 | change (Ideal.quotientMap J φ hIJ) (Ideal.Quotient.mk I r * x) = |
| 210 | Ideal.Quotient.mk J (φ r) * (Ideal.quotientMap J φ hIJ) x |
| 211 | rw [map_mul, Ideal.quotientMap_mk] |
| 212 | |
| 213 | /-- Restrict a line together with its quotient coefficients. -/ |
| 214 | def lineMap (R S : Type u) [CommRing R] [CommRing S] |
| 215 | (φ : R →+* S) (I : Ideal R) (J : Ideal S) (hIJ : I ≤ J.comap φ) |
| 216 | (M : ModuleCat.{u} R) (N : ModuleCat.{u} S) (f : M →ₛₗ[φ] N) : |
| 217 | ((R ⧸ I) ⊗[R] M) →ₛₗ[φ] ((S ⧸ J) ⊗[S] N) := |
| 218 | TensorProduct.map (quotientScalarMap R S φ I J hIJ) f |
| 219 | |
| 220 | theorem lineMap_tmul (R S : Type u) [CommRing R] [CommRing S] |
| 221 | (φ : R →+* S) (I : Ideal R) (J : Ideal S) (hIJ : I ≤ J.comap φ) |
| 222 | (M : ModuleCat.{u} R) (N : ModuleCat.{u} S) (f : M →ₛₗ[φ] N) |
| 223 | (a : R ⧸ I) (x : M) : |
| 224 | lineMap R S φ I J hIJ M N f (a ⊗ₜ[R] x) = |
| 225 | Ideal.quotientMap J φ hIJ a ⊗ₜ[S] f x := |
| 226 | TensorProduct.map_tmul _ _ _ _ |
| 227 | |
| 228 | theorem lineFrame_symm_tmul (R : Type u) [CommRing R] (I : Ideal R) |
| 229 | (M : ModuleCat.{u} R) (e : M ≅ ModuleCat.of R R) (a : R ⧸ I) : |
| 230 | (LineValuedKoszulPurity.lineFrame R I M e).symm a = a ⊗ₜ[R] e.inv 1 := by |
| 231 | apply (LineValuedKoszulPurity.lineFrame R I M e).injective |
| 232 | rw [LinearEquiv.apply_symm_apply, LineValuedKoszulPurity.lineFrame_tmul] |
| 233 | have he : e.hom (e.inv 1) = 1 := ConcreteCategory.congr_hom e.inv_hom_id 1 |
| 234 | rw [he, map_one, mul_one] |
| 235 | |
| 236 | theorem lineFrame_symm_map (R S : Type u) [CommRing R] [CommRing S] |
| 237 | (φ : R →+* S) (I : Ideal R) (J : Ideal S) (hIJ : I ≤ J.comap φ) |
| 238 | (M : ModuleCat.{u} R) (N : ModuleCat.{u} S) (f : M →ₛₗ[φ] N) |
| 239 | (eR : M ≅ ModuleCat.of R R) (eS : N ≅ ModuleCat.of S S) |
| 240 | (he : ∀ x, eS.hom (f x) = φ (eR.hom x)) (a : R ⧸ I) : |
| 241 | lineMap R S φ I J hIJ M N f ((LineValuedKoszulPurity.lineFrame R I M eR).symm a) = |
| 242 | (LineValuedKoszulPurity.lineFrame S J N eS).symm (Ideal.quotientMap J φ hIJ a) := by |
| 243 | rw [lineFrame_symm_tmul, lineMap_tmul, lineFrame_symm_tmul] |
| 244 | apply congrArg (fun x : N => Ideal.quotientMap J φ hIJ a ⊗ₜ[S] x) |
| 245 | apply eS.toLinearEquiv.injective |
| 246 | change eS.hom (f (eR.inv 1)) = eS.hom (eS.inv 1) |
| 247 | have hR : eR.hom (eR.inv 1) = 1 := ConcreteCategory.congr_hom eR.inv_hom_id 1 |
| 248 | have hS : eS.hom (eS.inv 1) = 1 := ConcreteCategory.congr_hom eS.inv_hom_id 1 |
| 249 | rw [he, hR, hS, map_one] |
| 250 | |
| 251 | end |
| 252 | |
| 253 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LineFrameBaseChange |