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.Geometric.SingularBoundaryPurity |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.RegularAmbientCohomology |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Closed Support Purity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.ClosedSupportPurity.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 12 | open scoped ContDiff _root_.Manifold _root_.Topology |
| 13 | |
| 14 | /-- Actual finite smooth stratifications of arbitrary closed algebraic |
| 15 | subsets of the projective ambient variety. -/ |
| 16 | def closedSupportStratification (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (W : Closeds V.carrier) : |
| 17 | CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification V.structureMap (W : Set V.carrier) := by |
| 18 | let : IsNoetherian V.carrier := Foundations.Scheme.ClosedProjective.isNoetherian_of_isProper_toSpec V.structureMap |
| 19 | exact Classical.choice (CycleClass.Geometric.IntegralSmoothStratification.nonempty_integralSmoothGeometricStratification_closed V.structureMap W) |
| 20 | |
| 21 | /-- The dimensions of all irreducible closed supports bound the dimensions |
| 22 | of the actual smooth pieces in a closed-set stratification. -/ |
| 23 | theorem closedSupportStratification_piece_bound |
| 24 | (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (W : Closeds V.carrier) (c : ℕ) |
| 25 | (hc : ∀ Z : IrreducibleCloseds V.carrier, |
| 26 | (Z : Set V.carrier) ⊆ W → c ≤ CycleClass.Geometric.DimensionCycles.dimensionCodimension V Z) |
| 27 | (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece V.structureMap) |
| 28 | (hP : P ∈ (closedSupportStratification V W).pieces) : |
| 29 | P.complexDimension + c ≤ V.complexDimension := by |
| 30 | let : IsNoetherian V.carrier := Foundations.Scheme.ClosedProjective.isNoetherian_of_isProper_toSpec V.structureMap |
| 31 | have hsub : (P.closureSupport : Set V.carrier) ⊆ W := |
| 32 | closure_minimal ((closedSupportStratification V W).piece_support_subset hP) W.isClosed |
| 33 | have hcod := hc P.closureSupport hsub |
| 34 | have hdim := CycleClass.Geometric.DimensionCycles.supportDimension_add_dimensionCodimension V P.closureSupport |
| 35 | rw [P.complexDimension_eq_dimension, P.dimension_eq_closure, |
| 36 | V.complexDimension_eq_transcendenceDimension] |
| 37 | omega |
| 38 | |
| 39 | /-- Purity below the minimum complex codimension of all actual layers |
| 40 | extends across the whole finite algebraic stratification. -/ |
| 41 | theorem stratified_closedSupportCohomology_isZero |
| 42 | (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (W : Closeds V.carrier) |
| 43 | (Q : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification V.structureMap (W : Set V.carrier)) |
| 44 | (c : ℕ) (hc : ∀ P ∈ Q.pieces, P.complexDimension + c ≤ V.complexDimension) |
| 45 | (n : ℕ) (hn : n < 2 * c) : |
| 46 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 47 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (W : Set V.carrier))ᶜ n) := by |
| 48 | let : ChartedSpace V.analyticModel (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap)) := |
| 49 | @ComplexPoints.Analytic.IntrinsicSmoothSchemeManifold.nativeSmoothSchemeChartedSpace (Over.mk V.structureMap) |
| 50 | V.property V.presentation.smooth |
| 51 | let : IsManifold (𝓘(ℂ, V.analyticModel)) ω |
| 52 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap)) := |
| 53 | @ComplexPoints.Analytic.IntrinsicSmoothSchemeManifold.nativeSmoothSchemeComplexIsManifold (Over.mk V.structureMap) |
| 54 | V.property V.presentation.smooth ω |
| 55 | let : MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap)) := by |
| 56 | change MetrizableSpace V.analyticSpace |
| 57 | infer_instance |
| 58 | have hLayer (i : Fin Q.analyticSupportList.length) : |
| 59 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) |
| 60 | (TopCat.of (Q.analyticFiltrationComplement i)) |
| 61 | (CycleClass.Geometric.ClosedSupportFiltration.Cycles.closedSupportLayer (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap))) |
| 62 | (Q.analyticClosedFiltration i.castSucc) (Q.analyticClosedFiltration i.succ))ᶜ n) := by |
| 63 | let : MetrizableSpace (Q.analyticFiltrationComplement i) := by |
| 64 | change MetrizableSpace |
| 65 | ↥((Q.analyticClosedFiltration i.castSucc : |
| 66 | Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap)))ᶜ) |
| 67 | infer_instance |
| 68 | rw [← Q.range_analyticFiltrationLayerInclusion i] |
| 69 | apply CycleClass.Geometric.GlobalSupportPurity.Cycles.closedComplexImmersion_supportCohomology_isZero |
| 70 | (E := (Q.analyticFiltrationPiece i).analyticModel) (F := V.analyticModel) |
| 71 | (Q.analyticFiltrationLayerInclusion i) |
| 72 | (Q.isClosedEmbedding_analyticFiltrationLayerInclusion i) |
| 73 | (Q.contMDiff_analyticFiltrationLayerInclusion i ω) |
| 74 | (Q.mfderiv_analyticFiltrationLayerInclusion_injective i) n |
| 75 | rw [V.analyticModel_complex_finrank, |
| 76 | (Q.analyticFiltrationPiece i).analyticModel_complex_finrank] |
| 77 | have hi := hc (Q.analyticFiltrationPiece i) (Q.analyticFiltrationPiece_mem i) |
| 78 | rw [(Q.analyticFiltrationPiece i).complexDimension_eq_dimension] at hi |
| 79 | omega |
| 80 | have hzero := CycleClass.Geometric.ClosedSupportFiltration.Cycles.closedSupportFiltration_isZero (ModuleCat.of ℚ ℚ) |
| 81 | (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap))) Q.analyticSupportList.length |
| 82 | Q.analyticClosedFiltration Q.analyticClosedFiltration_monotone n |
| 83 | (by |
| 84 | simpa only [Q.analyticClosedFiltration_zero, Closeds.coe_bot] using |
| 85 | CycleClass.Geometric.ClosedSupportFiltration.Cycles.cohomologyWithEmptySupport_isZero (ModuleCat.of ℚ ℚ) |
| 86 | (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap))) n) |
| 87 | hLayer |
| 88 | change IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) |
| 89 | (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk V.structureMap))) |
| 90 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (W : Set V.carrier))ᶜ n) |
| 91 | simpa only [Q.analyticClosedFiltration_last] using hzero |
| 92 | |
| 93 | /-- Rational cohomology supported on an arbitrary algebraic closed set |
| 94 | vanishes below twice its minimum complex codimension. -/ |
| 95 | theorem closedSupportCohomology_isZero |
| 96 | (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (W : Closeds V.carrier) (c : ℕ) |
| 97 | (hc : ∀ Z : IrreducibleCloseds V.carrier, |
| 98 | (Z : Set V.carrier) ⊆ W → c ≤ CycleClass.Geometric.DimensionCycles.dimensionCodimension V Z) |
| 99 | (n : ℕ) (hn : n < 2 * c) : |
| 100 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 101 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (W : Set V.carrier))ᶜ n) := |
| 102 | stratified_closedSupportCohomology_isZero V W (closedSupportStratification V W) c |
| 103 | (closedSupportStratification_piece_bound V W c hc) n hn |
| 104 | |
| 105 | /-- Removing an algebraic closed set of codimension greater than `p` |
| 106 | preserves the actual ordinary cohomology in the cycle-class degree. -/ |
| 107 | theorem closedComplement_cohomologyRestriction_isIso |
| 108 | (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (W : Closeds V.carrier) (p : ℕ) |
| 109 | (hc : ∀ Z : IrreducibleCloseds V.carrier, |
| 110 | (Z : Set V.carrier) ⊆ W → p < CycleClass.Geometric.DimensionCycles.dimensionCodimension V Z) : |
| 111 | IsIso (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCohomologyRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 112 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (W : Set V.carrier))ᶜ (p + p)) := |
| 113 | AlgebraicTopology.DeRham.Comparison.RegularAmbientCohomology.subspaceCohomologyRestriction_isIso_of_relative_zero |
| 114 | (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) _ (p + p) |
| 115 | (closedSupportCohomology_isZero V W (p + 1) hc (p + p) (by omega)) |
| 116 | (closedSupportCohomology_isZero V W (p + 1) hc (p + p + 1) (by omega)) |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.AlgebraicGeometry.Cycles.Functoriality.ClosedSupportPurity.Construction |