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.ArithmeticGeometry.Descent.CMVariety.ModuliObjects |
| 2 | |
| 3 | /-! # Unpolarized Comparisons -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.UnpolarizedComparisons.Abelian |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Comparisons retaining the group, dual Poincare class, level, and designated |
| 11 | endomorphisms. Equality of their transported polarization maps upgrades |
| 12 | the comparison to a full enhanced isomorphism. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.MonoidalCategory |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | variable {g N r : ℕ} {δ : Fin g → ℕ} {S : Scheme} |
| 19 | |
| 20 | structure UnpolarizedEnhancedIso (A B : ModuliObjects.Abelian.EnhancedAbelianData g δ N r S) where |
| 21 | abelian : A.polarized.abelian.scheme ≅ B.polarized.abelian.scheme |
| 22 | dual : A.polarized.dual.abelian.scheme ≅ B.polarized.dual.abelian.scheme |
| 23 | abelianGroup : IsMonHom abelian.hom |
| 24 | dualGroup : IsMonHom dual.hom |
| 25 | poincare : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass (dual.hom ⊗ₘ abelian.hom).left |
| 26 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf B.polarized.dual.poincare) = |
| 27 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf A.polarized.dual.poincare |
| 28 | level : ∀ (T : Over S) |
| 29 | (c : LocallyConstant T.left (Multiplicative (Fin (2 * g) → ZMod N))), |
| 30 | (A.polarized.level.hom.app (.op T) c).val ≫ abelian.hom = |
| 31 | (B.polarized.level.hom.app (.op T) c).val |
| 32 | equivariant : ∀ i, A.endomorphism i ≫ abelian.hom = abelian.hom ≫ B.endomorphism i |
| 33 | |
| 34 | attribute [instance] UnpolarizedEnhancedIso.abelianGroup UnpolarizedEnhancedIso.dualGroup |
| 35 | |
| 36 | namespace UnpolarizedEnhancedIso |
| 37 | |
| 38 | variable {A B C : ModuliObjects.Abelian.EnhancedAbelianData g δ N r S} |
| 39 | |
| 40 | def ofEnhanced (e : ModuliObjects.Abelian.EnhancedAbelianIso A B) : UnpolarizedEnhancedIso A B where |
| 41 | abelian := e.polarized.abelian |
| 42 | dual := e.polarized.dual |
| 43 | abelianGroup := e.polarized.abelianGroup |
| 44 | dualGroup := e.polarized.dualGroup |
| 45 | poincare := e.polarized.poincare |
| 46 | level := e.polarized.level |
| 47 | equivariant := e.equivariant |
| 48 | |
| 49 | def productIso (e : UnpolarizedEnhancedIso A B) : |
| 50 | (A.polarized.dual.abelian.scheme ⊗ A.polarized.abelian.scheme).left ≅ |
| 51 | (B.polarized.dual.abelian.scheme ⊗ B.polarized.abelian.scheme).left := |
| 52 | (Over.forget S).mapIso (e.dual ⊗ᵢ e.abelian) |
| 53 | |
| 54 | def symm (e : UnpolarizedEnhancedIso A B) : UnpolarizedEnhancedIso B A where |
| 55 | abelian := e.abelian.symm |
| 56 | dual := e.dual.symm |
| 57 | abelianGroup := inferInstanceAs (IsMonHom e.abelian.inv) |
| 58 | dualGroup := inferInstanceAs (IsMonHom e.dual.inv) |
| 59 | poincare := |
| 60 | (congrArg (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass e.productIso.inv) e.poincare.symm).trans |
| 61 | ((AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackIso e.productIso).left_inv |
| 62 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf B.polarized.dual.poincare)) |
| 63 | level T c := by |
| 64 | calc |
| 65 | (B.polarized.level.hom.app (.op T) c).val ≫ e.abelian.inv = |
| 66 | ((A.polarized.level.hom.app (.op T) c).val ≫ e.abelian.hom) ≫ e.abelian.inv := |
| 67 | congrArg (fun a => a ≫ e.abelian.inv) (e.level T c).symm |
| 68 | _ = (A.polarized.level.hom.app (.op T) c).val := by simp |
| 69 | equivariant i := by |
| 70 | change B.endomorphism i ≫ e.abelian.inv = e.abelian.inv ≫ A.endomorphism i |
| 71 | apply (cancel_epi e.abelian.hom).mp |
| 72 | simp only [← Category.assoc, Iso.hom_inv_id, Category.id_comp] |
| 73 | rw [← e.equivariant] |
| 74 | simp |
| 75 | |
| 76 | def trans (e : UnpolarizedEnhancedIso A B) (f : UnpolarizedEnhancedIso B C) : |
| 77 | UnpolarizedEnhancedIso A C where |
| 78 | abelian := e.abelian ≪≫ f.abelian |
| 79 | dual := e.dual ≪≫ f.dual |
| 80 | abelianGroup := inferInstanceAs (IsMonHom (e.abelian.hom ≫ f.abelian.hom)) |
| 81 | dualGroup := inferInstanceAs (IsMonHom (e.dual.hom ≫ f.dual.hom)) |
| 82 | poincare := by |
| 83 | have h : ((e.dual.hom ≫ f.dual.hom) ⊗ₘ (e.abelian.hom ≫ f.abelian.hom)).left = |
| 84 | e.productIso.hom ≫ f.productIso.hom := by |
| 85 | simp only [← tensorHom_comp_tensorHom, Over.comp_left] |
| 86 | rfl |
| 87 | exact (congrArg (fun a => AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass a |
| 88 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf C.polarized.dual.poincare)) h).trans |
| 89 | ((AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass_comp e.productIso.hom f.productIso.hom |
| 90 | (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf C.polarized.dual.poincare)).trans |
| 91 | ((congrArg (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass e.productIso.hom) f.poincare).trans e.poincare)) |
| 92 | level T c := |
| 93 | (Category.assoc _ _ _).symm.trans |
| 94 | ((congrArg (fun a => a ≫ f.abelian.hom) (e.level T c)).trans (f.level T c)) |
| 95 | equivariant i := by |
| 96 | change A.endomorphism i ≫ (e.abelian.hom ≫ f.abelian.hom) = |
| 97 | (e.abelian.hom ≫ f.abelian.hom) ≫ C.endomorphism i |
| 98 | rw [← Category.assoc, e.equivariant, Category.assoc, f.equivariant, ← Category.assoc] |
| 99 | |
| 100 | def transportedPolarization (e : UnpolarizedEnhancedIso A B) : |
| 101 | A.polarized.abelian.scheme ⟶ A.polarized.dual.abelian.scheme := |
| 102 | e.abelian.hom ≫ B.polarized.polarization.isogeny.hom ≫ e.dual.inv |
| 103 | |
| 104 | instance transportedPolarization_group (e : UnpolarizedEnhancedIso A B) : |
| 105 | IsMonHom e.transportedPolarization := |
| 106 | inferInstanceAs (IsMonHom (e.abelian.hom ≫ B.polarized.polarization.isogeny.hom ≫ e.dual.inv)) |
| 107 | |
| 108 | def withPolarization (e : UnpolarizedEnhancedIso A B) |
| 109 | (h : A.polarized.polarization.isogeny.hom ≫ e.dual.hom = |
| 110 | e.abelian.hom ≫ B.polarized.polarization.isogeny.hom) : ModuliObjects.Abelian.EnhancedAbelianIso A B where |
| 111 | polarized := { |
| 112 | abelian := e.abelian |
| 113 | dual := e.dual |
| 114 | abelianGroup := e.abelianGroup |
| 115 | dualGroup := e.dualGroup |
| 116 | polarization := h |
| 117 | poincare := e.poincare |
| 118 | level := e.level } |
| 119 | equivariant := e.equivariant |
| 120 | |
| 121 | def enhancedIsoOfTransportedEq (e : UnpolarizedEnhancedIso A B) |
| 122 | (f : UnpolarizedEnhancedIso A C) |
| 123 | (h : e.transportedPolarization = f.transportedPolarization) : ModuliObjects.Abelian.EnhancedAbelianIso B C := |
| 124 | (e.symm.trans f).withPolarization (by |
| 125 | change B.polarized.polarization.isogeny.hom ≫ (e.dual.inv ≫ f.dual.hom) = |
| 126 | (e.abelian.inv ≫ f.abelian.hom) ≫ C.polarized.polarization.isogeny.hom |
| 127 | apply (cancel_epi e.abelian.hom).mp |
| 128 | apply (cancel_mono f.dual.inv).mp |
| 129 | simpa only [UnpolarizedEnhancedIso.transportedPolarization, Category.assoc, Iso.hom_inv_id_assoc, Iso.hom_inv_id, |
| 130 | Category.comp_id] using h) |
| 131 | |
| 132 | end UnpolarizedEnhancedIso |
| 133 | |
| 134 | end |
| 135 | |
| 136 | end OAI.ArithmeticGeometry.Descent.CMVariety.UnpolarizedComparisons.Abelian |