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 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicTopology.LocalHomology.NormalSlicePurity |
| 7 | import Mathlib.Analysis.Normed.Module.Ball.Homeomorph |
| 8 | |
| 9 | /-! # Flattened Support -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicTopology.LocalHomology.FlattenedSupport.Singular |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # Relative homology near a flattened support |
| 17 | |
| 18 | Radial compression into a small product-norm ball preserves the zero-normal plane. |
| 19 | Composing with the inverse flattening chart gives a pair homeomorphism from the normal-slice |
| 20 | model to a small open neighborhood paired with its support complement, along which the |
| 21 | homology calculation and the normalized class are transported. |
| 22 | -/ |
| 23 | |
| 24 | /-! ### Constructions used only in proofs -/ |
| 25 | |
| 26 | section |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.Topology |
| 29 | |
| 30 | variable {M : Type} [TopologicalSpace M] |
| 31 | (E : Type) [NormedAddCommGroup E] [NormedSpace ℝ E] (c : ℕ) |
| 32 | |
| 33 | section |
| 34 | |
| 35 | variable (e : OpenPartialHomeomorph M (E × (Fin c → ℂ))) (x : M) (hx : x ∈ e.source) |
| 36 | include hx |
| 37 | |
| 38 | omit [NormedSpace ℝ E] in |
| 39 | /-- A positive coordinate-ball radius is obtained from the open chart target. -/ |
| 40 | theorem exists_flattenedSupportRadius : |
| 41 | ∃ r : ℝ, 0 < r ∧ Metric.ball (e x) r ⊆ e.target := |
| 42 | Metric.isOpen_iff.mp e.open_target (e x) (e.map_source hx) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | /-- Radial compression centered on the zero-normal plane preserves that plane exactly. -/ |
| 47 | theorem univBall_normal_eq_zero_iff (a : E) (r : ℝ) (hr : 0 < r) |
| 48 | (v : E × (Fin c → ℂ)) : |
| 49 | (OpenPartialHomeomorph.univBall (a, (0 : Fin c → ℂ)) r v).2 = 0 ↔ v.2 = 0 := by |
| 50 | rw [OpenPartialHomeomorph.univBall, dite_eq_left hr] |
| 51 | change (r • ((Real.sqrt (1 + ‖v‖ ^ 2))⁻¹ • v) + (a, (0 : Fin c → ℂ))).2 = 0 ↔ _ |
| 52 | have hs : (Real.sqrt (1 + ‖v‖ ^ 2))⁻¹ ≠ 0 := by positivity |
| 53 | simp only [Prod.snd_add, Prod.smul_snd, add_zero, smul_eq_zero, hr.ne', hs, false_or] |
| 54 | |
| 55 | variable (e : OpenPartialHomeomorph M (E × (Fin c → ℂ))) (x : M) (hx : x ∈ e.source) |
| 56 | |
| 57 | include hx |
| 58 | |
| 59 | def flattenedSupportRadius : ℝ := (exists_flattenedSupportRadius E c e x hx).choose |
| 60 | |
| 61 | omit [NormedSpace ℝ E] in |
| 62 | theorem flattenedSupportRadius_pos : 0 < flattenedSupportRadius E c e x hx := |
| 63 | (exists_flattenedSupportRadius E c e x hx).choose_spec.1 |
| 64 | |
| 65 | omit [NormedSpace ℝ E] in |
| 66 | theorem ball_flattenedSupportRadius_subset : |
| 67 | Metric.ball (e x) (flattenedSupportRadius E c e x hx) ⊆ e.target := |
| 68 | (exists_flattenedSupportRadius E c e x hx).choose_spec.2 |
| 69 | |
| 70 | /-- Let `M` be a topological space, `E` a real normed vector space, and `e` a chart from an open |
| 71 | subset of `M` to `E × ℂ^c`, with `x` in its source. Choose a positive radius whose ball about |
| 72 | `e(x)` lies in the chart target. This open embedding first maps all of `E × ℂ^c` |
| 73 | homeomorphically onto that ball by radial compression, then applies `e⁻¹`. -/ |
| 74 | def flattenedSupportEmbedding : OpenPartialHomeomorph (E × (Fin c → ℂ)) M := |
| 75 | (OpenPartialHomeomorph.univBall (e x) (flattenedSupportRadius E c e x hx)).trans e.symm |
| 76 | |
| 77 | theorem flattenedSupportEmbedding_source : |
| 78 | (flattenedSupportEmbedding E c e x hx).source = Set.univ := by |
| 79 | refine Set.eq_univ_of_forall fun v => ⟨by simp, ?_⟩ |
| 80 | apply ball_flattenedSupportRadius_subset E c e x hx |
| 81 | rw [← OpenPartialHomeomorph.univBall_target (e x) |
| 82 | (flattenedSupportRadius_pos E c e x hx)] |
| 83 | exact (OpenPartialHomeomorph.univBall (e x) |
| 84 | (flattenedSupportRadius E c e x hx)).map_source (by simp) |
| 85 | |
| 86 | /-- Let `M` be a topological space, `E` a real normed vector space, and `e` a chart from an open |
| 87 | subset of `M` to `E × ℂ^c`, with `x` in its source. This open neighborhood of `x` is the inverse |
| 88 | image under `e` of a chosen positive-radius ball about `e(x)` contained in the chart target. -/ |
| 89 | def flattenedSupportNeighborhood : TopologicalSpace.Opens M := |
| 90 | ⟨(flattenedSupportEmbedding E c e x hx).target, |
| 91 | (flattenedSupportEmbedding E c e x hx).open_target⟩ |
| 92 | |
| 93 | theorem flattenedSupportNeighborhood_subset_source : |
| 94 | (flattenedSupportNeighborhood E c e x hx : Set M) ⊆ e.source := |
| 95 | fun _ hy => hy.1 |
| 96 | |
| 97 | /-- Let `M` be a topological space, `E` a real normed vector space, and `e` a chart from an open |
| 98 | subset of `M` to `E × ℂ^c`, with `x` in its source. This homeomorphism identifies `E × ℂ^c` with |
| 99 | the inverse image of a chosen ball about `e(x)` in the chart target. It radially compresses the |
| 100 | product onto that ball and applies `e⁻¹`. -/ |
| 101 | def flattenedSupportHomeomorph : |
| 102 | (E × (Fin c → ℂ)) ≃ₜ flattenedSupportNeighborhood E c e x hx := |
| 103 | (((Homeomorph.setCongr (flattenedSupportEmbedding_source E c e x hx)).trans |
| 104 | (Homeomorph.Set.univ _)).symm).trans |
| 105 | (flattenedSupportEmbedding E c e x hx).toHomeomorphSourceTarget |
| 106 | |
| 107 | theorem flattenedSupportHomeomorph_coordinates (v : E × (Fin c → ℂ)) : |
| 108 | e (flattenedSupportHomeomorph E c e x hx v) = |
| 109 | OpenPartialHomeomorph.univBall (e x) (flattenedSupportRadius E c e x hx) v := by |
| 110 | apply e.right_inv |
| 111 | apply ball_flattenedSupportRadius_subset E c e x hx |
| 112 | rw [← OpenPartialHomeomorph.univBall_target (e x) |
| 113 | (flattenedSupportRadius_pos E c e x hx)] |
| 114 | exact (OpenPartialHomeomorph.univBall (e x) |
| 115 | (flattenedSupportRadius E c e x hx)).map_source (by simp) |
| 116 | |
| 117 | variable (S : Set M) (hS : ∀ y ∈ e.source, y ∈ S ↔ (e y).2 = 0) (h0 : (e x).2 = 0) |
| 118 | |
| 119 | include hS h0 |
| 120 | |
| 121 | theorem flattenedSupportHomeomorph_mem_support_iff (v : E × (Fin c → ℂ)) : |
| 122 | (flattenedSupportHomeomorph E c e x hx v : M) ∈ S ↔ v.2 = 0 := by |
| 123 | rw [hS _ (flattenedSupportNeighborhood_subset_source E c e x hx |
| 124 | (flattenedSupportHomeomorph E c e x hx v).2), flattenedSupportHomeomorph_coordinates] |
| 125 | have he : e x = ((e x).1, (0 : Fin c → ℂ)) := Prod.ext rfl h0 |
| 126 | rw [he] |
| 127 | exact univBall_normal_eq_zero_iff E c _ _ (flattenedSupportRadius_pos E c e x hx) v |
| 128 | |
| 129 | /-- Let `M` be a topological space, `E` a real normed vector space, and `e` a chart from an open |
| 130 | subset of `M` to `E × ℂ^c`, with `x` in its source. Suppose a subset `S ⊆ M` is given in this |
| 131 | chart by vanishing of the normal coordinate and `x ∈ S`. Let `W` be the inverse image of the |
| 132 | chosen ball about `e(x)`. Radial compression followed by `e⁻¹` restricts to this homeomorphism |
| 133 | `E × (ℂ^c \ {0}) ≃ W \ S`. -/ |
| 134 | def flattenedSupportComplementHomeomorph : |
| 135 | {v : E × (Fin c → ℂ) | v.2 ≠ 0} ≃ₜ |
| 136 | {w : flattenedSupportNeighborhood E c e x hx | (w : M) ∉ S} := |
| 137 | (flattenedSupportHomeomorph E c e x hx).subtype fun v => |
| 138 | not_congr (flattenedSupportHomeomorph_mem_support_iff E c e x hx S hS h0 v).symm |
| 139 | |
| 140 | /-- Let `M` be a topological space, `E` a real normed vector space, and `e` a chart from an open |
| 141 | subset of `M` to `E × ℂ^c`, with `x` in its source. Suppose a subset `S ⊆ M` is given in this |
| 142 | chart by vanishing of the normal coordinate and `x ∈ S`. Let `W` be the inverse image of the |
| 143 | chosen ball about `e(x)`. This isomorphism of topological pairs `(E × ℂ^c, E × (ℂ^c \ {0})) ≅ |
| 144 | (W,W \ S)` is given by radial compression into the ball followed by `e⁻¹`. -/ |
| 145 | def flattenedSupportPairIso : NormalSlicePurity.Singular.normalSlicePair E c ≅ |
| 146 | FundamentalClass.Singular.neighborhoodSupportComplementPair (flattenedSupportNeighborhood E c e x hx) S where |
| 147 | hom := TopPair.ofHom |
| 148 | (TopCat.ofHom ⟨flattenedSupportHomeomorph E c e x hx, |
| 149 | (flattenedSupportHomeomorph E c e x hx).continuous⟩) |
| 150 | (TopCat.ofHom ⟨flattenedSupportComplementHomeomorph E c e x hx S hS h0, |
| 151 | (flattenedSupportComplementHomeomorph E c e x hx S hS h0).continuous⟩) (by ext v; rfl) |
| 152 | inv := TopPair.ofHom |
| 153 | (TopCat.ofHom ⟨(flattenedSupportHomeomorph E c e x hx).symm, |
| 154 | (flattenedSupportHomeomorph E c e x hx).symm.continuous⟩) |
| 155 | (TopCat.ofHom ⟨(flattenedSupportComplementHomeomorph E c e x hx S hS h0).symm, |
| 156 | (flattenedSupportComplementHomeomorph E c e x hx S hS h0).symm.continuous⟩) (by ext v; rfl) |
| 157 | hom_inv_id := by |
| 158 | apply MorphismProperty.Arrow.Hom.ext |
| 159 | · ext v |
| 160 | exact (flattenedSupportComplementHomeomorph E c e x hx S hS h0).left_inv v |
| 161 | · ext v |
| 162 | exact (flattenedSupportHomeomorph E c e x hx).left_inv v |
| 163 | inv_hom_id := by |
| 164 | apply MorphismProperty.Arrow.Hom.ext |
| 165 | · ext v |
| 166 | exact (flattenedSupportComplementHomeomorph E c e x hx S hS h0).right_inv v |
| 167 | · ext v |
| 168 | exact (flattenedSupportHomeomorph E c e x hx).right_inv v |
| 169 | |
| 170 | /-- Let `M` be a topological space, `E` a real normed vector space, and `e` a chart from an open |
| 171 | subset of `M` to `E × ℂ^c`, with `x` in its source. Suppose a subset `S ⊆ M` is given in this |
| 172 | chart by vanishing of the normal coordinate and `x ∈ S`. Let `W` be the inverse image of the |
| 173 | chosen ball about `e(x)`. This isomorphism `H_n(W,W \ S;ℚ) ≅ H_n(ℂ^c,ℂ^c \ {0};ℚ)` uses the |
| 174 | chart and contracts the `E` coordinate to zero. -/ |
| 175 | def flattenedSupportRelativeHomologyIso (n : ℕ) : |
| 176 | Singular.Cohomology.RelativeHomology ℚ |
| 177 | (FundamentalClass.Singular.neighborhoodSupportComplementPair (flattenedSupportNeighborhood E c e x hx) S) n ≅ |
| 178 | Singular.Cohomology.RelativeHomology ℚ (FundamentalClass.Singular.puncturedPair ℂ c) n := |
| 179 | ((Singular.Cohomology.relativeHomologyFunctor ℚ n).mapIso (flattenedSupportPairIso E c e x hx S hS h0).symm) ≪≫ |
| 180 | NormalSlicePurity.Singular.normalSliceRelativeHomologyIso E c n |
| 181 | |
| 182 | /-- The local class is the transport of the fixed, exactly normalized complex normal class. -/ |
| 183 | def flattenedSupportNormalClass : |
| 184 | Singular.Cohomology.RelativeHomology ℚ |
| 185 | (FundamentalClass.Singular.neighborhoodSupportComplementPair (flattenedSupportNeighborhood E c e x hx) S) (2 * c) := |
| 186 | (flattenedSupportRelativeHomologyIso E c e x hx S hS h0 (2 * c)).inv.hom |
| 187 | (ComplexClass.Singular.standardComplexLocalClass ℚ c) |
| 188 | |
| 189 | end |
| 190 | |
| 191 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.Topology |
| 192 | |
| 193 | variable {M : Type} [TopologicalSpace M] |
| 194 | (E : Type) [NormedAddCommGroup E] [NormedSpace ℝ E] (c : ℕ) |
| 195 | |
| 196 | variable (e : OpenPartialHomeomorph M (E × (Fin c → ℂ))) (x : M) (hx : x ∈ e.source) |
| 197 | |
| 198 | include hx |
| 199 | |
| 200 | @[simp] theorem flattenedSupportEmbedding_zero : flattenedSupportEmbedding E c e x hx 0 = x := by |
| 201 | change e.symm (OpenPartialHomeomorph.univBall (e x) _ 0) = x |
| 202 | rw [OpenPartialHomeomorph.univBall_apply_zero, e.left_inv hx] |
| 203 | |
| 204 | theorem mem_flattenedSupportNeighborhood : x ∈ flattenedSupportNeighborhood E c e x hx := by |
| 205 | have h := (flattenedSupportEmbedding E c e x hx).map_source |
| 206 | (show 0 ∈ (flattenedSupportEmbedding E c e x hx).source by |
| 207 | rw [flattenedSupportEmbedding_source]; trivial) |
| 208 | change x ∈ (flattenedSupportEmbedding E c e x hx).target |
| 209 | simpa only [flattenedSupportEmbedding_zero] using h |
| 210 | |
| 211 | @[simp] theorem flattenedSupportHomeomorph_apply (v : E × (Fin c → ℂ)) : |
| 212 | (flattenedSupportHomeomorph E c e x hx v : M) = |
| 213 | flattenedSupportEmbedding E c e x hx v := rfl |
| 214 | |
| 215 | variable (S : Set M) (hS : ∀ y ∈ e.source, y ∈ S ↔ (e y).2 = 0) (h0 : (e x).2 = 0) |
| 216 | |
| 217 | include hS h0 |
| 218 | |
| 219 | @[simp] theorem flattenedSupportNormalClass_normalization : |
| 220 | (flattenedSupportRelativeHomologyIso E c e x hx S hS h0 (2 * c)).hom.hom |
| 221 | (flattenedSupportNormalClass E c e x hx S hS h0) = ComplexClass.Singular.standardComplexLocalClass ℚ c := |
| 222 | ConcreteCategory.congr_hom |
| 223 | (flattenedSupportRelativeHomologyIso E c e x hx S hS h0 (2 * c)).inv_hom_id _ |
| 224 | |
| 225 | end |
| 226 | |
| 227 | end OAI.AlgebraicTopology.LocalHomology.FlattenedSupport.Singular |