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 | /- |
| 2 | Copyright 2026 Paul Lezeau and The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.Geometry.Foundations.ConvexStdSimplexMetric |
| 18 | import OAI.AlgebraicTopology.Singular.ExcisionCoverSmall |
| 19 | |
| 20 | /-! # Subset Chains -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Singular.SubsetChains |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | # Singular chains of a subspace |
| 28 | |
| 29 | A singular simplex of a space factors through a subspace exactly when its topological image is |
| 30 | contained in that subspace, and the factorization is unique because the inclusion is injective. |
| 31 | This file turns that remark into the maps it is used through: a simplicial map into the singular |
| 32 | simplicial set lifts to the subspace whenever every represented simplex has image there, and a |
| 33 | single simplex lifts likewise. |
| 34 | |
| 35 | Degreewise, the resulting lift retracts the integral chain inclusion of the subspace, so that |
| 36 | inclusion is a split monomorphism in every degree and is therefore cancellable on the left. |
| 37 | -/ |
| 38 | |
| 39 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 40 | open scoped Simplicial |
| 41 | |
| 42 | /-- A singular simplex factors through a subspace exactly when its topological image is |
| 43 | contained in that subspace. -/ |
| 44 | lemma singularSimplex_mem_range_subset |
| 45 | (X : TopCat.{0}) (s : Set X) {n : SimplexCategoryᵒᵖ} |
| 46 | (x : (TopCat.toSSet.obj X).obj n) : |
| 47 | x ∈ (SSet.Subcomplex.range |
| 48 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s))).obj n ↔ |
| 49 | Set.range (X.toSSetObjEquiv n x) ⊆ s := by |
| 50 | constructor |
| 51 | · rintro ⟨y, rfl⟩ _ ⟨t, rfl⟩ |
| 52 | exact (TopCat.of s).toSSetObjEquiv n y t |>.2 |
| 53 | · intro h |
| 54 | let f : C(Convexity.StdSimplex ℝ (Fin (n.unop.len + 1)), TopCat.of s) := |
| 55 | ⟨fun t ↦ ⟨X.toSSetObjEquiv n x t, h ⟨t, rfl⟩⟩, |
| 56 | Continuous.subtype_mk (X.toSSetObjEquiv n x).continuous _⟩ |
| 57 | refine ⟨((TopCat.of s).toSSetObjEquiv n).symm f, ?_⟩ |
| 58 | apply (X.toSSetObjEquiv n).injective |
| 59 | ext t |
| 60 | rfl |
| 61 | |
| 62 | /-- A simplicial map to a singular simplicial set lifts to a topological subspace when every |
| 63 | represented continuous simplex has image in that subspace. -/ |
| 64 | def singularSimplicialMapLiftToSubset |
| 65 | (X : SSet.{0}) (Y : TopCat.{0}) (s : Set Y) |
| 66 | (f : X ⟶ TopCat.toSSet.obj Y) |
| 67 | (hf : ∀ (n : SimplexCategoryᵒᵖ) (x : X.obj n), |
| 68 | Set.range (Y.toSSetObjEquiv n (f.app n x)) ⊆ s) : |
| 69 | X ⟶ TopCat.toSSet.obj (TopCat.of s) where |
| 70 | app n := ↾ fun x ↦ |
| 71 | ((TopCat.of s).toSSetObjEquiv n).symm |
| 72 | ⟨fun t ↦ ⟨Y.toSSetObjEquiv n (f.app n x) t, |
| 73 | hf n x ⟨t, rfl⟩⟩, |
| 74 | Continuous.subtype_mk |
| 75 | (Y.toSSetObjEquiv n (f.app n x)).continuous _⟩ |
| 76 | naturality n m g := by |
| 77 | ext x |
| 78 | apply ((TopCat.of s).toSSetObjEquiv m).injective |
| 79 | apply ContinuousMap.ext |
| 80 | intro t |
| 81 | apply Subtype.ext |
| 82 | change (Y.toSSetObjEquiv m (f.app m (X.map g x))) t = |
| 83 | (Y.toSSetObjEquiv m |
| 84 | ((TopCat.toSSet.obj Y).map g (f.app n x))) t |
| 85 | have h := ConcreteCategory.congr_hom (f.naturality g) x |
| 86 | apply_fun fun z ↦ Y.toSSetObjEquiv m z t at h |
| 87 | simpa only [ConcreteCategory.comp_apply] using h |
| 88 | |
| 89 | @[reassoc (attr := simp)] |
| 90 | lemma singularSimplicialMapLiftToSubset_comp_inclusion |
| 91 | (X : SSet.{0}) (Y : TopCat.{0}) (s : Set Y) |
| 92 | (f : X ⟶ TopCat.toSSet.obj Y) |
| 93 | (hf : ∀ (n : SimplexCategoryᵒᵖ) (x : X.obj n), |
| 94 | Set.range (Y.toSSetObjEquiv n (f.app n x)) ⊆ s) : |
| 95 | singularSimplicialMapLiftToSubset X Y s f hf ≫ |
| 96 | TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y s) = f := rfl |
| 97 | |
| 98 | /-- Maps into a topological subspace are equal when their composites with the subspace |
| 99 | inclusion are equal. -/ |
| 100 | lemma singularSimplicialMapToSubset_ext |
| 101 | (X : SSet.{0}) (Y : TopCat.{0}) (s : Set Y) |
| 102 | (f g : X ⟶ TopCat.toSSet.obj (TopCat.of s)) |
| 103 | (h : f ≫ TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y s) = |
| 104 | g ≫ TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y s)) : f = g := by |
| 105 | ext n x |
| 106 | apply ((TopCat.of s).toSSetObjEquiv n).injective |
| 107 | apply ContinuousMap.ext |
| 108 | intro t |
| 109 | apply Subtype.ext |
| 110 | have hx := congrArg (fun k : X ⟶ TopCat.toSSet.obj Y ↦ k.app n x) h |
| 111 | exact congrArg (fun z ↦ Y.toSSetObjEquiv n z t) hx |
| 112 | |
| 113 | /-- A singular simplex whose image lies in a subspace, regarded as a simplex of that |
| 114 | subspace. -/ |
| 115 | def singularSimplexLiftToSubset |
| 116 | (X : TopCat.{0}) (s : Set X) {n : SimplexCategoryᵒᵖ} |
| 117 | (x : (TopCat.toSSet.obj X).obj n) |
| 118 | (hx : Set.range (X.toSSetObjEquiv n x) ⊆ s) : |
| 119 | (TopCat.toSSet.obj (TopCat.of s)).obj n := |
| 120 | ((TopCat.of s).toSSetObjEquiv n).symm |
| 121 | ⟨fun t ↦ ⟨X.toSSetObjEquiv n x t, hx ⟨t, rfl⟩⟩, |
| 122 | Continuous.subtype_mk (X.toSSetObjEquiv n x).continuous _⟩ |
| 123 | |
| 124 | @[simp] |
| 125 | lemma singularSimplexLiftToSubset_comp_inclusion |
| 126 | (X : TopCat.{0}) (s : Set X) {n : SimplexCategoryᵒᵖ} |
| 127 | (x : (TopCat.toSSet.obj X).obj n) |
| 128 | (hx : Set.range (X.toSSetObjEquiv n x) ⊆ s) : |
| 129 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s)).app n |
| 130 | (singularSimplexLiftToSubset X s x hx) = x := rfl |
| 131 | |
| 132 | open scoped Classical in |
| 133 | /-- A degreewise retraction of integral singular chains along a topological subspace |
| 134 | inclusion. It sends a simplex outside the subspace to zero. -/ |
| 135 | def singularSubsetIntegralChainRetractionComponent |
| 136 | (X : TopCat.{0}) (s : Set X) (n : ℕ) : |
| 137 | ((TopCat.toSSet.obj X).chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 138 | ((TopCat.toSSet.obj (TopCat.of s)).chainComplex |
| 139 | (AddCommGrpCat.of ℤ)).X n := |
| 140 | (TopCat.toSSet.obj X).isColimitChainComplexXCofan |
| 141 | (AddCommGrpCat.of ℤ) n |>.desc |
| 142 | (Cofan.mk _ (fun x ↦ |
| 143 | if hx : Set.range ((X.toSSetObjEquiv _ x)) ⊆ s then |
| 144 | (TopCat.toSSet.obj (TopCat.of s)).ιChainComplex |
| 145 | (singularSimplexLiftToSubset X s x hx) |
| 146 | else 0)) |
| 147 | |
| 148 | set_option backward.isDefEq.respectTransparency false in |
| 149 | lemma singularSubsetIntegralChainInclusion_comp_retraction |
| 150 | (X : TopCat.{0}) (s : Set X) (n : ℕ) : |
| 151 | (SSet.chainComplexMap |
| 152 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s)) |
| 153 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 154 | singularSubsetIntegralChainRetractionComponent X s n = 𝟙 _ := by |
| 155 | apply (TopCat.toSSet.obj (TopCat.of s)).chainComplex_hom_ext |
| 156 | intro x |
| 157 | rw [← Category.assoc, SSet.ι_chainComplexMap_f] |
| 158 | change ((TopCat.toSSet.obj X).chainComplexXCofan |
| 159 | (AddCommGrpCat.of ℤ) n).inj |
| 160 | ((TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s)).app _ x) ≫ |
| 161 | singularSubsetIntegralChainRetractionComponent X s n = _ |
| 162 | have hx : Set.range (X.toSSetObjEquiv _ |
| 163 | ((TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s)).app _ x)) ⊆ s := by |
| 164 | rintro _ ⟨t, rfl⟩ |
| 165 | exact ((TopCat.of s).toSSetObjEquiv _ x t).2 |
| 166 | simp [singularSubsetIntegralChainRetractionComponent, hx] |
| 167 | congr |
| 168 | |
| 169 | /-- Integral singular chains of a topological subspace inject degreewise into ambient |
| 170 | singular chains. -/ |
| 171 | lemma singularSubsetIntegralChainInclusionComponent_mono |
| 172 | (X : TopCat.{0}) (s : Set X) (n : ℕ) : |
| 173 | Mono ((SSet.chainComplexMap |
| 174 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s)) |
| 175 | (AddCommGrpCat.of ℤ)).f n) := by |
| 176 | constructor |
| 177 | intro Z f g h |
| 178 | let inc := (SSet.chainComplexMap |
| 179 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X s)) |
| 180 | (AddCommGrpCat.of ℤ)).f n |
| 181 | let ret := singularSubsetIntegralChainRetractionComponent X s n |
| 182 | have hret : inc ≫ ret = 𝟙 _ := |
| 183 | singularSubsetIntegralChainInclusion_comp_retraction X s n |
| 184 | calc |
| 185 | f = (f ≫ inc) ≫ ret := by rw [Category.assoc, hret, Category.comp_id] |
| 186 | _ = (g ≫ inc) ≫ ret := by rw [h] |
| 187 | _ = g := by rw [Category.assoc, hret, Category.comp_id] |
| 188 | |
| 189 | end |
| 190 | |
| 191 | end OAI.AlgebraicTopology.Singular.SubsetChains |