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.FamilyRegularity |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyIs |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CompactHorizontalFamilyFiber |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportClosure |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProductSupportDimension |
| 6 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Grading |
| 7 | |
| 8 | /-! # Source Constant Family -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceConstantFamily |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | section |
| 15 | |
| 16 | /-! The intrinsic moving source family is smooth of dimension m+1, |
| 17 | and integral when the source is integral. Its native stalks therefore |
| 18 | carry the finite projective-dimension bound used in fiber comparisons. -/ |
| 19 | |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option backward.isDefEq.respectTransparency.types false |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 24 | |
| 25 | namespace FamilyRegularity |
| 26 | |
| 27 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 28 | (A : (Matrix (Fin (X.ambientDimension + 1)) (Fin (X.ambientDimension + 1)) ℂ)ˣ) |
| 29 | |
| 30 | def base : Projective.FamilyOnSource.Family.space X A ⟶ Foundations.Scheme.ProjectiveSpace.complexBase := |
| 31 | Projective.FamilyOnSource.Family.toSource X A ≫ X.structureMap |
| 32 | |
| 33 | theorem parameter_base : Projective.FamilySections.Family.parameter X A ≫ |
| 34 | Parameter.Polynomial.IntegralProduct.parameterBase A = base X A := |
| 35 | (Projective.FamilyIs.FamilyFibers.source_base_change X A).w.symm |
| 36 | |
| 37 | theorem relativeDimension (m : ℕ) [SmoothOfRelativeDimension m X.structureMap] : |
| 38 | SmoothOfRelativeDimension m (Projective.FamilySections.Family.parameter X A) := by |
| 39 | let : MorphismProperty.IsStableUnderBaseChange (@SmoothOfRelativeDimension m) := |
| 40 | smoothOfRelativeDimension_isStableUnderBaseChange m |
| 41 | exact MorphismProperty.of_isPullback (Projective.FamilyIs.FamilyFibers.source_base_change X A) |
| 42 | (inferInstanceAs (SmoothOfRelativeDimension m X.structureMap)) |
| 43 | |
| 44 | theorem totalDimension (m : ℕ) [SmoothOfRelativeDimension m X.structureMap] : |
| 45 | SmoothOfRelativeDimension (m + 1) (base X A) := by |
| 46 | let := relativeDimension X A m |
| 47 | rw [← parameter_base] |
| 48 | exact smoothOfRelativeDimension_comp (Projective.FamilySections.Family.parameter X A) |
| 49 | (Parameter.Polynomial.IntegralProduct.parameterBase A) (n := m) (m := 1) |
| 50 | |
| 51 | theorem integral [IsIntegral X.carrier] : IsIntegral (Projective.FamilyOnSource.Family.space X A) := |
| 52 | inferInstanceAs (IsIntegral (Parameter.Polynomial.ProjectiveSubschemeFamily.space A X.embedding)) |
| 53 | |
| 54 | theorem stalk_bound (m : ℕ) [SmoothOfRelativeDimension m X.structureMap] |
| 55 | (x : Projective.FamilyOnSource.Family.space X A) : |
| 56 | Polynomial.DimensionBound.GlobalBound ((Projective.FamilyOnSource.Family.space X A).presheaf.stalk x) (m + 1) := by |
| 57 | let := totalDimension X A m |
| 58 | exact ProjectionFormula.Smooth.StalkDimension.stalk_bound (base X A) (m + 1) x |
| 59 | |
| 60 | end FamilyRegularity |
| 61 | |
| 62 | end |
| 63 | |
| 64 | section |
| 65 | |
| 66 | /-! A fixed integral support of X has its actual constant closed |
| 67 | family inside the intrinsic moving source family. Its support is the |
| 68 | inverse image of the fixed support and it is flat over the parameter. -/ |
| 69 | |
| 70 | set_option backward.isDefEq.respectTransparency false |
| 71 | set_option backward.isDefEq.respectTransparency.types false |
| 72 | |
| 73 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 74 | |
| 75 | namespace Family |
| 76 | |
| 77 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 78 | (A : (Matrix (Fin (X.ambientDimension + 1)) (Fin (X.ambientDimension + 1)) ℂ)ˣ) |
| 79 | (B : IrreducibleCloseds X.carrier) |
| 80 | |
| 81 | abbrev embedding : CycleClass.Geometric.GenericPoint.reducedSupportScheme B ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace X.ambientDimension := |
| 82 | CycleClass.Geometric.GenericPoint.reducedSupportι B ≫ X.embedding |
| 83 | |
| 84 | abbrev space : Scheme := Parameter.Polynomial.ProjectiveSubschemeFamily.space A (Family.embedding X B) |
| 85 | |
| 86 | def map : space X A B ⟶ Projective.FamilyOnSource.Family.space X A := |
| 87 | pullback.map _ _ _ _ (𝟙 _) (CycleClass.Geometric.GenericPoint.reducedSupportι B) (𝟙 _) |
| 88 | (by simp) (by simp [Family.embedding]) |
| 89 | |
| 90 | instance closed : IsClosedImmersion (Family.map X A B) := by |
| 91 | unfold Family.map |
| 92 | exact MorphismProperty.pullbackMap (P := @IsClosedImmersion) |
| 93 | (inferInstanceAs (IsClosedImmersion (𝟙 (Projective.MatrixFamily.Family.space A)))) |
| 94 | (inferInstanceAs (IsClosedImmersion (CycleClass.Geometric.GenericPoint.reducedSupportι B))) (by simp) (by simp [Family.embedding]) |
| 95 | |
| 96 | theorem toAmbient : Family.map X A B ≫ Projective.FamilyOnSource.Family.toAmbient X A = |
| 97 | Parameter.Polynomial.ProjectiveSubschemeFamily.toAmbient A (Family.embedding X B) := by |
| 98 | simp [Family.map, Projective.FamilyOnSource.Family.toAmbient, Parameter.Polynomial.ProjectiveSubschemeFamily.toAmbient] |
| 99 | |
| 100 | theorem toSource : Family.map X A B ≫ Projective.FamilyOnSource.Family.toSource X A = |
| 101 | Parameter.Polynomial.ProjectiveSubschemeFamily.toSource A (Family.embedding X B) ≫ CycleClass.Geometric.GenericPoint.reducedSupportι B := by |
| 102 | simp [Family.map, Projective.FamilyOnSource.Family.toSource, Parameter.Polynomial.ProjectiveSubschemeFamily.toSource] |
| 103 | |
| 104 | theorem isPullback : IsPullback (Family.map X A B) (Parameter.Polynomial.ProjectiveSubschemeFamily.toSource A (Family.embedding X B)) |
| 105 | (Projective.FamilyOnSource.Family.toSource X A) (CycleClass.Geometric.GenericPoint.reducedSupportι B) := by |
| 106 | apply (IsPullback.paste_horiz_iff |
| 107 | (IsPullback.of_hasPullback (Projective.FamilySupport.Family.projection A) X.embedding) (toSource X A B)).mp |
| 108 | change IsPullback (Family.map X A B ≫ Projective.FamilyOnSource.Family.toAmbient X A) |
| 109 | (Parameter.Polynomial.ProjectiveSubschemeFamily.toSource A (Family.embedding X B)) |
| 110 | (Projective.FamilySupport.Family.projection A) (Family.embedding X B) |
| 111 | rw [toAmbient] |
| 112 | exact IsPullback.of_hasPullback (Projective.FamilySupport.Family.projection A) (Family.embedding X B) |
| 113 | |
| 114 | theorem parameter : Family.map X A B ≫ Projective.FamilySections.Family.parameter X A = |
| 115 | Parameter.Polynomial.ProjectiveSubschemeFamily.parameter A (Family.embedding X B) := by |
| 116 | change Family.map X A B ≫ (Projective.FamilyOnSource.Family.toAmbient X A ≫ _) = _ |
| 117 | rw [← Category.assoc, toAmbient] |
| 118 | rfl |
| 119 | |
| 120 | theorem parameterLine : Family.map X A B ≫ CompactHorizontalFamilyFiber.Family.parameter X A = |
| 121 | Parameter.Polynomial.ProjectiveSubschemeFamily.parameter A (Family.embedding X B) ≫ Parameter.Polynomial.IntegralProduct.toLine A := by |
| 122 | change Family.map X A B ≫ (Projective.FamilySections.Family.parameter X A ≫ _) = _ |
| 123 | rw [← Category.assoc, parameter] |
| 124 | |
| 125 | def support : IrreducibleCloseds (Projective.FamilyOnSource.Family.space X A) := |
| 126 | Closed.ImmersionSupport.support (Family.map X A B) |
| 127 | |
| 128 | theorem support_coe : (support X A B : Set (Projective.FamilyOnSource.Family.space X A)) = |
| 129 | Projective.FamilyOnSource.Family.toSource X A ⁻¹' (B : Set X.carrier) := by |
| 130 | rw [support, ProjectionFormula.Flat.ClosedSupport.support_range] |
| 131 | rw [Open.SupportClosure.Pullback.range (Family.map X A B) (Parameter.Polynomial.ProjectiveSubschemeFamily.toSource A (Family.embedding X B)) |
| 132 | (Projective.FamilyOnSource.Family.toSource X A) (CycleClass.Geometric.GenericPoint.reducedSupportι B) (isPullback X A B), CycleClass.Geometric.GenericPoint.range_reducedSupportι] |
| 133 | |
| 134 | instance flat_parameter : Flat (Family.map X A B ≫ CompactHorizontalFamilyFiber.Family.parameter X A) := by |
| 135 | rw [parameterLine] |
| 136 | infer_instance |
| 137 | |
| 138 | instance support_flat : Flat (CycleClass.Geometric.GenericPoint.reducedSupportι (support X A B) ≫ CompactHorizontalFamilyFiber.Family.parameter X A) := |
| 139 | ProjectionFormula.Flat.ClosedSupport.flat (Family.map X A B) (CompactHorizontalFamilyFiber.Family.parameter X A) |
| 140 | |
| 141 | theorem section_square (a : ℂ) (ha : (Polynomial.MatrixPath.determinant A).eval a ≠ 0) : |
| 142 | Parameter.Polynomial.ProjectiveSubschemeFamily.specialization A (Family.embedding X B) a ha ≫ Family.map X A B = |
| 143 | CycleClass.Geometric.GenericPoint.reducedSupportι B ≫ Projective.FamilyOnSource.Family.specialization X A a ha := by |
| 144 | apply pullback.hom_ext |
| 145 | · change (Parameter.Polynomial.ProjectiveSubschemeFamily.specialization A (Family.embedding X B) a ha ≫ Family.map X A B) ≫ |
| 146 | Projective.FamilyOnSource.Family.toAmbient X A = |
| 147 | (CycleClass.Geometric.GenericPoint.reducedSupportι B ≫ Projective.FamilyOnSource.Family.specialization X A a ha) ≫ |
| 148 | Projective.FamilyOnSource.Family.toAmbient X A |
| 149 | simp only [Category.assoc, toAmbient, Parameter.Polynomial.ProjectiveSubschemeFamily.specialization_ambient, |
| 150 | Projective.FamilyOnSource.Family.specialization_ambient] |
| 151 | · change (Parameter.Polynomial.ProjectiveSubschemeFamily.specialization A (Family.embedding X B) a ha ≫ Family.map X A B) ≫ |
| 152 | Projective.FamilyOnSource.Family.toSource X A = |
| 153 | (CycleClass.Geometric.GenericPoint.reducedSupportι B ≫ Projective.FamilyOnSource.Family.specialization X A a ha) ≫ |
| 154 | Projective.FamilyOnSource.Family.toSource X A |
| 155 | rw [Category.assoc, toSource, ← Category.assoc, |
| 156 | Parameter.Polynomial.ProjectiveSubschemeFamily.specialization_source, Category.id_comp, |
| 157 | Category.assoc, Projective.FamilyOnSource.Family.specialization_source, Category.comp_id] |
| 158 | |
| 159 | end Family |
| 160 | |
| 161 | end |
| 162 | |
| 163 | /-! The constant source family of a support has dimension at most |
| 164 | the support dimension plus the one parameter dimension. -/ |
| 165 | |
| 166 | set_option backward.isDefEq.respectTransparency false |
| 167 | set_option backward.isDefEq.respectTransparency.types false |
| 168 | |
| 169 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 170 | |
| 171 | namespace Dimension |
| 172 | |
| 173 | theorem bound (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 174 | (A : (Matrix (Fin (X.ambientDimension + 1)) (Fin (X.ambientDimension + 1)) ℂ)ˣ) |
| 175 | (B : IrreducibleCloseds X.carrier) : |
| 176 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Family.support X A B) |
| 177 | (FamilyRegularity.base X A) ≤ Foundations.Scheme.SupportDimension.supportTranscendenceDimension B X.structureMap + 1 := by |
| 178 | let i := Family.embedding X B |
| 179 | let f := Parameter.Polynomial.IntegralProduct.parameterBase A |
| 180 | let g := i ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase X.ambientDimension |
| 181 | let e := Parameter.Polynomial.ProjectiveSubschemeFamily.productIso A i |
| 182 | let J := Family.map X A B |
| 183 | let : Nonempty (Spec (.of (Polynomial.MatrixPath.Ring A))) := |
| 184 | ⟨(Spec.map (CommRingCat.ofHom (Polynomial.MatrixPath.evaluation A 0 |
| 185 | (Polynomial.MatrixPath.zero_good A)))) (IsLocalRing.closedPoint ℂ)⟩ |
| 186 | let : IsIntegral (Spec (.of (Polynomial.MatrixPath.Ring A))) := |
| 187 | isIntegral_of_isOpenImmersion (Parameter.Polynomial.IntegralProduct.toLine A) |
| 188 | have hg : g = CycleClass.Geometric.GenericPoint.reducedSupportι B ≫ X.structureMap := by |
| 189 | change (CycleClass.Geometric.GenericPoint.reducedSupportι B ≫ X.embedding) ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase X.ambientDimension = _ |
| 190 | rw [Category.assoc, X.embedding_over] |
| 191 | let : Smooth f := SmoothOfRelativeDimension.smooth 1 f |
| 192 | let : LocallyOfFiniteType g := by rw [hg]; infer_instance |
| 193 | have hgd : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.SupportDimension.supportTranscendenceDimension B X.structureMap := by |
| 194 | rw [hg] |
| 195 | rfl |
| 196 | have he : e.hom ≫ pullback.fst f g ≫ f = |
| 197 | Parameter.Polynomial.ProjectiveSubschemeFamily.toSource A i ≫ g := by |
| 198 | have he₁ : e.hom ≫ pullback.fst f g = Parameter.Polynomial.ProjectiveSubschemeFamily.parameter A i := |
| 199 | (Parameter.Polynomial.ProjectiveSubschemeFamily.base_change A i).isoPullback_hom_fst |
| 200 | rw [← Category.assoc, he₁] |
| 201 | exact (Parameter.Polynomial.ProjectiveSubschemeFamily.base_change A i).w |
| 202 | have hJ : J ≫ FamilyRegularity.base X A = |
| 203 | Parameter.Polynomial.ProjectiveSubschemeFamily.toSource A i ≫ g := by |
| 204 | change J ≫ (Projective.FamilyOnSource.Family.toSource X A ≫ X.structureMap) = _ |
| 205 | rw [← Category.assoc, Family.toSource, Category.assoc, ← hg] |
| 206 | have himage := CycleClass.Geometric.StratumClosure.schemeTranscendenceDimension_eq_imageClosure J (FamilyRegularity.base X A) |
| 207 | have heimage := CycleClass.Geometric.StratumClosure.schemeTranscendenceDimension_eq_imageClosure e.hom (pullback.fst f g ≫ f) |
| 208 | have hb := ProductSupportDimension.bound f g (CycleClass.Geometric.StratumClosure.integralImageClosure e.hom) |
| 209 | have hf : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f = 1 := |
| 210 | Grading.integral_dimension_of_relativeDimension f 1 |
| 211 | change Foundations.Scheme.SupportDimension.supportTranscendenceDimension (CycleClass.Geometric.StratumClosure.integralImageClosure J) (FamilyRegularity.base X A) ≤ _ |
| 212 | rw [← himage, hJ, ← he, heimage] |
| 213 | rw [hf, hgd] at hb |
| 214 | simpa only [Nat.add_comm] using hb |
| 215 | |
| 216 | end Dimension |
| 217 | |
| 218 | end |
| 219 | |
| 220 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceConstantFamily |