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.AlgebraicTopology.Products.SimplexFaceIdentities |
| 2 | import Mathlib.Data.Fin.Rev |
| 3 | import Mathlib.Topology.Algebra.Module.ContinuousLinearMap.Basic |
| 4 | |
| 5 | /-! # Simplex Reversal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.Products.SimplexReversal |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # Reversal of actual topological and singular simplices |
| 15 | |
| 16 | The reversal of barycentric coordinates is the restriction of a continuous |
| 17 | linear map on the ambient coordinate space. It is not a morphism in the |
| 18 | simplex category. Its interaction with faces is proved as an equality of |
| 19 | continuous maps before passing to actual singular simplices. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory Opposite |
| 23 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex Simplicial |
| 24 | |
| 25 | set_option backward.defeqAttrib.useBackward true |
| 26 | set_option backward.isDefEq.respectTransparency false |
| 27 | set_option backward.isDefEq.respectTransparency.types false |
| 28 | |
| 29 | /-- The continuous linear map inducing reversal of barycentric coordinates. -/ |
| 30 | def simplexReversalLinear (n : ℕ) : |
| 31 | (Fin (n + 1) → ℝ) →L[ℝ] (Fin (n + 1) → ℝ) := |
| 32 | ⟨FunOnFinite.linearMap ℝ ℝ Fin.rev, |
| 33 | FunOnFinite.continuous_linearMap ℝ ℝ Fin.rev⟩ |
| 34 | |
| 35 | /-- The actual continuous affine involution reversing all vertices. -/ |
| 36 | def simplexReversal (n : ℕ) : |
| 37 | C(Convexity.StdSimplex ℝ (Fin (n + 1)), Convexity.StdSimplex ℝ (Fin (n + 1))) := |
| 38 | ⟨Convexity.StdSimplex.map Fin.rev, Convexity.StdSimplex.continuous_map ℝ Fin.rev⟩ |
| 39 | |
| 40 | theorem simplexReversal_apply (n : ℕ) (x : Convexity.StdSimplex ℝ (Fin (n + 1))) : |
| 41 | simplexReversal n x = Convexity.StdSimplex.map Fin.rev x := rfl |
| 42 | |
| 43 | /-- Reversal is the restriction of the displayed linear map, hence is affine. -/ |
| 44 | theorem simplexReversal_linear_extension (n : ℕ) |
| 45 | (x : Convexity.StdSimplex ℝ (Fin (n + 1))) : |
| 46 | (simplexReversal n x : Fin (n + 1) → ℝ) = simplexReversalLinear n x := |
| 47 | Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex.map_coordinates Fin.rev x |
| 48 | |
| 49 | /-- The coordinate at vertex `i` becomes the coordinate at the reversed vertex. -/ |
| 50 | @[simp] |
| 51 | theorem simplexReversal_coordinate (n : ℕ) |
| 52 | (x : Convexity.StdSimplex ℝ (Fin (n + 1))) (i : Fin (n + 1)) : |
| 53 | simplexReversal n x i = x i.rev := by |
| 54 | change (Convexity.StdSimplex.map Fin.rev x).weights i = x.weights i.rev |
| 55 | rw [Convexity.StdSimplex.weights_map] |
| 56 | simpa only [Fin.rev_rev] using |
| 57 | (Finsupp.mapDomain_apply_of_injective Fin.rev_injective x.weights i.rev) |
| 58 | |
| 59 | @[simp] |
| 60 | theorem simplexReversal_vertex (n : ℕ) (i : Fin (n + 1)) : |
| 61 | simplexReversal n (Convexity.StdSimplex.single i) = Convexity.StdSimplex.single i.rev := |
| 62 | Convexity.StdSimplex.map_single i Fin.rev |
| 63 | |
| 64 | theorem simplexReversal_involutive (n : ℕ) : |
| 65 | Function.Involutive (simplexReversal n) := by |
| 66 | intro x |
| 67 | apply (Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ (Fin (n + 1))).injective |
| 68 | funext i |
| 69 | simp |
| 70 | |
| 71 | @[simp] |
| 72 | theorem simplexReversal_apply_apply (n : ℕ) (x : Convexity.StdSimplex ℝ (Fin (n + 1))) : |
| 73 | simplexReversal n (simplexReversal n x) = x := simplexReversal_involutive n x |
| 74 | |
| 75 | @[simp] |
| 76 | theorem simplexReversal_comp_self (n : ℕ) : |
| 77 | (simplexReversal n).comp (simplexReversal n) = ContinuousMap.id _ := by |
| 78 | apply ContinuousMap.ext |
| 79 | intro x |
| 80 | exact simplexReversal_apply_apply n x |
| 81 | |
| 82 | @[simp] |
| 83 | theorem simplexReversal_zero : simplexReversal 0 = ContinuousMap.id _ := by |
| 84 | apply ContinuousMap.ext |
| 85 | intro x |
| 86 | exact Subsingleton.elim _ _ |
| 87 | |
| 88 | /-- The topological face that omits `i` is reversed to the face that omits `i.rev`. -/ |
| 89 | theorem simplexReversal_face (n : ℕ) (i : Fin (n + 2)) : |
| 90 | (simplexReversal (n + 1)).comp (Cohomology.Singular.ContinuousFormulas.standardSimplexFace i) = |
| 91 | (Cohomology.Singular.ContinuousFormulas.standardSimplexFace i.rev).comp (simplexReversal n) := by |
| 92 | apply ContinuousMap.ext |
| 93 | intro x |
| 94 | change Convexity.StdSimplex.map Fin.rev (Convexity.StdSimplex.map i.succAbove x) = |
| 95 | Convexity.StdSimplex.map i.rev.succAbove (Convexity.StdSimplex.map Fin.rev x) |
| 96 | rw [← Convexity.StdSimplex.map_comp, ← Convexity.StdSimplex.map_comp] |
| 97 | congr 1 |
| 98 | funext j |
| 99 | exact Fin.rev_succAbove i j |
| 100 | |
| 101 | /-- Reverse an actual singular simplex by precomposing its continuous map. -/ |
| 102 | def singularSimplexReversal (X : TopCat.{0}) (n : ℕ) |
| 103 | (s : (TopCat.toSSet.obj X) _⦋n⦌) : (TopCat.toSSet.obj X) _⦋n⦌ := |
| 104 | (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n).symm |
| 105 | ((Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n s).comp (simplexReversal n)) |
| 106 | |
| 107 | @[simp] |
| 108 | theorem singularSimplexReversal_continuousMap (X : TopCat.{0}) (n : ℕ) |
| 109 | (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 110 | Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n (singularSimplexReversal X n s) = |
| 111 | (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n s).comp (simplexReversal n) := |
| 112 | Equiv.apply_symm_apply _ _ |
| 113 | |
| 114 | theorem singularSimplexReversal_involutive (X : TopCat.{0}) (n : ℕ) : |
| 115 | Function.Involutive (singularSimplexReversal X n) := by |
| 116 | intro s |
| 117 | apply (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n).injective |
| 118 | simp only [singularSimplexReversal_continuousMap] |
| 119 | ext x |
| 120 | simp |
| 121 | |
| 122 | @[simp] |
| 123 | theorem singularSimplexReversal_apply_apply (X : TopCat.{0}) (n : ℕ) |
| 124 | (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 125 | singularSimplexReversal X n (singularSimplexReversal X n s) = s := |
| 126 | singularSimplexReversal_involutive X n s |
| 127 | |
| 128 | @[simp] |
| 129 | theorem singularSimplexReversal_zero (X : TopCat.{0}) |
| 130 | (s : (TopCat.toSSet.obj X) _⦋0⦌) : singularSimplexReversal X 0 s = s := by |
| 131 | apply (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X 0).injective |
| 132 | simp |
| 133 | |
| 134 | /-- Reversing a singular simplex exchanges face `i` with face `i.rev`. -/ |
| 135 | theorem singularSimplexReversal_face (X : TopCat.{0}) (n : ℕ) |
| 136 | (i : Fin (n + 2)) (s : (TopCat.toSSet.obj X) _⦋n + 1⦌) : |
| 137 | (TopCat.toSSet.obj X).δ i (singularSimplexReversal X (n + 1) s) = |
| 138 | singularSimplexReversal X n ((TopCat.toSSet.obj X).δ i.rev s) := by |
| 139 | apply (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n).injective |
| 140 | rw [Cohomology.Singular.ContinuousFormulas.singularSimplicesEquivContinuousMap_face, singularSimplexReversal_continuousMap, |
| 141 | singularSimplexReversal_continuousMap, Cohomology.Singular.ContinuousFormulas.singularSimplicesEquivContinuousMap_face] |
| 142 | rw [ContinuousMap.comp_assoc, ContinuousMap.comp_assoc, simplexReversal_face] |
| 143 | |
| 144 | /-- Reversal commutes with every continuous map of target spaces. -/ |
| 145 | theorem singularSimplexReversal_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) (n : ℕ) |
| 146 | (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 147 | singularSimplexReversal Y n ((TopCat.toSSet.map f).app _ s) = |
| 148 | (TopCat.toSSet.map f).app _ (singularSimplexReversal X n s) := by |
| 149 | apply (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap Y n).injective |
| 150 | rw [singularSimplexReversal_continuousMap, Cohomology.Singular.ContinuousFormulas.singularSimplicesEquivContinuousMap_map, |
| 151 | Cohomology.Singular.ContinuousFormulas.singularSimplicesEquivContinuousMap_map, singularSimplexReversal_continuousMap] |
| 152 | exact ContinuousMap.comp_assoc _ _ _ |
| 153 | |
| 154 | /-- Reversal changes the parametrization, preserving the image of a singular simplex. -/ |
| 155 | theorem singularSimplexReversal_range (X : TopCat.{0}) (n : ℕ) |
| 156 | (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 157 | Set.range (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n (singularSimplexReversal X n s)) = |
| 158 | Set.range (Cohomology.Singular.Coefficients.singularSimplicesEquivContinuousMap X n s) := by |
| 159 | rw [singularSimplexReversal_continuousMap] |
| 160 | ext y |
| 161 | constructor |
| 162 | · rintro ⟨x, hx⟩ |
| 163 | exact ⟨simplexReversal n x, hx⟩ |
| 164 | · rintro ⟨x, hx⟩ |
| 165 | refine ⟨simplexReversal n x, ?_⟩ |
| 166 | simpa using hx |
| 167 | |
| 168 | end |
| 169 | |
| 170 | /-! |
| 171 | # Front and back restrictions under actual simplex reversal |
| 172 | |
| 173 | Reversing the vertices sends a consecutive interval to the reversed |
| 174 | complementary-position interval. The identities are proved for the actual |
| 175 | continuous maps of standard simplices, and then for genuine singular |
| 176 | simplices. Reversal is not treated as a morphism in the simplex category. |
| 177 | -/ |
| 178 | |
| 179 | open _root_.CategoryTheory Opposite |
| 180 | open scoped Simplicial |
| 181 | |
| 182 | set_option backward.defeqAttrib.useBackward true |
| 183 | set_option backward.isDefEq.respectTransparency false |
| 184 | set_option backward.isDefEq.respectTransparency.types false |
| 185 | |
| 186 | /-- Vertex reversal carries the interval starting at `a` to the reversed |
| 187 | interval starting at `n - a - p`. This is an equality of functions on vertices. -/ |
| 188 | theorem finRev_subinterval {n : ℕ} (a p : ℕ) (h : a + p ≤ n) |
| 189 | (i : Fin (p + 1)) : |
| 190 | (((SimplexCategory.subinterval a p h).toOrderHom) i).rev = |
| 191 | (SimplexCategory.subinterval (n - a - p) p (by omega)).toOrderHom i.rev := by |
| 192 | apply Fin.ext |
| 193 | change n + 1 - (i.val + a + 1) = (p + 1 - (i.val + 1)) + (n - a - p) |
| 194 | omega |
| 195 | |
| 196 | /-- Reversal and interval restriction agree as actual continuous maps |
| 197 | of topological standard simplices. -/ |
| 198 | theorem simplexReversal_interval {n : ℕ} (a p : ℕ) (h : a + p ≤ n) : |
| 199 | (simplexReversal n).comp (SimplexFaceIdentities.standardSimplexInterval a p h) = |
| 200 | (SimplexFaceIdentities.standardSimplexInterval (n - a - p) p (by omega)).comp (simplexReversal p) := by |
| 201 | apply ContinuousMap.ext |
| 202 | intro z |
| 203 | change Convexity.StdSimplex.map Fin.rev (Convexity.StdSimplex.map (SimplexCategory.subinterval a p h) z) = |
| 204 | Convexity.StdSimplex.map (SimplexCategory.subinterval (n - a - p) p (by omega)) |
| 205 | (Convexity.StdSimplex.map Fin.rev z) |
| 206 | rw [← Convexity.StdSimplex.map_comp, ← Convexity.StdSimplex.map_comp] |
| 207 | apply congrArg (fun g : Fin (p + 1) → Fin (n + 1) => Convexity.StdSimplex.map g z) |
| 208 | funext i |
| 209 | exact finRev_subinterval a p h i |
| 210 | |
| 211 | /-- The front block becomes the back block after reversal. Both sides |
| 212 | are continuous maps into the same actual `(p + q)`-simplex. -/ |
| 213 | theorem simplexReversal_front (p q : ℕ) : |
| 214 | (simplexReversal (p + q)).comp |
| 215 | (SimplexFaceIdentities.standardSimplexInterval 0 p (show 0 + p ≤ p + q by omega)) = |
| 216 | (SimplexFaceIdentities.standardSimplexInterval q p (show q + p ≤ p + q by omega)).comp |
| 217 | (simplexReversal p) := by |
| 218 | simpa only [Nat.sub_zero, Nat.add_sub_cancel_left] using |
| 219 | simplexReversal_interval 0 p (show 0 + p ≤ p + q by omega) |
| 220 | |
| 221 | /-- The back block becomes the front block after reversal, with the |
| 222 | common ambient simplex dimension retained explicitly. -/ |
| 223 | theorem simplexReversal_back (p q : ℕ) : |
| 224 | (simplexReversal (p + q)).comp (SimplexFaceIdentities.standardSimplexInterval p q le_rfl) = |
| 225 | (SimplexFaceIdentities.standardSimplexInterval 0 q (show 0 + q ≤ p + q by omega)).comp |
| 226 | (simplexReversal q) := by |
| 227 | simpa only [Nat.add_sub_cancel_left, Nat.sub_self] using |
| 228 | simplexReversal_interval p q (show p + q ≤ p + q from le_rfl) |
| 229 | |
| 230 | /-- On genuine singular simplices, reversing before restricting to a |
| 231 | vertex interval equals restricting to the reversed interval and reversing. -/ |
| 232 | theorem intervalFace_singularSimplexReversal (X : TopCat.{0}) {n : ℕ} |
| 233 | (a p : ℕ) (h : a + p ≤ n) (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 234 | SimplexFaceIdentities.intervalFace (TopCat.toSSet.obj X) a p h (singularSimplexReversal X n s) = |
| 235 | singularSimplexReversal X p |
| 236 | (SimplexFaceIdentities.intervalFace (TopCat.toSSet.obj X) (n - a - p) p (by omega) s) := by |
| 237 | apply (X.toSSetObjEquiv (op ⦋p⦌)).injective |
| 238 | have hrev (m : ℕ) (t : (TopCat.toSSet.obj X) _⦋m⦌) : |
| 239 | X.toSSetObjEquiv (op ⦋m⦌) (singularSimplexReversal X m t) = |
| 240 | (X.toSSetObjEquiv (op ⦋m⦌) t).comp (simplexReversal m) := |
| 241 | singularSimplexReversal_continuousMap X m t |
| 242 | simp only [SimplexFaceIdentities.intervalFace_continuousMap, hrev, |
| 243 | ContinuousMap.comp_assoc] |
| 244 | rw [simplexReversal_interval] |
| 245 | |
| 246 | /-- The front face of a reversed genuine singular simplex is the reversed |
| 247 | back face. The exchange of the two degree sums is an explicit transport. -/ |
| 248 | theorem frontFace_singularSimplexReversal (X : TopCat.{0}) (p q : ℕ) |
| 249 | (s : (TopCat.toSSet.obj X) _⦋p + q⦌) : |
| 250 | SimplexFaceIdentities.frontFace (TopCat.toSSet.obj X) p q (singularSimplexReversal X (p + q) s) = |
| 251 | singularSimplexReversal X p |
| 252 | (SimplexFaceIdentities.backFace (TopCat.toSSet.obj X) q p |
| 253 | (SimplexFaceIdentities.simplexCast (TopCat.toSSet.obj X) (Nat.add_comm p q) s)) := by |
| 254 | unfold SimplexFaceIdentities.frontFace SimplexFaceIdentities.backFace |
| 255 | rw [SimplexFaceIdentities.intervalFace_simplexCast] |
| 256 | simpa only [Nat.sub_zero, Nat.add_sub_cancel_left] using |
| 257 | intervalFace_singularSimplexReversal X 0 p (show 0 + p ≤ p + q by omega) s |
| 258 | |
| 259 | /-- The back face of a reversed genuine singular simplex is the reversed |
| 260 | front face, again with the degree transport recorded explicitly. -/ |
| 261 | theorem backFace_singularSimplexReversal (X : TopCat.{0}) (p q : ℕ) |
| 262 | (s : (TopCat.toSSet.obj X) _⦋p + q⦌) : |
| 263 | SimplexFaceIdentities.backFace (TopCat.toSSet.obj X) p q (singularSimplexReversal X (p + q) s) = |
| 264 | singularSimplexReversal X q |
| 265 | (SimplexFaceIdentities.frontFace (TopCat.toSSet.obj X) q p |
| 266 | (SimplexFaceIdentities.simplexCast (TopCat.toSSet.obj X) (Nat.add_comm p q) s)) := by |
| 267 | unfold SimplexFaceIdentities.frontFace SimplexFaceIdentities.backFace |
| 268 | rw [SimplexFaceIdentities.intervalFace_simplexCast] |
| 269 | simpa only [Nat.add_sub_cancel_left, Nat.sub_self] using |
| 270 | intervalFace_singularSimplexReversal X p q (show p + q ≤ p + q from le_rfl) s |
| 271 | |
| 272 | end |
| 273 | |
| 274 | end OAI.AlgebraicTopology.Products.SimplexReversal |