math-skill 2.1.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/README.en-US.md +165 -198
  2. package/README.md +165 -198
  3. package/agents/math-critic.en.md +28 -26
  4. package/agents/math-critic.md +33 -33
  5. package/commands/ask.en.md +10 -0
  6. package/commands/ask.md +3 -10
  7. package/design-patterns/attention/equivariant-attention.en.md +72 -0
  8. package/design-patterns/attention/equivariant-attention.md +72 -0
  9. package/design-patterns/attention/geometry-aware-attention.en.md +73 -0
  10. package/design-patterns/attention/geometry-aware-attention.md +72 -0
  11. package/design-patterns/attention/information-bottleneck-attention.en.md +72 -0
  12. package/design-patterns/attention/information-bottleneck-attention.md +72 -0
  13. package/design-patterns/attention/projection-attention.en.md +68 -0
  14. package/design-patterns/attention/projection-attention.md +68 -0
  15. package/design-patterns/attention/spectral-attention.en.md +71 -0
  16. package/design-patterns/attention/spectral-attention.md +71 -0
  17. package/design-patterns/compression/leverage-score-selection.en.md +71 -0
  18. package/design-patterns/compression/leverage-score-selection.md +71 -0
  19. package/design-patterns/compression/low-rank-kv-cache.en.md +60 -0
  20. package/design-patterns/compression/low-rank-kv-cache.md +60 -0
  21. package/design-patterns/compression/spectral-token-pruning.en.md +61 -0
  22. package/design-patterns/compression/spectral-token-pruning.md +61 -0
  23. package/design-patterns/compression/topology-preserving-compression.en.md +64 -0
  24. package/design-patterns/compression/topology-preserving-compression.md +64 -0
  25. package/design-patterns/loss/constraint-penalty.en.md +67 -0
  26. package/design-patterns/loss/constraint-penalty.md +78 -0
  27. package/design-patterns/loss/contrastive-loss.en.md +59 -0
  28. package/design-patterns/loss/contrastive-loss.md +68 -0
  29. package/design-patterns/loss/information-bottleneck-loss.en.md +69 -0
  30. package/design-patterns/loss/information-bottleneck-loss.md +74 -0
  31. package/design-patterns/loss/orthogonality-loss.en.md +56 -0
  32. package/design-patterns/loss/orthogonality-loss.md +60 -0
  33. package/design-patterns/loss/variational-loss.en.md +61 -0
  34. package/design-patterns/loss/variational-loss.md +71 -0
  35. package/design-patterns/representation/equivariant-split.en.md +87 -0
  36. package/design-patterns/representation/equivariant-split.md +89 -0
  37. package/design-patterns/representation/manifold-representation.en.md +85 -0
  38. package/design-patterns/representation/manifold-representation.md +87 -0
  39. package/design-patterns/representation/shared-private-decomposition.en.md +84 -0
  40. package/design-patterns/representation/shared-private-decomposition.md +86 -0
  41. package/design-patterns/representation/subspace-alignment.en.md +90 -0
  42. package/design-patterns/representation/subspace-alignment.md +92 -0
  43. package/design-patterns/routing/graph-routing.en.md +79 -0
  44. package/design-patterns/routing/graph-routing.md +81 -0
  45. package/design-patterns/routing/moe-routing.en.md +85 -0
  46. package/design-patterns/routing/moe-routing.md +87 -0
  47. package/design-patterns/routing/optimal-transport-routing.en.md +68 -0
  48. package/design-patterns/routing/optimal-transport-routing.md +72 -0
  49. package/design-patterns/routing/spectral-clustering-routing.en.md +88 -0
  50. package/design-patterns/routing/spectral-clustering-routing.md +90 -0
  51. package/knowledge-base/differential-geometry/connection.en.md +51 -0
  52. package/knowledge-base/differential-geometry/connection.md +51 -0
  53. package/knowledge-base/differential-geometry/curvature.en.md +49 -0
  54. package/knowledge-base/differential-geometry/curvature.md +49 -0
  55. package/knowledge-base/differential-geometry/geodesic.en.md +51 -0
  56. package/knowledge-base/differential-geometry/geodesic.md +51 -0
  57. package/knowledge-base/differential-geometry/manifold.en.md +47 -0
  58. package/knowledge-base/differential-geometry/manifold.md +47 -0
  59. package/knowledge-base/differential-geometry/metric-tensor.en.md +50 -0
  60. package/knowledge-base/differential-geometry/metric-tensor.md +50 -0
  61. package/knowledge-base/differential-geometry/tangent-space.en.md +48 -0
  62. package/knowledge-base/differential-geometry/tangent-space.md +48 -0
  63. package/knowledge-base/information-geometry/fisher-metric.en.md +56 -0
  64. package/knowledge-base/information-geometry/fisher-metric.md +56 -0
  65. package/knowledge-base/information-geometry/natural-gradient.en.md +54 -0
  66. package/knowledge-base/information-geometry/natural-gradient.md +54 -0
  67. package/knowledge-base/lie-theory/equivariance.en.md +54 -0
  68. package/knowledge-base/lie-theory/equivariance.md +54 -0
  69. package/knowledge-base/lie-theory/group-action.en.md +51 -0
  70. package/knowledge-base/lie-theory/group-action.md +51 -0
  71. package/knowledge-base/lie-theory/lie-algebra.en.md +51 -0
  72. package/knowledge-base/lie-theory/lie-algebra.md +51 -0
  73. package/knowledge-base/lie-theory/lie-group.en.md +51 -0
  74. package/knowledge-base/lie-theory/lie-group.md +51 -0
  75. package/knowledge-base/lie-theory/representation.en.md +52 -0
  76. package/knowledge-base/lie-theory/representation.md +52 -0
  77. package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +49 -0
  78. package/knowledge-base/matrix-analysis/low-rank-approximation.md +49 -0
  79. package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +49 -0
  80. package/knowledge-base/matrix-analysis/matrix-perturbation.md +49 -0
  81. package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +50 -0
  82. package/knowledge-base/matrix-analysis/positive-semidefinite.md +50 -0
  83. package/knowledge-base/matrix-analysis/projection.en.md +47 -0
  84. package/knowledge-base/matrix-analysis/projection.md +47 -0
  85. package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +48 -0
  86. package/knowledge-base/matrix-analysis/spectral-decomposition.md +48 -0
  87. package/knowledge-base/optimization/constrained-optimization.en.md +53 -0
  88. package/knowledge-base/optimization/constrained-optimization.md +53 -0
  89. package/knowledge-base/optimization/convex-optimization.en.md +50 -0
  90. package/knowledge-base/optimization/convex-optimization.md +50 -0
  91. package/knowledge-base/optimization/lagrangian-duality.en.md +50 -0
  92. package/knowledge-base/optimization/lagrangian-duality.md +50 -0
  93. package/knowledge-base/optimization/proximal-method.en.md +52 -0
  94. package/knowledge-base/optimization/proximal-method.md +52 -0
  95. package/knowledge-base/optimization/riemannian-optimization.en.md +51 -0
  96. package/knowledge-base/optimization/riemannian-optimization.md +51 -0
  97. package/knowledge-base/overview.en.md +29 -218
  98. package/knowledge-base/overview.md +29 -220
  99. package/knowledge-base/probability/concentration-inequality.en.md +45 -0
  100. package/knowledge-base/probability/concentration-inequality.md +45 -0
  101. package/knowledge-base/probability/entropy.en.md +47 -0
  102. package/knowledge-base/probability/entropy.md +47 -0
  103. package/knowledge-base/probability/fisher-information.en.md +48 -0
  104. package/knowledge-base/probability/fisher-information.md +48 -0
  105. package/knowledge-base/probability/information-bottleneck.en.md +49 -0
  106. package/knowledge-base/probability/information-bottleneck.md +49 -0
  107. package/knowledge-base/probability/kl-divergence.en.md +51 -0
  108. package/knowledge-base/probability/kl-divergence.md +51 -0
  109. package/knowledge-base/topology/euler-characteristic.en.md +54 -0
  110. package/knowledge-base/topology/euler-characteristic.md +54 -0
  111. package/knowledge-base/topology/fundamental-group.en.md +52 -0
  112. package/knowledge-base/topology/fundamental-group.md +52 -0
  113. package/knowledge-base/topology/persistent-homology.en.md +54 -0
  114. package/knowledge-base/topology/persistent-homology.md +54 -0
  115. package/lenses/algorithmic.en.md +49 -0
  116. package/lenses/algorithmic.md +49 -0
  117. package/lenses/axiomatization.en.md +48 -0
  118. package/lenses/axiomatization.md +48 -0
  119. package/lenses/categorical.en.md +48 -0
  120. package/lenses/categorical.md +48 -0
  121. package/lenses/causal.en.md +49 -0
  122. package/lenses/causal.md +49 -0
  123. package/lenses/duality.en.md +47 -0
  124. package/lenses/duality.md +47 -0
  125. package/lenses/game.en.md +50 -0
  126. package/lenses/game.md +50 -0
  127. package/lenses/geometric.en.md +53 -0
  128. package/lenses/geometric.md +53 -0
  129. package/lenses/local-to-global.en.md +52 -0
  130. package/lenses/local-to-global.md +52 -0
  131. package/lenses/perturbation.en.md +51 -0
  132. package/lenses/perturbation.md +51 -0
  133. package/lenses/probabilistic.en.md +48 -0
  134. package/lenses/probabilistic.md +48 -0
  135. package/lenses/projection.en.md +50 -0
  136. package/lenses/projection.md +50 -0
  137. package/lenses/spectral.en.md +52 -0
  138. package/lenses/spectral.md +52 -0
  139. package/lenses/symmetry.en.md +49 -0
  140. package/lenses/symmetry.md +49 -0
  141. package/lenses/topological.en.md +48 -0
  142. package/lenses/topological.md +48 -0
  143. package/lenses/variational.en.md +48 -0
  144. package/lenses/variational.md +48 -0
  145. package/package.json +9 -3
  146. package/references/agentic-workflow.en.md +1 -1
  147. package/references/agentic-workflow.md +1 -1
  148. package/references/books/abstract-algebra.en.md +124 -0
  149. package/references/books/abstract-algebra.md +22 -22
  150. package/references/books/algebraic-geometry-rising-sea.en.md +171 -0
  151. package/references/books/algebraic-geometry-rising-sea.md +11 -11
  152. package/references/books/differential-geometry.en.md +140 -0
  153. package/references/books/differential-geometry.md +19 -19
  154. package/references/books/matrix-analysis.en.md +146 -0
  155. package/references/books/matrix-analysis.md +10 -10
  156. package/references/books/micro-lie-theory.en.md +116 -0
  157. package/references/books/micro-lie-theory.md +17 -17
  158. package/references/books/optimization-ml.en.md +163 -0
  159. package/references/books/optimization-ml.md +7 -8
  160. package/references/books/smooth-manifolds.en.md +105 -0
  161. package/references/books/smooth-manifolds.md +14 -14
  162. package/references/gpu-friendly-math.en.md +23 -10
  163. package/references/gpu-friendly-math.md +17 -4
  164. package/references/inspiration.en.md +1 -1
  165. package/references/inspiration.md +2 -2
  166. package/skills/math-research-activator/SKILL.en.md +195 -114
  167. package/skills/math-research-activator/SKILL.md +194 -119
  168. package/skills/math-research-activator/original-texts.en.md +9 -9
  169. package/skills/math-research-activator/original-texts.md +11 -11
  170. package/commands/abstraction.md +0 -11
  171. package/commands/algorithmic-thinking.md +0 -11
  172. package/commands/axiomatization.md +0 -11
  173. package/commands/causal-inference.md +0 -11
  174. package/commands/discrete-combinatorial.md +0 -11
  175. package/commands/game-theory.md +0 -11
  176. package/commands/induction-analogy.md +0 -11
  177. package/commands/information-theory.md +0 -11
  178. package/commands/logic-deduction.md +0 -11
  179. package/commands/modeling.md +0 -11
  180. package/commands/optimization.md +0 -11
  181. package/commands/probability-statistics.md +0 -11
  182. package/commands/symmetry-invariance.md +0 -11
  183. package/commands/topological-thinking.md +0 -11
  184. package/commands/transformation.md +0 -11
  185. package/skills/abstraction/SKILL.en.md +0 -117
  186. package/skills/abstraction/SKILL.md +0 -121
  187. package/skills/abstraction/original-texts.en.md +0 -163
  188. package/skills/abstraction/original-texts.md +0 -175
  189. package/skills/algorithmic-thinking/SKILL.en.md +0 -132
  190. package/skills/algorithmic-thinking/SKILL.md +0 -138
  191. package/skills/algorithmic-thinking/original-texts.en.md +0 -253
  192. package/skills/algorithmic-thinking/original-texts.md +0 -256
  193. package/skills/axiomatization/SKILL.en.md +0 -144
  194. package/skills/axiomatization/SKILL.md +0 -151
  195. package/skills/axiomatization/original-texts.en.md +0 -154
  196. package/skills/axiomatization/original-texts.md +0 -160
  197. package/skills/causal-inference/SKILL.en.md +0 -147
  198. package/skills/causal-inference/SKILL.md +0 -151
  199. package/skills/causal-inference/original-texts.en.md +0 -136
  200. package/skills/causal-inference/original-texts.md +0 -167
  201. package/skills/discrete-combinatorial/SKILL.en.md +0 -124
  202. package/skills/discrete-combinatorial/SKILL.md +0 -131
  203. package/skills/discrete-combinatorial/original-texts.en.md +0 -184
  204. package/skills/discrete-combinatorial/original-texts.md +0 -185
  205. package/skills/game-theory/SKILL.en.md +0 -117
  206. package/skills/game-theory/SKILL.md +0 -123
  207. package/skills/game-theory/original-texts.en.md +0 -131
  208. package/skills/game-theory/original-texts.md +0 -131
  209. package/skills/induction-analogy/SKILL.en.md +0 -145
  210. package/skills/induction-analogy/SKILL.md +0 -152
  211. package/skills/induction-analogy/original-texts.en.md +0 -140
  212. package/skills/induction-analogy/original-texts.md +0 -154
  213. package/skills/information-theory/SKILL.en.md +0 -134
  214. package/skills/information-theory/SKILL.md +0 -140
  215. package/skills/information-theory/original-texts.en.md +0 -127
  216. package/skills/information-theory/original-texts.md +0 -127
  217. package/skills/logic-deduction/SKILL.en.md +0 -130
  218. package/skills/logic-deduction/SKILL.md +0 -135
  219. package/skills/logic-deduction/original-texts.en.md +0 -160
  220. package/skills/logic-deduction/original-texts.md +0 -173
  221. package/skills/modeling/SKILL.en.md +0 -135
  222. package/skills/modeling/SKILL.md +0 -139
  223. package/skills/modeling/original-texts.en.md +0 -162
  224. package/skills/modeling/original-texts.md +0 -165
  225. package/skills/optimization/SKILL.en.md +0 -129
  226. package/skills/optimization/SKILL.md +0 -135
  227. package/skills/optimization/original-texts.en.md +0 -167
  228. package/skills/optimization/original-texts.md +0 -168
  229. package/skills/probability-statistics/SKILL.en.md +0 -146
  230. package/skills/probability-statistics/SKILL.md +0 -151
  231. package/skills/probability-statistics/original-texts.en.md +0 -191
  232. package/skills/probability-statistics/original-texts.md +0 -193
  233. package/skills/symmetry-invariance/SKILL.en.md +0 -135
  234. package/skills/symmetry-invariance/SKILL.md +0 -139
  235. package/skills/symmetry-invariance/original-texts.en.md +0 -206
  236. package/skills/symmetry-invariance/original-texts.md +0 -221
  237. package/skills/topological-thinking/SKILL.en.md +0 -124
  238. package/skills/topological-thinking/SKILL.md +0 -128
  239. package/skills/topological-thinking/original-texts.en.md +0 -134
  240. package/skills/topological-thinking/original-texts.md +0 -164
  241. package/skills/transformation/SKILL.en.md +0 -120
  242. package/skills/transformation/SKILL.md +0 -124
  243. package/skills/transformation/original-texts.en.md +0 -204
  244. package/skills/transformation/original-texts.md +0 -216
