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.IntersectionTheory.ProjectionFormula.Projective.FamilyIs |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Integral |
| 3 | |
| 4 | /-! # Polynomial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Polynomial |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The ordinary polynomial parameter line is the native affine |
| 13 | line, with its exact coefficient morphism and geometrically integral |
| 14 | fibers. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 20 | open scoped _root_.Polynomial |
| 21 | |
| 22 | namespace Line |
| 23 | |
| 24 | def base : Spec (.of ℂ[X]) ⟶ Foundations.Scheme.ProjectiveSpace.complexBase := Spec.map (CommRingCat.ofHom Polynomial.C) |
| 25 | |
| 26 | def iso : Spec (.of ℂ[X]) ≅ 𝔸(Unit; Foundations.Scheme.ProjectiveSpace.complexBase) := |
| 27 | Scheme.Spec.mapIso (MvPolynomial.uniqueAlgEquiv ℂ Unit).toRingEquiv.toCommRingCatIso.op ≪≫ |
| 28 | (AffineSpace.SpecIso Unit (.of ℂ)).symm |
| 29 | |
| 30 | theorem over_base : iso.hom ≫ (𝔸(Unit; Foundations.Scheme.ProjectiveSpace.complexBase) ↘ Foundations.Scheme.ProjectiveSpace.complexBase) = base := by |
| 31 | change (Spec.map (CommRingCat.ofHom (MvPolynomial.uniqueAlgEquiv ℂ Unit).toRingHom) ≫ |
| 32 | (AffineSpace.SpecIso Unit (.of ℂ)).inv) ≫ _ = _ |
| 33 | rw [Category.assoc, AffineSpace.SpecIso_inv_over, ← Spec.map_comp] |
| 34 | congr 1 |
| 35 | apply CommRingCat.hom_ext |
| 36 | apply RingHom.ext |
| 37 | intro c |
| 38 | exact (MvPolynomial.uniqueAlgEquiv ℂ Unit).commutes c |
| 39 | |
| 40 | theorem isPullback : IsPullback iso.hom base (𝔸(Unit; Foundations.Scheme.ProjectiveSpace.complexBase) ↘ Foundations.Scheme.ProjectiveSpace.complexBase) (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) := |
| 41 | IsPullback.of_horiz_isIso ⟨by rw [Category.comp_id]; exact over_base⟩ |
| 42 | |
| 43 | instance geometricallyIntegral : GeometricallyIntegral base := |
| 44 | MorphismProperty.of_isPullback isPullback inferInstance |
| 45 | |
| 46 | instance relativeDimension : SmoothOfRelativeDimension 1 base := by |
| 47 | change SmoothOfRelativeDimension 1 (Spec.map (CommRingCat.ofHom (Polynomial.C : ℂ →+* ℂ[X]))) |
| 48 | rw [← Projective.FamilyIs.MatrixParameterOpen.affine_over] |
| 49 | let : SmoothOfRelativeDimension 1 (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) := |
| 50 | Projective.Dimension.projective_relativeDimension 1 |
| 51 | exact smoothOfRelativeDimension_comp Projective.FamilyIs.MatrixParameterOpen.affine |
| 52 | (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) (n := 0) (m := 1) |
| 53 | |
| 54 | instance smooth : Smooth base := SmoothOfRelativeDimension.smooth 1 base |
| 55 | |
| 56 | end Line |
| 57 | |
| 58 | end |
| 59 | |
| 60 | section |
| 61 | |
| 62 | /-! Product with the determinant-open parameter line preserves |
| 63 | integrality. The product is an actual open subscheme of an integral |
| 64 | affine-line bundle and has its genuine zero section. -/ |
| 65 | |
| 66 | set_option backward.isDefEq.respectTransparency false |
| 67 | set_option backward.isDefEq.respectTransparency.types false |
| 68 | |
| 69 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 70 | open scoped _root_.Polynomial |
| 71 | |
| 72 | namespace IntegralProduct |
| 73 | |
| 74 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.MatrixPath |
| 75 | |
| 76 | variable {n : ℕ} (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)ˣ) |
| 77 | |
| 78 | def parameterBase : Spec (.of (ProjectionFormula.Polynomial.MatrixPath.Ring A)) ⟶ Foundations.Scheme.ProjectiveSpace.complexBase := |
| 79 | Spec.map (CommRingCat.ofHom (Projective.FamilySupport.Family.coefficients A)) |
| 80 | |
| 81 | def toLine : Spec (.of (ProjectionFormula.Polynomial.MatrixPath.Ring A)) ⟶ Spec (.of ℂ[X]) := |
| 82 | Spec.map (CommRingCat.ofHom (algebraMap ℂ[X] (ProjectionFormula.Polynomial.MatrixPath.Ring A))) |
| 83 | |
| 84 | instance toLine_open : IsOpenImmersion (toLine A) := |
| 85 | IsOpenImmersion.of_isLocalization (ProjectionFormula.Polynomial.MatrixPath.determinant A) |
| 86 | |
| 87 | theorem over_base : toLine A ≫ Line.base = parameterBase A := by |
| 88 | rw [toLine, Line.base, ← Spec.map_comp] |
| 89 | rfl |
| 90 | |
| 91 | theorem scalar_retraction (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 92 | Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht)) ≫ |
| 93 | parameterBase A = 𝟙 Foundations.Scheme.ProjectiveSpace.complexBase := by |
| 94 | have he : (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht).comp (Projective.FamilySupport.Family.coefficients A) = |
| 95 | RingHom.id ℂ := by |
| 96 | apply RingHom.ext |
| 97 | intro c |
| 98 | exact (ProjectionFormula.Polynomial.MatrixPath.evaluation_algebraMap A t ht (Polynomial.C c)).trans Polynomial.eval_C |
| 99 | rw [parameterBase, ← Spec.map_comp] |
| 100 | change Spec.map (CommRingCat.ofHom ((ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht).comp |
| 101 | (Projective.FamilySupport.Family.coefficients A))) = _ |
| 102 | rw [he] |
| 103 | simp |
| 104 | |
| 105 | theorem zero_retraction : Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A 0 (ProjectionFormula.Polynomial.MatrixPath.zero_good A))) ≫ |
| 106 | parameterBase A = 𝟙 Foundations.Scheme.ProjectiveSpace.complexBase := scalar_retraction A 0 (ProjectionFormula.Polynomial.MatrixPath.zero_good A) |
| 107 | |
| 108 | variable {Z : Scheme} (f : Z ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) |
| 109 | |
| 110 | abbrev space : Scheme := pullback (parameterBase A) f |
| 111 | |
| 112 | def inclusion : space A f ⟶ pullback Line.base f := |
| 113 | pullback.map _ _ _ _ (toLine A) (𝟙 Z) (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) |
| 114 | (by rw [Category.comp_id]; exact (over_base A).symm) (by simp) |
| 115 | |
| 116 | instance inclusion_open : IsOpenImmersion (inclusion A f) := by |
| 117 | unfold inclusion |
| 118 | exact MorphismProperty.pullbackMap (P := @IsOpenImmersion) |
| 119 | (toLine_open A) (inferInstanceAs (IsOpenImmersion (𝟙 Z))) |
| 120 | (over_base A).symm (by simp) |
| 121 | |
| 122 | def sectionZero : Z ⟶ space A f := |
| 123 | pullback.lift (f ≫ Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A 0 (ProjectionFormula.Polynomial.MatrixPath.zero_good A)))) (𝟙 Z) |
| 124 | (by rw [Category.assoc, zero_retraction, Category.comp_id, Category.id_comp]) |
| 125 | |
| 126 | instance nonempty [Nonempty Z] : Nonempty (space A f) := |
| 127 | ⟨sectionZero A f (Nonempty.some inferInstance)⟩ |
| 128 | |
| 129 | instance integral [IsIntegral Z] [IsLocallyNoetherian Z] : IsIntegral (space A f) := by |
| 130 | let : IsIntegral (pullback Line.base f) := inferInstance |
| 131 | exact isIntegral_of_isOpenImmersion (inclusion A f) |
| 132 | |
| 133 | end IntegralProduct |
| 134 | |
| 135 | end |
| 136 | |
| 137 | /-! The determinant-open matrix family on an arbitrary projective |
| 138 | subscheme, with its actual base-change square and marked fibers. -/ |
| 139 | |
| 140 | set_option backward.isDefEq.respectTransparency false |
| 141 | set_option backward.isDefEq.respectTransparency.types false |
| 142 | |
| 143 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 144 | |
| 145 | namespace ProjectiveSubschemeFamily |
| 146 | |
| 147 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.MatrixPath |
| 148 | |
| 149 | variable {n : ℕ} (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)ˣ) |
| 150 | {Z : Scheme} (i : Z ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace n) |
| 151 | |
| 152 | abbrev space : Scheme := pullback (Projective.FamilySupport.Family.projection A) i |
| 153 | |
| 154 | def toAmbient : space A i ⟶ Projective.MatrixFamily.Family.space A := pullback.fst _ _ |
| 155 | |
| 156 | def toSource : space A i ⟶ Z := pullback.snd _ _ |
| 157 | |
| 158 | def parameter : space A i ⟶ Spec (.of (ProjectionFormula.Polynomial.MatrixPath.Ring A)) := |
| 159 | toAmbient A i ≫ Relative.ProjectiveI.Base.base (ProjectionFormula.Polynomial.MatrixPath.Ring A) n |
| 160 | |
| 161 | theorem base_change : IsPullback (parameter A i) (toSource A i) |
| 162 | (IntegralProduct.parameterBase A) (i ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n) := by |
| 163 | exact (IsPullback.of_hasPullback (Projective.FamilySupport.Family.projection A) i).paste_horiz |
| 164 | (Relative.ProjectivePullback.isPullback |
| 165 | (Projective.FamilySupport.Family.coefficients A) n).flip |
| 166 | |
| 167 | def productIso : space A i ≅ |
| 168 | IntegralProduct.space A (i ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n) := |
| 169 | (base_change A i).isoPullback |
| 170 | |
| 171 | def specialization (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : Z ⟶ space A i := |
| 172 | pullback.lift (i ≫ Projective.MatrixFamily.Family.specialization A t ht) (𝟙 Z) (by |
| 173 | rw [Category.assoc, Projective.FamilySupport.Family.specialization_projection, |
| 174 | Category.comp_id, Category.id_comp]) |
| 175 | |
| 176 | theorem specialization_ambient (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 177 | specialization A i t ht ≫ toAmbient A i = |
| 178 | i ≫ Projective.MatrixFamily.Family.specialization A t ht := pullback.lift_fst _ _ _ |
| 179 | |
| 180 | theorem specialization_source (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 181 | specialization A i t ht ≫ toSource A i = 𝟙 Z := pullback.lift_snd _ _ _ |
| 182 | |
| 183 | theorem specialization_parameter (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 184 | specialization A i t ht ≫ parameter A i = |
| 185 | (i ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n) ≫ Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht)) := by |
| 186 | rw [parameter, ← Category.assoc, specialization_ambient, Category.assoc, |
| 187 | Projective.MatrixFamily.Family.specialization_base, Category.assoc] |
| 188 | |
| 189 | theorem fiber (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 190 | IsPullback (specialization A i t ht) (i ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n) |
| 191 | (parameter A i) (Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht))) := by |
| 192 | apply (IsPullback.paste_horiz_iff (base_change A i).flip |
| 193 | (specialization_parameter A i t ht)).mp |
| 194 | rw [specialization_source] |
| 195 | rw [IntegralProduct.scalar_retraction] |
| 196 | exact IsPullback.of_horiz_isIso ⟨by simp⟩ |
| 197 | |
| 198 | instance nonempty [Nonempty Z] : Nonempty (space A i) := |
| 199 | ⟨specialization A i 0 (ProjectionFormula.Polynomial.MatrixPath.zero_good A) (Nonempty.some inferInstance)⟩ |
| 200 | |
| 201 | instance integral [IsIntegral Z] [IsLocallyNoetherian Z] : IsIntegral (space A i) := |
| 202 | isIntegral_of_isOpenImmersion (productIso A i).hom |
| 203 | |
| 204 | instance flat_parameter : Flat (parameter A i) := |
| 205 | MorphismProperty.of_isPullback (base_change A i).flip inferInstance |
| 206 | |
| 207 | instance ambient_closed [IsClosedImmersion i] : IsClosedImmersion (toAmbient A i) := |
| 208 | inferInstanceAs (IsClosedImmersion (pullback.fst _ i)) |
| 209 | |
| 210 | def moving : space A i ⟶ Projective.MatrixFamily.Family.space A := |
| 211 | toAmbient A i ≫ (Projective.MatrixFamily.Family.automorphism A).hom |
| 212 | |
| 213 | instance moving_closed [IsClosedImmersion i] : IsClosedImmersion (moving A i) := by |
| 214 | unfold moving |
| 215 | infer_instance |
| 216 | |
| 217 | theorem moving_parameter : moving A i ≫ Relative.ProjectiveI.Base.base (ProjectionFormula.Polynomial.MatrixPath.Ring A) n = |
| 218 | parameter A i := by |
| 219 | rw [moving, Category.assoc, Projective.MatrixFamily.Family.over_base] |
| 220 | rfl |
| 221 | |
| 222 | theorem moving_zero : specialization A i 0 (ProjectionFormula.Polynomial.MatrixPath.zero_good A) ≫ moving A i = |
| 223 | i ≫ Projective.MatrixFamily.Family.specialization A 0 (ProjectionFormula.Polynomial.MatrixPath.zero_good A) := by |
| 224 | rw [moving, ← Category.assoc, specialization_ambient, Category.assoc, |
| 225 | Projective.MatrixFamily.Family.at_zero] |
| 226 | |
| 227 | theorem moving_one : specialization A i 1 (ProjectionFormula.Polynomial.MatrixPath.one_good A) ≫ moving A i = |
| 228 | (i ≫ Projective.LinearChart.Automorphism.map A) ≫ |
| 229 | Projective.MatrixFamily.Family.specialization A 1 (ProjectionFormula.Polynomial.MatrixPath.one_good A) := by |
| 230 | rw [moving, ← Category.assoc, specialization_ambient, Category.assoc, |
| 231 | Projective.MatrixFamily.Family.at_one, Category.assoc] |
| 232 | |
| 233 | end ProjectiveSubschemeFamily |
| 234 | |
| 235 | end |
| 236 | |
| 237 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Polynomial |