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.CycleClass.Thom.Tensor.ProductDomain |
| 2 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.FiniteTypeSchemeTopology |
| 3 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 4 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 5 | |
| 6 | /-! # Product Is -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions |
| 13 | |
| 14 | /-! Genuine affine scheme products over the complex base are spectra of |
| 15 | the actual tensor product of their global-section algebras. Reducedness |
| 16 | and integrality follow from the proved algebraic tensor-product results. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductDomain.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductDomain.Constructions.Reduced |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | |
| 26 | variable (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsAffine X.left] [IsAffine Y.left] |
| 27 | |
| 28 | def affineProductCoordinateIso : pullback X.hom Y.hom ≅ |
| 29 | Spec (CommRingCat.of (Γ(X.left, ⊤) ⊗[ℂ] Γ(Y.left, ⊤))) := by |
| 30 | let f := pullback.map X.hom Y.hom |
| 31 | (Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ Γ(X.left, ⊤)).hom (Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ Γ(Y.left, ⊤)).hom |
| 32 | (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso X).hom.left (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso Y).hom.left (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) |
| 33 | (by simpa only [Category.comp_id] using (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso X).hom.w.symm) |
| 34 | (by simpa only [Category.comp_id] using (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso Y).hom.w.symm) |
| 35 | have : IsIso f := by dsimp only [f]; infer_instance |
| 36 | exact asIso f ≪≫ pullbackSpecIso ℂ Γ(X.left, ⊤) Γ(Y.left, ⊤) |
| 37 | |
| 38 | theorem affineProduct_isReduced [LocallyOfFiniteType X.hom] |
| 39 | [AlgebraicGeometry.IsReduced X.left] [AlgebraicGeometry.IsReduced Y.left] : |
| 40 | AlgebraicGeometry.IsReduced (pullback X.hom Y.hom) := by |
| 41 | let : Algebra.FiniteType ℂ Γ(X.left, ⊤) := ComplexPoints.Analytic.FiniteTypeSchemeTopology.affineOverGamma_finiteType X |
| 42 | let : _root_.IsReduced (Γ(X.left, ⊤) ⊗[ℂ] Γ(Y.left, ⊤)) := Tensor.ProductDomain.Constructions.Reduced.tensorProduct_isReduced |
| 43 | exact isReduced_of_isOpenImmersion (affineProductCoordinateIso X Y).hom |
| 44 | |
| 45 | theorem affineProduct_isIntegral [LocallyOfFiniteType X.hom] |
| 46 | [IsIntegral X.left] [IsIntegral Y.left] : IsIntegral (pullback X.hom Y.hom) := by |
| 47 | let : Algebra.FiniteType ℂ Γ(X.left, ⊤) := ComplexPoints.Analytic.FiniteTypeSchemeTopology.affineOverGamma_finiteType X |
| 48 | let : IsDomain (Γ(X.left, ⊤) ⊗[ℂ] Γ(Y.left, ⊤)) := Tensor.ProductDomain.Constructions.tensorProduct_isDomain |
| 49 | exact IsIntegral.of_isIso (affineProductCoordinateIso X Y).inv |
| 50 | |
| 51 | end AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions |
| 52 | |
| 53 | namespace AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions.CoordinateMaps |
| 54 | |
| 55 | /-! The affine product coordinate isomorphism preserves both genuine |
| 56 | projections and identifies the actual geometric diagonal with the |
| 57 | multiplication map of the tensor-product algebra. -/ |
| 58 | |
| 59 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 60 | open scoped TensorProduct |
| 61 | |
| 62 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions |
| 63 | |
| 64 | set_option backward.isDefEq.respectTransparency false |
| 65 | set_option backward.isDefEq.respectTransparency.types false |
| 66 | |
| 67 | variable (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsAffine X.left] [IsAffine Y.left] |
| 68 | |
| 69 | omit [IsAffine Y.left] in |
| 70 | def affineCoordinateMap : X.left ⟶ Spec (CommRingCat.of Γ(X.left, ⊤)) := |
| 71 | (Foundations.Scheme.AffineSchemeComplexPoints.affineOverIso X).hom.left |
| 72 | |
| 73 | @[reassoc] |
| 74 | theorem coordinateIso_first : |
| 75 | (affineProductCoordinateIso X Y).hom ≫ |
| 76 | Spec.map (CommRingCat.ofHom (algebraMap Γ(X.left, ⊤) (Γ(X.left, ⊤) ⊗[ℂ] Γ(Y.left, ⊤)))) = |
| 77 | pullback.fst X.hom Y.hom ≫ affineCoordinateMap X := by |
| 78 | unfold affineProductCoordinateIso |
| 79 | dsimp only [Iso.trans_hom, asIso_hom] |
| 80 | rw [Category.assoc, pullbackSpecIso_hom_fst'] |
| 81 | exact pullback.lift_fst _ _ _ |
| 82 | |
| 83 | @[reassoc] |
| 84 | theorem coordinateIso_second : |
| 85 | (affineProductCoordinateIso X Y).hom ≫ |
| 86 | Spec.map (CommRingCat.ofHom (Algebra.TensorProduct.includeRight : |
| 87 | Γ(Y.left, ⊤) →ₐ[ℂ] Γ(X.left, ⊤) ⊗[ℂ] Γ(Y.left, ⊤)).toRingHom) = |
| 88 | pullback.snd X.hom Y.hom ≫ affineCoordinateMap Y := by |
| 89 | simp only [AlgHom.toRingHom_eq_coe] |
| 90 | unfold affineProductCoordinateIso |
| 91 | dsimp only [Iso.trans_hom, asIso_hom] |
| 92 | rw [Category.assoc, pullbackSpecIso_hom_snd] |
| 93 | exact pullback.lift_snd _ _ _ |
| 94 | |
| 95 | omit [IsAffine Y.left] in |
| 96 | theorem coordinateIso_diagonal : |
| 97 | pullback.diagonal X.hom ≫ (affineProductCoordinateIso X X).hom = |
| 98 | affineCoordinateMap X ≫ |
| 99 | Spec.map (CommRingCat.ofHom (Algebra.TensorProduct.lmul' ℂ : |
| 100 | Γ(X.left, ⊤) ⊗[ℂ] Γ(X.left, ⊤) →ₐ[ℂ] Γ(X.left, ⊤)).toRingHom) := by |
| 101 | let R := Γ(X.left, ⊤) |
| 102 | let m := CommRingCat.ofHom (Algebra.TensorProduct.lmul' ℂ : R ⊗[ℂ] R →ₐ[ℂ] R).toRingHom |
| 103 | have hl : CommRingCat.ofHom (algebraMap R (R ⊗[ℂ] R)) ≫ m = 𝟙 (CommRingCat.of R) := by |
| 104 | ext r |
| 105 | change Algebra.TensorProduct.lmul' ℂ (r ⊗ₜ[ℂ] 1) = r |
| 106 | simp only [Algebra.TensorProduct.lmul'_apply_tmul, mul_one] |
| 107 | have hr : CommRingCat.ofHom (Algebra.TensorProduct.includeRight : R →ₐ[ℂ] R ⊗[ℂ] R).toRingHom ≫ m = |
| 108 | 𝟙 (CommRingCat.of R) := by |
| 109 | ext r |
| 110 | change Algebra.TensorProduct.lmul' ℂ (1 ⊗ₜ[ℂ] r) = r |
| 111 | simp only [Algebra.TensorProduct.lmul'_apply_tmul, one_mul] |
| 112 | apply (cancel_mono (pullbackSpecIso ℂ R R).inv).mp |
| 113 | apply pullback.hom_ext |
| 114 | · simp only [Category.assoc, pullbackSpecIso_inv_fst'] |
| 115 | rw [coordinateIso_first, ← Category.assoc, pullback.diagonal_fst, Category.id_comp] |
| 116 | rw [← Spec.map_comp, hl, Spec.map_id, Category.comp_id] |
| 117 | · simp only [Category.assoc, pullbackSpecIso_inv_snd, ← AlgHom.toRingHom_eq_coe] |
| 118 | rw [coordinateIso_second, ← Category.assoc, pullback.diagonal_snd, Category.id_comp] |
| 119 | rw [← Spec.map_comp, hr, Spec.map_id, Category.comp_id] |
| 120 | |
| 121 | end AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions.CoordinateMaps |
| 122 | |
| 123 | namespace AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions.StalkCoordinates |
| 124 | |
| 125 | /-! Actual stalk coordinates for a scheme isomorphic to an affine |
| 126 | spectrum. Global coordinate sections map to the native localization |
| 127 | elements, without an abstractly chosen stalk identification. -/ |
| 128 | |
| 129 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 130 | |
| 131 | set_option backward.isDefEq.respectTransparency false |
| 132 | set_option backward.isDefEq.respectTransparency.types false |
| 133 | |
| 134 | variable (R : CommRingCat) (X : Scheme) (e : X ≅ Spec R) |
| 135 | |
| 136 | def coordinateSection (r : R) : Γ(X, ⊤) := e.hom.appTop ((Scheme.ΓSpecIso R).inv r) |
| 137 | |
| 138 | def stalkCoordinateIso (x : X) : X.presheaf.stalk x ≅ CommRingCat.of (Localization.AtPrime (e.hom x).asIdeal) := |
| 139 | (asIso (e.hom.stalkMap x)).symm ≪≫ Spec.stalkIso R (e.hom x) |
| 140 | |
| 141 | theorem coordinateSection_germ (x : X) (r : R) : |
| 142 | (stalkCoordinateIso R X e x).hom (X.presheaf.germ ⊤ x trivial (coordinateSection R X e r)) = |
| 143 | algebraMap R (Localization.AtPrime (e.hom x).asIdeal) r := by |
| 144 | have hg : e.hom.stalkMap x |
| 145 | ((Spec R).presheaf.germ ⊤ (e.hom x) trivial ((Scheme.ΓSpecIso R).inv r)) = |
| 146 | X.presheaf.germ ⊤ x trivial (coordinateSection R X e r) := |
| 147 | e.hom.germ_stalkMap_apply ⊤ x trivial ((Scheme.ΓSpecIso R).inv r) |
| 148 | rw [← hg] |
| 149 | change (Spec.stalkIso R (e.hom x)).hom |
| 150 | ((asIso (e.hom.stalkMap x)).inv (e.hom.stalkMap x |
| 151 | ((Spec R).presheaf.germ ⊤ (e.hom x) trivial ((Scheme.ΓSpecIso R).inv r)))) = _ |
| 152 | have hc := (asIso (e.hom.stalkMap x)).hom_inv_id_apply |
| 153 | ((Spec R).presheaf.germ ⊤ (e.hom x) trivial ((Scheme.ΓSpecIso R).inv r)) |
| 154 | apply (congrArg (Spec.stalkIso R (e.hom x)).hom hc).trans |
| 155 | have hp := ConcreteCategory.congr_hom (Spec.germ_stalkMapIso_hom (R := R) (e.hom x)) ((Scheme.ΓSpecIso R).inv r) |
| 156 | exact hp.trans (congrArg (algebraMap R (Localization.AtPrime (e.hom x).asIdeal)) |
| 157 | ((Scheme.ΓSpecIso R).inv_hom_id_apply r)) |
| 158 | |
| 159 | theorem coordinateSection_zero_iff (x : X) (r : R) : |
| 160 | X.presheaf.germ ⊤ x trivial (coordinateSection R X e r) = 0 ↔ |
| 161 | algebraMap R (Localization.AtPrime (e.hom x).asIdeal) r = 0 := by |
| 162 | rw [← coordinateSection_germ R X e x r] |
| 163 | constructor |
| 164 | · intro h |
| 165 | exact (congrArg (stalkCoordinateIso R X e x).hom h).trans (map_zero _) |
| 166 | · intro h |
| 167 | apply (ConcreteCategory.bijective_of_isIso (stalkCoordinateIso R X e x).hom).1 |
| 168 | exact h.trans (map_zero (stalkCoordinateIso R X e x).hom.hom).symm |
| 169 | |
| 170 | end AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions.StalkCoordinates |
| 171 | |
| 172 | end |
| 173 | |
| 174 | end OAI |