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.RelativeCochainTriple |
| 2 | import Mathlib.Topology.Sets.Closeds |
| 3 | import Mathlib.Data.Fin.SuccPred |
| 4 | import Mathlib.Topology.LocallyClosed |
| 5 | |
| 6 | /-! # Closed Support Filtration -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ClosedSupportFiltration.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Vanishing along finite closed support filtrations |
| 14 | |
| 15 | The layer between two closed subsets is considered in the actual open |
| 16 | complement of the smaller support. Its support cohomology is the existing |
| 17 | relative singular cohomology of that open space and the complement of the |
| 18 | layer. The genuine relative-cochain triple sequence supplies the induction |
| 19 | step. No geometric purity statement is assumed for arbitrary layers. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 23 | open OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeCochainTriple.Cohomology |
| 24 | |
| 25 | set_option backward.isDefEq.respectTransparency false |
| 26 | set_option backward.isDefEq.respectTransparency.types false |
| 27 | |
| 28 | variable {R : Type} [Ring R] |
| 29 | |
| 30 | /-- The layer between two closed supports, inside the actual open |
| 31 | complement of the smaller support. -/ |
| 32 | def closedSupportLayer (X : TopCat.{0}) (F G : Closeds X) : |
| 33 | Set (TopCat.of ((F : Set X)ᶜ : Set X)) := |
| 34 | {x | x.val ∈ (G : Set X)} |
| 35 | |
| 36 | /-- The layer is closed in this open ambient space. -/ |
| 37 | theorem closedSupportLayer_isClosed (X : TopCat.{0}) (F G : Closeds X) : |
| 38 | IsClosed (closedSupportLayer X F G) := |
| 39 | G.isClosed.preimage continuous_subtype_val |
| 40 | |
| 41 | /-- In the original space, the same layer is exactly the set difference. -/ |
| 42 | theorem closedSupportLayer_image (X : TopCat.{0}) (F G : Closeds X) : |
| 43 | Subtype.val '' closedSupportLayer X F G = (G : Set X) \ (F : Set X) := by |
| 44 | ext x |
| 45 | constructor |
| 46 | · rintro ⟨⟨y, hy⟩, hyG, rfl⟩ |
| 47 | exact ⟨hyG, hy⟩ |
| 48 | · rintro ⟨hxG, hxF⟩ |
| 49 | exact ⟨⟨x, hxF⟩, hxG, rfl⟩ |
| 50 | |
| 51 | /-- The same layer is locally closed in the original ambient space. -/ |
| 52 | theorem closedSupportLayer_image_isLocallyClosed (X : TopCat.{0}) (F G : Closeds X) : |
| 53 | IsLocallyClosed (Subtype.val '' closedSupportLayer X F G) := by |
| 54 | rw [closedSupportLayer_image] |
| 55 | exact G.isClosed.isLocallyClosed.inter F.isClosed.isOpen_compl.isLocallyClosed |
| 56 | |
| 57 | /-- The complement of the layer is the literal subspace used by the |
| 58 | relative-cochain triple. -/ |
| 59 | @[simp] |
| 60 | theorem closedSupportLayer_compl (X : TopCat.{0}) (F G : Closeds X) : |
| 61 | (closedSupportLayer X F G)ᶜ = |
| 62 | RelativeCochainTriple.Cohomology.relativeTripleSubspace X (F : Set X)ᶜ (G : Set X)ᶜ := rfl |
| 63 | |
| 64 | /-- Empty support has zero genuine relative singular cohomology in every degree. -/ |
| 65 | theorem cohomologyWithEmptySupport_isZero (M : ModuleCat.{0} R) |
| 66 | (X : TopCat.{0}) (n : ℕ) : |
| 67 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (∅ : Set X)ᶜ n) := by |
| 68 | let : IsIso (LocalHomology.Cycles.subspaceInclusion X Set.univ) := by |
| 69 | change IsIso ((TopCat.isoOfHomeo (X := TopCat.of (Set.univ : Set X)) (Y := X) |
| 70 | (Homeomorph.Set.univ X)).hom) |
| 71 | infer_instance |
| 72 | let : IsIso (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction M X Set.univ) := by |
| 73 | dsimp only [AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction, AlgebraicTopology.Cohomology.Singular.Functor.singularPullback] |
| 74 | let : IsIso (LocalHomology.Cycles.subspaceInclusion X Set.univ).op := inferInstance |
| 75 | infer_instance |
| 76 | have hz := isZero_kernel_of_mono (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction M X Set.univ) |
| 77 | have hh := (HomologicalComplex.homologyFunctor (ModuleCat.{0} R) |
| 78 | (ComplexShape.up ℕ) n).map_isZero hz |
| 79 | change IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X Set.univ n) at hh |
| 80 | simpa only [Set.compl_empty] using hh |
| 81 | |
| 82 | /-- Vanishing on the preceding closed support and on the next layer implies |
| 83 | vanishing on the enlarged support, by the actual triple exact sequence. -/ |
| 84 | theorem closedSupportCohomology_isZero_step (M : ModuleCat.{0} R) |
| 85 | (X : TopCat.{0}) (F G : Closeds X) (hFG : F ≤ G) (n : ℕ) |
| 86 | (hF : IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (F : Set X)ᶜ n)) |
| 87 | (hLayer : IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M |
| 88 | (TopCat.of ((F : Set X)ᶜ : Set X)) (closedSupportLayer X F G)ᶜ n)) : |
| 89 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (G : Set X)ᶜ n) := |
| 90 | RelativeCochainTriple.Cohomology.relativeCohomologyTriple_isZero_middle M X (F : Set X)ᶜ (G : Set X)ᶜ |
| 91 | (Set.compl_subset_compl.mpr hFG) n hF hLayer |
| 92 | |
| 93 | /-- Finite induction along an actual increasing family of closed supports, |
| 94 | in one cohomological degree. -/ |
| 95 | theorem closedSupportFiltration_isZero (M : ModuleCat.{0} R) (X : TopCat.{0}) |
| 96 | (N : ℕ) (F : Fin (N + 1) → Closeds X) (hF : Monotone F) (n : ℕ) |
| 97 | (hfirst : IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (F 0 : Set X)ᶜ n)) |
| 98 | (hLayer : ∀ i : Fin N, IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M |
| 99 | (TopCat.of ((F i.castSucc : Set X)ᶜ : Set X)) |
| 100 | (closedSupportLayer X (F i.castSucc) (F i.succ))ᶜ n)) : |
| 101 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (F (Fin.last N) : Set X)ᶜ n) := by |
| 102 | have h (i : Fin (N + 1)) : |
| 103 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (F i : Set X)ᶜ n) := by |
| 104 | induction i using Fin.induction with |
| 105 | | zero => exact hfirst |
| 106 | | succ i hi => |
| 107 | exact closedSupportCohomology_isZero_step M X (F i.castSucc) (F i.succ) |
| 108 | (hF i.castSucc_le_succ) n hi (hLayer i) |
| 109 | exact h (Fin.last N) |
| 110 | |
| 111 | /-- The total support is exactly the union of the locally closed layers |
| 112 | of an increasing finite filtration starting at the empty set. -/ |
| 113 | theorem closedSupportFiltration_union_layers (X : TopCat.{0}) |
| 114 | (N : ℕ) (F : Fin (N + 1) → Closeds X) (hF : Monotone F) (hfirst : F 0 = ⊥) : |
| 115 | (⋃ i : Fin N, (F i.succ : Set X) \ (F i.castSucc : Set X)) = |
| 116 | (F (Fin.last N) : Set X) := by |
| 117 | classical |
| 118 | apply Set.Subset.antisymm |
| 119 | · exact Set.iUnion_subset fun i => |
| 120 | Set.sdiff_subset.trans (hF (Fin.le_last i.succ)) |
| 121 | · intro x hx |
| 122 | by_contra hnot |
| 123 | have hmem (i : Fin (N + 1)) : x ∉ (F i : Set X) := by |
| 124 | induction i using Fin.induction with |
| 125 | | zero => simp only [hfirst, Closeds.coe_bot, Set.mem_empty_iff_false, not_false_eq_true] |
| 126 | | succ i hi => |
| 127 | intro hxnext |
| 128 | exact hnot (Set.mem_iUnion.mpr ⟨i, hxnext, hi⟩) |
| 129 | exact hmem (Fin.last N) hx |
| 130 | |
| 131 | /-- If every locally closed layer in a finite closed-support filtration |
| 132 | starting at the empty set has support cohomology zero below `k`, then so |
| 133 | does the total support. The layer-vanishing premises concern the existing |
| 134 | relative singular cohomology groups, not a separate purity predicate. -/ |
| 135 | theorem closedSupportFiltration_isZero_below (M : ModuleCat.{0} R) (X : TopCat.{0}) |
| 136 | (N : ℕ) (F : Fin (N + 1) → Closeds X) (hF : Monotone F) (hfirst : F 0 = ⊥) |
| 137 | (k : ℕ) |
| 138 | (hLayer : ∀ (i : Fin N) (n : ℕ), n < k → |
| 139 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M (TopCat.of ((F i.castSucc : Set X)ᶜ : Set X)) |
| 140 | (closedSupportLayer X (F i.castSucc) (F i.succ))ᶜ n)) : |
| 141 | ∀ n < k, IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X (F (Fin.last N) : Set X)ᶜ n) := by |
| 142 | intro n hn |
| 143 | apply closedSupportFiltration_isZero M X N F hF n |
| 144 | · simpa only [hfirst, Closeds.coe_bot] using cohomologyWithEmptySupport_isZero M X n |
| 145 | · exact fun i => hLayer i n hn |
| 146 | |
| 147 | /-- The vanishing conclusion stated for the explicit union of the actual |
| 148 | locally closed layers. -/ |
| 149 | theorem closedSupportFiltration_union_isZero_below (M : ModuleCat.{0} R) (X : TopCat.{0}) |
| 150 | (N : ℕ) (F : Fin (N + 1) → Closeds X) (hF : Monotone F) (hfirst : F 0 = ⊥) |
| 151 | (k : ℕ) |
| 152 | (hLayer : ∀ (i : Fin N) (n : ℕ), n < k → |
| 153 | IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M (TopCat.of ((F i.castSucc : Set X)ᶜ : Set X)) |
| 154 | (closedSupportLayer X (F i.castSucc) (F i.succ))ᶜ n)) : |
| 155 | ∀ n < k, IsZero (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X |
| 156 | (⋃ i : Fin N, (F i.succ : Set X) \ (F i.castSucc : Set X))ᶜ n) := by |
| 157 | rw [closedSupportFiltration_union_layers X N F hF hfirst] |
| 158 | exact closedSupportFiltration_isZero_below M X N F hF hfirst k hLayer |
| 159 | |
| 160 | end |
| 161 | |
| 162 | end OAI.AlgebraicGeometry.CycleClass.Geometric.ClosedSupportFiltration.Cycles |