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.SegreTensorChart |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.SegreLocal |
| 3 | |
| 4 | /-! # Segre Closed -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.SegreClosed.Constructions.ProjectiveProducts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open OAI.AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization |
| 14 | |
| 15 | instance segreTensor_smooth (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) : |
| 16 | Smooth (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorOver m n i j).hom := by |
| 17 | have : IsIso (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv.left := |
| 18 | (Over.forget _).map_isIso (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv |
| 19 | have h : Smooth ((SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv.left ≫ (SegreLocal.Constructions.ProjectiveProducts.projectivePairChart m n (i, j)).hom) := |
| 20 | inferInstance |
| 21 | rwa [(SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv.w] at h |
| 22 | |
| 23 | instance segreTensor_reduced (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) : |
| 24 | IsReduced (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorOver m n i j).left := Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_isReduced (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorOver m n i j).hom |
| 25 | |
| 26 | /-- The affine Segre ring map as a morphism between the corresponding actual |
| 27 | affine schemes over the base. -/ |
| 28 | def segreTensorToTargetChart (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) : |
| 29 | SegreTensorChart.Constructions.ProjectiveProducts.segreTensorOver m n i j ⟶ ProjectiveCover.Constructions.Products.polynomialChartOver (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) := |
| 30 | Over.homMk (Spec.map (CommRingCat.ofHom (SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap m n i j).toRingHom)) (by |
| 31 | change Spec.map _ ≫ Spec.map _ = Spec.map _ |
| 32 | rw [← Spec.map_comp] |
| 33 | congr 1 |
| 34 | ext c |
| 35 | exact (SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap m n i j).commutes c) |
| 36 | |
| 37 | /-- Dehomogenizing at the normalized tensor coordinate recovers every |
| 38 | tensor coordinate, including the coordinate equal to one. -/ |
| 39 | theorem segreAffineRingMap_dehomogenize (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) |
| 40 | (k : Fin (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n + 1)) : |
| 41 | SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap m n i j (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) (MvPolynomial.X k)) = |
| 42 | SegreCoordinates.Constructions.ProjectiveProducts.segreVector (SegreAffineRing.Constructions.ProjectiveProducts.segreTensorLeft m n i j) (SegreAffineRing.Constructions.ProjectiveProducts.segreTensorRight m n i j) k := by |
| 43 | classical |
| 44 | by_cases hk : k = SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j) |
| 45 | · subst k |
| 46 | simp [SegreAffineRing.Constructions.ProjectiveProducts.segreTensorLeft, SegreAffineRing.Constructions.ProjectiveProducts.segreTensorRight] |
| 47 | · simp [Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize, Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.insertOne, hk, SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap] |
| 48 | |
| 49 | /-- Pulling back the target's normalized coordinate sections produces exactly |
| 50 | the tensor coordinate products as global regular functions. -/ |
| 51 | theorem segreTensorToTargetChart_tuple (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) |
| 52 | (k : Fin (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n + 1)) : |
| 53 | (segreTensorToTargetChart m n i j).left.appTop |
| 54 | (Affine.Coordinates.Constructions.ProjectiveProducts.affineChartSections (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) k) = |
| 55 | (Scheme.ΓSpecIso (.of (SegreAffineRing.Constructions.ProjectiveProducts.segreChartTensor m n i j))).inv |
| 56 | (SegreCoordinates.Constructions.ProjectiveProducts.segreVector (SegreAffineRing.Constructions.ProjectiveProducts.segreTensorLeft m n i j) (SegreAffineRing.Constructions.ProjectiveProducts.segreTensorRight m n i j) k) := by |
| 57 | let φ := CommRingCat.ofHom (SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap m n i j).toRingHom |
| 58 | have h := Scheme.ΓSpecIso_inv_naturality φ |
| 59 | have heval := congrArg (fun g : CommRingCat.of (Foundations.Scheme.ProjectiveChartToPolynomial.projectiveChartPolynomial (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) |
| 60 | (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j))) ⟶ Γ(Spec (.of (SegreAffineRing.Constructions.ProjectiveProducts.segreChartTensor m n i j)), ⊤) => |
| 61 | g (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) (MvPolynomial.X k))) h |
| 62 | change (Scheme.ΓSpecIso (.of (SegreAffineRing.Constructions.ProjectiveProducts.segreChartTensor m n i j))).inv |
| 63 | (SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap m n i j (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) (MvPolynomial.X k))) = |
| 64 | (segreTensorToTargetChart m n i j).left.appTop |
| 65 | (Affine.Coordinates.Constructions.ProjectiveProducts.affineChartSections (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) k) at heval |
| 66 | rw [segreAffineRingMap_dehomogenize] at heval |
| 67 | exact heval.symm |
| 68 | |
| 69 | set_option backward.isDefEq.respectTransparency false in |
| 70 | /-- The geometric Segre chart map is the spectrum of the explicit surjective |
| 71 | coordinate map, followed by the target affine-chart inclusion. -/ |
| 72 | theorem segreChartMap_on_tensor (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) : |
| 73 | (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv ≫ SegreLocal.Constructions.ProjectiveProducts.segreChartMap m n (i, j) = |
| 74 | segreTensorToTargetChart m n i j ≫ |
| 75 | ProjectiveCover.Constructions.Products.polynomialChartOverMap (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) := by |
| 76 | rw [SegreLocal.Constructions.ProjectiveProducts.segreChartMap_comp] |
| 77 | apply Over.OverMorphism.ext |
| 78 | change SegreCoordinates.Constructions.ProjectiveProducts.segreMapOfCoordinates (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorOver m n i j).hom |
| 79 | (SegreLocal.Constructions.ProjectiveProducts.leftChartTuple (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv) (SegreLocal.Constructions.ProjectiveProducts.rightChartTuple (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n i j).inv) |
| 80 | i j (SegreLocal.Constructions.ProjectiveProducts.leftChartTuple_normalized _) (SegreLocal.Constructions.ProjectiveProducts.rightChartTuple_normalized _) = |
| 81 | (segreTensorToTargetChart m n i j).left ≫ |
| 82 | Foundations.Scheme.ProjectiveChart.projectiveAffineChartMap (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) |
| 83 | have hnat := ProjectiveCoordinates.Constructions.Products.projectiveMapOfCoordinates_comp (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorOver m n i j) |
| 84 | (ProjectiveCover.Constructions.Products.polynomialChartOver (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j))) |
| 85 | (segreTensorToTargetChart m n i j) |
| 86 | (Affine.Coordinates.Constructions.ProjectiveProducts.affineChartSections (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j))) |
| 87 | (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n (i, j)) (Affine.Coordinates.Constructions.ProjectiveProducts.affineChartSections_self _ _) |
| 88 | change (segreTensorToTargetChart m n i j).left ≫ |
| 89 | ProjectiveCoordinates.Constructions.Products.projectiveMapOfCoordinates (Foundations.Scheme.ProjectiveChart.projectiveChartPolynomialToBase _ _) |
| 90 | (Affine.Coordinates.Constructions.ProjectiveProducts.affineChartSections _ _) _ _ = _ at hnat |
| 91 | rw [Affine.Coordinates.Constructions.ProjectiveProducts.projectiveMapOfCoordinates_affineChart] at hnat |
| 92 | rw [hnat] |
| 93 | unfold SegreCoordinates.Constructions.ProjectiveProducts.segreMapOfCoordinates |
| 94 | congr 1 |
| 95 | funext k |
| 96 | rw [segreTensorToTargetChart_tuple] |
| 97 | simp [SegreCoordinates.Constructions.ProjectiveProducts.segreVector, SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChart_leftTuple, SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChart_rightTuple] |
| 98 | |
| 99 | /-- The map between the actual affine tensor and target charts is a closed |
| 100 | immersion because its coordinate ring map was proved surjective. -/ |
| 101 | theorem segreTensorToTargetChart_closed (m n : ℕ) (i : Fin (m + 1)) (j : Fin (n + 1)) : |
| 102 | IsClosedImmersion (segreTensorToTargetChart m n i j).left := |
| 103 | IsClosedImmersion.spec_of_surjective _ (SegreAffineRing.Constructions.ProjectiveProducts.segreAffineRingMap_surjective m n i j) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | section |
| 108 | |
| 109 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 110 | |
| 111 | /-- The Segre map between the product chart and its target polynomial chart. -/ |
| 112 | def segreSourceToTargetChart (m n : ℕ) (ij : Fin (m + 1) × Fin (n + 1)) : |
| 113 | SegreLocal.Constructions.ProjectiveProducts.projectivePairChart m n ij ⟶ |
| 114 | ProjectiveCover.Constructions.Products.polynomialChartOver (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n ij) := |
| 115 | (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n ij.1 ij.2).hom ≫ segreTensorToTargetChart m n ij.1 ij.2 |
| 116 | |
| 117 | instance segreSourceToTargetChart_closed (m n : ℕ) (ij : Fin (m + 1) × Fin (n + 1)) : |
| 118 | IsClosedImmersion (segreSourceToTargetChart m n ij).left := by |
| 119 | have : IsIso (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n ij.1 ij.2).hom.left := |
| 120 | (Over.forget Foundations.Scheme.ProjectiveSpace.complexBase).map_isIso (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n ij.1 ij.2).hom |
| 121 | have := segreTensorToTargetChart_closed m n ij.1 ij.2 |
| 122 | change IsClosedImmersion ((SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n ij.1 ij.2).hom.left ≫ |
| 123 | (segreTensorToTargetChart m n ij.1 ij.2).left) |
| 124 | infer_instance |
| 125 | |
| 126 | @[reassoc (attr := simp)] |
| 127 | theorem segreSourceToTargetChart_map (m n : ℕ) (ij : Fin (m + 1) × Fin (n + 1)) : |
| 128 | segreSourceToTargetChart m n ij ≫ |
| 129 | ProjectiveCover.Constructions.Products.polynomialChartOverMap (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n ij) = |
| 130 | SegreLocal.Constructions.ProjectiveProducts.segreChartMap m n ij := by |
| 131 | rw [← cancel_epi (SegreTensorChart.Constructions.ProjectiveProducts.segreTensorChartIso m n ij.1 ij.2).inv] |
| 132 | simp only [segreSourceToTargetChart, ← Category.assoc, Iso.inv_hom_id, Category.id_comp] |
| 133 | exact (segreChartMap_on_tensor m n ij.1 ij.2).symm |
| 134 | |
| 135 | set_option backward.isDefEq.respectTransparency false in |
| 136 | /-- The product chart is the full inverse image of the corresponding target |
| 137 | chart under the Segre map, including its scheme structure. -/ |
| 138 | theorem segreChart_isPullback (m n : ℕ) (ij : Fin (m + 1) × Fin (n + 1)) : |
| 139 | IsPullback (segreSourceToTargetChart m n ij).left (SegreLocal.Constructions.ProjectiveProducts.projectivePairChartMap m n ij).left |
| 140 | (Foundations.Scheme.ProjectiveChart.projectiveAffineChartMap (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n ij)) (SegreLocal.Constructions.ProjectiveProducts.segreMap m n) := by |
| 141 | apply IsOpenImmersion.isPullback |
| 142 | · rw [SegreLocal.Constructions.ProjectiveProducts.chartMap_segreMap] |
| 143 | exact (congrArg Over.Hom.left (segreSourceToTargetChart_map m n ij)).symm |
| 144 | · apply SetLike.coe_injective |
| 145 | change (SegreLocal.Constructions.ProjectiveProducts.segreMap m n) ⁻¹' Set.range (Foundations.Scheme.ProjectiveChart.projectiveAffineChartMap _ _) = |
| 146 | Set.range (SegreLocal.Constructions.ProjectiveProducts.projectivePairChartMap m n ij).left |
| 147 | rw [SegreLocal.Constructions.ProjectiveProducts.range_projectiveAffineChartMap] |
| 148 | exact SegreLocal.Constructions.ProjectiveProducts.segreMap_preimage_coordinate_range m n ij |
| 149 | |
| 150 | set_option backward.isDefEq.respectTransparency false in |
| 151 | /-- The actual algebraic Segre morphism is a closed immersion, as checked |
| 152 | on the finite polynomial-chart cover of its target. -/ |
| 153 | instance segreMap_closed (m n : ℕ) : IsClosedImmersion (SegreLocal.Constructions.ProjectiveProducts.segreMap m n) := by |
| 154 | rw [IsZariskiLocalAtTarget.iff_of_openCover (P := @IsClosedImmersion) |
| 155 | (ProjectiveCover.Constructions.Products.polynomialProjectiveCover (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n))] |
| 156 | intro k |
| 157 | change IsClosedImmersion (pullback.snd (SegreLocal.Constructions.ProjectiveProducts.segreMap m n) |
| 158 | (Foundations.Scheme.ProjectiveChart.projectiveAffineChartMap (SegreCoordinates.Constructions.ProjectiveProducts.segreDimension m n) k)) |
| 159 | obtain ⟨ij, rfl⟩ := (SegreCoordinates.Constructions.ProjectiveProducts.segreIndexEquiv m n).surjective k |
| 160 | rw [← (segreChart_isPullback m n ij).flip.isoPullback_inv_snd] |
| 161 | infer_instance |
| 162 | |
| 163 | end |
| 164 | |
| 165 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 166 | open MonoidalCategory CartesianMonoidalCategory |
| 167 | |
| 168 | /-- The product of two closed projective embeddings is a closed immersion |
| 169 | into the actual product of the projective spaces. -/ |
| 170 | theorem projective_tensorEmbedding_closed (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 171 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X.left X.hom) (Q : Foundations.Scheme.SmoothProjective.ProjectivePresentation Y.left Y.hom) : |
| 172 | IsClosedImmersion (P.toOverHom ⊗ₘ Q.toOverHom).left := by |
| 173 | have : MorphismProperty.IsStableUnderComposition @IsClosedImmersion := |
| 174 | ⟨fun _ _ hf hg => by let _ := hf; let _ := hg; infer_instance⟩ |
| 175 | rw [Over.tensorHom_left] |
| 176 | have : IsClosedImmersion P.toOverHom.left := P.closedImmersion |
| 177 | have : IsClosedImmersion Q.toOverHom.left := Q.closedImmersion |
| 178 | exact MorphismProperty.pullbackMap (P := @IsClosedImmersion) |
| 179 | (f := X.hom) (g := Y.hom) |
| 180 | (f' := Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase P.ambientDimension) |
| 181 | (g' := Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase Q.ambientDimension) |
| 182 | P.closedImmersion Q.closedImmersion P.over_base.symm Q.over_base.symm |
| 183 | |
| 184 | /-- A genuine closed projective embedding for the tensor product, obtained |
| 185 | by composing the product embedding with the algebraic Segre immersion. -/ |
| 186 | def tensorProjectivePresentation (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 187 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X.left X.hom) (Q : Foundations.Scheme.SmoothProjective.ProjectivePresentation Y.left Y.hom) : |
| 188 | Foundations.Scheme.SmoothProjective.ProjectivePresentation (X ⊗ Y).left (X ⊗ Y).hom where |
| 189 | ambientDimension := SegreCoordinates.Constructions.ProjectiveProducts.segreDimension P.ambientDimension Q.ambientDimension |
| 190 | embedding := (P.toOverHom ⊗ₘ Q.toOverHom).left ≫ SegreLocal.Constructions.ProjectiveProducts.segreMap P.ambientDimension Q.ambientDimension |
| 191 | closedImmersion := by |
| 192 | have := projective_tensorEmbedding_closed X Y P Q |
| 193 | infer_instance |
| 194 | over_base := by |
| 195 | rw [Category.assoc, SegreLocal.Constructions.ProjectiveProducts.segreMap_over] |
| 196 | exact (P.toOverHom ⊗ₘ Q.toOverHom).w |
| 197 | |
| 198 | /-- The actual scheme product of two smooth projective presentations, |
| 199 | equipped with the explicit Segre projective presentation. -/ |
| 200 | abbrev tensorSmoothProjectivePresentation (X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) : |
| 201 | Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation where |
| 202 | carrier := (X.toOver ⊗ Y.toOver).left |
| 203 | structureMap := (X.toOver ⊗ Y.toOver).hom |
| 204 | projective := tensorProjectivePresentation X.toOver Y.toOver X.projective Y.projective |
| 205 | smooth := by |
| 206 | have : Smooth X.toOver.hom := X.smooth |
| 207 | have : Smooth Y.toOver.hom := Y.smooth |
| 208 | change Smooth (CategoryTheory.Limits.pullback.fst X.toOver.hom Y.toOver.hom ≫ X.toOver.hom) |
| 209 | infer_instance |
| 210 | |
| 211 | /-- The scheme product retains integrality over the algebraically closed |
| 212 | complex base. -/ |
| 213 | abbrev tensorIntegralProjectiveVariety (X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : |
| 214 | Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety := |
| 215 | ⟨tensorSmoothProjectivePresentation X.presentation Y.presentation, by |
| 216 | have : IsIntegral X.toOver.left := X.property |
| 217 | have : IsIntegral Y.toOver.left := Y.property |
| 218 | have : Smooth X.toOver.hom := X.presentation.smooth |
| 219 | have : Smooth Y.toOver.hom := Y.presentation.smooth |
| 220 | exact Albanese.Construction.Smooth.smooth_tensor_integral X.toOver Y.toOver⟩ |
| 221 | |
| 222 | end |
| 223 | |
| 224 | end OAI.AlgebraicGeometry.CycleClass.Thom.SegreClosed.Constructions.ProjectiveProducts |