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.LocallyFiniteChains |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SingularChainSupport |
| 3 | import Mathlib.Topology.Compactness.LocallyFinite |
| 4 | |
| 5 | /-! # Locally Finite Compact -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteCompact.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Spatially locally finite chains on compact spaces |
| 13 | |
| 14 | Local finiteness here concerns the images of nonzero simplices in the underlying |
| 15 | space. Compactness makes the entire coefficient support finite because every |
| 16 | singular simplex has nonempty image. The resulting equivalence is with the |
| 17 | actual degree modules of the ordinary singular chain complex. |
| 18 | -/ |
| 19 | |
| 20 | open Set Filter Function _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 21 | open scoped _root_.Topology Simplicial |
| 22 | |
| 23 | namespace SpatialSupport |
| 24 | |
| 25 | variable {X ι : Type*} [TopologicalSpace X] |
| 26 | variable {R : Type*} [Semiring R] |
| 27 | |
| 28 | /-- Finite coefficient support implies spatial local finiteness for any family |
| 29 | of images, without a compactness or separation assumption on the space. -/ |
| 30 | theorem of_finiteSupport {image : ι → Set X} {c : ι → R} |
| 31 | (hc : (support c).Finite) : LocallyFiniteChains.Cycles.SpatialSupport.IsLocallyFinite image c := by |
| 32 | intro x |
| 33 | refine ⟨univ, univ_mem, hc.subset ?_⟩ |
| 34 | rintro i ⟨y, ⟨hne, _⟩, _⟩ |
| 35 | exact hne |
| 36 | |
| 37 | /-- On a compact space, a spatially locally finite family of nonempty indexed |
| 38 | images can have only finitely many nonzero coefficients. -/ |
| 39 | theorem finite_support_of_compact [CompactSpace X] {image : ι → Set X} |
| 40 | (hne : ∀ i, (image i).Nonempty) {c : ι → R} |
| 41 | (hc : LocallyFiniteChains.Cycles.SpatialSupport.IsLocallyFinite image c) : (support c).Finite := by |
| 42 | have hfin := LocallyFinite.finite_nonempty_of_compact hc |
| 43 | apply hfin.subset |
| 44 | intro i hi |
| 45 | obtain ⟨x, hx⟩ := hne i |
| 46 | exact ⟨x, hi, hx⟩ |
| 47 | |
| 48 | /-- Finite chains include canonically into spatially locally finite chains. -/ |
| 49 | def ofFinsupp (image : ι → Set X) : (ι →₀ R) →ₗ[R] LocallyFiniteChains.Cycles.SpatialSupport.module R image where |
| 50 | toFun c := ⟨c, of_finiteSupport c.hasFiniteSupport⟩ |
| 51 | map_add' c d := by |
| 52 | apply Subtype.ext |
| 53 | funext i |
| 54 | rfl |
| 55 | map_smul' r c := by |
| 56 | apply Subtype.ext |
| 57 | funext i |
| 58 | rfl |
| 59 | |
| 60 | @[simp] |
| 61 | theorem ofFinsupp_apply (image : ι → Set X) (c : ι →₀ R) (i : ι) : |
| 62 | ofFinsupp image c i = c i := rfl |
| 63 | |
| 64 | theorem ofFinsupp_injective (image : ι → Set X) : |
| 65 | Function.Injective (ofFinsupp (R := R) image) := by |
| 66 | intro c d h |
| 67 | apply Finsupp.ext |
| 68 | intro i |
| 69 | exact congrArg (fun z : LocallyFiniteChains.Cycles.SpatialSupport.module R image => z i) h |
| 70 | |
| 71 | /-- On a compact space the coefficient-preserving inclusion is an equivalence, |
| 72 | provided the indexed geometric images are nonempty. -/ |
| 73 | def equivFinsupp [CompactSpace X] (image : ι → Set X) |
| 74 | (hne : ∀ i, (image i).Nonempty) : LocallyFiniteChains.Cycles.SpatialSupport.module R image ≃ₗ[R] (ι →₀ R) where |
| 75 | toFun c := Finsupp.ofSupportFinite (c : ι → R) |
| 76 | (finite_support_of_compact hne c.property) |
| 77 | invFun c := ofFinsupp image c |
| 78 | left_inv c := by |
| 79 | apply Subtype.ext |
| 80 | funext i |
| 81 | rfl |
| 82 | right_inv c := by |
| 83 | apply Finsupp.ext |
| 84 | intro i |
| 85 | rfl |
| 86 | map_add' c d := by |
| 87 | apply Finsupp.ext |
| 88 | intro i |
| 89 | rfl |
| 90 | map_smul' r c := by |
| 91 | apply Finsupp.ext |
| 92 | intro i |
| 93 | rfl |
| 94 | |
| 95 | @[simp] |
| 96 | theorem equivFinsupp_apply [CompactSpace X] (image : ι → Set X) |
| 97 | (hne : ∀ i, (image i).Nonempty) (c : LocallyFiniteChains.Cycles.SpatialSupport.module R image) (i : ι) : |
| 98 | equivFinsupp image hne c i = c i := rfl |
| 99 | |
| 100 | @[simp] |
| 101 | theorem equivFinsupp_symm_apply [CompactSpace X] (image : ι → Set X) |
| 102 | (hne : ∀ i, (image i).Nonempty) (c : ι →₀ R) (i : ι) : |
| 103 | (equivFinsupp image hne).symm c i = c i := rfl |
| 104 | |
| 105 | end SpatialSupport |
| 106 | |
| 107 | /-- A spatially locally finite singular chain in a compact space has finite |
| 108 | support on the actual singular-simplex indexing set. -/ |
| 109 | theorem locallyFiniteSingularChains_finite_support {R : Type*} [Semiring R] |
| 110 | (X : TopCat.{0}) [CompactSpace X] (n : ℕ) |
| 111 | (c : LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X n) : |
| 112 | (support (c : (TopCat.toSSet.obj X).obj (.op ⦋n⦌) → R)).Finite := |
| 113 | SpatialSupport.finite_support_of_compact (LocallyFiniteChains.Cycles.singularSimplexImage_nonempty X n) c.property |
| 114 | |
| 115 | /-- Coefficient-preserving equivalence of spatially locally finite and finitely |
| 116 | supported singular coefficients on a compact space. -/ |
| 117 | def locallyFiniteSingularCoefficientsEquiv (R : Type*) [Semiring R] |
| 118 | (X : TopCat.{0}) [CompactSpace X] (n : ℕ) : |
| 119 | LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X n ≃ₗ[R] |
| 120 | ((TopCat.toSSet.obj X).obj (.op ⦋n⦌) →₀ R) := |
| 121 | SpatialSupport.equivFinsupp (LocallyFiniteChains.Cycles.singularSimplexImage X n) (LocallyFiniteChains.Cycles.singularSimplexImage_nonempty X n) |
| 122 | |
| 123 | /-- The standard coproduct description identifies an ordinary singular chain |
| 124 | degree with finitely supported coefficients on genuine singular simplices. -/ |
| 125 | def ordinarySingularChainCoefficients (R : Type) [CommRing R] |
| 126 | (X : TopCat.{0}) (n : ℕ) : |
| 127 | ((TopCat.toSSet.obj X).chainComplex (ModuleCat.of R R)).X n ≃ₗ[R] |
| 128 | ((TopCat.toSSet.obj X).obj (.op ⦋n⦌) →₀ R) := |
| 129 | (((TopCat.toSSet.obj X).isColimitChainComplexXCofan (ModuleCat.of R R) n).coconePointUniqueUpToIso |
| 130 | (ModuleCat.finsuppCoconeIsColimit R R |
| 131 | ((TopCat.toSSet.obj X).obj (.op ⦋n⦌)))).toLinearEquiv |
| 132 | |
| 133 | /-- The canonical inclusion of ordinary singular chains into spatially locally |
| 134 | finite chains is defined for every space. -/ |
| 135 | def ordinaryToLocallyFinite (R : Type) [CommRing R] (X : TopCat.{0}) (n : ℕ) : |
| 136 | ((TopCat.toSSet.obj X).chainComplex (ModuleCat.of R R)).X n →ₗ[R] |
| 137 | LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X n := |
| 138 | (SpatialSupport.ofFinsupp (LocallyFiniteChains.Cycles.singularSimplexImage X n)).comp |
| 139 | (ordinarySingularChainCoefficients R X n).toLinearMap |
| 140 | |
| 141 | /-- Compact spaces have exactly the same ordinary and spatially locally finite |
| 142 | singular chains, degree by degree, with the canonical coefficient identification. -/ |
| 143 | def locallyFiniteOrdinaryEquiv (R : Type) [CommRing R] |
| 144 | (X : TopCat.{0}) [CompactSpace X] (n : ℕ) : |
| 145 | LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X n ≃ₗ[R] |
| 146 | ((TopCat.toSSet.obj X).chainComplex (ModuleCat.of R R)).X n := |
| 147 | (locallyFiniteSingularCoefficientsEquiv R X n).trans |
| 148 | (ordinarySingularChainCoefficients R X n).symm |
| 149 | |
| 150 | /-- The inverse of the compact-space equivalence is precisely the canonical |
| 151 | ordinary-chain inclusion already defined without compactness. -/ |
| 152 | theorem locallyFiniteOrdinaryEquiv_symm (R : Type) [CommRing R] |
| 153 | (X : TopCat.{0}) [CompactSpace X] (n : ℕ) : |
| 154 | (locallyFiniteOrdinaryEquiv R X n).symm.toLinearMap = |
| 155 | ordinaryToLocallyFinite R X n := by |
| 156 | apply LinearMap.ext |
| 157 | intro c |
| 158 | apply Subtype.ext |
| 159 | funext σ |
| 160 | rfl |
| 161 | |
| 162 | /-- Specialization to the existing ordinary integral singular-chain complex. -/ |
| 163 | def locallyFiniteIntegralOrdinaryEquiv (X : TopCat.{0}) [CompactSpace X] (n : ℕ) : |
| 164 | LocallyFiniteChains.Cycles.LocallyFiniteSingularChains ℤ X n ≃ₗ[ℤ] (LocalHomology.Cycles.integralSingularChains X).X n := |
| 165 | locallyFiniteOrdinaryEquiv ℤ X n |
| 166 | |
| 167 | end |
| 168 | |
| 169 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteCompact.Cycles |