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 OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteChains |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SpatialPushforward |
| 4 | import Mathlib.AlgebraicTopology.AlternatingFaceMapComplex |
| 5 | import Mathlib.Algebra.Category.ModuleCat.Basic |
| 6 | |
| 7 | /-! # Locally Finite Complex -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteComplex.Cycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # The actual locally finite singular chain complex |
| 15 | |
| 16 | Every simplicial reparametrization has image inside its source singular |
| 17 | simplex. The spatially locally finite coefficient pushforwards consequently |
| 18 | form a simplicial module. Its standard alternating face complex is the |
| 19 | locally finite singular chain complex. |
| 20 | -/ |
| 21 | |
| 22 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 23 | |
| 24 | open _root_.CategoryTheory Opposite Set |
| 25 | open scoped Simplicial BigOperators |
| 26 | |
| 27 | /-- An arbitrary simplicial reparametrization has image contained in the |
| 28 | image of the original singular simplex. -/ |
| 29 | theorem singularSimplexImage_map_subset (X : TopCat.{0}) |
| 30 | {a b : SimplexCategoryᵒᵖ} (f : a ⟶ b) |
| 31 | (σ : (TopCat.toSSet.obj X).obj a) : |
| 32 | LocallyFiniteChains.Cycles.singularSimplexImage X b.unop.len ((TopCat.toSSet.obj X).map f σ) ⊆ |
| 33 | LocallyFiniteChains.Cycles.singularSimplexImage X a.unop.len σ := by |
| 34 | rintro x ⟨y, rfl⟩ |
| 35 | exact ⟨Convexity.StdSimplex.map f.unop y, |
| 36 | (TopCat.toSSetObjEquiv_naturality_apply f.unop σ y).symm⟩ |
| 37 | |
| 38 | /-- Finite-fiber pushforward for any actual simplicial reparametrization. -/ |
| 39 | def locallyFiniteSimplexMap (R : Type*) [Semiring R] (X : TopCat.{0}) |
| 40 | {a b : SimplexCategoryᵒᵖ} (f : a ⟶ b) : |
| 41 | LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X a.unop.len →ₗ[R] |
| 42 | LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X b.unop.len := |
| 43 | LocallyFiniteChains.Cycles.SpatialSupport.pushforward ((TopCat.toSSet.obj X).map f) |
| 44 | (singularSimplexImage_map_subset X f) |
| 45 | (LocallyFiniteChains.Cycles.singularSimplexImage_nonempty X b.unop.len) |
| 46 | |
| 47 | @[simp] |
| 48 | theorem locallyFiniteSimplexMap_apply {R : Type*} [Semiring R] (X : TopCat.{0}) |
| 49 | {a b : SimplexCategoryᵒᵖ} (f : a ⟶ b) |
| 50 | (c : LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X a.unop.len) |
| 51 | (τ : (TopCat.toSSet.obj X).obj b) : |
| 52 | locallyFiniteSimplexMap R X f c τ = |
| 53 | ∑ᶠ σ ∈ {σ | (TopCat.toSSet.obj X).map f σ = τ}, c σ := rfl |
| 54 | |
| 55 | @[simp] |
| 56 | theorem locallyFiniteSimplexMap_face (R : Type*) [Semiring R] (X : TopCat.{0}) |
| 57 | (n : ℕ) (i : Fin (n + 2)) : |
| 58 | locallyFiniteSimplexMap R X (SimplexCategory.δ i).op = |
| 59 | LocallyFiniteChains.Cycles.locallyFiniteFace R X n i := rfl |
| 60 | |
| 61 | @[simp] |
| 62 | theorem locallyFiniteSimplexMap_id (R : Type*) [Semiring R] (X : TopCat.{0}) |
| 63 | (a : SimplexCategoryᵒᵖ) : |
| 64 | locallyFiniteSimplexMap R X (𝟙 a) = LinearMap.id := by |
| 65 | have hmap : (fun σ => (TopCat.toSSet.obj X).map (𝟙 a) σ) = id := by |
| 66 | funext σ |
| 67 | exact ConcreteCategory.congr_hom ((TopCat.toSSet.obj X).map_id a) σ |
| 68 | exact (SpatialPushforward.Cycles.SpatialSupport.pushforward_congr hmap _ _ _).trans |
| 69 | (SpatialPushforward.Cycles.SpatialSupport.pushforward_id _ _) |
| 70 | |
| 71 | @[simp] |
| 72 | theorem locallyFiniteSimplexMap_comp (R : Type*) [Semiring R] (X : TopCat.{0}) |
| 73 | {a b c : SimplexCategoryᵒᵖ} (f : a ⟶ b) (g : b ⟶ c) : |
| 74 | locallyFiniteSimplexMap R X (f ≫ g) = |
| 75 | (locallyFiniteSimplexMap R X g).comp (locallyFiniteSimplexMap R X f) := by |
| 76 | unfold locallyFiniteSimplexMap |
| 77 | rw [SpatialPushforward.Cycles.SpatialSupport.pushforward_comp] |
| 78 | apply SpatialPushforward.Cycles.SpatialSupport.pushforward_congr |
| 79 | funext σ |
| 80 | exact ConcreteCategory.congr_hom ((TopCat.toSSet.obj X).map_comp f g) σ |
| 81 | |
| 82 | /-- Spatially locally finite singular coefficients, with their actual |
| 83 | finite-fiber simplicial reparametrization maps. -/ |
| 84 | def locallyFiniteSingularObject (R : Type*) [Ring R] (X : TopCat.{0}) : |
| 85 | SimplicialObject (ModuleCat R) where |
| 86 | obj a := ModuleCat.of R (LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X a.unop.len) |
| 87 | map f := ModuleCat.ofHom (locallyFiniteSimplexMap R X f) |
| 88 | map_id a := by |
| 89 | apply ModuleCat.hom_ext |
| 90 | exact locallyFiniteSimplexMap_id R X a |
| 91 | map_comp f g := by |
| 92 | apply ModuleCat.hom_ext |
| 93 | exact locallyFiniteSimplexMap_comp R X f g |
| 94 | |
| 95 | @[simp] |
| 96 | theorem locallyFiniteSingularObject_obj (R : Type*) [Ring R] (X : TopCat.{0}) |
| 97 | (a : SimplexCategoryᵒᵖ) : |
| 98 | (locallyFiniteSingularObject R X).obj a = |
| 99 | ModuleCat.of R (LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X a.unop.len) := rfl |
| 100 | |
| 101 | @[simp] |
| 102 | theorem locallyFiniteSingularObject_map (R : Type*) [Ring R] (X : TopCat.{0}) |
| 103 | {a b : SimplexCategoryᵒᵖ} (f : a ⟶ b) : |
| 104 | ((locallyFiniteSingularObject R X).map f).hom = |
| 105 | locallyFiniteSimplexMap R X f := rfl |
| 106 | |
| 107 | @[simp] |
| 108 | theorem locallyFiniteSingularObject_face (R : Type*) [Ring R] (X : TopCat.{0}) |
| 109 | (n : ℕ) (i : Fin (n + 2)) : |
| 110 | ((locallyFiniteSingularObject R X).δ i).hom = |
| 111 | LocallyFiniteChains.Cycles.locallyFiniteFace R X n i := rfl |
| 112 | |
| 113 | /-- The genuine singular chain complex with spatially locally finite support. |
| 114 | The complex relation is the proved alternating-face relation for the actual |
| 115 | simplicial module, not an additional assumption. -/ |
| 116 | def locallyFiniteSingularComplex (R : Type*) [Ring R] (X : TopCat.{0}) : |
| 117 | ChainComplex (ModuleCat R) ℕ := |
| 118 | (AlgebraicTopology.alternatingFaceMapComplex (ModuleCat R)).obj |
| 119 | (locallyFiniteSingularObject R X) |
| 120 | |
| 121 | @[simp] |
| 122 | theorem locallyFiniteSingularComplex_X (R : Type*) [Ring R] (X : TopCat.{0}) |
| 123 | (n : ℕ) : |
| 124 | (locallyFiniteSingularComplex R X).X n = |
| 125 | ModuleCat.of R (LocallyFiniteChains.Cycles.LocallyFiniteSingularChains R X n) := rfl |
| 126 | |
| 127 | set_option backward.isDefEq.respectTransparency false in |
| 128 | /-- Its boundary is the usual alternating sum of actual singular faces. -/ |
| 129 | theorem locallyFiniteSingularComplex_d_int (R : Type*) [Ring R] (X : TopCat.{0}) |
| 130 | (n : ℕ) : |
| 131 | ((locallyFiniteSingularComplex R X).d (n + 1) n).hom = |
| 132 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • LocallyFiniteChains.Cycles.locallyFiniteFace R X n i := by |
| 133 | simp only [locallyFiniteSingularComplex, |
| 134 | AlgebraicTopology.alternatingFaceMapComplex_obj_d, |
| 135 | AlgebraicTopology.AlternatingFaceMapComplex.objD, |
| 136 | ModuleCat.hom_sum, ModuleCat.hom_zsmul, locallyFiniteSingularObject_face] |
| 137 | |
| 138 | set_option backward.isDefEq.respectTransparency false in |
| 139 | /-- The boundary agrees with the coefficient-ring signed boundary defined |
| 140 | directly on spatially locally finite chains. -/ |
| 141 | theorem locallyFiniteSingularComplex_d (R : Type*) [CommRing R] (X : TopCat.{0}) |
| 142 | (n : ℕ) : |
| 143 | ((locallyFiniteSingularComplex R X).d (n + 1) n).hom = |
| 144 | LocallyFiniteChains.Cycles.locallyFiniteBoundary R X n := by |
| 145 | rw [locallyFiniteSingularComplex_d_int] |
| 146 | unfold LocallyFiniteChains.Cycles.locallyFiniteBoundary |
| 147 | apply Finset.sum_congr rfl |
| 148 | intro i _ |
| 149 | simpa only [Int.cast_pow, Int.cast_neg, Int.cast_one] using |
| 150 | (Int.cast_smul_eq_zsmul R ((-1 : ℤ) ^ i.val) (LocallyFiniteChains.Cycles.locallyFiniteFace R X n i)).symm |
| 151 | |
| 152 | /-- The directly defined alternating boundary squares to zero. -/ |
| 153 | theorem locallyFiniteBoundary_squared (R : Type*) [CommRing R] (X : TopCat.{0}) |
| 154 | (n : ℕ) : |
| 155 | (LocallyFiniteChains.Cycles.locallyFiniteBoundary R X n).comp (LocallyFiniteChains.Cycles.locallyFiniteBoundary R X (n + 1)) = 0 := by |
| 156 | rw [← locallyFiniteSingularComplex_d, ← locallyFiniteSingularComplex_d] |
| 157 | exact congrArg ModuleCat.Hom.hom |
| 158 | ((locallyFiniteSingularComplex R X).d_comp_d (n + 2) (n + 1) n) |
| 159 | |
| 160 | end |
| 161 | |
| 162 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocallyFiniteComplex.Cycles |