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.AlgebraicTopology.DeRham.Comparison.RegularAmbientCohomology |
| 3 | |
| 4 | /-! # Codimension Two Removal -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.CodimensionTwoRemoval |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # ThomClass: actual degree-two restriction across higher-codimension subsets |
| 12 | |
| 13 | The two obstruction groups vanish by the actual stratification purity |
| 14 | theorem. Hence both absolute and supported degree-two restriction are |
| 15 | isomorphisms. A neighborhood of every codimension-one point, together with |
| 16 | the reference open, has exactly such an ignorable closed complement. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | open OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.SectionEvaluation.Constructions |
| 21 | |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option backward.isDefEq.respectTransparency.types false |
| 24 | set_option backward.defeqAttrib.useBackward true |
| 25 | |
| 26 | namespace Constructions |
| 27 | |
| 28 | open OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.CodimensionTwoPurity.Constructions |
| 29 | |
| 30 | variable (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] |
| 31 | [AlgebraicGeometry.IsNoetherian X.left] [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] |
| 32 | (F : Closeds X.left) (hF : ∀ z ∈ F, 1 < Order.coheight z) |
| 33 | |
| 34 | local notation "T" => TopCat.of (OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) |
| 35 | |
| 36 | include hF in |
| 37 | /-- The actual global obstruction groups vanish below degree four. -/ |
| 38 | theorem codimensionTwo_cohomology_isZero (n : ℕ) (hn : n < 4) : |
| 39 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X F.compl : Set T) n) := |
| 40 | (CodimensionTwoPurity.Constructions.codimensionTwo_open_cohomology_isZero X F hF ⊤ n hn).of_iso |
| 41 | (AlgebraicTopology.Cohomology.Singular.RelativeOpenSupport.relativeCohomologyPresheafTopIso (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X F.compl : Set T) n).symm |
| 42 | |
| 43 | include hF in |
| 44 | /-- Ordinary degree-two cohomology is unchanged by removing this actual |
| 45 | closed algebraic subset. -/ |
| 46 | theorem codimensionTwo_absoluteRestriction_isIso : |
| 47 | IsIso (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCohomologyRestriction (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X F.compl : Set T) 2) := |
| 48 | AlgebraicTopology.DeRham.Comparison.RegularAmbientCohomology.subspaceCohomologyRestriction_isIso_of_relative_zero |
| 49 | (ModuleCat.of ℚ ℚ) T (SectionEvaluation.Constructions.analyticOpen X F.compl : Set T) 2 |
| 50 | (codimensionTwo_cohomology_isZero X F hF 2 (by decide)) |
| 51 | (codimensionTwo_cohomology_isZero X F hF 3 (by decide)) |
| 52 | |
| 53 | include hF in |
| 54 | /-- Restriction of supported degree-two cohomology is also the actual |
| 55 | triple-sequence isomorphism. -/ |
| 56 | theorem codimensionTwo_relativeRestriction_isIso (B : Set T) |
| 57 | (hB : B ⊆ SectionEvaluation.Constructions.analyticOpen X F.compl) : |
| 58 | IsIso (Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T B (SectionEvaluation.Constructions.analyticOpen X F.compl) 2) := |
| 59 | Geometric.RelativeCochainTriple.Cohomology.relativeCohomologyTripleRestriction_isIso (ModuleCat.of ℚ ℚ) T |
| 60 | (SectionEvaluation.Constructions.analyticOpen X F.compl : Set T) B hB 2 |
| 61 | (codimensionTwo_cohomology_isZero X F hF 2 (by decide)) |
| 62 | (codimensionTwo_cohomology_isZero X F hF 3 (by decide)) |
| 63 | |
| 64 | include hF in |
| 65 | theorem codimensionTwo_relative_eq_iff (B : Set T) (hB : B ⊆ SectionEvaluation.Constructions.analyticOpen X F.compl) |
| 66 | (a b : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) T B 2) : |
| 67 | a = b ↔ |
| 68 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T B (SectionEvaluation.Constructions.analyticOpen X F.compl) 2 a = |
| 69 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T B (SectionEvaluation.Constructions.analyticOpen X F.compl) 2 b := by |
| 70 | have := codimensionTwo_relativeRestriction_isIso X F hF B hB |
| 71 | exact ((ModuleCat.mono_iff_injective _).mp inferInstance).eq_iff.symm |
| 72 | |
| 73 | omit [Smooth X.hom] [AlgebraicGeometry.IsNoetherian X.left] |
| 74 | [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] in |
| 75 | theorem one_le_coheight_of_not_mem (R : X.left.Opens) [Nonempty R] |
| 76 | (z : X.left) (hz : z ∉ R) : 1 ≤ Order.coheight z := by |
| 77 | let Z : IrreducibleCloseds X.left := irreducibleSetEquivPoints.symm z |
| 78 | let W : IrreducibleCloseds X.left := |
| 79 | ⟨Set.univ, IrreducibleSpace.isIrreducible_univ X.left, isClosed_univ⟩ |
| 80 | have hZ : (Z : Set X.left) ⊆ (R : Set X.left)ᶜ := |
| 81 | closure_minimal (Set.singleton_subset_iff.mpr hz) R.isOpen.isClosed_compl |
| 82 | have hZW : Z < W := by |
| 83 | apply lt_of_le_not_ge (Set.subset_univ _) |
| 84 | intro hWZ |
| 85 | obtain ⟨y⟩ := ‹Nonempty R› |
| 86 | exact hZ (hWZ (Set.mem_univ y.val)) y.property |
| 87 | have hc : 1 ≤ Order.coheight Z := |
| 88 | (show (1 : ℕ∞) ≤ Order.coheight W + 1 from le_add_self).trans |
| 89 | (Order.coheight_add_one_le hZW) |
| 90 | simpa only [Z, Order.coheight_orderIso] using hc |
| 91 | |
| 92 | omit [Smooth X.hom] [AlgebraicGeometry.IsNoetherian X.left] |
| 93 | [MetrizableSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] in |
| 94 | theorem complement_comparisonOpen_coheight |
| 95 | (R : X.left.Opens) [Nonempty R] |
| 96 | (U : {z : X.left // Order.coheight z = 1} → X.left.Opens) |
| 97 | (hU : ∀ z, z.val ∈ U z) : |
| 98 | ∀ z ∈ (R ⊔ iSup U).compl, 1 < Order.coheight z := by |
| 99 | intro z hz |
| 100 | have hzR : z ∉ R := fun h => hz (Or.inl h) |
| 101 | have h1 := one_le_coheight_of_not_mem X R z hzR |
| 102 | apply lt_of_le_of_ne h1 |
| 103 | intro he |
| 104 | exact hz (Or.inr (Opens.mem_iSup.mpr ⟨⟨z, he.symm⟩, hU ⟨z, he.symm⟩⟩)) |
| 105 | |
| 106 | end Constructions |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.CodimensionTwoRemoval |