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.SmoothSimplexModels |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SmoothSimplexFillings |
| 3 | import Mathlib.Algebra.Homology.Homotopy |
| 4 | |
| 5 | /-! # Smooth Natural Homotopy -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Natural smooth-chain homotopies from actual smooth model fillings |
| 13 | |
| 14 | An operation on smooth singular chains is determined by its value on the |
| 15 | identity simplex of each closed standard-simplex model. Conversely, a chain |
| 16 | on that model is transported by the genuine simplex maps and extended by the |
| 17 | free-module universal property. The proved smooth model fillings therefore |
| 18 | give natural chain homotopies, entirely inside the smooth singular complexes. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 22 | open scoped Simplicial |
| 23 | |
| 24 | set_option backward.defeqAttrib.useBackward true |
| 25 | set_option backward.isDefEq.respectTransparency false |
| 26 | set_option backward.isDefEq.respectTransparency.types false |
| 27 | |
| 28 | /-- Maps of these spaces carry each actual simplex generator to its image. -/ |
| 29 | @[reassoc (attr := simp)] |
| 30 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap_generator {X Y : SmoothSimplexModels.Cycles.SmoothSimplexSpace} (f : X ⟶ Y) (n : ℕ) |
| 31 | (σ : X.smooth.toSSet.obj (.op ⦋n⦌)) : |
| 32 | X.smooth.toSSet.ιChainComplex (R := ModuleCat.of ℤ ℤ) σ ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap f).f n = |
| 33 | Y.smooth.toSSet.ιChainComplex (R := ModuleCat.of ℤ ℤ) |
| 34 | ((SmoothSimplexModels.Cycles.SmoothSimplexSpace.mapSmooth f).app (.op ⦋n⦌) σ) := |
| 35 | SSet.ι_chainComplexMap_f _ _ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.mapSmooth f) (ModuleCat.of ℤ ℤ) σ |
| 36 | |
| 37 | /-- Evaluation of a natural operation on the actual identity model simplex. -/ |
| 38 | def SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation (n k : ℕ) (a : SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor k) : |
| 39 | ModuleCat.of ℤ ℤ ⟶ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).X k := |
| 40 | (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n).smooth.toSSet.ιChainComplex (SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelSimplex n) ≫ a.app (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n) |
| 41 | |
| 42 | @[simp] |
| 43 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_zero (n k : ℕ) : SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n k 0 = 0 := by |
| 44 | simp [SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation] |
| 45 | |
| 46 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_comp (n k l : ℕ) |
| 47 | (a : SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor k) |
| 48 | (b : SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor k ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor l) : |
| 49 | SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n l (a ≫ b) = SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n k a ≫ b.app (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n) := by |
| 50 | simp only [SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation, NatTrans.comp_app, Category.assoc] |
| 51 | |
| 52 | /-- Naturality expresses the operation on every generator in terms of the |
| 53 | closed-simplex model value. -/ |
| 54 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_generator (n k : ℕ) |
| 55 | (a : SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor k) (X : SmoothSimplexModels.Cycles.SmoothSimplexSpace) |
| 56 | (σ : X.smooth.toSSet.obj (.op ⦋n⦌)) : |
| 57 | X.smooth.toSSet.ιChainComplex (R := ModuleCat.of ℤ ℤ) σ ≫ a.app X = |
| 58 | SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n k a ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap (SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex X n σ)).f k := by |
| 59 | rw [← SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelGenerator_chainMap X n σ, Category.assoc] |
| 60 | change _ ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n).map (SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex X n σ) ≫ a.app X = _ |
| 61 | rw [a.naturality] |
| 62 | rfl |
| 63 | |
| 64 | /-- Model evaluation detects equality of natural smooth-chain operations. -/ |
| 65 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_injective (n k : ℕ) : |
| 66 | Function.Injective (SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n k) := by |
| 67 | intro a b hab |
| 68 | apply NatTrans.ext |
| 69 | funext X |
| 70 | apply SSet.chainComplex_hom_ext |
| 71 | intro σ |
| 72 | change X.smooth.toSSet.ιChainComplex σ ≫ a.app X = |
| 73 | X.smooth.toSSet.ιChainComplex σ ≫ b.app X |
| 74 | rw [SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_generator, SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_generator, hab] |
| 75 | |
| 76 | /-- Extend a model chain operation along every actual smooth simplex. -/ |
| 77 | def SmoothSimplexModels.Cycles.SmoothSimplexSpace.extendModelOperation (n k : ℕ) |
| 78 | (c : ModuleCat.of ℤ ℤ ⟶ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).X k) : |
| 79 | SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor k where |
| 80 | app X := Sigma.desc (fun σ : X.smooth.toSSet.obj (.op ⦋n⦌) => |
| 81 | c ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap (SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex X n σ)).f k) |
| 82 | naturality X Y f := by |
| 83 | apply SSet.chainComplex_hom_ext |
| 84 | intro σ |
| 85 | change X.smooth.toSSet.ιChainComplex σ ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap f).f n ≫ Sigma.desc _ = |
| 86 | X.smooth.toSSet.ιChainComplex σ ≫ Sigma.desc _ ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap f).f k |
| 87 | rw [← Category.assoc, SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap_generator] |
| 88 | change Y.smooth.toSSet.ιChainComplex ((SmoothSimplexModels.Cycles.SmoothSimplexSpace.mapSmooth f).app (.op ⦋n⦌) σ) ≫ |
| 89 | Sigma.desc _ = X.smooth.toSSet.ιChainComplex σ ≫ Sigma.desc _ ≫ _ |
| 90 | simp only [SSet.ιChainComplex, Sigma.ι_comp_desc_assoc, Sigma.ι_comp_desc] |
| 91 | rw [← SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex_naturality] |
| 92 | change c ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainFunctor.map (SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex X n σ ≫ f)).f k = _ |
| 93 | rw [Functor.map_comp] |
| 94 | rfl |
| 95 | |
| 96 | /-- The extension has precisely its defining generator value. -/ |
| 97 | @[reassoc (attr := simp)] |
| 98 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.extendModelOperation_generator (n k : ℕ) |
| 99 | (c : ModuleCat.of ℤ ℤ ⟶ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).X k) (X : SmoothSimplexModels.Cycles.SmoothSimplexSpace) |
| 100 | (σ : X.smooth.toSSet.obj (.op ⦋n⦌)) : |
| 101 | X.smooth.toSSet.ιChainComplex (R := ModuleCat.of ℤ ℤ) σ ≫ |
| 102 | (SmoothSimplexModels.Cycles.SmoothSimplexSpace.extendModelOperation n k c).app X = |
| 103 | c ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap (SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex X n σ)).f k := by |
| 104 | exact Sigma.ι_comp_desc _ _ |
| 105 | |
| 106 | @[simp] |
| 107 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_extendModelOperation (n k : ℕ) |
| 108 | (c : ModuleCat.of ℤ ℤ ⟶ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).X k) : |
| 109 | SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n k (SmoothSimplexModels.Cycles.SmoothSimplexSpace.extendModelOperation n k c) = c := by |
| 110 | rw [SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation, SmoothSimplexModels.Cycles.SmoothSimplexSpace.extendModelOperation_generator, SmoothSimplexModels.Cycles.SmoothSimplexSpace.fromSimplex_modelSimplex_id] |
| 111 | simp [SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMap] |
| 112 | |
| 113 | /-- A natural positive-cycle operation has a natural filling consisting of |
| 114 | actual smooth singular chains. -/ |
| 115 | theorem SmoothSimplexModels.Cycles.SmoothSimplexSpace.exists_naturalSmoothFilling (n k : ℕ) |
| 116 | (a : SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor (k + 1)) |
| 117 | (ha : a ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.boundaryNatural (k + 1) k = 0) : |
| 118 | ∃ b : SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor n ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.degreeFunctor (k + 2), |
| 119 | b ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.boundaryNatural (k + 2) (k + 1) = a := by |
| 120 | let v := SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n (k + 1) a |
| 121 | have hv : v ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).d (k + 1) k = 0 := by |
| 122 | change SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation n (k + 1) a ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.boundaryNatural (k + 1) k).app (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n) = 0 |
| 123 | rw [← SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_comp, ha, SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_zero] |
| 124 | have hcycle : (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).d (k + 1) k (v 1) = 0 := by |
| 125 | simpa only [ModuleCat.hom_comp, LinearMap.comp_apply, |
| 126 | ModuleCat.hom_zero, LinearMap.zero_apply] using |
| 127 | congrArg (fun f : ModuleCat.of ℤ ℤ ⟶ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).X k => f.hom 1) hv |
| 128 | obtain ⟨c, hc⟩ := SmoothSimplexFillings.Cycles.exists_smoothSimplexModel_boundary_succ n k (v 1) hcycle |
| 129 | let cf : ModuleCat.of ℤ ℤ ⟶ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).X (k + 2) := |
| 130 | ModuleCat.ofHom (LinearMap.toSpanSingleton ℤ _ c) |
| 131 | have hcf : cf.hom 1 = c := LinearMap.toSpanSingleton_apply_one ℤ _ c |
| 132 | refine ⟨SmoothSimplexModels.Cycles.SmoothSimplexSpace.extendModelOperation n (k + 2) cf, ?_⟩ |
| 133 | apply SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_injective n (k + 1) |
| 134 | rw [SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_comp, SmoothSimplexModels.Cycles.SmoothSimplexSpace.modelEvaluation_extendModelOperation] |
| 135 | apply ModuleCat.hom_ext |
| 136 | apply LinearMap.ext_ring |
| 137 | change (cf ≫ (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains (SmoothSimplexModels.Cycles.SmoothSimplexSpace.model n)).d (k + 2) (k + 1)).hom 1 = v.hom 1 |
| 138 | rw [ModuleCat.hom_comp, LinearMap.comp_apply, hcf] |
| 139 | exact hc |
| 140 | |
| 141 | /-- A natural smooth-chain endomorphism zero in degree zero is naturally |
| 142 | null-homotopic through the proved smooth simplex model fillings. -/ |
| 143 | def SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalNullhomotopy (e : SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains) (he : e.f 0 = 0) : |
| 144 | Homotopy e 0 := by |
| 145 | classical |
| 146 | have hclosed : e.f 1 ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.boundaryNatural 1 0 = 0 := by |
| 147 | change e.f 1 ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains.d 1 0 = 0 |
| 148 | rw [e.comm 1 0, he, comp_zero] |
| 149 | let hfirst := SmoothSimplexModels.Cycles.SmoothSimplexSpace.exists_naturalSmoothFilling 1 0 (e.f 1) hclosed |
| 150 | let first := Classical.choose hfirst |
| 151 | have hfirst_eq := Classical.choose_spec hfirst |
| 152 | refine Homotopy.mkInductive e 0 ?_ first ?_ ?_ |
| 153 | · simpa only [zero_comp] using he |
| 154 | · simpa only [first, comp_zero, zero_add] using hfirst_eq.symm |
| 155 | · intro n p |
| 156 | rcases p with ⟨u, v, hp⟩ |
| 157 | let a := e.f (n + 2) - SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains.d (n + 2) (n + 1) ≫ v |
| 158 | have ha : a ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.boundaryNatural (n + 2) (n + 1) = 0 := by |
| 159 | change a ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains.d (n + 2) (n + 1) = 0 |
| 160 | dsimp only [a] |
| 161 | rw [Preadditive.sub_comp, e.comm (n + 2) (n + 1), hp, |
| 162 | Preadditive.comp_add] |
| 163 | simp only [← Category.assoc, SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains.d_comp_d, |
| 164 | zero_comp, zero_add, sub_self] |
| 165 | let hnext := SmoothSimplexModels.Cycles.SmoothSimplexSpace.exists_naturalSmoothFilling (n + 2) (n + 1) a ha |
| 166 | refine ⟨Classical.choose hnext, ?_⟩ |
| 167 | have hnext_eq := Classical.choose_spec hnext |
| 168 | change e.f (n + 2) = SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains.d (n + 2) (n + 1) ≫ v + |
| 169 | Classical.choose hnext ≫ SmoothSimplexModels.Cycles.SmoothSimplexSpace.boundaryNatural (n + 3) (n + 2) |
| 170 | rw [hnext_eq] |
| 171 | dsimp only [a] |
| 172 | abel |
| 173 | |
| 174 | /-- Natural smooth-chain endomorphisms agreeing in degree zero are naturally |
| 175 | homotopic without leaving the actual smooth chain functor. -/ |
| 176 | def SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalHomotopy (f g : SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains) |
| 177 | (hzero : f.f 0 = g.f 0) : Homotopy f g := |
| 178 | (Homotopy.equivSubZero (f := f) (g := g)).symm (SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalNullhomotopy (f - g) (by |
| 179 | change f.f 0 - g.f 0 = 0 |
| 180 | rw [hzero, sub_self])) |
| 181 | |
| 182 | /-- Evaluate a natural chain map at an actual smooth singular space. -/ |
| 183 | def SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMapAt (e : SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains) (X : SmoothSimplexModels.Cycles.SmoothSimplexSpace) : |
| 184 | SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains X ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.chains X where |
| 185 | f i := (e.f i).app X |
| 186 | comm' i j _ := NatTrans.congr_app (e.comm i j) X |
| 187 | |
| 188 | /-- Evaluate the natural homotopy in the actual smooth chain complex. -/ |
| 189 | def SmoothSimplexModels.Cycles.SmoothSimplexSpace.homotopyAt {f g : SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains ⟶ SmoothSimplexModels.Cycles.SmoothSimplexSpace.naturalChains} (h : Homotopy f g) |
| 190 | (X : SmoothSimplexModels.Cycles.SmoothSimplexSpace) : Homotopy (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMapAt f X) (SmoothSimplexModels.Cycles.SmoothSimplexSpace.chainMapAt g X) where |
| 191 | hom i j := (h.hom i j).app X |
| 192 | zero i j hij := NatTrans.congr_app (h.zero i j hij) X |
| 193 | comm i := NatTrans.congr_app (h.comm i) X |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI.AlgebraicGeometry.CycleClass.Geometric |