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.LineCharacterDetection |
| 2 | |
| 3 | /-! # Line Character Independence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LineCharacterIndependence.Construction.KernelCharacters |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # CartierDuality: kernel characters are independent of line-bundle presentations |
| 11 | |
| 12 | The scalar comes from the actual descent isomorphism. Isomorphic line |
| 13 | bundles give the same scalar for every choice of pullback trivialization. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | /-- Structure-module endomorphisms commute because they are global scalars. -/ |
| 22 | theorem structureModuleEnd_comm (T : Scheme.{u}) (a b : End (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule T)) : |
| 23 | a ≫ b = b ≫ a := by |
| 24 | apply AbelianModuli.HilbertConstruction.Global.Sections.structureModuleEndValue_injective T |
| 25 | change AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue T (b * a) = AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue T (a * b) |
| 26 | rw [map_mul, map_mul, mul_comm] |
| 27 | |
| 28 | /-- Changing frames by the same invertible scalar at both endpoints |
| 29 | does not change the scalar of a compatible gluing map. -/ |
| 30 | theorem framed_map_eq {C : Type*} [Category C] {U M₁ M₂ N₁ N₂ : C} |
| 31 | (hc : ∀ a b : End U, a ≫ b = b ≫ a) |
| 32 | (e₁ : M₁ ≅ U) (e₂ : M₂ ≅ U) (d₁ : N₁ ≅ U) (d₂ : N₂ ≅ U) |
| 33 | (b₁ : M₁ ≅ N₁) (b₂ : M₂ ≅ N₂) (a : M₁ ⟶ M₂) (c : N₁ ⟶ N₂) |
| 34 | (hb : b₁.hom ≫ c = a ≫ b₂.hom) |
| 35 | (hr : e₁.inv ≫ b₁.hom ≫ d₁.hom = e₂.inv ≫ b₂.hom ≫ d₂.hom) : |
| 36 | e₁.inv ≫ a ≫ e₂.hom = d₁.inv ≫ c ≫ d₂.hom := by |
| 37 | let r : End U := e₂.inv ≫ b₂.hom ≫ d₂.hom |
| 38 | have : IsIso r := by dsimp [r]; infer_instance |
| 39 | apply (cancel_mono r).mp |
| 40 | calc |
| 41 | (e₁.inv ≫ a ≫ e₂.hom) ≫ r = e₁.inv ≫ a ≫ b₂.hom ≫ d₂.hom := by |
| 42 | simp only [r, Category.assoc, Iso.hom_inv_id_assoc] |
| 43 | _ = e₁.inv ≫ b₁.hom ≫ c ≫ d₂.hom := by rw [← Category.assoc a, ← hb, Category.assoc] |
| 44 | _ = (e₁.inv ≫ b₁.hom ≫ d₁.hom) ≫ (d₁.inv ≫ c ≫ d₂.hom) := by |
| 45 | simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 46 | _ = r ≫ (d₁.inv ≫ c ≫ d₂.hom) := by rw [hr] |
| 47 | _ = (d₁.inv ≫ c ≫ d₂.hom) ≫ r := hc _ _ |
| 48 | |
| 49 | /-- The change between two pulled-back frames is the pullback of the |
| 50 | actual change-of-frame endomorphism. -/ |
| 51 | theorem pulledFrame_change {X T : Scheme.{u}} {L M : X.Modules} |
| 52 | (e : L ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) (d : M ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) (b : L ⟶ M) (x : T ⟶ X) : |
| 53 | (Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame e x).inv ≫ (Scheme.Modules.pullback x).map b ≫ |
| 54 | (Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame d x).hom = Picard.Homomorphisms.UnitPullbackScalars.Construction.unitEndPullback x (e.inv ≫ b ≫ d.hom) := by |
| 55 | simp only [Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame, Iso.trans_inv, Iso.trans_hom, Functor.mapIso_inv, |
| 56 | Functor.mapIso_hom, Picard.Homomorphisms.UnitPullbackScalars.Construction.unitEndPullback, Functor.map_comp, Category.assoc] |
| 57 | |
| 58 | /-- Native canonical descent is natural in the original module morphism. -/ |
| 59 | theorem canonicalDescent_naturality {X Y T : Scheme.{u}} (f : X ⟶ Y) |
| 60 | {L M : Y.Modules} (b : L ⟶ M) (q : T ⟶ Y) (x y : T ⟶ X) |
| 61 | (hx : x ≫ f = q) (hy : y ≫ f = q) : |
| 62 | (Scheme.Modules.pullback x).map ((Scheme.Modules.pullback f).map b) ≫ |
| 63 | (Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent f M).hom q x y hx hy = |
| 64 | (Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent f L).hom q x y hx hy ≫ |
| 65 | (Scheme.Modules.pullback y).map ((Scheme.Modules.pullback f).map b) := by |
| 66 | let Cx := Scheme.Modules.pullbackComp x f ≪≫ Scheme.Modules.pullbackCongr hx |
| 67 | let Cy := Scheme.Modules.pullbackComp y f ≪≫ Scheme.Modules.pullbackCongr hy |
| 68 | have hn : (Scheme.Modules.pullback x).map ((Scheme.Modules.pullback f).map b) ≫ Cx.hom.app M = |
| 69 | Cx.hom.app L ≫ (Scheme.Modules.pullback q).map b := Cx.hom.naturality b |
| 70 | have hm : (Scheme.Modules.pullback q).map b ≫ Cy.inv.app M = |
| 71 | Cy.inv.app L ≫ (Scheme.Modules.pullback y).map ((Scheme.Modules.pullback f).map b) := |
| 72 | Cy.inv.naturality b |
| 73 | rw [Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent_hom, Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent_hom] |
| 74 | change (Scheme.Modules.pullback x).map ((Scheme.Modules.pullback f).map b) ≫ |
| 75 | (Cx.hom.app M ≫ Cy.inv.app M) = |
| 76 | (Cx.hom.app L ≫ Cy.inv.app L) ≫ |
| 77 | (Scheme.Modules.pullback y).map ((Scheme.Modules.pullback f).map b) |
| 78 | calc |
| 79 | _ = Cx.hom.app L ≫ (Scheme.Modules.pullback q).map b ≫ Cy.inv.app M := by |
| 80 | rw [← Category.assoc, hn, Category.assoc] |
| 81 | _ = _ := by rw [hm, Category.assoc] |
| 82 | |
| 83 | /-- Equal pullbacks of global functions give equal pullbacks of their |
| 84 | structure-module endomorphisms. -/ |
| 85 | theorem unitEndPullback_eq_of_same_base {S X T : Scheme.{u}} (p : X ⟶ S) |
| 86 | (hp : Function.Surjective p.appTop) (x y : T ⟶ X) (hxy : x ≫ p = y ≫ p) |
| 87 | (a : End (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X)) : Picard.Homomorphisms.UnitPullbackScalars.Construction.unitEndPullback x a = Picard.Homomorphisms.UnitPullbackScalars.Construction.unitEndPullback y a := by |
| 88 | apply AbelianModuli.HilbertConstruction.Global.Sections.structureModuleEndValue_injective T |
| 89 | rw [Picard.Homomorphisms.UnitPullbackScalars.Construction.unitEndPullback_scalar, Picard.Homomorphisms.UnitPullbackScalars.Construction.unitEndPullback_scalar] |
| 90 | obtain ⟨r, hr⟩ := hp (AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue X a) |
| 91 | rw [← hr] |
| 92 | exact congrArg (fun f : T ⟶ S => f.appTop r) hxy |
| 93 | |
| 94 | /-- Compatible line-bundle presentations have exactly the same descent |
| 95 | scalar whenever functions on the source come from the common base. -/ |
| 96 | theorem canonicalScalar_eq_of_lineIso |
| 97 | {S X Y T : Scheme.{u}} (p : X ⟶ S) (hp : Function.Surjective p.appTop) (f : X ⟶ Y) |
| 98 | (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle Y) (b : L.sheaf ≅ M.sheaf) |
| 99 | (e : (Scheme.Modules.pullback f).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) |
| 100 | (d : (Scheme.Modules.pullback f).obj M.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) |
| 101 | (q : T ⟶ Y) (x y : T ⟶ X) (hx : x ≫ f = q) (hy : y ≫ f = q) |
| 102 | (hxy : x ≫ p = y ≫ p) : |
| 103 | Picard.Homomorphisms.FramedDescentScalars.Construction.framedDescentScalar (Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent f L.sheaf) e q x y hx hy = |
| 104 | Picard.Homomorphisms.FramedDescentScalars.Construction.framedDescentScalar (Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent f M.sheaf) d q x y hx hy := by |
| 105 | apply congrArg (AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue T) |
| 106 | apply framed_map_eq (structureModuleEnd_comm T) |
| 107 | (Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame e x) (Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame e y) |
| 108 | (Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame d x) (Picard.Homomorphisms.FramedDescentScalars.Construction.pulledModuleFrame d y) |
| 109 | ((Scheme.Modules.pullback x).mapIso ((Scheme.Modules.pullback f).mapIso b)) |
| 110 | ((Scheme.Modules.pullback y).mapIso ((Scheme.Modules.pullback f).mapIso b)) |
| 111 | _ _ (canonicalDescent_naturality f b.hom q x y hx hy) |
| 112 | exact (pulledFrame_change e d ((Scheme.Modules.pullback f).map b.hom) x).trans |
| 113 | ((unitEndPullback_eq_of_same_base p hp x y hxy _).trans |
| 114 | (pulledFrame_change e d ((Scheme.Modules.pullback f).map b.hom) y).symm) |
| 115 | |
| 116 | /-- An explicit native formula for the actual kernel scalar avoids |
| 117 | unfolding the entire descent object when making comparisons. -/ |
| 118 | theorem lineKernelScalar_formula {S : Scheme.{u}} {A B : Over S} [GrpObj A] [GrpObj B] |
| 119 | (f : A ⟶ B) [IsMonHom f] (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle B.left) |
| 120 | (e : (Scheme.Modules.pullback f.left).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) : |
| 121 | (Picard.Homomorphisms.LineKernelCocycle.Construction.pullbackLineKernelCocycle f L e).kernelScalar = |
| 122 | Picard.Homomorphisms.FramedDescentScalars.Construction.framedDescentScalar (Picard.Homomorphisms.CanonicalDescentFrames.Construction.canonicalModuleDescent f.left L.sheaf) e |
| 123 | ((1 : Picard.Homomorphisms.Kernel.Construction.kernelScheme f ⟶ A) ≫ f).left (1 : Picard.Homomorphisms.Kernel.Construction.kernelScheme f ⟶ A).left |
| 124 | ((1 : Picard.Homomorphisms.Kernel.Construction.kernelScheme f ⟶ A) * (𝟙 (Picard.Homomorphisms.Kernel.Construction.kernelScheme f) ≫ Picard.Homomorphisms.Kernel.Construction.kernelInclusion f)).left rfl |
| 125 | (congrArg Over.Hom.left (Picard.Homomorphisms.LineKernelCocycle.Construction.kernel_translate_comp f 1 (𝟙 _))) := rfl |
| 126 | |
| 127 | variable {k : Type u} [Field k] |
| 128 | {A B : Over (Spec (.of k))} [GrpObj A] [GrpObj B] (f : A ⟶ B) [IsMonHom f] |
| 129 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] |
| 130 | |
| 131 | /-- Isomorphic actual line bundles give identical kernel scalars, |
| 132 | independently of the chosen trivializations. -/ |
| 133 | theorem lineKernelScalar_eq_of_iso (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle B.left) (b : L.sheaf ≅ M.sheaf) |
| 134 | (e : (Scheme.Modules.pullback f.left).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) |
| 135 | (d : (Scheme.Modules.pullback f.left).obj M.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) : |
| 136 | (Picard.Homomorphisms.LineKernelCocycle.Construction.pullbackLineKernelCocycle f L e).kernelScalar = |
| 137 | (Picard.Homomorphisms.LineKernelCocycle.Construction.pullbackLineKernelCocycle f M d).kernelScalar := by |
| 138 | have : IsIso A.hom.appTop := Picard.Homomorphisms.ProperGroupFunctions.Construction.properGroup_appTop_isIso A |
| 139 | have hp := (ConcreteCategory.bijective_of_isIso A.hom.appTop).surjective |
| 140 | let x : Picard.Homomorphisms.Kernel.Construction.kernelScheme f ⟶ A := 1 |
| 141 | let y : Picard.Homomorphisms.Kernel.Construction.kernelScheme f ⟶ A := x * (𝟙 (Picard.Homomorphisms.Kernel.Construction.kernelScheme f) ≫ Picard.Homomorphisms.Kernel.Construction.kernelInclusion f) |
| 142 | have hs := canonicalScalar_eq_of_lineIso A.hom hp f.left L M b e d (x ≫ f).left x.left y.left rfl |
| 143 | (congrArg Over.Hom.left (Picard.Homomorphisms.LineKernelCocycle.Construction.kernel_translate_comp f x (𝟙 _))) |
| 144 | ((Over.w x).trans (Over.w y).symm) |
| 145 | exact (lineKernelScalar_formula f L e).trans (hs.trans (lineKernelScalar_formula f M d).symm) |
| 146 | |
| 147 | /-- The Hopf-coordinate character depends only on the actual original |
| 148 | line-bundle isomorphism class, and on no choice of frame. -/ |
| 149 | theorem lineKernelCharacter_eq_of_iso (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle B.left) (b : L.sheaf ≅ M.sheaf) |
| 150 | (e : (Scheme.Modules.pullback f.left).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) |
| 151 | (d : (Scheme.Modules.pullback f.left).obj M.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) |
| 152 | [IsAffine (Picard.Homomorphisms.Kernel.Construction.kernelScheme f).left] (R : CommHopfAlgCat k) |
| 153 | (i : ((hopfSpec (.of k)).obj (.op R)).X ⟶ Picard.Homomorphisms.Kernel.Construction.kernelScheme f) [IsMonHom i] : |
| 154 | Picard.Homomorphisms.LineKernelCharacters.Construction.lineKernelCoordinateCharacter L e R i = Picard.Homomorphisms.LineKernelCharacters.Construction.lineKernelCoordinateCharacter M d R i := by |
| 155 | apply GroupLike.ext |
| 156 | exact congrArg (fun r => (Scheme.ΓSpecIso (.of R)).hom (i.left.appTop r)) |
| 157 | (lineKernelScalar_eq_of_iso f L M b e d) |
| 158 | |
| 159 | /-- The actual character attached to a class in the pullback kernel. |
| 160 | The computation theorem below makes its independence of all choices explicit. -/ |
| 161 | def pullbackClassCharacter [IsAffine (Picard.Homomorphisms.Kernel.Construction.kernelScheme f).left] (R : CommHopfAlgCat k) |
| 162 | (i : ((hopfSpec (.of k)).obj (.op R)).X ⟶ Picard.Homomorphisms.Kernel.Construction.kernelScheme f) [IsMonHom i] |
| 163 | (q : {q : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.IsoClass B.left // |
| 164 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass f.left q = AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivialClass A.left}) : GroupLike k R := |
| 165 | Picard.Homomorphisms.LineKernelCharacters.Construction.lineKernelCoordinateCharacter (Classical.choose (LineCharacterDetection.Construction.KernelCharacters.exists_trivialized_representative f q)) |
| 166 | (Classical.choice (Classical.choose_spec (LineCharacterDetection.Construction.KernelCharacters.exists_trivialized_representative f q)).2) R i |
| 167 | |
| 168 | /-- The class character can be computed using any representative and |
| 169 | any actual trivialization of its pullback. -/ |
| 170 | theorem pullbackClassCharacter_eq [IsAffine (Picard.Homomorphisms.Kernel.Construction.kernelScheme f).left] (R : CommHopfAlgCat k) |
| 171 | (i : ((hopfSpec (.of k)).obj (.op R)).X ⟶ Picard.Homomorphisms.Kernel.Construction.kernelScheme f) [IsMonHom i] |
| 172 | (q : {q : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.IsoClass B.left // |
| 173 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass f.left q = AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivialClass A.left}) |
| 174 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle B.left) (hL : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L = q.val) |
| 175 | (e : (Scheme.Modules.pullback f.left).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) : |
| 176 | pullbackClassCharacter f R i q = Picard.Homomorphisms.LineKernelCharacters.Construction.lineKernelCoordinateCharacter L e R i := by |
| 177 | let M := Classical.choose (LineCharacterDetection.Construction.KernelCharacters.exists_trivialized_representative f q) |
| 178 | have hM : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf M = q.val ∧ |
| 179 | Nonempty ((Scheme.Modules.pullback f.left).obj M.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left) := |
| 180 | Classical.choose_spec (LineCharacterDetection.Construction.KernelCharacters.exists_trivialized_representative f q) |
| 181 | have b : Nonempty (M.sheaf ≅ L.sheaf) := Quotient.exact (hM.1.trans hL.symm) |
| 182 | exact lineKernelCharacter_eq_of_iso f M L b.some hM.2.some e R i |
| 183 | |
| 184 | /-- The canonical character distinguishes actual line-bundle classes |
| 185 | when the native group morphism is a faithfully flat cover. -/ |
| 186 | theorem pullbackClassCharacter_injective [IsAffine (Picard.Homomorphisms.Kernel.Construction.kernelScheme f).left] |
| 187 | [Flat f.left] [Surjective f.left] [QuasiCompact f.left] |
| 188 | (R : CommHopfAlgCat k) |
| 189 | (i : ((hopfSpec (.of k)).obj (.op R)).X ≅ Picard.Homomorphisms.Kernel.Construction.kernelScheme f) [IsMonHom i.hom] : |
| 190 | Function.Injective (pullbackClassCharacter f R i.hom) := by |
| 191 | intro q r h |
| 192 | obtain ⟨L, hL, ⟨e⟩⟩ := LineCharacterDetection.Construction.KernelCharacters.exists_trivialized_representative f q |
| 193 | obtain ⟨M, hM, ⟨d⟩⟩ := LineCharacterDetection.Construction.KernelCharacters.exists_trivialized_representative f r |
| 194 | have hc : Picard.Homomorphisms.LineKernelCharacters.Construction.lineKernelCoordinateCharacter L e R i.hom = Picard.Homomorphisms.LineKernelCharacters.Construction.lineKernelCoordinateCharacter M d R i.hom := |
| 195 | (pullbackClassCharacter_eq f R i.hom q L hL e).symm.trans |
| 196 | (h.trans (pullbackClassCharacter_eq f R i.hom r M hM d)) |
| 197 | have he : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L = AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf M := |
| 198 | Quotient.sound (LineCharacterDetection.Construction.KernelCharacters.line_iso_of_character_eq f L M e d R i hc) |
| 199 | exact Subtype.ext (hL.symm.trans (he.trans hM)) |
| 200 | |
| 201 | end |
| 202 | |
| 203 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LineCharacterIndependence.Construction.KernelCharacters |