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.AlgebraicTopology.Cohomology.Singular.ContinuousFormulas |
| 3 | |
| 4 | /-! # Simplex Face Identities -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicTopology.Products.SimplexFaceIdentities |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # The front and back restrictions of an actual singular simplex |
| 14 | |
| 15 | These operations are the restrictions along the standard monotone inclusions |
| 16 | of vertices. They are defined for every simplicial set, hence in particular |
| 17 | for mathlib's actual singular simplicial set. The face identities are proved |
| 18 | as equalities of maps in the simplex category before applying the functor. |
| 19 | -/ |
| 20 | |
| 21 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 22 | |
| 23 | open _root_.CategoryTheory Opposite |
| 24 | open scoped Simplicial |
| 25 | |
| 26 | /-- Transport a simplex across an equality of its dimensions. -/ |
| 27 | def simplexCast (K : SSet.{0}) {m n : ℕ} (h : m = n) (s : K _⦋m⦌) : K _⦋n⦌ := h ▸ s |
| 28 | |
| 29 | @[simp] |
| 30 | theorem simplexCast_rfl (K : SSet.{0}) {n : ℕ} (s : K _⦋n⦌) : |
| 31 | simplexCast K rfl s = s := rfl |
| 32 | |
| 33 | /-- Restriction to the consecutive vertices `a,..., a + p`. -/ |
| 34 | def intervalFace (K : SSet.{0}) {n : ℕ} (a p : ℕ) (h : a + p ≤ n) : |
| 35 | K _⦋n⦌ → K _⦋p⦌ := |
| 36 | K.map (SimplexCategory.subinterval a p h).op |
| 37 | |
| 38 | /-- The vertex inclusion `0,..., p` into `0,..., p + q`. -/ |
| 39 | def frontInclusion (p q : ℕ) : ⦋p⦌ ⟶ ⦋p + q⦌ := |
| 40 | SimplexCategory.subinterval 0 p (by omega) |
| 41 | |
| 42 | /-- The vertex inclusion `p,..., p + q` into `0,..., p + q`. -/ |
| 43 | def backInclusion (p q : ℕ) : ⦋q⦌ ⟶ ⦋p + q⦌ := |
| 44 | SimplexCategory.subinterval p q le_rfl |
| 45 | |
| 46 | /-- The front `p`-face in the Alexander--Whitney cut of a `(p + q)`-simplex. -/ |
| 47 | def frontFace (K : SSet.{0}) (p q : ℕ) : K _⦋p + q⦌ → K _⦋p⦌ := |
| 48 | intervalFace K 0 p (by omega) |
| 49 | |
| 50 | /-- The back `q`-face, sharing vertex `p` with the front face. -/ |
| 51 | def backFace (K : SSet.{0}) (p q : ℕ) : K _⦋p + q⦌ → K _⦋q⦌ := |
| 52 | intervalFace K p q le_rfl |
| 53 | |
| 54 | theorem frontFace_def (K : SSet.{0}) (p q : ℕ) : |
| 55 | frontFace K p q = K.map (frontInclusion p q).op := rfl |
| 56 | |
| 57 | theorem backFace_def (K : SSet.{0}) (p q : ℕ) : |
| 58 | backFace K p q = K.map (backInclusion p q).op := rfl |
| 59 | |
| 60 | @[simp] |
| 61 | theorem frontInclusion_apply (p q : ℕ) (i : Fin (p + 1)) : |
| 62 | ((frontInclusion p q).toOrderHom i).val = i.val := by |
| 63 | simp [frontInclusion, SimplexCategory.subinterval] |
| 64 | |
| 65 | @[simp] |
| 66 | theorem backInclusion_apply (p q : ℕ) (i : Fin (q + 1)) : |
| 67 | ((backInclusion p q).toOrderHom i).val = i.val + p := rfl |
| 68 | |
| 69 | @[simp] |
| 70 | theorem intervalFace_simplexCast (K : SSet.{0}) {m n : ℕ} (e : m = n) |
| 71 | (a p : ℕ) (h : a + p ≤ n) (s : K _⦋m⦌) : |
| 72 | intervalFace K a p h (simplexCast K e s) = |
| 73 | intervalFace K a p (by omega) s := by |
| 74 | subst n |
| 75 | rfl |
| 76 | |
| 77 | /-- Restrictions commute with every map of simplicial sets. -/ |
| 78 | theorem intervalFace_naturality {K L : SSet.{0}} (f : K ⟶ L) |
| 79 | {n : ℕ} (a p : ℕ) (h : a + p ≤ n) (s : K _⦋n⦌) : |
| 80 | intervalFace L a p h (f.app _ s) = f.app _ (intervalFace K a p h s) := by |
| 81 | exact (f.naturality_apply (SimplexCategory.subinterval a p h).op s).symm |
| 82 | |
| 83 | theorem frontFace_naturality {K L : SSet.{0}} (f : K ⟶ L) |
| 84 | (p q : ℕ) (s : K _⦋p + q⦌) : |
| 85 | frontFace L p q (f.app _ s) = f.app _ (frontFace K p q s) := |
| 86 | intervalFace_naturality f 0 p (by omega) s |
| 87 | |
| 88 | theorem backFace_naturality {K L : SSet.{0}} (f : K ⟶ L) |
| 89 | (p q : ℕ) (s : K _⦋p + q⦌) : |
| 90 | backFace L p q (f.app _ s) = f.app _ (backFace K p q s) := |
| 91 | intervalFace_naturality f p q le_rfl s |
| 92 | |
| 93 | /-- The indices of faces deleting one of the vertices `0,..., p`. -/ |
| 94 | def leftFaceIndex (p q : ℕ) (i : Fin (p + 1)) : Fin (p + q + 2) := |
| 95 | ⟨i.val, by omega⟩ |
| 96 | |
| 97 | /-- The indices of faces deleting one of the vertices `p + 1,..., p + q + 1`. -/ |
| 98 | def rightFaceIndex (p q : ℕ) (i : Fin (q + 1)) : Fin (p + q + 2) := |
| 99 | ⟨p + 1 + i.val, by omega⟩ |
| 100 | |
| 101 | @[simp] |
| 102 | theorem leftFaceIndex_val (p q : ℕ) (i : Fin (p + 1)) : |
| 103 | (leftFaceIndex p q i).val = i.val := rfl |
| 104 | |
| 105 | @[simp] |
| 106 | theorem rightFaceIndex_val (p q : ℕ) (i : Fin (q + 1)) : |
| 107 | (rightFaceIndex p q i).val = p + 1 + i.val := rfl |
| 108 | |
| 109 | /-- Split the complete boundary index set at the Alexander--Whitney cut. -/ |
| 110 | theorem sum_face_split {M : Type*} [AddCommMonoid M] (p q : ℕ) |
| 111 | (f : Fin (p + q + 2) → M) : |
| 112 | (∑ i, f i) = (∑ i : Fin (p + 1), f (leftFaceIndex p q i)) + |
| 113 | ∑ i : Fin (q + 1), f (rightFaceIndex p q i) := by |
| 114 | let e : (p + 1) + (q + 1) = p + q + 2 := by omega |
| 115 | calc |
| 116 | (∑ i, f i) = ∑ i : Fin ((p + 1) + (q + 1)), f (i.cast e) := |
| 117 | (Fin.sum_congr' f e).symm |
| 118 | _ = _ := by |
| 119 | rw [Fin.sum_univ_add] |
| 120 | rfl |
| 121 | |
| 122 | /-- The continuous map of standard simplices induced by an interval of vertices. -/ |
| 123 | def standardSimplexInterval {n : ℕ} (a p : ℕ) (h : a + p ≤ n) : |
| 124 | C(Convexity.StdSimplex ℝ (Fin (p + 1)), Convexity.StdSimplex ℝ (Fin (n + 1))) := |
| 125 | ⟨Convexity.StdSimplex.map (SimplexCategory.subinterval a p h), |
| 126 | Convexity.StdSimplex.continuous_map ℝ (SimplexCategory.subinterval a p h)⟩ |
| 127 | |
| 128 | /-- On actual singular simplices, interval restriction is precomposition |
| 129 | with the stated continuous inclusion of topological standard simplices. -/ |
| 130 | theorem intervalFace_continuousMap (X : TopCat.{0}) {n : ℕ} (a p : ℕ) |
| 131 | (h : a + p ≤ n) (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 132 | X.toSSetObjEquiv (op ⦋p⦌) (intervalFace (TopCat.toSSet.obj X) a p h s) = |
| 133 | (X.toSSetObjEquiv (op ⦋n⦌) s).comp (standardSimplexInterval a p h) := by |
| 134 | ext z |
| 135 | exact TopCat.toSSetObjEquiv_naturality_apply (SimplexCategory.subinterval a p h) s z |
| 136 | |
| 137 | end |
| 138 | |
| 139 | /-! |
| 140 | # Boundary faces and the Alexander--Whitney cut |
| 141 | |
| 142 | The two groups of boundary faces are the actual monotone vertex inclusions. |
| 143 | The last face of the front restriction and the first face of the back |
| 144 | restriction give the same middle cut, which supplies the cancellation in the |
| 145 | cup-product Leibniz rule. |
| 146 | -/ |
| 147 | |
| 148 | open _root_.CategoryTheory Opposite |
| 149 | open scoped Simplicial |
| 150 | |
| 151 | theorem frontInclusion_comp_delta_left (p q : ℕ) (i : Fin (p + 1)) : |
| 152 | frontInclusion p q ≫ SimplexCategory.δ (leftFaceIndex p q i) = |
| 153 | SimplexCategory.δ i.castSucc ≫ |
| 154 | SimplexCategory.subinterval 0 (p + 1) (by omega : 0 + (p + 1) ≤ p + q + 1) := by |
| 155 | ext k |
| 156 | have hk : k.val < p + 1 := k.isLt |
| 157 | change ((leftFaceIndex p q i).succAbove (⟨k.val, by omega⟩ : Fin (p + q + 1))).val = |
| 158 | (i.castSucc.succAbove k).val |
| 159 | simp only [leftFaceIndex, Fin.succAbove, Fin.lt_def, Fin.val_castSucc] |
| 160 | split_ifs <;> rfl |
| 161 | |
| 162 | theorem backInclusion_comp_delta_left (p q : ℕ) (i : Fin (p + 1)) : |
| 163 | backInclusion p q ≫ SimplexCategory.δ (leftFaceIndex p q i) = |
| 164 | SimplexCategory.subinterval (p + 1) q (by omega : (p + 1) + q ≤ p + q + 1) := by |
| 165 | ext k |
| 166 | have hk : k.val < q + 1 := k.isLt |
| 167 | change ((leftFaceIndex p q i).succAbove (⟨k.val + p, by omega⟩ : Fin (p + q + 1))).val = |
| 168 | k.val + (p + 1) |
| 169 | have hi : ¬k.val + p < i.val := by omega |
| 170 | simp [leftFaceIndex, Fin.succAbove, Fin.lt_def, hi, Nat.add_assoc] |
| 171 | |
| 172 | theorem frontInclusion_comp_delta_right (p q : ℕ) (i : Fin (q + 1)) : |
| 173 | frontInclusion p q ≫ SimplexCategory.δ (rightFaceIndex p q i) = |
| 174 | SimplexCategory.subinterval 0 p (by omega : 0 + p ≤ p + q + 1) := by |
| 175 | ext k |
| 176 | have hk : k.val < p + 1 := k.isLt |
| 177 | change ((rightFaceIndex p q i).succAbove (⟨k.val, by omega⟩ : Fin (p + q + 1))).val = k.val |
| 178 | have hi : k.val < p + 1 + i.val := by omega |
| 179 | simp [rightFaceIndex, Fin.succAbove, Fin.lt_def, hi] |
| 180 | |
| 181 | theorem backInclusion_comp_delta_right (p q : ℕ) (i : Fin (q + 1)) : |
| 182 | backInclusion p q ≫ SimplexCategory.δ (rightFaceIndex p q i) = |
| 183 | SimplexCategory.δ i.succ ≫ |
| 184 | SimplexCategory.subinterval p (q + 1) (by omega : p + (q + 1) ≤ p + q + 1) := by |
| 185 | ext k |
| 186 | have hk : k.val < q + 1 := k.isLt |
| 187 | change ((rightFaceIndex p q i).succAbove (⟨k.val + p, by omega⟩ : Fin (p + q + 1))).val = |
| 188 | (i.succ.succAbove k).val + p |
| 189 | simp only [rightFaceIndex, Fin.succAbove, Fin.lt_def, Fin.val_castSucc, |
| 190 | Fin.val_succ] |
| 191 | split_ifs <;> simp only [Fin.val_castSucc, Fin.val_succ] <;> omega |
| 192 | |
| 193 | theorem delta_last_comp_frontInterval (p q : ℕ) : |
| 194 | SimplexCategory.δ (Fin.last (p + 1)) ≫ |
| 195 | SimplexCategory.subinterval 0 (p + 1) (by omega : 0 + (p + 1) ≤ p + q + 1) = |
| 196 | SimplexCategory.subinterval 0 p (by omega : 0 + p ≤ p + q + 1) := by |
| 197 | ext k |
| 198 | have hk : k.val ≤ p := Nat.lt_succ_iff.mp k.isLt |
| 199 | change ((Fin.last (p + 1)).succAbove k).val = k.val |
| 200 | simp [Fin.succAbove, Fin.lt_def, hk] |
| 201 | |
| 202 | theorem delta_zero_comp_backInterval (p q : ℕ) : |
| 203 | SimplexCategory.δ (0 : Fin (q + 2)) ≫ |
| 204 | SimplexCategory.subinterval p (q + 1) (by omega : p + (q + 1) ≤ p + q + 1) = |
| 205 | SimplexCategory.subinterval (p + 1) q (by omega : (p + 1) + q ≤ p + q + 1) := by |
| 206 | ext k |
| 207 | change ((0 : Fin (q + 2)).succAbove k).val + p = k.val + (p + 1) |
| 208 | simp [Fin.succAbove, Nat.add_comm, Nat.add_left_comm] |
| 209 | |
| 210 | /-- Deleting a vertex on the front side restricts to that front boundary face. -/ |
| 211 | theorem frontFace_delta_left (K : SSet.{0}) (p q : ℕ) (i : Fin (p + 1)) |
| 212 | (s : K _⦋p + q + 1⦌) : |
| 213 | frontFace K p q (K.δ (leftFaceIndex p q i) s) = |
| 214 | K.δ i.castSucc (frontFace K (p + 1) q |
| 215 | (simplexCast K (by omega : p + q + 1 = (p + 1) + q) s)) := by |
| 216 | simp only [frontFace, intervalFace_simplexCast] |
| 217 | simpa only [frontInclusion, op_comp, Functor.map_comp, types_comp_apply, |
| 218 | intervalFace, SimplicialObject.δ] using |
| 219 | congrArg (fun f : ⦋p⦌ ⟶ ⦋p + q + 1⦌ => K.map f.op s) |
| 220 | (frontInclusion_comp_delta_left p q i) |
| 221 | |
| 222 | /-- Deleting a front vertex leaves the back restriction unchanged. -/ |
| 223 | theorem backFace_delta_left (K : SSet.{0}) (p q : ℕ) (i : Fin (p + 1)) |
| 224 | (s : K _⦋p + q + 1⦌) : |
| 225 | backFace K p q (K.δ (leftFaceIndex p q i) s) = |
| 226 | backFace K (p + 1) q |
| 227 | (simplexCast K (by omega : p + q + 1 = (p + 1) + q) s) := by |
| 228 | simp only [backFace, intervalFace_simplexCast] |
| 229 | simpa only [backInclusion, op_comp, Functor.map_comp, types_comp_apply, |
| 230 | intervalFace, SimplicialObject.δ] using |
| 231 | congrArg (fun f : ⦋q⦌ ⟶ ⦋p + q + 1⦌ => K.map f.op s) |
| 232 | (backInclusion_comp_delta_left p q i) |
| 233 | |
| 234 | /-- Deleting a back vertex leaves the front restriction unchanged. -/ |
| 235 | theorem frontFace_delta_right (K : SSet.{0}) (p q : ℕ) (i : Fin (q + 1)) |
| 236 | (s : K _⦋p + q + 1⦌) : |
| 237 | frontFace K p q (K.δ (rightFaceIndex p q i) s) = frontFace K p (q + 1) s := by |
| 238 | simpa only [frontInclusion, frontFace, op_comp, Functor.map_comp, types_comp_apply, |
| 239 | intervalFace, SimplicialObject.δ] using |
| 240 | congrArg (fun f : ⦋p⦌ ⟶ ⦋p + q + 1⦌ => K.map f.op s) |
| 241 | (frontInclusion_comp_delta_right p q i) |
| 242 | |
| 243 | /-- Deleting a back vertex restricts to the corresponding back boundary face. -/ |
| 244 | theorem backFace_delta_right (K : SSet.{0}) (p q : ℕ) (i : Fin (q + 1)) |
| 245 | (s : K _⦋p + q + 1⦌) : |
| 246 | backFace K p q (K.δ (rightFaceIndex p q i) s) = |
| 247 | K.δ i.succ (backFace K p (q + 1) s) := by |
| 248 | simpa only [backInclusion, backFace, op_comp, Functor.map_comp, types_comp_apply, |
| 249 | intervalFace, SimplicialObject.δ] using |
| 250 | congrArg (fun f : ⦋q⦌ ⟶ ⦋p + q + 1⦌ => K.map f.op s) |
| 251 | (backInclusion_comp_delta_right p q i) |
| 252 | |
| 253 | /-- The last boundary face of the larger front face is the smaller front face. -/ |
| 254 | theorem frontFace_delta_last (K : SSet.{0}) (p q : ℕ) (s : K _⦋p + q + 1⦌) : |
| 255 | K.δ (Fin.last (p + 1)) (frontFace K (p + 1) q |
| 256 | (simplexCast K (by omega : p + q + 1 = (p + 1) + q) s)) = |
| 257 | frontFace K p (q + 1) s := by |
| 258 | simp only [frontFace, intervalFace_simplexCast] |
| 259 | simpa only [op_comp, Functor.map_comp, types_comp_apply, |
| 260 | intervalFace, SimplicialObject.δ] using |
| 261 | congrArg (fun f : ⦋p⦌ ⟶ ⦋p + q + 1⦌ => K.map f.op s) |
| 262 | (delta_last_comp_frontInterval p q) |
| 263 | |
| 264 | /-- The first boundary face of the larger back face is the smaller back face. -/ |
| 265 | theorem backFace_delta_zero (K : SSet.{0}) (p q : ℕ) (s : K _⦋p + q + 1⦌) : |
| 266 | K.δ (0 : Fin (q + 2)) (backFace K p (q + 1) s) = |
| 267 | backFace K (p + 1) q |
| 268 | (simplexCast K (by omega : p + q + 1 = (p + 1) + q) s) := by |
| 269 | simp only [backFace, intervalFace_simplexCast] |
| 270 | simpa only [op_comp, Functor.map_comp, types_comp_apply, |
| 271 | intervalFace, SimplicialObject.δ] using |
| 272 | congrArg (fun f : ⦋q⦌ ⟶ ⦋p + q + 1⦌ => K.map f.op s) |
| 273 | (delta_zero_comp_backInterval p q) |
| 274 | |
| 275 | end |
| 276 | |
| 277 | end OAI.AlgebraicTopology.Products.SimplexFaceIdentities |