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.Geometry.Foundations.ConvexStdSimplexMetric |
| 2 | import Mathlib.AlgebraicTopology.SimplicialSet.TopAdj |
| 3 | import Mathlib.Topology.LocallyFinite |
| 4 | import Mathlib.Algebra.BigOperators.Finprod |
| 5 | import Mathlib.LinearAlgebra.Pi |
| 6 | |
| 7 | /-! # Locally Finite Chains -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteChains.Cycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Locally finite singular coefficients measured in the underlying space |
| 15 | |
| 16 | Local finiteness is imposed on the images of the nonzero singular simplices |
| 17 | inside the underlying space X. It is not local finiteness in a topology on |
| 18 | the space of maps. Face coefficients are finite sums because every target |
| 19 | simplex has a point belonging to all its contributing source simplex images. |
| 20 | |
| 21 | This file constructs the coefficient modules and individual face maps. It |
| 22 | does not postulate a Borel--Moore class, fundamental class, or cycle-class map. |
| 23 | -/ |
| 24 | |
| 25 | open Set Filter Function |
| 26 | open scoped _root_.Topology BigOperators Simplicial |
| 27 | |
| 28 | namespace SpatialSupport |
| 29 | |
| 30 | variable {X ι κ : Type*} [TopologicalSpace X] |
| 31 | variable {R : Type*} [Semiring R] |
| 32 | |
| 33 | /-- The images indexed by nonzero coefficients form a locally finite family |
| 34 | of sets in X. -/ |
| 35 | def IsLocallyFinite (image : ι → Set X) (c : ι → R) : Prop := |
| 36 | LocallyFinite (fun i => {x | c i ≠ 0 ∧ x ∈ image i}) |
| 37 | |
| 38 | theorem zero (image : ι → Set X) : IsLocallyFinite image (0 : ι → R) := by |
| 39 | intro x |
| 40 | refine ⟨univ, univ_mem, ?_⟩ |
| 41 | simp |
| 42 | |
| 43 | theorem add {image : ι → Set X} {c d : ι → R} |
| 44 | (hc : IsLocallyFinite image c) (hd : IsLocallyFinite image d) : |
| 45 | IsLocallyFinite image (c + d) := by |
| 46 | intro x |
| 47 | obtain ⟨U, hU, hfinU⟩ := hc x |
| 48 | obtain ⟨V, hV, hfinV⟩ := hd x |
| 49 | refine ⟨U ∩ V, inter_mem hU hV, (hfinU.union hfinV).subset ?_⟩ |
| 50 | rintro i ⟨y, ⟨hne, hy⟩, hyU, hyV⟩ |
| 51 | by_cases hci : c i = 0 |
| 52 | · right |
| 53 | refine ⟨y, ⟨?_, hy⟩, hyV⟩ |
| 54 | simpa only [Pi.add_apply, hci, zero_add] using hne |
| 55 | · exact Or.inl ⟨y, ⟨hci, hy⟩, hyU⟩ |
| 56 | |
| 57 | theorem smul {image : ι → Set X} {c : ι → R} |
| 58 | (r : R) (hc : IsLocallyFinite image c) : IsLocallyFinite image (r • c) := by |
| 59 | exact hc.subset fun i x hx => ⟨fun hci => hx.1 (by simp [hci]), hx.2⟩ |
| 60 | |
| 61 | /-- Coefficients whose nonzero indexed images are locally finite form an |
| 62 | actual submodule of the function module. -/ |
| 63 | def module (R : Type*) [Semiring R] (image : ι → Set X) : Submodule R (ι → R) where |
| 64 | carrier := IsLocallyFinite image |
| 65 | zero_mem' := zero image |
| 66 | add_mem' := add |
| 67 | smul_mem' r _ hc := smul r hc |
| 68 | |
| 69 | instance (image : ι → Set X) : CoeFun (module R image) (fun _ => ι → R) := |
| 70 | ⟨Subtype.val⟩ |
| 71 | |
| 72 | /-- The contributing source coefficients over a fixed nonempty target image |
| 73 | form a finite set, proved from spatial local finiteness. -/ |
| 74 | theorem finite_fiber {imageA : ι → Set X} {imageB : κ → Set X} |
| 75 | (f : ι → κ) (himage : ∀ i, imageB (f i) ⊆ imageA i) |
| 76 | (hne : ∀ j, (imageB j).Nonempty) (c : module R imageA) (j : κ) : |
| 77 | ({i | f i = j} ∩ support (c : ι → R)).Finite := by |
| 78 | obtain ⟨x, hx⟩ := hne j |
| 79 | have hc : LocallyFinite (fun i => {x | c i ≠ 0 ∧ x ∈ imageA i}) := c.property |
| 80 | apply (hc.point_finite x).subset |
| 81 | rintro i ⟨hfi, hci⟩ |
| 82 | exact ⟨hci, himage i ((show f i = j from hfi).symm ▸ hx)⟩ |
| 83 | |
| 84 | /-- Summation of coefficients over an index-map fiber. Local finiteness |
| 85 | will ensure that every relevant sum below has finite support. -/ |
| 86 | def fiberSum (f : ι → κ) (c : ι → R) (j : κ) : R := |
| 87 | ∑ᶠ i ∈ {i | f i = j}, c i |
| 88 | |
| 89 | theorem fiberSum_locallyFinite {imageA : ι → Set X} {imageB : κ → Set X} |
| 90 | (f : ι → κ) (himage : ∀ i, imageB (f i) ⊆ imageA i) |
| 91 | (c : module R imageA) : IsLocallyFinite imageB (fiberSum f c) := by |
| 92 | intro x |
| 93 | obtain ⟨U, hU, hfin⟩ := (show IsLocallyFinite imageA (c : ι → R) from c.property) x |
| 94 | refine ⟨U, hU, (hfin.image f).subset ?_⟩ |
| 95 | rintro j ⟨y, ⟨hcoef, hy⟩, hyU⟩ |
| 96 | obtain ⟨i, hfi, hci⟩ := exists_ne_zero_of_finsum_mem_ne_zero hcoef |
| 97 | refine ⟨i, ⟨y, ⟨hci, ?_⟩, hyU⟩, hfi⟩ |
| 98 | exact himage i ((show f i = j from hfi).symm ▸ hy) |
| 99 | |
| 100 | /-- A proved finite-fiber linear pushforward preserving spatial local |
| 101 | finiteness whenever target images are contained in their source images. -/ |
| 102 | def pushforward {imageA : ι → Set X} {imageB : κ → Set X} |
| 103 | (f : ι → κ) (himage : ∀ i, imageB (f i) ⊆ imageA i) |
| 104 | (hne : ∀ j, (imageB j).Nonempty) : |
| 105 | module R imageA →ₗ[R] module R imageB where |
| 106 | toFun c := ⟨fiberSum f c, fiberSum_locallyFinite f himage c⟩ |
| 107 | map_add' c d := by |
| 108 | apply Subtype.ext |
| 109 | funext j |
| 110 | exact finsum_mem_add_distrib' (finite_fiber f himage hne c j) |
| 111 | (finite_fiber f himage hne d j) |
| 112 | map_smul' r c := by |
| 113 | apply Subtype.ext |
| 114 | funext j |
| 115 | exact ((DistribSMul.toAddMonoidHom R r).map_finsum_mem' |
| 116 | (finite_fiber f himage hne c j)).symm |
| 117 | |
| 118 | @[simp] theorem pushforward_apply {imageA : ι → Set X} {imageB : κ → Set X} |
| 119 | (f : ι → κ) (himage : ∀ i, imageB (f i) ⊆ imageA i) |
| 120 | (hne : ∀ j, (imageB j).Nonempty) (c : module R imageA) (j : κ) : |
| 121 | pushforward f himage hne c j = ∑ᶠ i ∈ {i | f i = j}, c i := rfl |
| 122 | |
| 123 | end SpatialSupport |
| 124 | |
| 125 | /-- The spatial image of an actual continuous singular simplex. -/ |
| 126 | def singularSimplexImage (X : TopCat.{0}) (n : ℕ) |
| 127 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : Set X := |
| 128 | Set.range (X.toSSetObjEquiv (.op ⦋n⦌) σ) |
| 129 | |
| 130 | theorem singularSimplexImage_nonempty (X : TopCat.{0}) (n : ℕ) |
| 131 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : |
| 132 | (singularSimplexImage X n σ).Nonempty := Set.range_nonempty _ |
| 133 | |
| 134 | /-- Each face image is contained in the image of its source simplex. -/ |
| 135 | theorem singularSimplexImage_face_subset (X : TopCat.{0}) (n : ℕ) (i : Fin (n + 2)) |
| 136 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n + 1⦌)) : |
| 137 | singularSimplexImage X n ((TopCat.toSSet.obj X).δ i σ) ⊆ |
| 138 | singularSimplexImage X (n + 1) σ := by |
| 139 | rintro x ⟨y, rfl⟩ |
| 140 | exact ⟨Convexity.StdSimplex.map i.succAbove y, (TopCat.toSSetObjEquiv_δ_apply σ i y).symm⟩ |
| 141 | |
| 142 | /-- Singular coefficients whose nonzero simplex images are locally finite |
| 143 | in X. All additive and module operations are inherited from this submodule. -/ |
| 144 | abbrev LocallyFiniteSingularChains (R : Type*) [Semiring R] (X : TopCat.{0}) (n : ℕ) := |
| 145 | SpatialSupport.module R (singularSimplexImage X n) |
| 146 | |
| 147 | /-- Each face map has finite contributing fibers on spatially locally finite |
| 148 | singular chains. -/ |
| 149 | theorem locallyFiniteFace_finite {R : Type*} [Semiring R] (X : TopCat.{0}) (n : ℕ) |
| 150 | (i : Fin (n + 2)) (c : LocallyFiniteSingularChains R X (n + 1)) |
| 151 | (τ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : |
| 152 | ({σ | (TopCat.toSSet.obj X).δ i σ = τ} ∩ support (c : _ → R)).Finite := |
| 153 | SpatialSupport.finite_fiber ((TopCat.toSSet.obj X).δ i) |
| 154 | (singularSimplexImage_face_subset X n i) (singularSimplexImage_nonempty X n) c τ |
| 155 | |
| 156 | /-- The actual individual face pushforward on locally finite singular |
| 157 | coefficients, with all sums proved finite. -/ |
| 158 | def locallyFiniteFace (R : Type*) [Semiring R] (X : TopCat.{0}) (n : ℕ) |
| 159 | (i : Fin (n + 2)) : |
| 160 | LocallyFiniteSingularChains R X (n + 1) →ₗ[R] LocallyFiniteSingularChains R X n := |
| 161 | SpatialSupport.pushforward ((TopCat.toSSet.obj X).δ i) |
| 162 | (singularSimplexImage_face_subset X n i) (singularSimplexImage_nonempty X n) |
| 163 | |
| 164 | @[simp] theorem locallyFiniteFace_apply {R : Type*} [Semiring R] |
| 165 | (X : TopCat.{0}) (n : ℕ) (i : Fin (n + 2)) |
| 166 | (c : LocallyFiniteSingularChains R X (n + 1)) |
| 167 | (τ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : |
| 168 | locallyFiniteFace R X n i c τ = |
| 169 | ∑ᶠ σ ∈ {σ | (TopCat.toSSet.obj X).δ i σ = τ}, c σ := rfl |
| 170 | |
| 171 | /-- The alternating boundary as an actual degreewise linear map. The |
| 172 | boundary-square identity is a further obligation, not asserted here. -/ |
| 173 | def locallyFiniteBoundary (R : Type*) [CommRing R] (X : TopCat.{0}) (n : ℕ) : |
| 174 | LocallyFiniteSingularChains R X (n + 1) →ₗ[R] LocallyFiniteSingularChains R X n := |
| 175 | ∑ i : Fin (n + 2), (-1 : R) ^ i.val • locallyFiniteFace R X n i |
| 176 | |
| 177 | end |
| 178 | |
| 179 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteChains.Cycles |