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.FamilySections |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectivePullback |
| 3 | import Mathlib.Algebra.MvPolynomial.Equiv |
| 4 | |
| 5 | /-! # Family Is -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyIs |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The marked sections of the projective matrix family are its full |
| 14 | scheme-theoretic parameter fibers. The source model is the actual |
| 15 | base change of the fixed smooth projective source. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | open scoped _root_.Polynomial |
| 22 | |
| 23 | namespace FamilyFibers |
| 24 | |
| 25 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.MatrixPath OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyOnSource.Family OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilySections.Family |
| 26 | |
| 27 | theorem ambient {n : ℕ} (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)ˣ) |
| 28 | (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 29 | IsPullback (MatrixFamily.Family.specialization A t ht) (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n) |
| 30 | (Relative.ProjectiveI.Base.base (ProjectionFormula.Polynomial.MatrixPath.Ring A) n) (Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht))) := |
| 31 | Relative.ProjectivePullback.isPullback (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht) n |
| 32 | |
| 33 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 34 | (A : (Matrix (Fin (X.ambientDimension + 1)) (Fin (X.ambientDimension + 1)) ℂ)ˣ) |
| 35 | |
| 36 | theorem source_base_change : |
| 37 | IsPullback (FamilyOnSource.Family.toSource X A) (FamilySections.Family.parameter X A) X.structureMap |
| 38 | (Spec.map (CommRingCat.ofHom (FamilySupport.Family.coefficients A))) := by |
| 39 | have h := (IsPullback.of_hasPullback (FamilySupport.Family.projection A) X.embedding).paste_horiz |
| 40 | (Relative.ProjectivePullback.isPullback (FamilySupport.Family.coefficients A) X.ambientDimension).flip |
| 41 | change IsPullback (FamilySections.Family.parameter X A) (FamilyOnSource.Family.toSource X A) |
| 42 | (Spec.map (CommRingCat.ofHom (FamilySupport.Family.coefficients A))) |
| 43 | (X.embedding ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase X.ambientDimension) at h |
| 44 | rw [X.embedding_over] at h |
| 45 | exact h.flip |
| 46 | |
| 47 | theorem specialization_parameter (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 48 | FamilyOnSource.Family.specialization X A t ht ≫ FamilySections.Family.parameter X A = |
| 49 | X.structureMap ≫ Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht)) := by |
| 50 | rw [FamilySections.Family.parameter, ← Category.assoc, FamilyOnSource.Family.specialization_ambient, Category.assoc, |
| 51 | MatrixFamily.Family.specialization_base, ← Category.assoc, X.embedding_over] |
| 52 | |
| 53 | theorem scalar_retraction (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 54 | Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht)) ≫ |
| 55 | Spec.map (CommRingCat.ofHom (FamilySupport.Family.coefficients A)) = 𝟙 Foundations.Scheme.ProjectiveSpace.complexBase := by |
| 56 | have he : (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht).comp (FamilySupport.Family.coefficients A) = RingHom.id ℂ := by |
| 57 | ext c |
| 58 | change ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht (algebraMap ℂ[X] (ProjectionFormula.Polynomial.MatrixPath.Ring A) (Polynomial.C c)) = c |
| 59 | rw [ProjectionFormula.Polynomial.MatrixPath.evaluation_algebraMap, Polynomial.eval_C] |
| 60 | rw [← Spec.map_comp] |
| 61 | change Spec.map (CommRingCat.ofHom ((ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht).comp (FamilySupport.Family.coefficients A))) = _ |
| 62 | rw [he] |
| 63 | exact Spec.map_id _ |
| 64 | |
| 65 | theorem source (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 66 | IsPullback (FamilyOnSource.Family.specialization X A t ht) X.structureMap (FamilySections.Family.parameter X A) |
| 67 | (Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht))) := by |
| 68 | apply (IsPullback.paste_horiz_iff (source_base_change X A) (specialization_parameter X A t ht)).mp |
| 69 | rw [FamilyOnSource.Family.specialization_source, scalar_retraction] |
| 70 | exact IsPullback.of_horiz_isIso ⟨by simp⟩ |
| 71 | |
| 72 | end FamilyFibers |
| 73 | |
| 74 | end |
| 75 | |
| 76 | section |
| 77 | |
| 78 | /-! The determinant localization is an actual open subscheme of the |
| 79 | projective parameter line, and every good scalar specialization factors |
| 80 | through its usual affine coordinate. -/ |
| 81 | |
| 82 | set_option backward.isDefEq.respectTransparency false |
| 83 | set_option backward.isDefEq.respectTransparency.types false |
| 84 | |
| 85 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 86 | open scoped _root_.Polynomial |
| 87 | |
| 88 | namespace MatrixParameterOpen |
| 89 | |
| 90 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.MatrixPath |
| 91 | |
| 92 | instance chartIndex : Unique {j : Fin (1 + 1) // j ≠ 0} where |
| 93 | default := ⟨1, by decide⟩ |
| 94 | uniq j := by |
| 95 | rcases j with ⟨j, hj⟩ |
| 96 | fin_cases j |
| 97 | · exact (hj rfl).elim |
| 98 | · rfl |
| 99 | |
| 100 | def chartEquiv : Foundations.Scheme.ProjectiveChartToPolynomial.projectiveChartPolynomial 1 0 ≃ₐ[ℂ] ℂ[X] := |
| 101 | MvPolynomial.uniqueAlgEquiv ℂ {j : Fin (1 + 1) // j ≠ 0} |
| 102 | |
| 103 | def affine : Spec (.of ℂ[X]) ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1 := |
| 104 | Spec.map (CommRingCat.ofHom chartEquiv.toRingHom) ≫ Foundations.Scheme.ProjectiveChart.projectiveAffineChartMap 1 0 |
| 105 | |
| 106 | instance affine_open : IsOpenImmersion affine := by |
| 107 | let : IsIso (Spec.map (CommRingCat.ofHom chartEquiv.toRingHom)) := |
| 108 | inferInstanceAs (IsIso (Scheme.Spec.mapIso chartEquiv.toRingEquiv.toCommRingCatIso.op).hom) |
| 109 | unfold affine |
| 110 | infer_instance |
| 111 | |
| 112 | theorem affine_over : affine ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1 = |
| 113 | Spec.map (CommRingCat.ofHom (Polynomial.C : ℂ →+* ℂ[X])) := by |
| 114 | rw [affine, Category.assoc, Foundations.Scheme.ProjectiveChart.projectiveAffineChartMap_over, ← Spec.map_comp] |
| 115 | congr 1 |
| 116 | apply CommRingCat.hom_ext |
| 117 | apply RingHom.ext |
| 118 | intro c |
| 119 | exact chartEquiv.commutes c |
| 120 | |
| 121 | def point (t : ℂ) : Foundations.Scheme.ProjectiveSpace.complexBase ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1 := |
| 122 | Spec.map (CommRingCat.ofHom (Polynomial.evalRingHom t)) ≫ affine |
| 123 | |
| 124 | variable {n : ℕ} (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)ˣ) |
| 125 | |
| 126 | def inclusion : Spec (.of (ProjectionFormula.Polynomial.MatrixPath.Ring A)) ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1 := |
| 127 | Spec.map (CommRingCat.ofHom (algebraMap ℂ[X] (ProjectionFormula.Polynomial.MatrixPath.Ring A))) ≫ affine |
| 128 | |
| 129 | instance inclusion_open : IsOpenImmersion (inclusion A) := by |
| 130 | let : IsOpenImmersion (Spec.map (CommRingCat.ofHom (algebraMap ℂ[X] (ProjectionFormula.Polynomial.MatrixPath.Ring A)))) := |
| 131 | IsOpenImmersion.of_isLocalization (ProjectionFormula.Polynomial.MatrixPath.determinant A) |
| 132 | unfold inclusion |
| 133 | infer_instance |
| 134 | |
| 135 | theorem over_base : inclusion A ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1 = |
| 136 | Spec.map (CommRingCat.ofHom (FamilySupport.Family.coefficients A)) := by |
| 137 | rw [inclusion, Category.assoc, affine_over, ← Spec.map_comp] |
| 138 | rfl |
| 139 | |
| 140 | theorem evaluation (t : ℂ) (ht : (ProjectionFormula.Polynomial.MatrixPath.determinant A).eval t ≠ 0) : |
| 141 | Spec.map (CommRingCat.ofHom (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht)) ≫ inclusion A = point t := by |
| 142 | have he : (ProjectionFormula.Polynomial.MatrixPath.evaluation A t ht).comp (algebraMap ℂ[X] (ProjectionFormula.Polynomial.MatrixPath.Ring A)) = Polynomial.evalRingHom t := by |
| 143 | apply RingHom.ext |
| 144 | exact ProjectionFormula.Polynomial.MatrixPath.evaluation_algebraMap A t ht |
| 145 | rw [inclusion, ← Category.assoc, ← Spec.map_comp] |
| 146 | exact congrArg (fun f : ℂ[X] →+* ℂ => Spec.map (CommRingCat.ofHom f) ≫ affine) he |
| 147 | |
| 148 | end MatrixParameterOpen |
| 149 | |
| 150 | end |
| 151 | |
| 152 | /-! The moving source model is an open subscheme of the proper |
| 153 | product with the projective parameter line. -/ |
| 154 | |
| 155 | set_option backward.isDefEq.respectTransparency false |
| 156 | set_option backward.isDefEq.respectTransparency.types false |
| 157 | |
| 158 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 159 | |
| 160 | namespace FamilyCompactAmbient |
| 161 | |
| 162 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.MatrixPath OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyOnSource.Family OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilySections.Family |
| 163 | |
| 164 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 165 | |
| 166 | abbrev space : Scheme := pullback X.structureMap (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) |
| 167 | |
| 168 | def first : space X ⟶ X.carrier := pullback.fst _ _ |
| 169 | |
| 170 | def second : space X ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1 := pullback.snd _ _ |
| 171 | |
| 172 | instance first_proper : IsProper (first X) := |
| 173 | inferInstanceAs (IsProper (pullback.fst X.structureMap (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1))) |
| 174 | |
| 175 | instance noetherian : IsNoetherian (space X) where |
| 176 | |
| 177 | variable (A : (Matrix (Fin (X.ambientDimension + 1)) (Fin (X.ambientDimension + 1)) ℂ)ˣ) |
| 178 | |
| 179 | def inclusion : FamilyOnSource.Family.space X A ⟶ space X := |
| 180 | pullback.lift (FamilyOnSource.Family.toSource X A) (FamilySections.Family.parameter X A ≫ MatrixParameterOpen.inclusion A) (by |
| 181 | rw [Category.assoc, MatrixParameterOpen.over_base] |
| 182 | exact (FamilyFibers.source_base_change X A).w) |
| 183 | |
| 184 | theorem inclusion_first : inclusion X A ≫ first X = FamilyOnSource.Family.toSource X A := pullback.lift_fst _ _ _ |
| 185 | |
| 186 | theorem inclusion_second : inclusion X A ≫ second X = FamilySections.Family.parameter X A ≫ MatrixParameterOpen.inclusion A := |
| 187 | pullback.lift_snd _ _ _ |
| 188 | |
| 189 | theorem isPullback : IsPullback (inclusion X A) (FamilySections.Family.parameter X A) (second X) |
| 190 | (MatrixParameterOpen.inclusion A) := by |
| 191 | apply (IsPullback.paste_horiz_iff (IsPullback.of_hasPullback X.structureMap (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1)) |
| 192 | (inclusion_second X A)).mp |
| 193 | change IsPullback (inclusion X A ≫ first X) (FamilySections.Family.parameter X A) X.structureMap |
| 194 | (MatrixParameterOpen.inclusion A ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase 1) |
| 195 | rw [inclusion_first, MatrixParameterOpen.over_base] |
| 196 | exact FamilyFibers.source_base_change X A |
| 197 | |
| 198 | instance inclusion_open : IsOpenImmersion (inclusion X A) := by |
| 199 | let h := isPullback X A |
| 200 | have hi : IsOpenImmersion (h.isoPullback.hom ≫ pullback.fst (second X) (MatrixParameterOpen.inclusion A)) := |
| 201 | inferInstance |
| 202 | rw [h.isoPullback_hom_fst] at hi |
| 203 | exact hi |
| 204 | |
| 205 | end FamilyCompactAmbient |
| 206 | |
| 207 | end |
| 208 | |
| 209 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyIs |