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.Scheme.CodimensionTwoPurity |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Open.FlasqueComparison |
| 3 | |
| 4 | /-! # Open Complement Purity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.OpenComplementPurity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Purity and the canonical section comparison for the complement of any |
| 11 | nonempty algebraic open in a metrizable integral smooth complex scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | open OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.SectionEvaluation.Constructions |
| 15 | open scoped _root_.Manifold ContDiff |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | |
| 21 | namespace Constructions |
| 22 | |
| 23 | variable (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] |
| 24 | [AlgebraicGeometry.IsNoetherian X.left] |
| 25 | (R : X.left.Opens) [Nonempty R] |
| 26 | |
| 27 | /-- A stratum in the complement of a nonempty open has strictly smaller dimension. -/ |
| 28 | theorem complementPiece_dimension (P : Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece X.hom) |
| 29 | (hP : P.support ⊆ R.compl) : |
| 30 | P.dimension + 1 ≤ Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension X.hom := by |
| 31 | rw [P.dimension_eq_closure] |
| 32 | let T : IrreducibleCloseds X.left := |
| 33 | ⟨Set.univ, IrreducibleSpace.isIrreducible_univ X.left, isClosed_univ⟩ |
| 34 | have hclosure : (P.closureSupport : Set X.left) ⊆ R.compl := closure_minimal hP R.compl.isClosed |
| 35 | have hPT : P.closureSupport < T := by |
| 36 | apply lt_of_le_not_ge (Set.subset_univ _) |
| 37 | intro hTP |
| 38 | obtain ⟨y⟩ := ‹Nonempty R› |
| 39 | exact hclosure (hTP (Set.mem_univ y.val)) y.property |
| 40 | exact (Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_lt_of_lt P.closureSupport T X.hom hPT).trans_le |
| 41 | (Foundations.Scheme.SupportDimension.supportTranscendenceDimension_le T X.hom) |
| 42 | |
| 43 | theorem complementLayer_dimension |
| 44 | (i : Fin (CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticSupportList.length) : |
| 45 | ((CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticFiltrationPiece i).complexDimension + 1 ≤ |
| 46 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension X.hom := by |
| 47 | rw [Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.complexDimension_eq_dimension] |
| 48 | apply complementPiece_dimension X R |
| 49 | exact (Geometric.IntegralSmoothStratification.support_subset_integralSmoothPiecesSupport |
| 50 | ((CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticFiltrationPiece_mem i)).trans |
| 51 | (le_of_eq (CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).cover) |
| 52 | |
| 53 | local notation "T" => TopCat.of (OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) |
| 54 | local notation "E" => Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) → ℂ |
| 55 | |
| 56 | local instance : ChartedSpace E (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk X.hom)) := |
| 57 | @ComplexPoints.Analytic.IntrinsicSmoothSchemeManifold.nativeSmoothSchemeChartedSpace (Over.mk X.hom) ‹IsIntegral X.left› ‹Smooth X.hom› |
| 58 | |
| 59 | local instance : IsManifold 𝓘(ℂ, E) ω (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk X.hom)) := |
| 60 | @ComplexPoints.Analytic.IntrinsicSmoothSchemeManifold.nativeSmoothSchemeComplexIsManifold (Over.mk X.hom) |
| 61 | ‹IsIntegral X.left› ‹Smooth X.hom› ω |
| 62 | |
| 63 | variable [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] |
| 64 | |
| 65 | local instance : MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk X.hom)) := by |
| 66 | change MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) |
| 67 | infer_instance |
| 68 | |
| 69 | theorem complementLayer_open_cohomology_isZero |
| 70 | (i : Fin (CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticSupportList.length) |
| 71 | (U : Opens (TopCat.of ((CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticFiltrationComplement i))) |
| 72 | (n : ℕ) (hn : n < 2) : |
| 73 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) (TopCat.of U) |
| 74 | {x : U | x.val ∈ Geometric.ClosedSupportFiltration.Cycles.closedSupportLayer T |
| 75 | ((CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticClosedFiltration i.castSucc) |
| 76 | ((CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl).analyticClosedFiltration i.succ)}ᶜ n) := by |
| 77 | let S := CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl |
| 78 | let : MetrizableSpace (S.analyticFiltrationComplement i) := MetrizableSpace.subtype _ |
| 79 | have hdim : n < 2 * (Module.finrank ℂ E - |
| 80 | Module.finrank ℂ (S.analyticFiltrationPiece i).analyticModel) := by |
| 81 | rw [Module.finrank_fin_fun, Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.analyticModel_complex_finrank, |
| 82 | ← Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.complexDimension_eq_dimension] |
| 83 | have hd := complementLayer_dimension X R i |
| 84 | rw [Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension_eq_functionFieldDifferentialDimension X.hom] at hd |
| 85 | change (S.analyticFiltrationPiece i).complexDimension + 1 ≤ _ at hd |
| 86 | omega |
| 87 | have h := DivisorClass.Chern.Open.ImmersionPurity.closedComplexImmersion_open_supportCohomology_isZero |
| 88 | (S.analyticFiltrationLayerInclusion i) (S.isClosedEmbedding_analyticFiltrationLayerInclusion i) |
| 89 | (S.contMDiff_analyticFiltrationLayerInclusion i ω) |
| 90 | (S.mfderiv_analyticFiltrationLayerInclusion_injective i) U n hdim |
| 91 | simp only [S.range_analyticFiltrationLayerInclusion i] at h |
| 92 | exact h |
| 93 | |
| 94 | /-- The closed complement has no relative cohomology below degree two on any analytic open. -/ |
| 95 | theorem complement_open_cohomology_isZero (U : Opens T) (n : ℕ) (hn : n < 2) : |
| 96 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) (TopCat.of U) |
| 97 | {x : U | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x.val ∈ R.compl}ᶜ n) := by |
| 98 | let S := CodimensionTwoPurity.Constructions.codimensionTwoStratification X R.compl |
| 99 | have h := DivisorClass.Chern.Open.SupportFiltration.closedSupportFiltration_open_isZero T U (ModuleCat.of ℚ ℚ) |
| 100 | S.analyticSupportList.length S.analyticClosedFiltration S.analyticClosedFiltration_monotone |
| 101 | S.analyticClosedFiltration_zero n |
| 102 | (fun i V => complementLayer_open_cohomology_isZero X R i V n hn) |
| 103 | have hlast := S.analyticClosedFiltration_last |
| 104 | rw [hlast] at h |
| 105 | exact h |
| 106 | |
| 107 | /-- Stalk vanishing is obtained from the actual neighborhood cohomology colimit. -/ |
| 108 | theorem complementSupportedStalk_isZero (x : T) (n : ℕ) (hn : n < 2) : |
| 109 | IsZero ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 110 | (Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X R)) x).homology n) := by |
| 111 | let F := AlgebraicTopology.Cohomology.Singular.RelativeStalk.relativeNeighborhoodCohomology (ModuleCat.of ℚ ℚ) T |
| 112 | (SectionEvaluation.Constructions.analyticOpen X R : Set T) x n |
| 113 | have hF : IsZero F := F.isZero (fun U => by |
| 114 | have h := complement_open_cohomology_isZero X R U.unop.1 n hn |
| 115 | have he : {y : U.unop.1 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying y.val ∈ R.compl}ᶜ = |
| 116 | AlgebraicTopology.Cohomology.Singular.RelativeOpenSupport.relativeOpenSubspace (SectionEvaluation.Constructions.analyticOpen X R : Set T) U.unop.1 := by |
| 117 | ext y |
| 118 | exact not_not |
| 119 | rw [he] at h |
| 120 | exact h) |
| 121 | exact ((colimit.isColimit F).isZero_pt hF).of_iso |
| 122 | (AlgebraicTopology.Cohomology.Singular.SupportedStalk.supportedStalkRelativeCohomologyIso ℚ T (SectionEvaluation.Constructions.analyticOpen X R) x n) |
| 123 | |
| 124 | /-- The canonical map to supported cohomology-sheaf sections is invertible. -/ |
| 125 | instance complementSectionMap_isIso (U : Opens T) : |
| 126 | IsIso (Geometric.RelativeCohomologySections.Cycles.relativeCohomologySectionMap (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X R) U 2) := by |
| 127 | rw [Geometric.RelativeCohomologySections.Cycles.relativeCohomologySectionMap_def] |
| 128 | have := AlgebraicTopology.Cohomology.Singular.SupportedRelativeComparison.quasiIso_relativeToSupportedSheafSections_of_metrizable ℚ T (SectionEvaluation.Constructions.analyticOpen X R) U |
| 129 | have := DivisorClass.Chern.Open.FlasqueComparison.rationalFlasqueOpenSectionMap_isIso U |
| 130 | (Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X R)) |
| 131 | (Geometric.GlobalSupportPurity.Cycles.supportedSingularSheaf_isFlasque_of_metrizable (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X R)) 2 |
| 132 | (fun n hn => Geometric.GlobalSupportPurity.Cycles.rationalSheafComplex_exactAt_of_stalk_isZero _ n |
| 133 | (fun x => complementSupportedStalk_isZero X R x n hn)) |
| 134 | infer_instance |
| 135 | |
| 136 | end Constructions |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.OpenComplementPurity |