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.Divisors.LineBundles.SchemeCycle.FundamentalTrace |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ClosedSupportPurity |
| 3 | import OAI.AlgebraicTopology.Duality.Poincare.CompactSupportAnd |
| 4 | |
| 5 | /-! # Compact Trace Detection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Scheme.CompactTraceDetection.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Compact tests outside a sufficiently small actual algebraic closed |
| 12 | set detect ordinary cohomology on a general smooth complex scheme. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 15 | open OAI.AlgebraicTopology.Duality.Poincare.CompactSupportAnd |
| 16 | |
| 17 | variable (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] |
| 18 | [AlgebraicGeometry.IsNoetherian X.left] [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] |
| 19 | |
| 20 | local instance : SecondCountableTopology (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) := by |
| 21 | let : QuasiCompact X.hom := inferInstance |
| 22 | exact ComplexPoints.Analytic.FiniteTypeSchemeTopology.schemePoints_secondCountable X |
| 23 | |
| 24 | theorem schemeCohomology_zero_of_compactTrace_outside_closed |
| 25 | (F : Closeds X.left) (c : ℕ) |
| 26 | (hc : ∀ Z : IrreducibleCloseds X.left, (Z : Set X.left) ⊆ F → |
| 27 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z X.hom + c ≤ Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension X.hom) |
| 28 | (p n : ℕ) (hn : p + n = 2 * Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) |
| 29 | (hp : p + 1 < 2 * c) (a : Betti.Scheme.schemeBetti (ModuleCat.of ℚ ℚ) X p) |
| 30 | (ha : ∀ (L : Compacts (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)), |
| 31 | (L : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) ⊆ CycleClass.Thom.ProperImage.AnalyticRestriction.Constructions.Construction.schemeAnalyticOpen X F.compl → |
| 32 | ∀ b : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) |
| 33 | (L : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X))ᶜ n, |
| 34 | AlgebraicTopology.Duality.Poincare.CompactSupportDualCohomology.compactSupportEvaluation (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) |
| 35 | (M := ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) p n hn a |
| 36 | (AlgebraicTopology.Duality.Poincare.CompactSupportCohomology.compactSupportCohomologyι (ModuleCat.of ℚ ℚ) (TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) L n b) = 0) : |
| 37 | a = 0 := by |
| 38 | let T := TopCat.of (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) |
| 39 | let U := CycleClass.Thom.ProperImage.AnalyticRestriction.Constructions.Construction.schemeAnalyticOpen X F.compl |
| 40 | let r := AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCohomologyRestriction (ModuleCat.of ℚ ℚ) T (U : Set T) p |
| 41 | let : IsIso r := CycleClass.Thom.Scheme.ClosedSupportPurity.Constructions.closedComplement_restriction_isIso X F c hc p hp |
| 42 | have hr : r a = 0 := by |
| 43 | apply (AlgebraicTopology.Duality.Poincare.CompactSupportAnd.cohomology_eq_iff_compactSupportStage_evaluation_eq |
| 44 | (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) (M := U) p n hn (r a) 0).mpr |
| 45 | intro K b |
| 46 | let e := AlgebraicTopology.Duality.Poincare.CompactSupportExcision.compactSupportOpenStageIso (X := T) U K n |
| 47 | have h := CycleClass.Thom.Open.CompactPairing.Constructions.evaluation_openStage |
| 48 | (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) U K p n hn a (e.inv b) |
| 49 | have hz := ha (AlgebraicTopology.Duality.Poincare.CompactSupportExcision.openSupportImage (X := T) U K) (AlgebraicTopology.Duality.Poincare.CompactSupportExcision.openSupportImage_subset (X := T) U K) (e.inv b) |
| 50 | change _ = AlgebraicTopology.Duality.Poincare.CompactSupportDualCohomology.compactSupportEvaluation (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) |
| 51 | (M := U) p n hn (r a) |
| 52 | (AlgebraicTopology.Duality.Poincare.CompactSupportCohomology.compactSupportCohomologyι (ModuleCat.of ℚ ℚ) (TopCat.of U) K n (e.hom (e.inv b))) at h |
| 53 | rw [Iso.inv_hom_id_apply] at h |
| 54 | exact (h.symm.trans hz).trans (by simp only [map_zero, LinearMap.zero_apply]) |
| 55 | have he := congrArg (inv r) hr |
| 56 | exact (Iso.hom_inv_id_apply (asIso r) a).symm.trans (he.trans (map_zero _)) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Scheme.CompactTraceDetection.BundleCycles |