@@ -1,128 +0,0 @@
1
- ---
2
- name: topological-thinking
3
- description: |
4
- 触发:拓扑数据分析(TDA)、持续同调、同调/基本群计算、单纯复形与滤流构造;或为算法设计需要连通性/鲁棒性/上同调一致性判据(如 Čech 上同调作幻觉正则、sheaf 注意力)时调用。
5
- English: Trigger for topological data analysis (TDA), persistent homology, homology/fundamental group computation, simplicial complexes & filtrations; or designing connectivity/robustness/cohomology-consistency criteria (e.g. Čech cohomology as hallucination regularizer, sheaf attention) for algorithms.
6
- ---
7
-
8
- > **语言路由**:若用户消息为英文,请读取并遵循同目录下的 `SKILL.en.md`,按其操作规程以英文输出;中文消息则继续使用本文件。
9
-
10
- # 🌀 拓扑思想 / Topological Thinking
11
-
12
- > "可以拉伸弯曲但不能撕裂——真正重要的性质在连续变形中不变。"
13
- > "You can stretch and bend but never tear — truly important properties survive continuous deformation."
14
- >
15
- > —— 拓扑学、同调理论、拓扑数据分析 / Topology, Homology, Topological Data Analysis
16
-
17
- ## 核心原则 / Core Principle
18
-
19
- 拓扑学研究连续变形下保持不变的性质。甜甜圈与咖啡杯拓扑等价——都有一个洞。核心洞察:当精确距离不重要时,拓扑捕获本质结构——连通性、洞、维数。在本技能包语境里,拓扑思想直接支撑「胞腔层扩散注意力」与「Čech 上同调正则」(见 activator 范例)。
20
-
21
- > **数学形式化 / Mathematical Formalization**
22
- >
23
- > **同胚**:连续双射且逆连续 h: X→Y,拓扑等价标准。**同伦**:变形过程本身连续,比同胚更粗。**微分同胚**:光滑双射且逆光滑,微分拓扑标准。
24
- >
25
- > **欧拉示性数** χ=V−E+F:凸多面体 χ=2,环面 χ=0,配合可定向性是曲面完全拓扑不变量。
26
- >
27
- > **基本群** π₁(X):基点环路模同伦变形;π₁(S¹)=Z(绕圈数),π₁(S²)=0(所有环路可收缩),π₁(环面)=Z×Z。
28
- >
29
- > **同调群** H_n(X):n 维"洞"计数:H₀=连通分量,H₁=1 维洞(环路),H₂=2 维空洞。**Betti 数** β_n=rank H_n:β₀=连通分量数,β₁=1 维洞数,β₂=2 维空洞数。
30
- >
31
- > **单纯复形**:由单纯形(点/线段/三角形)组合的拓扑空间模型。**滤流**:从小到大改邻域半径,每半径下构建单纯复形。**持续同调**:沿滤流算同调群,长条=真实拓扑特征,短条=噪声。
32
- >
33
- > **上同调** Hⁿ(X):同调的对偶(函子化、有环结构),Čech 上同调用于从局部数据检测全局一致性障碍——H¹≠0 即局部片段无法拼成全局相容对象(这正是"幻觉"的代数判据)。
34
- >
35
- > 详细见 `original-texts.md`。
36
-
37
- ## GPU 友好性 / GPU-Friendliness(横切检查)
38
-
39
- 拓扑结构能否上 GPU,取决于「局部性」与「张量化」——过 `../../references/gpu-friendly-math.md` 八维:
40
-
41
- - **局部拓扑量 → 友好**:每条边/每块的局部同调或限制映射是小运算,可批量并行、落小 GEMM。
42
- - **Čech 上同调正则**:作为局部一致性损失,廉价、可融合(友好)——这是 Tropical Sheaf Attention 的关键。
43
- - **持续同调(TDA)**:构造单纯复形与边界矩阵约简常含不规则稀疏/串行归约——典型"美但不可算"→ 改造为近似/采样/分布式。
44
- - **全局精确同调计算**:符号计算,不可训练,不友好。
45
- - **反模式**:把需要全局拓扑精确判定的结构塞进前向——不可算。
46
-
47
- 八维最低判定(正式术语):**张量化**看拓扑量是否可局部批量;**GEMM 可映射**看限制映射、边界算子、局部拉普拉斯是否落矩阵乘;**复杂度**看持续同调/边界矩阵约简是否超线性;**显存与 KV-Cache**看单纯复形、边界矩阵、覆盖交叠是否可压缩;**低精度稳定**看小奇异值、排序、阈值是否稳健;**并行与通信**看覆盖块/局部复形是否独立;**稀疏结构**看复形/图是否结构化稀疏;**算子融合**看局部一致性 loss 是否可融合。
48
-
49
- > 配合 `../../references/books/algebraic-geometry-rising-sea.md`(层/Čech 上同调→注意力与幻觉正则)、`smooth-manifolds.md`、`differential-geometry.md`。
50
-
51
- ## 不适用场景 / When NOT to Use
52
-
53
- - **需要精确测量**——拓扑只关心定性结构(连通、有洞),不给距离/角度。
54
- - **度量性质是核心**——拓扑等价空间可有完全不同度量行为。
55
- - **纯离散结构无连续性**——拓扑以连续性为基础。
56
- - **需要精确数值决策**(取决于"多少"而非"是否连通")——拓扑视角过粗。
57
-
58
- ## 何时使用 / When to Use
59
-
60
- - 需要定性分类(不在乎"多大""多远",只在乎"是否连通""有多少洞");形状比大小重要。
61
- - 需要鲁棒性分析(不变量保证性质在连续扰动下不消失)。
62
- - 数据有标准统计无法捕获的形状(聚类、空洞、环状结构)。
63
- - 需要变形下存活的不变量(拓扑绝缘体、拓扑纠错)。
64
- - **为注意力/表示设计全局一致性判据**(Čech 上同调作幻觉正则、sheaf 扩散)。
65
-
66
- ## 方法流程 / Method
67
-
68
- ### 第一步:识别连续性要求
69
- 明确等价标准:同胚/同伦/微分同胚。确定什么可变(距离、角度、大小)什么必须固定(洞数、连通性、维数)。核心区分:可变(表面/度量)vs 不变(结构/拓扑)。
70
-
71
- ### 第二步:寻找拓扑不变量
72
- - **欧拉示性数** χ=V−E+F(配合可定向性是曲面完全不变量)。
73
- - **连通性**(path-connectedness):连通分量数=rank H₀;**紧致性**(Heine-Borel:Rⁿ 中紧致⇔有界+闭)。
74
- - **基本群** π₁(X);**同调群** H_n(H₀=分量, H₁=1 维洞, H₂=2 维空洞);**Betti 数** β_n=rank H_n。
75
- - **上同调** Hⁿ(同调的对偶,函子化,Čech 上同调检测全局一致性障碍)。
76
-
77
- ### 第三步:用不变量分类
78
- 同 χ→同类型曲面;同 π₁→同同伦类型;紧致曲面由可定向性+χ 完全分类。分类靠不变量,不看表面看结构。
79
-
80
- ### 第四步:构造拓扑模型
81
- - **数据**:对点云构建滤流,计算每半径下单纯复形及同调,提取持续同调(条形码/持续图,长条=真实特征,短条=噪声)。
82
- - **网络**:连通分量(可达性)、环路(冗余路径)、聚类系数;网络拓扑决定信息传播与鲁棒性。
83
- - **系统**:相空间吸引子拓扑——不动点(点)、极限环(S¹)、混沌吸引子(分形)。
84
- - **算法**:用层/Čech 上同调把"局部片段能否拼成全局相容对象"变成可计算的代数障碍。
85
-
86
- ### 第五步:验证拓扑等价
87
- 尝试构造显式同胚/同伦等价;检查不变量匹配。不变量不同→拓扑不同(可靠否定);全部匹配→可能等价(不变量可能不完备,不能确定)。
88
-
89
- ### 第六步:拓扑推理与应用
90
- - "π₁(X)≠0 → 存在不可收缩环路 → 系统有不可达状态"
91
- - "X 连通 → 存在路径 → 转移总可能"
92
- - "β₁=3 → 数据有 3 个显著环状结构"
93
- - "H¹≠0 → 局部片段无法全局相容 → 幻觉/不一致信号"
94
-
95
- ## 常见错误 / Common Errors
96
-
97
- | 错误 / Error | 数学批评 / Critique | 正确做法 / Correct Approach |
98
- |-------------|-------------------|---------------------------|
99
- | 混淆拓扑等价与几何相似 | 拓扑等价只要求同胚,不要求度量相近 | 区分"拓扑相同"与"几何相似" |
100
- | 忽略维数差异 | R¹ 与 R² 不同胚(维数不变性,Brouwer) | 维数 invariance 是强制检查项 |
101
- | 混淆连通与道路连通 | 连通≠道路连通(拓扑学家正弦曲线);道路连通⇒连通,反之不成立 | 明确标注用哪种连通性 |
102
- | 过度依赖单一不变量 | 仅 χ 无法区分所有空间(χ=0 的空间多种) | 用不变量组合;不完备时标注不确定性 |
103
- | 忽略局部与全局拓扑差异 | 局部连通不保证全局连通;局部同胚≠全局同胚 | 分别检查局部与全局不变量 |
104
- | 混淆同调与同伦 | H₁(X) 是 π₁(X) 的 Abel 化;同调是同伦的粗化 | 标注用 π₁(同伦)还是 H₁(同调) |
105
- | 全局精确同调塞进训练 | 持续同调/符号同调含不规则稀疏与串行归约,不可算 | 用局部上同调损失/近似/采样,过 GPU 八维门 |
106
-
107
- ## 操作规程 / Operating Procedure
108
-
109
- 输出必须包含:
110
-
111
- 1. **连续性要求**:`[同胚/同伦/微分同胚],可变: [距离/角度/大小],不变: [洞数/连通性/维数]`
112
- 2. **不变量**:`χ= π₁= β_n=, H₀= H₁= H₂=,紧致性=[是/否]`
113
- 3. **分类**:`[可定向/不可定向], χ= → [曲面类型];π₁= → [同伦类型]`
114
- 4. **拓扑模型**:`[单纯复形/滤流/网络图/相空间/层-Čech],构造方法: [描述]`
115
- 5. **等价验证**:`[不变量是否全匹配/有不同],结论: [等价/不同/不确定]`
116
- 6. **推理**:`因为[拓扑性质] → [结论]`
117
- 7. **[GPU 可行性]**(若用于算法设计)— 拓扑量是否局部、可批量/落 GEMM,过八维门;全局精确同调则改造为近似
118
-
119
- **输出不得只给分析而无结论。**
120
-
121
- ## 与其他 skill 的关系 / Relations to Other Skills
122
-
123
- - **对称与不变性**:拓扑不变量是连续变换下的不变量——共享"寻找不变量"逻辑,但拓扑关注连续变形而非群作用。
124
- - **抽象化思想**:拓扑是空间结构的抽象——去掉度量只留开集与连续性。
125
- - **变换思想**:连续变形是特殊变换;同胚/同伦都是变换。
126
- - **建模思想**:TDA 是数据建模——用持续同调为点云建拓扑模型,发现统计遗漏的形状。
127
- - **概率与统计**:TDA 补充统计的形状分析——统计关注均值方差(量),TDA 关注连通空洞(质),互补。
128
- - **现代数学激活**:`../../references/books/algebraic-geometry-rising-sea.md`(层/Čech 上同调→sheaf 注意力与幻觉正则)、`smooth-manifolds.md`、`differential-geometry.md`。
@@ -1,134 +0,0 @@
1
- # Mathematical Sources and Classic Texts
2
-
3
- ## Euler Characteristic (Euler, 1752)
4
-
5
- > "For any convex polyhedron, the number of vertices minus edges plus faces equals 2."
6
-
7
- **Leonhard Euler** (1707-1783) discovered this invariant of polyhedra in 1752:
8
-
9
- V - E + F = 2
10
-
11
- This formula seems simple but is profound — it holds for all convex polyhedra, whether cube (8-12+6=2), tetrahedron (4-6+4=2), or dodecahedron (20-30+12=2). The Euler characteristic is a topological invariant of surfaces: continuous deformations do not change χ. Sphere χ = 2, torus χ = 0, double torus χ = -2 — each additional hole reduces χ by 2.
12
-
13
- **Generalization**: for any surface S, χ(S) = 2 - 2g (orientable, genus g) or χ(S) = 2 - g (non-orientable, genus g). The Euler characteristic and orientability together form a complete set of classification invariants for compact surfaces.
14
-
15
- ## Poincaré Conjecture & Perelman's Proof (2004)
16
-
17
- > "Every simply-connected closed 3-manifold is homeomorphic to the 3-sphere S³."
18
-
19
- **Henri Poincaré** (1854-1912) proposed this conjecture in 1904 — it became one of the most famous unsolved problems in the history of mathematics, confounding mathematicians for a full century.
20
-
21
- **Grigori Perelman** (1966-) posted three papers online in 2002-2003, completing the proof using **Ricci flow** (a differential geometric tool introduced by Hamilton) combined with surgery techniques. Perelman declined the 2006 Fields Medal and the 2010 Clay Millennium Prize of one million dollars — the most dramatic episode in the history of mathematics.
22
-
23
- **Intuition behind Ricci flow**: the metric on a manifold evolves over time so that curvature tends toward uniformity — much like heat diffusion makes temperature distribution uniform. When curvature concentrates at a "neck," surgery cuts it out and caps it with a standard sphere, then Ricci flow continues. The manifold is eventually decomposed into geometric pieces (Thurston's geometrization conjecture), each with a standard metric — the Poincaré conjecture is a special case of the geometrization conjecture.
24
-
25
- ## Fundamental Group (Poincaré, 1895)
26
-
27
- > "The fundamental group π₁(X) consists of equivalence classes of loops based at a point modulo homotopic deformation — it captures the 'non-contractible loops' structure of a space."
28
-
29
- **Poincaré** introduced the concept of the fundamental group in his 1895 paper *Analysis Situs* — the foundational work of algebraic topology.
30
-
31
- Core examples:
32
- - **π₁(S¹) = Z** — loops on the circle are classified by winding number: a loop winding n times cannot be continuously deformed into one winding m times (n ≠ m)
33
- - **π₁(S²) = 0** — all loops on the sphere are contractible to a point — the sphere "has no holes"
34
- - **π₁(torus) = Z × Z** — winding in two independent directions, combined as (m, n) winding numbers
35
- - **π₁(real projective plane RP²) = Z₂** — only two classes of loops: contractible (even winding) and non-contractible (odd winding)
36
-
37
- **Key property**: homeomorphic spaces have isomorphic fundamental groups (topological invariant); however, the fundamental group is not a complete invariant — different spaces can share the same fundamental group (e.g., S² and S³ both have π₁ = 0, but they are not homeomorphic).
38
-
39
- ## Homology Groups
40
-
41
- > "Homology groups H_n(X) count n-dimensional 'holes' in a space — translating topological intuition into computable algebraic quantities."
42
-
43
- **Simplicial homology computation**:
44
- 1. Construct a simplicial complex K (approximating the space with simplices such as triangles and tetrahedra)
45
- 2. Define the boundary operator ∂_n: C_n → C_{n-1} (the boundary of each n-simplex is a combination of (n-1)-simplices)
46
- 3. Key property ∂² = 0 (the boundary of a boundary is zero)
47
- 4. Homology group H_n(K) = ker(∂_n) / im(∂_{n+1}) — "cycles" modulo "boundaries" — true holes are not boundaries of any higher-dimensional simplex
48
-
49
- **Intuition**: H₀ = number of connected components (zero-dimensional "holes" = separated pieces), H₁ = number of 1-dimensional holes (unfillable loops), H₂ = number of 2-dimensional voids (unfillable cavities). Betti numbers β_n = rank H_n(X) count the holes.
50
-
51
- **Homology vs homotopy**: H₁(X) is the abelianization of π₁(X) (H₁ = π₁/[π₁, π₁], quotienting out the commutator subgroup). Homology is easier to compute (linear algebra) but less informative (non-abelian structure is lost); homotopy is richer in information but harder to compute. The choice depends on the problem at hand — π₁ for fine classification, H₁ for fast computation.
52
-
53
- ## Topological Data Analysis (Carlsson, 2009)
54
-
55
- > "Persistent homology lets data 'speak' — it discovers not means and variances, but the shape of data."
56
-
57
- **Gunnar Carlsson** (Stanford) founded Ayasdi in 2009, bringing persistent homology into applications.
58
-
59
- **Persistent homology computation**:
60
- 1. Starting from point cloud data, construct a filtration by varying the neighborhood radius ε from small to large
61
- 2. For each ε, construct the Vietoris-Rips complex VR_ε (connecting point pairs at distance ≤ ε, filling triangles when three points are mutually within distance ≤ ε)
62
- 3. Compute the homology groups H_n(VR_ε) for each ε
63
- 4. Record the "birth time" (ε_birth) and "death time" (ε_death) of each topological feature
64
- 5. Output a barcode diagram or persistence diagram (points (ε_birth, ε_death))
65
-
66
- **Stability theorem**: the Wasserstein distance between persistence diagrams ≤ the Hausdorff distance between data sets — small perturbations of the data produce only small changes in the persistence diagram. This guarantees the robustness of TDA: noise produces short bars, real features produce long bars.
67
-
68
- **Applications**: topological structure in tumor genomic data revealing new cancer subtypes; sensor network coverage hole detection; topological signatures of phase transitions in materials science; topological early warning of market crashes in finance.
69
-
70
- ## Brouwer Fixed Point Theorem (1911)
71
-
72
- > "Every continuous map f: Dⁿ → Dⁿ has a fixed point — there exists x₀ such that f(x₀) = x₀."
73
-
74
- **L.E.J. Brouwer** (1881-1966) proved this theorem in 1911 — ironically, Brouwer later became the founder of intuitionism, opposing the law of excluded middle on which his own theorem relies.
75
-
76
- **Intuition**: stir coffee in a cup, then stop — at least one point must have returned to its original position, since stirring is a continuous map on a disk, which must have a fixed point.
77
-
78
- **Applications**:
79
- - **Game theory** (Nash, 1950): the existence of Nash equilibrium relies on the Brouwer fixed point theorem — every finite game has at least one mixed-strategy Nash equilibrium
80
- - **Economics**: the fixed-point proof of general equilibrium theory (Arrow-Debreu) — existence of market equilibrium
81
- - **Differential equations**: the Peano existence theorem uses fixed-point methods
82
-
83
- ## Jordan Curve Theorem
84
-
85
- > "Every simple closed curve in R² divides the plane into two regions — interior and exterior."
86
-
87
- **Seemingly obvious yet extremely hard to prove** — Jordan's original proof (1892) had gaps; Veblen (1905) gave the first rigorous proof. The difficulty lies in the fact that closed curves can exhibit extremely complex topological behavior (e.g., Osgood curves with arbitrarily large area); what seems "obvious" intuitively requires fine topological argumentation mathematically.
88
-
89
- **Generalization**: Jordan-Brouwer separation theorem — every subset of Rⁿ homeomorphic to S^{n-1} divides Rⁿ into two connected components. Higher dimensions entail more complex proofs.
90
-
91
- ## Knot Theory
92
-
93
- > "Knot classification relies on invariants — Jones polynomial, Alexander polynomial, etc. distinguish different knot types."
94
-
95
- Knot theory studies equivalence classes of simple closed curves in R³ under isotopy (classification up to continuous deformation). The central question: can two knots be transformed into each other by continuous deformation (without cutting or gluing)?
96
-
97
- **Key invariants**:
98
- - **Alexander polynomial** (1928): the first polynomial knot invariant, but incomplete (different knots can share the same Alexander polynomial)
99
- - **Jones polynomial** (1984): Vaughan Jones's discovery — deep connections to statistical mechanics and quantum field theory; Jones received the 1990 Fields Medal for this work
100
- - **Knot group** π₁(R³ - K): the fundamental group of the knot complement in three-dimensional space
101
-
102
- **Applications**: DNA topology — supercoiling, knotted DNA, and catenanes affect DNA replication and transcription; enzymes (topoisomerases) alter the topological structure of DNA, effectively performing "topological surgery." Molecular knot chemistry — synthesizing topologically complex molecular structures.
103
-
104
- ## Classification of Surfaces
105
-
106
- > "Compact surfaces are completely classified by orientability and Euler characteristic — the paradigm of topological classification."
107
-
108
- **Classification theorem** (Möbius 1861, Dyck 1888, completed):
109
-
110
- Orientable surfaces: S² (χ=2), torus T² (χ=0), double torus (χ=-2), triple torus (χ=-4), ... — genus g surface has χ = 2 - 2g
111
-
112
- Non-orientable surfaces: RP² (χ=1), Klein bottle (χ=0), ... — genus g non-orientable surface has χ = 2 - g
113
-
114
- **Standard form**: every compact surface is homeomorphic to a connected sum of tori or projective planes. Orientable: #g T² (connected sum of g tori); non-orientable: #g RP² (connected sum of g projective planes).
115
-
116
- **Completeness of classification**: (orientability, χ) is a complete invariant set — two compact surfaces are homeomorphic if and only if they share the same orientability and the same Euler characteristic.
117
-
118
- ## Morse Theory
119
-
120
- > "Critical points of a smooth function encode the manifold's topology — Morse theory bridges analysis and topology."
121
-
122
- **Marston Morse** (1892-1977) established this theory:
123
-
124
- A **Morse function** f: M → R has the property that every critical point p (where df(p) = 0) is non-degenerate (the determinant of the Hessian matrix ≠ 0). The index of a critical point = the number of negative eigenvalues of the Hessian = the dimension of the "downward directions" at the critical point.
125
-
126
- **Core theorem**: Morse inequalities relate critical point counts to Betti numbers:
127
- - c_k ≥ β_k (number of k-dimensional critical points ≥ k-th Betti number)
128
- - c_k - c_{k-1} + ... ± c_0 ≥ β_k - β_{k-1} + ... ± β_0
129
-
130
- **Intuition**: scanning M from low to high values of f, each critical point of index k triggers a "k-dimensional attachment" — equivalent to gluing a k-cell. The entire topology of the manifold is completely determined by all critical points and their indices.
131
-
132
- ---
133
-
134
- **Summary**: Topological ideas pervade the core of mathematics — from Euler's characteristic to Poincaré's fundamental group, from the computability of homology groups to the data applications of persistent homology, from the applied power of fixed point theorems to the biological relevance of knot theory. Topology provides a unified perspective on "what remains invariant under continuous deformation." It tells us: what truly matters is not precise measurement, but the essence of structure — connectedness, holes, dimension, orientability. These properties survive stretching and bending, and change only under tearing and gluing — this is precisely the fundamental boundary that distinguishes topology from geometry.
@@ -1,164 +0,0 @@
1
- # 数学出处与经典文献 / Mathematical Sources and Classic Texts
2
-
3
- ## 欧拉示性数 / Euler Characteristic (Euler, 1752)
4
-
5
- > "对于任何凸多面体,顶点数 - 边数 + 面数 = 2。"
6
- > "For any convex polyhedron, the number of vertices minus edges plus faces equals 2."
7
-
8
- **Leonhard Euler**(1707-1783)在 1752 年发现了多面体的这一不变量:
9
-
10
- V - E + F = 2
11
-
12
- 这一公式看似简单,实则深刻——它对所有凸多面体成立,无论多面体是立方体(8-12+6=2)、四面体(4-6+4=2)还是十二面体(20-30+12=2)。欧拉示性数是曲面的拓扑不变量:连续变形不改变 χ 的值。球面 χ = 2,环面 χ = 0,双环面 χ = -2——每增加一个洞,χ 减少 2。
13
-
14
- **推广**:对任意曲面 S,χ(S) = 2 - 2g(可定向,亏格 g)或 χ(S) = 2 - g(不可定向,亏格 g)。欧拉示性数与可定向性共同构成紧致曲面的完全分类不变量。
15
-
16
- This formula seems simple but is profound — it holds for all convex polyhedra, whether cube (8-12+6=2), tetrahedron (4-6+4=2), or dodecahedron (20-30+12=2). The Euler characteristic is a topological invariant of surfaces: continuous deformations do not change χ. Sphere χ = 2, torus χ = 0, double torus χ = -2 — each additional hole reduces χ by 2. Generalization: for any surface S, χ(S) = 2 - 2g (orientable, genus g) or χ(S) = 2 - g (non-orientable, genus g). Euler characteristic and orientability together form a complete set of classification invariants for compact surfaces.
17
-
18
- ## Poincaré 猜想与 Perelman 证明 / Poincaré Conjecture & Perelman's Proof (2004)
19
-
20
- > "每一个单连通的紧致三维流形都同胚于三维球面 S³。"
21
- > "Every simply-connected closed 3-manifold is homeomorphic to the 3-sphere S³."
22
-
23
- **Henri Poincaré**(1854-1912)在 1904 年提出这一猜想——它成为数学史上最著名的未解问题之一,困扰数学家整整一百年。
24
-
25
- **Grigori Perelman**(1966-)在 2002-2003 年间在网上发布三篇论文,利用 **Ricci 流**(Hamilton 提出的微分几何工具)结合手术(surgery)技术完成了证明。Perelman 拒绝了 2006 年的 Fields 奖和 2010 年的 Clay 千禧奖百万美元奖金——数学史上最戏剧性的一幕。
26
-
27
- **Ricci 流**的直觉:流形上的度量随时间演化,使得曲率趋于均匀——就像热传导使温度分布趋于均匀。当曲率集中在某处时("脖子"),用手术切除并补上标准球面,继续 Ricci 流。最终流形被分解为若干几何片(Thurston 的几何化猜想),每片都有标准度量——Poincaré 猜想是几何化猜想的特例。
28
-
29
- Perelman's proof used **Ricci flow** (a tool introduced by Hamilton) combined with surgery. The intuition: the metric on a manifold evolves over time, making curvature tend toward uniformity — like heat diffusion making temperature uniform. When curvature concentrates at a "neck," surgery cuts it out and caps it with a standard sphere, then Ricci flow continues. The manifold is eventually decomposed into geometric pieces (Thurston's geometrization conjecture); Poincaré is a special case. Perelman declined the 2006 Fields Medal and 2010 Clay Millennium Prize — the most dramatic episode in mathematical history.
30
-
31
- ## 基本群 / Fundamental Group (Poincaré, 1895)
32
-
33
- > "基本群 π₁(X) 是所有基于基点的环路在同伦变形下的等价类——它捕获空间的'不可收缩环路'结构。"
34
- > "The fundamental group π₁(X) consists of equivalence classes of loops based at a point modulo homotopic deformation — it captures the 'non-contractible loops' structure of a space."
35
-
36
- **Poincaré** 在 1895 年的论文 *Analysis Situs* 中引入了基本群的概念——这是代数拓扑的奠基之作。
37
-
38
- 核心例子:
39
- - **π₁(S¹) = Z**——圆周上的环路按绕圈次数分类:绕 n 次的环路不能连续变形为绕 m 次的环路(n ≠ m)
40
- - **π₁(S²) = 0**——球面上所有环路都可收缩为一点——球面"没有洞"
41
- - **π₁(环面) = Z × Z**——两个独立方向的绕圈,组合为 (m, n) 绕圈次数
42
- - **π₁(实射影平面 RP²) = Z₂**——只有两类环路:可收缩的(绕偶数次)和不可收缩的(绕奇数次)
43
-
44
- **关键性质**:同胚空间有同构的基本群(拓扑不变量);但基本群不是完备不变量——不同空间可以有相同的基本群(如 S² 和 S³ 的 π₁ 都是 0,但它们不同胚)。
45
-
46
- Core examples: π₁(S¹) = Z (winding number classifies loops); π₁(S²) = 0 (all loops contractible — sphere has "no holes"); π₁(torus) = Z × Z (winding in two independent directions); π₁(RP²) = Z₂ (even vs odd winding). Key property: homeomorphic spaces have isomorphic fundamental groups (topological invariant); but π₁ is not a complete invariant — different spaces can share the same π₁ (e.g., S² and S³ both have π₁ = 0 but are not homeomorphic).
47
-
48
- ## 同调群 / Homology Groups
49
-
50
- > "同调群 H_n(X) 计算空间中 n 维'洞'的数量——它将拓扑直觉转化为可计算的代数量。"
51
- > "Homology groups H_n(X) count n-dimensional 'holes' in a space — translating topological intuition into computable algebraic quantities."
52
-
53
- **单纯同调的计算流程**:
54
- 1. 构造单纯复形 K(用三角形/四面体等单纯形近似空间)
55
- 2. 定义边界算子 ∂_n: C_n → C_{n-1}(每个 n-单纯形的边界是 (n-1)-单纯形的组合)
56
- 3. 关键性质 ∂² = 0(边界的边界为零)
57
- 4. 同调群 H_n(K) = ker(∂_n) / im(∂_{n+1})——"环路"模去"边界"——真正的洞不是任何更高维单纯形的边界
58
-
59
- **直觉**:H₀ = 连通分量数(零维"洞"= 分离的碎片),H₁ = 1 维洞数(不可填充的环路),H₂ = 2 维空洞数(不可填充的空腔)。Betti 数 β_n = rank H_n(X) 是洞的计数。
60
-
61
- **同调 vs 同伦**:H₁(X) 是 π₁(X) 的 Abel 化(H₁ = π₁/[π₁, π₁],去掉交换子的约束)。同调计算更容易(线性代数),但信息更少(丢失了非交换结构);同伦信息更丰富但计算更难。选择取决于问题需求——需要精细分类用 π₁,需要快速计算用 H₁。
62
-
63
- Simplicial homology computation: (1) build simplicial complex K; (2) define boundary operator ∂_n: C_n → C_{n-1}; (3) key property ∂² = 0; (4) H_n(K) = ker(∂_n) / im(∂_{n+1}) — "cycles" modulo "boundaries" — true holes are not boundaries of higher-dimensional simplices. Intuition: H₀ = connected components, H₁ = 1-holes (unfillable loops), H₂ = 2-voids (unfillable cavities). Betti numbers β_n = rank H_n. Homology vs homotopy: H₁(X) = π₁(X) abelianized. Homology is easier to compute (linear algebra) but less informative; homotopy is richer but harder. Choose based on needs — π₁ for fine classification, H₁ for fast computation.
64
-
65
- ## 拓扑数据分析 / Topological Data Analysis (Carlsson, 2009)
66
-
67
- > "持续同调让数据'说话'——它发现的不是均值和方差,而是数据的形状。"
68
- > "Persistent homology lets data 'speak' — it discovers not means and variances, but the shape of data."
69
-
70
- **Gunnar Carlsson**(Stanford)在 2009 年创立了 Ayasdi 公司,将持续同调推向应用。
71
-
72
- **持续同调的计算流程**:
73
- 1. 从点云数据出发,构造滤流(filtration):从小到大改变邻域半径 ε
74
- 2. 对每个 ε,构建 Vietoris-Rips 复形 VR_ε(距离 ≤ ε 的点对连线,三点互距 ≤ ε 则填三角形)
75
- 3. 对每个 ε 计算同调群 H_n(VR_ε)
76
- 4. 记录每个拓扑特征的"出生时间"(ε_birth)和"死亡时间"(ε_death)
77
- 5. 输出条形码图(barcode)或持续图(persistence diagram: 点 (ε_birth, ε_death))
78
-
79
- **稳定性定理**:持续图之间的 Wasserstein 蕴距离 ≤ 数据之间的 Hausdorff 蕴距离——数据的微小扰动只导致持续图的微小变化。这保证了 TDA 的鲁棒性:噪声产生短条,真实特征产生长条。
80
-
81
- **应用**:肿瘤基因数据的拓扑结构发现新的癌症亚型;传感器网络覆盖空洞检测;材料科学中相变拓扑标志;金融市场中市场崩溃前的拓扑预警。
82
-
83
- Computation: (1) from point cloud, build filtration by varying neighborhood radius ε; (2) for each ε, construct Vietoris-Rips complex; (3) compute H_n at each ε; (4) record birth and death times; (5) output barcode or persistence diagram. Stability theorem: Wasserstein distance between diagrams ≤ Hausdorff distance between data — small data perturbation → small diagram perturbation. Noise produces short bars, real features produce long bars. Applications: tumor genomic topology revealing new cancer subtypes; sensor network coverage hole detection; phase transition signatures in materials science; topological early warning of market crashes in finance.
84
-
85
- ## Brouwer 不动点定理 / Brouwer Fixed Point Theorem (1911)
86
-
87
- > "每一个连续映射 f: Dⁿ → Dⁿ 都有不动点——即存在 x₀ 使得 f(x₀) = x₀。"
88
- > "Every continuous map f: Dⁿ → Dⁿ has a fixed point — there exists x₀ with f(x₀) = x₀."
89
-
90
- **L.E.J. Brouwer**(1881-1966)在 1911 年证明此定理——讽刺的是,Brouwer 后来成为直觉主义的创始人,反对他自己定理所依赖的排中律。
91
-
92
- **直觉**:搅动杯中的咖啡,停搅后必有至少一点回到原位——因为搅动是圆盘上的连续映射,必有不动点。
93
-
94
- **应用**:
95
- - **博弈论**(Nash,1950):Nash 均衡的存在性依赖于 Brouwer 不动点定理——每个有限博弈至少存在一个混合策略 Nash 均衡
96
- - **经济学**:一般均衡理论(Arrow-Debreu)的不动点证明——市场均衡的存在性
97
- - **微分方程**:Peano 存在定理的证明用到不动点方法
98
-
99
- Intuition: stir coffee in a cup, stop — some point must return to its original position, since stirring is a continuous map on a disk, which must have a fixed point. Applications: Nash equilibrium existence (Nash 1950) — every finite game has at least one mixed-strategy Nash equilibrium; economics — general equilibrium theory (Arrow-Debreu) uses fixed-point proof; differential equations — Peano existence theorem via fixed-point methods.
100
-
101
- ## Jordan 曲线定理 / Jordan Curve Theorem
102
-
103
- > "R² 中每条简单闭曲线将平面分成两个区域——内部和外部。"
104
- > "Every simple closed curve in R² divides the plane into two regions — interior and exterior."
105
-
106
- **看似显然却极难证明**——Jordan(1892)的原始证明有漏洞,Veblen(1905)给出第一个严格证明。定理的困难在于:闭曲线可以有极其复杂的拓扑行为(如 Osgood 曲线,面积可以任意大),直觉上的"显然"在数学上需要精细的拓扑论证。
107
-
108
- **推广**:Jordan-Brouwer 分离定理——Rⁿ 中每个与 S^{n-1} 同胚的子集将 Rⁿ 分成两个连通区域。维数越高,证明越复杂。
109
-
110
- Seemingly obvious yet extremely hard to prove — Jordan's original proof (1892) had gaps; Veblen (1905) gave the first rigorous proof. The difficulty: closed curves can have extremely complex topological behavior (e.g., Osgood curves with arbitrarily large area); what seems "obvious" intuitively requires fine topological argumentation mathematically. Generalization: Jordan-Brouwer separation theorem — every subset of Rⁿ homeomorphic to S^{n-1} divides Rⁿ into two connected components. Higher dimensions = more complex proofs.
111
-
112
- ## 纽结理论 / Knot Theory
113
-
114
- > "纽结的分类依靠不变量——Jones 多项式、Alexander 多项式等区分不同纽结类型。"
115
- > "Knot classification relies on invariants — Jones polynomial, Alexander polynomial, etc. distinguish different knot types."
116
-
117
- 纽结理论研究 R³ 中简单闭曲线的等价类(同痕 isotopy 下的分类)。核心问题:两个纽结能否通过连续变形(不切断不粘合)相互转化?
118
-
119
- **关键不变量**:
120
- - **Alexander 多项式**(1928):第一个纽结多项式不变量,但不完备(不同纽结可有相同 Alexander 多项式)
121
- - **Jones 多项式**(1984):Vaughan Jones 的发现——与统计力学和量子场论有深层联系,Jones 因此获 1990 年 Fields 奖
122
- - **纽结群** π₁(R³ - K):纽结在三维空间中的补空间的基本群
123
-
124
- **应用**:DNA 拓扑——超螺旋(supercoiling)、纽结(knotted DNA)和链环(catenanes)影响 DNA 复制与转录;酶(拓扑异构酶 topoisomerase)改变 DNA 的拓扑结构,相当于进行"拓扑手术"。分子纽结化学——合成拓扑复杂的分子结构。
125
-
126
- Knot theory studies equivalence classes of simple closed curves in R³ under isotopy. Key invariants: Alexander polynomial (1928, first polynomial invariant but incomplete); Jones polynomial (1984, deep connections to statistical mechanics and QFT, Jones won 1990 Fields Medal); knot group π₁(R³ - K). Applications: DNA topology — supercoiling, knotted DNA, and catenanes affect replication and transcription; topoisomerase enzymes perform "topological surgery" on DNA. Molecular knot chemistry — synthesizing topologically complex molecular structures.
127
-
128
- ## 曲面分类定理 / Classification of Surfaces
129
-
130
- > "紧致曲面由可定向性和欧拉示性数完全分类——这是拓扑分类的典范。"
131
- > "Compact surfaces are completely classified by orientability and Euler characteristic — the paradigm of topological classification."
132
-
133
- **分类定理**(Möbius 1861, Dyck 1888 完善):
134
-
135
- 可定向曲面:S² (χ=2), 环面 T² (χ=0), 双环面 (χ=-2), 三环面 (χ=-4), ... — 亏格 g 的曲面 χ = 2 - 2g
136
-
137
- 不可定向曲面:RP² (χ=1), Klein 瓶 (χ=0), ... — 亏格 g 的不可定向曲面 χ = 2 - g
138
-
139
- **标准形式**:每个紧致曲面同胚于若干环面或若干 RP² 的连通和(connected sum)。可定向:#g T²(g 个环面的连通和);不可定向:#g RP²(g 个射影平面的连通和)。
140
-
141
- **分类的完备性**:(可定向性, χ) 是完备不变量集——两个紧致曲面同胚 iff 它们有相同的可定向性和相同的 χ。
142
-
143
- Classification theorem: orientable surfaces S² (χ=2), torus T² (χ=0), double torus (χ=-2), ... genus g surface χ = 2-2g. Non-orientable: RP² (χ=1), Klein bottle (χ=0), ... genus g non-orientable χ = 2-g. Standard form: every compact surface is homeomorphic to a connected sum of tori or projective planes. Completeness: (orientability, χ) is a complete invariant set — two compact surfaces are homeomorphic iff they share the same orientability and Euler characteristic.
144
-
145
- ## Morse 理论 / Morse Theory
146
-
147
- > "光滑函数的临界点编码了流形的拓扑——Morse 理论将分析与拓扑联系起来。"
148
- > "Critical points of a smooth function encode the manifold's topology — Morse theory bridges analysis and topology."
149
-
150
- **Marston Morse**(1892-1977)建立了这一理论:
151
-
152
- **Morse 函数** f: M → R 的每个临界点 p(df(p) = 0)都是非退化的(Hessian 矩阵的行列式 ≠ 0)。临界点的指标(index)= Hessian 中负特征值的个数 = 临界点处"向下方向"的维数。
153
-
154
- **核心定理**:Morse 不等式将临界点数与 Betti 数联系起来:
155
- - c_k ≥ β_k(k 维临界点数 ≥ k 维 Betti 数)
156
- - c_k - c_{k-1} + ... ± c_0 ≥ β_k - β_{k-1} + ... ± β_0
157
-
158
- **直觉**:随着 f 的值从低到高扫描 M,每次经过一个指标为 k 的临界点,流形的拓扑发生一次"k 维附着"——相当于粘上一个 k 维胞腔。整个流形的拓扑由所有临界点及其指标完全决定。
159
-
160
- Intuition: scanning M from low to high values of f, each critical point of index k triggers a "k-dimensional attachment" — gluing a k-cell. The manifold's entire topology is determined by all critical points and their indices. Core theorem: Morse inequalities relate critical point counts to Betti numbers — c_k ≥ β_k. Morse theory bridges differential analysis (critical points) and algebraic topology (homology).
161
-
162
- ---
163
-
164
- **总结 / Summary**:拓扑思想贯穿数学的核心——从 Euler 的示性数到 Poincaré 的基本群,从同调群的可计算性到持续同调的数据应用,从不动点定理的应用力量到纽结理论的生物关联,拓扑提供了"连续变形下什么不变"的统一视角。它告诉我们:真正重要的性质,不是精确的度量,而是结构的本质——连通、洞、维数、可定向性。这些性质在拉伸与弯曲中存活,在撕裂与粘合中改变——这正是拓扑区别于几何的根本界限。
@@ -1,120 +0,0 @@
1
- ---
2
- name: transformation
3
- description: |
4
- Trigger when a problem is intractable in its current representation and needs a mathematical transform into an equivalent simpler problem; or finding an equivalent but more GPU-friendly representation (e.g. convolution->GEMM, spectral transform) for algorithm/operator design.
5
- ---
6
-
7
- # Transformation
8
-
9
- > "Complex problem -> equivalent simple problem; the key is finding the right transformation and its inverse."
10
- >
11
- > -- Fourier, Laplace, Coordinate Transform
12
-
13
- ## Core Principle
14
-
15
- **The same problem can have different representations. Choosing a good representation (or transformation) can make a difficult problem simple.** The essence of a transformation is not to change the problem itself, but to change the perspective from which it is viewed.
16
-
17
- > **Mathematical Formalization**
18
- >
19
- > Let a transformation $T: D_1 \to D_2$. $T$ is useful if and only if three conditions hold simultaneously: (1) **Computability**: $T(x)$ can be explicitly computed; (2) **Simplification**: the problem is more tractable in $D_2$ (e.g., differentiation -> multiplication, convolution -> multiplication); (3) **$T^{-1}$ exists**: the solution in $D_2$ can be mapped back to the original solution in $D_1$.
20
- >
21
- > Core question: **Under what conditions does $T^{-1}$ exist?** Existence determines equivalence, and the domain of convergence determines validity. Properties: equivalence (no information loss, requiring $T^{-1}$ to exist), simplification, invertibility (when $T^{-1}$ exists and is computable, the transformation is exact rather than approximate).
22
-
23
- ## GPU-Friendliness (Cross-Cutting Check)
24
-
25
- In algorithm design, the value of a transformation often manifests as "converting an unfriendly operation into a GPU-friendly one" -- pass the eight-dimensional gate in `../../references/gpu-friendly-math.md`:
26
-
27
- - **Convolution -> GEMM** (im2col / Winograd): Converts irregular convolution into matrix multiplication, fully utilizing Tensor Cores (friendly, but watch for memory expansion).
28
- - **Spectral transforms (FFT / DCT)**: $O(N^2)\to O(N\log N)$, batch-parallelizable; but butterfly communication patterns require attention to memory access.
29
- - **Duality transforms (Legendre / Fenchel)**: Converts constrained optimization into a dual problem -- friendly if the dual is more GEMM-amenable.
30
- - **Transforms as compression**: Frequency-domain sparsity means only significant coefficients need to be stored (KV / activation compression, friendly).
31
- - **Anti-patterns**: The transform itself requires $O(n^2)$ global rearrangement and cannot be fused -- "beautiful but incomputable"; the inverse transform is not numerically stable (ill-conditioned).
32
-
33
- Eight-dimensional minimum assessment (formal terms): **Tensorization** -- whether the transform / inverse transform can be batched; **GEMM-mappability** -- whether it can be rewritten as GEMM / convolution / FFT / batched solve; **Complexity** -- the transform must reduce, not increase, the computational order; **Memory & KV-Cache** -- whether im2col, frequency-domain caches, and block summaries save memory rather than explode it; **Low-precision stability** -- inverse transform, orthogonalization, normalization; **Parallelism & communication** -- butterfly / scan / block communication patterns; **Sparse structure** -- whether frequency-domain / block sparsity is structured; **Operator fusion** -- whether the transform-core operation-inverse transform chain can be fused or recomputed.
34
-
35
- > Cross-reference `../../references/books/matrix-analysis.md` (spectral / low-rank), `optimization-ml.md` (duality).
36
-
37
- ## When NOT to Use
38
-
39
- - **The problem is already simple enough** -- no transformation is needed.
40
- - **The transformation loses critical information** (irreversible, and the lost information is precisely what matters) -- choose an information-preserving transformation.
41
- - **Only qualitative understanding is needed** -- transformations are typically quantitative tools.
42
- - **Convergence conditions are not satisfied** -- forcing a transformation produces meaningless results.
43
-
44
- ## When to Use
45
-
46
- - The problem is difficult to analyze or solve in its current form; revealing hidden structure in data (periodic signals -> frequency spectrum).
47
- - Simplifying complex operations into simpler ones (convolution -> multiplication); linearizing nonlinear problems; decoupling coupled variables.
48
- - **Finding an equivalent but more GPU-friendly representation for an operator** (convolution -> GEMM, sparse -> structured, frequency-domain compression).
49
-
50
- ## Method
51
-
52
- ### Step 1: Analyze the Difficulty of the Current Representation
53
- Why is the current form hard to work with? Is the computation complex (e.g., ODEs are hard to solve directly)? Is the structure opaque (periodicity is invisible in the time domain)? Are variables coupled? Identifying "where the difficulty lies" is a prerequisite for choosing a transformation; selecting a transform without diagnosis is blind operation.
54
-
55
- ### Step 2: Select the Transformation
56
- Choose based on the type of difficulty; for each candidate, verify the formula, domain mapping, convergence conditions, and simplification effect:
57
-
58
- | Transform | Formula | Domain Mapping | Convergence / Validity | Simplification Effect |
59
- |---|---|---|---|---|
60
- | Fourier | $F(\omega)=\int f(t)e^{-i\omega t}\,dt$ | $t\in\mathbb{R}\to\omega\in\mathbb{R}$ | Dirichlet: absolutely integrable, finitely many extrema/discontinuities | Differentiation -> multiplication, convolution -> multiplication |
61
- | Laplace | $F(s)=\int_0^\infty f(t)e^{-st}\,dt$ | $t\in[0,\infty)\to s\in\mathbb{C},\;\text{Re}(s)>\alpha$ | $\exists\alpha: \int|f(t)|e^{-\alpha t}\,dt<\infty$ | Constant-coefficient ODE -> algebraic equation, incorporates initial conditions |
62
- | Z-transform | $F(z)=\sum f[n]z^{-n}$ | $n\in\mathbb{N}\to z\in\mathbb{C},\;|z|>R$ | $\exists R: \sum|f[n]|R^{-n}<\infty$ | Difference equation -> algebraic equation |
63
- | Generating function | $G(x)=\sum a_n x^n$ | $n\in\mathbb{N}\to x,\;|x|<\rho$ | $\exists\rho: \sum|a_n|\rho^n$ converges | Recurrence -> differential equation |
64
- | Legendre | $f^*(p)=\sup_x(px-f(x))$ | $x\to p=f'(x)$ | When $f$ is convex and differentiable, $p\leftrightarrow x$ is a bijection | Convex optimization -> dual, Lagrangian -> Hamiltonian |
65
- | Wavelet | $W(a,b)=\int f(t)\psi_{a,b}(t)\,dt$ | $t\in\mathbb{R}\to(a,b)$ | $f\in L^2$, $\psi$ admissible | Time-frequency localization, multi-scale analysis |
66
-
67
- ### Step 3: Execute the Transformation
68
- Transform the problem into the new representation space, strictly following the formula. A transformation is not an escape from the problem; it is a re-expression of the same problem in a more effective language.
69
-
70
- ### Step 4: Verify Convergence and Domain Conditions
71
- **Before applying transformation results, one must verify convergence conditions**: For Fourier, check Dirichlet conditions ($\int|f|\,dt<\infty$); for Laplace, determine the region of convergence $\text{Re}(s)>\alpha$ (outside this region $F(s)$ is undefined); for the Z-transform, determine $|z|>R$ (the inverse transform depends on the choice of region of convergence); for generating functions, determine the radius of convergence $\rho$; for wavelets, verify the admissibility condition of the mother wavelet. Skipping this step is the largest source of errors.
72
-
73
- ### Step 5: Solve in the Transformed Space
74
- In the new representation the problem is often simpler; all operations must be carried out within the valid domain of the transform. The value of the transformed space lies in making originally hidden structure visible.
75
-
76
- ### Step 6: Apply the Inverse Transform to Return to the Original Space
77
- Map the solution back to the language of the original problem. The existence of the inverse transform requires conditions: Fourier inverse $f(t)=(1/2\pi)\int F(\omega)e^{i\omega t}\,d\omega$ (requires $F$ to be absolutely integrable); Laplace inverse via the Bromwich integral $f(t)=(1/2\pi i)\int F(s)e^{st}\,ds$ ($\gamma>\alpha$, to the right of the region of convergence); Z-inverse $f[n]=(1/2\pi i)\oint F(z)z^{n-1}\,dz$ (contour within the region of convergence); generating function $a_n=G^{(n)}(0)/n!$ or $[x^n]G(x)$. The transformation is merely a means; the final answer must be in the original space.
78
-
79
- ### Step 7: Verify Equivalence
80
- Confirm that the transformation has not lost critical information and that the inverse-transformed result is indeed a solution of the original problem: Was the inverse transform executed within the correct region of convergence? Does the original function satisfy the prerequisite conditions? Were boundary / initial conditions correctly encoded? Equivalence is the bottom line of transformation theory -- a transformation must be a verifiably equivalent operation, not an approximation or an evasion.
81
-
82
- ## Common Errors
83
-
84
- | Error | Critique | Correct Approach |
85
- |---|---|---|
86
- | Choosing an inappropriate transformation | Fails to simplify and instead increases complexity | Select the transformation based on problem characteristics |
87
- | Using an irreversible transformation that loses information | Cannot return to the original problem after transformation | Verify invertibility or confirm that the lost information is not critical |
88
- | Forgetting the inverse transform | After obtaining a solution in the new space, forgetting to transform back | The final answer must be in the original space |
89
- | Ignoring domain changes after transformation | The transformation may alter the domain or introduce singularities | Check the post-transformation domain and boundary conditions |
90
- | Treating the transformation as magic | A transformation only changes the representation, not the essence of the problem | A transformation is a tool; understanding is the core competency |
91
- | Applying Fourier to non-integrable functions | When $\int|f|\,dt=\infty$, $F(\omega)$ may be meaningless | First check Dirichlet conditions; if not satisfied, use generalized functions or Laplace |
92
- | Ignoring the Laplace region of convergence | $F(s)$ is defined only for $\text{Re}(s)>\alpha$ | Restrict all operations to the region of convergence |
93
- | Assuming all transformations are invertible | Some transformations are not invertible under certain conditions (e.g., non-convex Legendre) | Verify invertibility conditions before applying the inverse transform |
94
- | Overlooking discrete transforms (DFT/FFT) | Continuous transforms are not applicable to discrete data | Use the DFT for discrete data: $X[k]=\sum x[n]e^{-i2\pi kn/N}$ |
95
- | Post-transformation incomputability / non-fusibility | The transform requires $O(n^2)$ global rearrangement or an ill-conditioned inverse | Evaluate the GPU eight-dimensional gate; if necessary, choose a fusible, numerically stable equivalent transformation |
96
-
97
- ## Operating Procedure
98
-
99
- The output must include:
100
-
101
- 1. **Difficulty of the current representation**: `[Difficulty]: [Description]`
102
- 2. **Transformation selection**: `[Transform]: [Choice] because [Reason], formula [Formula], convergence conditions [Conditions], expected simplification [Effect]`
103
- 3. **Transformation execution**: The problem form after transformation
104
- 4. **Convergence and domain verification**: `[Verification]: [Whether conditions are satisfied, region of convergence]`
105
- 5. **Solution in transformed space**: The solution method under the new representation
106
- 6. **Inverse transform**: The solution translated back to the original space, noting inverse-transform conditions
107
- 7. **Equivalence verification**: Is it invertible? Is information lost? Is the region of convergence correct?
108
- 8. **[GPU viability]** (if used for operator design) -- whether the transformation converts the operation into GEMM / fusible / numerically stable form; pass the eight-dimensional gate
109
-
110
- **Output must not consist of analysis alone without conclusions.**
111
-
112
- ## Relations to Other Skills
113
-
114
- - **Abstraction**: A transformation is also an act of abstraction -- representing the same object in a new structure.
115
- - **Symmetry and invariance**: Properties that remain unchanged under a transformation are precisely the symmetries of that transformation.
116
- - **Optimization**: Transforming to the dual space sometimes makes optimization easier.
117
- - **Modeling**: A transformation is often a key step in solving a model.
118
- - **Algorithmic thinking**: The FFT reduces the DFT from $O(N^2)$ to $O(N\log N)$, exemplifying how transformation ideas serve computational efficiency.
119
- - **Information theory**: Coding is transformation -- source coding transforms data into an efficient representation; channel coding transforms it into a noise-resistant representation.
120
- - **Modern mathematics activation**: `../../references/books/matrix-analysis.md` (spectral / low-rank transforms), `algebraic-geometry-rising-sea.md` (Plücker coordinates for KV compression, tropical gating), `optimization-ml.md` (duality transforms).