math-skill 2.1.0 → 3.0.0

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 (234) hide show
  1. package/README.en-US.md +159 -200
  2. package/README.md +159 -200
  3. package/agents/math-critic.en.md +2 -2
  4. package/agents/math-critic.md +8 -8
  5. package/commands/ask.md +3 -10
  6. package/design-patterns/attention/equivariant-attention.en.md +72 -0
  7. package/design-patterns/attention/equivariant-attention.md +72 -0
  8. package/design-patterns/attention/geometry-aware-attention.en.md +73 -0
  9. package/design-patterns/attention/geometry-aware-attention.md +72 -0
  10. package/design-patterns/attention/information-bottleneck-attention.en.md +72 -0
  11. package/design-patterns/attention/information-bottleneck-attention.md +72 -0
  12. package/design-patterns/attention/projection-attention.en.md +68 -0
  13. package/design-patterns/attention/projection-attention.md +68 -0
  14. package/design-patterns/attention/spectral-attention.en.md +71 -0
  15. package/design-patterns/attention/spectral-attention.md +71 -0
  16. package/design-patterns/compression/leverage-score-selection.en.md +71 -0
  17. package/design-patterns/compression/leverage-score-selection.md +71 -0
  18. package/design-patterns/compression/low-rank-kv-cache.en.md +60 -0
  19. package/design-patterns/compression/low-rank-kv-cache.md +60 -0
  20. package/design-patterns/compression/spectral-token-pruning.en.md +61 -0
  21. package/design-patterns/compression/spectral-token-pruning.md +61 -0
  22. package/design-patterns/compression/topology-preserving-compression.en.md +64 -0
  23. package/design-patterns/compression/topology-preserving-compression.md +64 -0
  24. package/design-patterns/loss/constraint-penalty.en.md +67 -0
  25. package/design-patterns/loss/constraint-penalty.md +78 -0
  26. package/design-patterns/loss/contrastive-loss.en.md +59 -0
  27. package/design-patterns/loss/contrastive-loss.md +68 -0
  28. package/design-patterns/loss/information-bottleneck-loss.en.md +69 -0
  29. package/design-patterns/loss/information-bottleneck-loss.md +74 -0
  30. package/design-patterns/loss/orthogonality-loss.en.md +56 -0
  31. package/design-patterns/loss/orthogonality-loss.md +60 -0
  32. package/design-patterns/loss/variational-loss.en.md +61 -0
  33. package/design-patterns/loss/variational-loss.md +71 -0
  34. package/design-patterns/representation/equivariant-split.en.md +87 -0
  35. package/design-patterns/representation/equivariant-split.md +89 -0
  36. package/design-patterns/representation/manifold-representation.en.md +85 -0
  37. package/design-patterns/representation/manifold-representation.md +87 -0
  38. package/design-patterns/representation/shared-private-decomposition.en.md +84 -0
  39. package/design-patterns/representation/shared-private-decomposition.md +86 -0
  40. package/design-patterns/representation/subspace-alignment.en.md +90 -0
  41. package/design-patterns/representation/subspace-alignment.md +92 -0
  42. package/design-patterns/routing/graph-routing.en.md +79 -0
  43. package/design-patterns/routing/graph-routing.md +81 -0
  44. package/design-patterns/routing/moe-routing.en.md +85 -0
  45. package/design-patterns/routing/moe-routing.md +87 -0
  46. package/design-patterns/routing/optimal-transport-routing.en.md +68 -0
  47. package/design-patterns/routing/optimal-transport-routing.md +72 -0
  48. package/design-patterns/routing/spectral-clustering-routing.en.md +88 -0
  49. package/design-patterns/routing/spectral-clustering-routing.md +90 -0
  50. package/knowledge-base/differential-geometry/connection.en.md +51 -0
  51. package/knowledge-base/differential-geometry/connection.md +51 -0
  52. package/knowledge-base/differential-geometry/curvature.en.md +49 -0
  53. package/knowledge-base/differential-geometry/curvature.md +49 -0
  54. package/knowledge-base/differential-geometry/geodesic.en.md +51 -0
  55. package/knowledge-base/differential-geometry/geodesic.md +51 -0
  56. package/knowledge-base/differential-geometry/manifold.en.md +47 -0
  57. package/knowledge-base/differential-geometry/manifold.md +47 -0
  58. package/knowledge-base/differential-geometry/metric-tensor.en.md +50 -0
  59. package/knowledge-base/differential-geometry/metric-tensor.md +50 -0
  60. package/knowledge-base/differential-geometry/tangent-space.en.md +48 -0
  61. package/knowledge-base/differential-geometry/tangent-space.md +48 -0
  62. package/knowledge-base/information-geometry/fisher-metric.en.md +56 -0
  63. package/knowledge-base/information-geometry/fisher-metric.md +56 -0
  64. package/knowledge-base/information-geometry/natural-gradient.en.md +54 -0
  65. package/knowledge-base/information-geometry/natural-gradient.md +54 -0
  66. package/knowledge-base/lie-theory/equivariance.en.md +54 -0
  67. package/knowledge-base/lie-theory/equivariance.md +54 -0
  68. package/knowledge-base/lie-theory/group-action.en.md +51 -0
  69. package/knowledge-base/lie-theory/group-action.md +51 -0
  70. package/knowledge-base/lie-theory/lie-algebra.en.md +51 -0
  71. package/knowledge-base/lie-theory/lie-algebra.md +51 -0
  72. package/knowledge-base/lie-theory/lie-group.en.md +51 -0
  73. package/knowledge-base/lie-theory/lie-group.md +51 -0
  74. package/knowledge-base/lie-theory/representation.en.md +52 -0
  75. package/knowledge-base/lie-theory/representation.md +52 -0
  76. package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +49 -0
  77. package/knowledge-base/matrix-analysis/low-rank-approximation.md +49 -0
  78. package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +49 -0
  79. package/knowledge-base/matrix-analysis/matrix-perturbation.md +49 -0
  80. package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +50 -0
  81. package/knowledge-base/matrix-analysis/positive-semidefinite.md +50 -0
  82. package/knowledge-base/matrix-analysis/projection.en.md +47 -0
  83. package/knowledge-base/matrix-analysis/projection.md +47 -0
  84. package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +48 -0
  85. package/knowledge-base/matrix-analysis/spectral-decomposition.md +48 -0
  86. package/knowledge-base/optimization/constrained-optimization.en.md +53 -0
  87. package/knowledge-base/optimization/constrained-optimization.md +53 -0
  88. package/knowledge-base/optimization/convex-optimization.en.md +50 -0
  89. package/knowledge-base/optimization/convex-optimization.md +50 -0
  90. package/knowledge-base/optimization/lagrangian-duality.en.md +50 -0
  91. package/knowledge-base/optimization/lagrangian-duality.md +50 -0
  92. package/knowledge-base/optimization/proximal-method.en.md +52 -0
  93. package/knowledge-base/optimization/proximal-method.md +52 -0
  94. package/knowledge-base/optimization/riemannian-optimization.en.md +51 -0
  95. package/knowledge-base/optimization/riemannian-optimization.md +51 -0
  96. package/knowledge-base/overview.en.md +29 -218
  97. package/knowledge-base/overview.md +29 -220
  98. package/knowledge-base/probability/concentration-inequality.en.md +45 -0
  99. package/knowledge-base/probability/concentration-inequality.md +45 -0
  100. package/knowledge-base/probability/entropy.en.md +47 -0
  101. package/knowledge-base/probability/entropy.md +47 -0
  102. package/knowledge-base/probability/fisher-information.en.md +48 -0
  103. package/knowledge-base/probability/fisher-information.md +48 -0
  104. package/knowledge-base/probability/information-bottleneck.en.md +49 -0
  105. package/knowledge-base/probability/information-bottleneck.md +49 -0
  106. package/knowledge-base/probability/kl-divergence.en.md +51 -0
  107. package/knowledge-base/probability/kl-divergence.md +51 -0
  108. package/knowledge-base/topology/euler-characteristic.en.md +54 -0
  109. package/knowledge-base/topology/euler-characteristic.md +54 -0
  110. package/knowledge-base/topology/fundamental-group.en.md +52 -0
  111. package/knowledge-base/topology/fundamental-group.md +52 -0
  112. package/knowledge-base/topology/persistent-homology.en.md +54 -0
  113. package/knowledge-base/topology/persistent-homology.md +54 -0
  114. package/lenses/algorithmic.en.md +49 -0
  115. package/lenses/algorithmic.md +49 -0
  116. package/lenses/axiomatization.en.md +48 -0
  117. package/lenses/axiomatization.md +48 -0
  118. package/lenses/categorical.en.md +48 -0
  119. package/lenses/categorical.md +48 -0
  120. package/lenses/causal.en.md +49 -0
  121. package/lenses/causal.md +49 -0
  122. package/lenses/duality.en.md +47 -0
  123. package/lenses/duality.md +47 -0
  124. package/lenses/game.en.md +50 -0
  125. package/lenses/game.md +50 -0
  126. package/lenses/geometric.en.md +53 -0
  127. package/lenses/geometric.md +53 -0
  128. package/lenses/local-to-global.en.md +52 -0
  129. package/lenses/local-to-global.md +52 -0
  130. package/lenses/perturbation.en.md +51 -0
  131. package/lenses/perturbation.md +51 -0
  132. package/lenses/probabilistic.en.md +48 -0
  133. package/lenses/probabilistic.md +48 -0
  134. package/lenses/projection.en.md +50 -0
  135. package/lenses/projection.md +50 -0
  136. package/lenses/spectral.en.md +52 -0
  137. package/lenses/spectral.md +52 -0
  138. package/lenses/symmetry.en.md +49 -0
  139. package/lenses/symmetry.md +49 -0
  140. package/lenses/topological.en.md +48 -0
  141. package/lenses/topological.md +48 -0
  142. package/lenses/variational.en.md +48 -0
  143. package/lenses/variational.md +48 -0
  144. package/package.json +9 -3
  145. package/references/books/abstract-algebra.md +5 -5
  146. package/references/books/algebraic-geometry-rising-sea.md +5 -5
  147. package/references/books/differential-geometry.md +3 -3
  148. package/references/books/matrix-analysis.md +4 -4
  149. package/references/books/micro-lie-theory.md +3 -3
  150. package/references/books/optimization-ml.md +1 -1
  151. package/references/books/smooth-manifolds.md +3 -3
  152. package/references/gpu-friendly-math.en.md +8 -8
  153. package/references/gpu-friendly-math.md +2 -2
  154. package/references/inspiration.en.md +1 -1
  155. package/references/inspiration.md +2 -2
  156. package/skills/math-research-activator/SKILL.en.md +161 -106
  157. package/skills/math-research-activator/SKILL.md +162 -110
  158. package/skills/math-research-activator/original-texts.en.md +9 -9
  159. package/skills/math-research-activator/original-texts.md +11 -11
  160. package/commands/abstraction.md +0 -11
  161. package/commands/algorithmic-thinking.md +0 -11
  162. package/commands/axiomatization.md +0 -11
  163. package/commands/causal-inference.md +0 -11
  164. package/commands/discrete-combinatorial.md +0 -11
  165. package/commands/game-theory.md +0 -11
  166. package/commands/induction-analogy.md +0 -11
  167. package/commands/information-theory.md +0 -11
  168. package/commands/logic-deduction.md +0 -11
  169. package/commands/modeling.md +0 -11
  170. package/commands/optimization.md +0 -11
  171. package/commands/probability-statistics.md +0 -11
  172. package/commands/symmetry-invariance.md +0 -11
  173. package/commands/topological-thinking.md +0 -11
  174. package/commands/transformation.md +0 -11
  175. package/skills/abstraction/SKILL.en.md +0 -117
  176. package/skills/abstraction/SKILL.md +0 -121
  177. package/skills/abstraction/original-texts.en.md +0 -163
  178. package/skills/abstraction/original-texts.md +0 -175
  179. package/skills/algorithmic-thinking/SKILL.en.md +0 -132
  180. package/skills/algorithmic-thinking/SKILL.md +0 -138
  181. package/skills/algorithmic-thinking/original-texts.en.md +0 -253
  182. package/skills/algorithmic-thinking/original-texts.md +0 -256
  183. package/skills/axiomatization/SKILL.en.md +0 -144
  184. package/skills/axiomatization/SKILL.md +0 -151
  185. package/skills/axiomatization/original-texts.en.md +0 -154
  186. package/skills/axiomatization/original-texts.md +0 -160
  187. package/skills/causal-inference/SKILL.en.md +0 -147
  188. package/skills/causal-inference/SKILL.md +0 -151
  189. package/skills/causal-inference/original-texts.en.md +0 -136
  190. package/skills/causal-inference/original-texts.md +0 -167
  191. package/skills/discrete-combinatorial/SKILL.en.md +0 -124
  192. package/skills/discrete-combinatorial/SKILL.md +0 -131
  193. package/skills/discrete-combinatorial/original-texts.en.md +0 -184
  194. package/skills/discrete-combinatorial/original-texts.md +0 -185
  195. package/skills/game-theory/SKILL.en.md +0 -117
  196. package/skills/game-theory/SKILL.md +0 -123
  197. package/skills/game-theory/original-texts.en.md +0 -131
  198. package/skills/game-theory/original-texts.md +0 -131
  199. package/skills/induction-analogy/SKILL.en.md +0 -145
  200. package/skills/induction-analogy/SKILL.md +0 -152
  201. package/skills/induction-analogy/original-texts.en.md +0 -140
  202. package/skills/induction-analogy/original-texts.md +0 -154
  203. package/skills/information-theory/SKILL.en.md +0 -134
  204. package/skills/information-theory/SKILL.md +0 -140
  205. package/skills/information-theory/original-texts.en.md +0 -127
  206. package/skills/information-theory/original-texts.md +0 -127
  207. package/skills/logic-deduction/SKILL.en.md +0 -130
  208. package/skills/logic-deduction/SKILL.md +0 -135
  209. package/skills/logic-deduction/original-texts.en.md +0 -160
  210. package/skills/logic-deduction/original-texts.md +0 -173
  211. package/skills/modeling/SKILL.en.md +0 -135
  212. package/skills/modeling/SKILL.md +0 -139
  213. package/skills/modeling/original-texts.en.md +0 -162
  214. package/skills/modeling/original-texts.md +0 -165
  215. package/skills/optimization/SKILL.en.md +0 -129
  216. package/skills/optimization/SKILL.md +0 -135
  217. package/skills/optimization/original-texts.en.md +0 -167
  218. package/skills/optimization/original-texts.md +0 -168
  219. package/skills/probability-statistics/SKILL.en.md +0 -146
  220. package/skills/probability-statistics/SKILL.md +0 -151
  221. package/skills/probability-statistics/original-texts.en.md +0 -191
  222. package/skills/probability-statistics/original-texts.md +0 -193
  223. package/skills/symmetry-invariance/SKILL.en.md +0 -135
  224. package/skills/symmetry-invariance/SKILL.md +0 -139
  225. package/skills/symmetry-invariance/original-texts.en.md +0 -206
  226. package/skills/symmetry-invariance/original-texts.md +0 -221
  227. package/skills/topological-thinking/SKILL.en.md +0 -124
  228. package/skills/topological-thinking/SKILL.md +0 -128
  229. package/skills/topological-thinking/original-texts.en.md +0 -134
  230. package/skills/topological-thinking/original-texts.md +0 -164
  231. package/skills/transformation/SKILL.en.md +0 -120
  232. package/skills/transformation/SKILL.md +0 -124
  233. package/skills/transformation/original-texts.en.md +0 -204
  234. package/skills/transformation/original-texts.md +0 -216
@@ -1,221 +0,0 @@
1
- # 数学出处与经典文献 / Mathematical Sources and Classic Texts
2
-
3
- ## 群论 / Group Theory (Galois, 1830s)
4
-
5
- **Évariste Galois**(1811-1832)在 20 岁死于决斗前夜,开创了群论:
6
-
7
- > "一个方程是否能用根式求解,取决于其根的置换群的结构。"
8
- > "Whether an equation can be solved by radicals depends on the structure of the permutation group of its roots."
9
-
10
- **群的定义**:一个集合 G 配备二元运算 ·,满足:
11
- 1. **封闭性**:∀a,b ∈ G, a·b ∈ G
12
- 2. **结合律**:∀a,b,c ∈ G, (a·b)·c = a·(b·c)
13
- 3. **单位元**:∃e ∈ G, ∀a ∈ G, e·a = a·e = a
14
- 4. **逆元**:∀a ∈ G, ∃a⁻¹ ∈ G, a·a⁻¹ = a⁻¹·a = e
15
-
16
- **群是对称性的数学语言。**
17
-
18
- ## 伽罗瓦理论基本定理 / Fundamental Theorem of Galois Theory
19
-
20
- 伽罗瓦理论的核心是以下深刻对应:
21
-
22
- > 给定域扩张 L/K,若 L 是 K 的伽罗瓦扩张,则伽罗瓦群 Gal(L/K) 的子群与 L/K 的中间域之间存在一一对应(反序保持)。
23
- > Given a Galois extension L/K, there is an order-reversing bijection between subgroups of Gal(L/K) and intermediate fields between K and L.
24
-
25
- 这揭示了 **代数结构(群)与域结构(域扩张)的深层对偶性**:
26
- - 子群 H ↔ 固定域 L^H
27
- - 正规子群 ↔ 伽罗瓦子扩张
28
- - 子群的指数 ↔ 中间域的次数
29
-
30
- **历史意义**:这一对应将 "方程可解性" 转化为 "群的可解性"——可解群对应根式可解方程,从而彻底解决了五次及以上方程不可根式求解的问题。
31
-
32
- ## Klein 爱尔兰根纲领 / Klein's Erlangen Program (1872)
33
-
34
- > "一种几何学就是研究一个变换群作用下的不变量。"
35
- > "A geometry is the study of invariants under the action of a transformation group."
36
-
37
- Klein 提出用群论来统一各种几何学:
38
- - 欧几里得几何 = 等距变换下的不变量
39
- - 仿射几何 = 仿射变换下的不变量
40
- - 射影几何 = 射影变换下的不变量
41
-
42
- **深远影响**:爱尔兰根纲领不仅统一了当时的几何学,更预示了 20 世纪数学中 "结构决定几何" 的核心思想——从拓扑到微分几何,均可纳入 "群+不变量" 的框架。
43
-
44
- ## Lie 群与 Lie 代数 / Lie Groups and Lie Algebras (1870s)
45
-
46
- **Sophus Lie**(1842-1899)将 Galois 的有限群思想推广到连续变换群:
47
-
48
- > "连续对称性应由无穷小生成元来刻画——Lie 代数是 Lie 群的局部线性化。"
49
- > "Continuous symmetries are captured by infinitesimal generators; the Lie algebra is the local linearization of the Lie group."
50
-
51
- 关键概念:
52
- - **Lie 群**:既是群又是光滑流形的结构(如 SO(n)、SU(n)、GL(n,R))
53
- - **Lie 代数**:Lie 群在单位元处的切空间,配备 Lie 括号 [X,Y]
54
- - **指数映射** exp: g → G,从无穷小生成元恢复全局对称性
55
-
56
- **分类里程碑**:半单 Lie 代数的 Cartan 分类(1894)给出四种无限族 A_n, B_n, C_n, D_n 和五个例外代数 G₂, F₄, E₆, E₇, E₈——这是连续对称性世界中的 "元素周期表"。
57
-
58
- **物理意义**:粒子物理中的规范群 SU(3)×SU(2)×U(1) 正是 Lie 群理论的直接应用。
59
-
60
- ## Noether 定理 / Noether's Theorem (1915)
61
-
62
- > Emmy Noether(1882-1935):每一个连续对称性都对应一个守恒量。
63
- > Every continuous symmetry corresponds to a conserved quantity.
64
-
65
- | 对称性 / Symmetry | 守恒量 / Conserved Quantity |
66
- |-------------------|---------------------------|
67
- | 时间平移不变性 | 能量守恒 |
68
- | 空间平移不变性 | 动量守恒 |
69
- | 旋转不变性 | 角动量守恒 |
70
- | 规范不变性 | 电荷守恒 |
71
-
72
- **意义**:这是物理学中最深刻的定理之一——它揭示了自然界的对称性与守恒律之间的深层联系。Noether 在 1915 年为 Hilbert 解决广义相对论中的能量守恒问题而证明此定理,其影响远超最初的动机。
73
-
74
- ## 表示论 / Representation Theory (Frobenius, Schur, 1896-1905)
75
-
76
- > "要理解一个群,最好的方式是看它如何作用于向量空间。"
77
- > "To understand a group, the best way is to see how it acts on vector spaces."
78
-
79
- **Georg Frobenius**(1849-1917)在 1896 年发明了群的特征标理论,**Issai Schur**(1875-1941)进一步发展了不可约表示的分类:
80
-
81
- - **群表示**:同态 ρ: G → GL(V),将抽象群元素映射为线性变换
82
- - **特征标** χ(g) = Tr(ρ(g)),是表示的 "指纹"——不同不可约表示有不同特征标
83
- - **不可约表示**:不能进一步分解的表示,是表示论的基本构件
84
-
85
- **核心定理**:
86
- - Maschke 定理:有限群的表示在适当条件下完全可分解为不可约表示之和
87
- - Schur 引理:不可约表示之间的同态极为简单(零或同构)
88
- - 特征标正交关系:不同不可约表示的特征标彼此正交——这给出了分类的算术约束
89
-
90
- **应用遍及数学与物理**:从有限群的分类到量子力学中的角动量理论,表示论是将抽象对称性转化为可计算量的桥梁。
91
-
92
- ## 有限单群分类 / Classification of Finite Simple Groups (1980s-2004)
93
-
94
- > "有限单群的分类是数学史上最庞大的定理——其证明跨越数十年、数百篇论文、数百位数学家。"
95
- > "The classification of finite simple groups is the most enormous theorem in mathematical history—its proof spans decades, hundreds of papers, and hundreds of mathematicians."
96
-
97
- **有限单群**是群论的 "原子"——不可分解为更小的正规子群的群。分类定理断言:
98
-
99
- **所有有限单群属于以下类别**:
100
- 1. **循环群** Z_p(p 为素数)——最简单的单群
101
- 2. **交错群** A_n(n ≥ 5)——置换群的核心
102
- 3. **Lie 型群**(16 个无限族)——包括 Chevalley 群、扭曲群等
103
- 4. **26 个散在单群**——最大的是 **Monster 群** M,阶 ≈ 8×10⁵³
104
-
105
- **ATLAS of Finite Groups**(1985)是这一分类的标准参考书,记录了所有单群的结构数据。
106
-
107
- **Monster 群的奇迹**:Monster 与模形式之间的惊人联系(McKay 的 "月光猜想"、Borcherds 的证明,1998)揭示了有限群与数论的深层联系——Borcherds 因此获 Fields 奖。
108
-
109
- ## Burnside 引理 / Burnside's Lemma
110
-
111
- > 一个有限群 G 作用在集合 X 上,轨道数 = (1/|G|) Σ|X^g|,其中 X^g 是在变换 g 下不变的元素集合。
112
-
113
- **应用**:计数问题中利用对称性简化——不需要逐个计数,只需计算平均固定点数。此结果虽以 Burnside 命名,实则由 Cauchy(1845)和 Frobenius(1887)更早发现——数学命名的惯例并不总是公正的。
114
-
115
- ## Coxeter 群 / Coxeter Groups (1934)
116
-
117
- **H.S.M. Coxeter**(1907-2003)系统研究了由反射生成的离散对称群:
118
-
119
- > "Coxeter 群是由反射生成的群,其生成关系仅涉及阶数——这是离散几何对称性的终极分类框架。"
120
- > "Coxeter groups are generated by reflections, with relations specified only by orders—the ultimate classification framework for discrete geometric symmetry."
121
-
122
- 关键结构:
123
- - **Coxeter 图**:每个节点代表一个反射生成元,边标注阶数 m_ij
124
- - **有限 Coxeter 群分类**:与半单 Lie 代数的 Cartan 分类平行——A_n, B_n, D_n, H₃, H₄, I₂(n) 等
125
- - **正多面体与正多胞体**的对称群均为 Coxeter 群
126
-
127
- **H₄** 群(阶 14400)是 4 维 120 -cell / 600-cell 的对称群,是有限 Coxeter 群中最精妙的例子之一。
128
-
129
- **影响**:Coxeter 群理论统一了正多面体理论、晶体学、Lie 理论中的 Weyl 群,以及组合学中的 Bruhat 分解。
130
-
131
- ## 晶体学群与 230 空间群 / Crystallographic Groups and 230 Space Groups
132
-
133
- > "晶体对称性的数学分类——230 个空间群穷尽了三维晶体所有可能的对称类型。"
134
- > "The mathematical classification of crystal symmetry—the 230 space groups exhaust all possible symmetry types for three-dimensional crystals."
135
-
136
- **历史**:
137
- - **32 个晶体点群**:由 Schoenflies(1891)和 Fedorov(1890)独立分类
138
- - **230 个空间群**:含平移对称(螺旋轴、滑移面)的完整分类,由 Fedorov 和 Schoenflies 完成
139
- - **二维情形**:17 个壁纸群(wallpaper groups),分类更为简洁
140
-
141
- **数学意义**:这是 "用群论分类自然结构" 的经典范例——晶体学直接验证了爱尔兰根纲领的精神。国际晶体学表(International Tables for Crystallography)是这一分类的标准参考。
142
-
143
- **四维及以上**:高维晶体学群的数量急剧增长(4 维有 4783 个空间群),展示了维数增加后对称结构的爆炸性复杂化。
144
-
145
- ## 自发对称性破缺 / Spontaneous Symmetry Breaking (Goldstone 1961; Higgs 1964)
146
-
147
- > "当系统的基态不继承其定律的对称性时,对称性被自发打破——这是物理学中对称性最戏剧性的表现。"
148
- > "When the ground state of a system does not inherit the symmetry of its laws, the symmetry is spontaneously broken—the most dramatic manifestation of symmetry in physics."
149
-
150
- **Goldstone 定理**(1961):连续对称性的自发破缺必然产生无质量的激发态(Goldstone 玻色子)。
151
-
152
- **Higgs 机制**(1964):当规范对称性被自发破缺时,Goldstone 玻色子被 "吃掉",转化为规范场的质量——这正是粒子物理 Standard Model 中 W/Z 粒子获得质量的机制。2012 年 LHC 发现 Higgs 粒子,确认了这一理论。
153
-
154
- **数学结构**:设群 G 作用于势能 V(φ),若 G 对称但极小值点 φ₀ 仅被 G 的子群 H 保持,则对称性从 G 破缺到 H,产生 dim(G/H) 个 Goldstone 模。
155
-
156
- **哲学意义**:自然定律是对称的,但自然界可以不对称——对称性不保证对称的现实,只保证对称的可能性。
157
-
158
- ## 规范对称性 / Gauge Symmetry (Yang-Mills, 1954)
159
-
160
- > "规范对称性是局域的——对称变换可以在时空的每个点独立选取。这要求引入规范场来维持一致性。"
161
- > "Gauge symmetry is local—the symmetry transformation can be chosen independently at each spacetime point. This demands the introduction of gauge fields to maintain consistency."
162
-
163
- **Yang-Mills 理论**(1954):杨振宁与 Mills 将电磁规范原理(U(1))推广到非阿贝尔群(SU(2)),开创了非阿贝尔规范场论。
164
-
165
- **Standard Model 的规范群**:SU(3)_C × SU(2)_L × U(1)_Y
166
- - SU(3):色对称性 → 强相互作用(QCD)
167
- - SU(2)×U(1):电弱对称性 → 经 Higgs 破缺后给出电磁 U(1)
168
-
169
- **Yang-Mills 存性与质量间隙**:Clay 数学研究所的七大千禧问题之一——证明 Yang-Mills 理论的质量间隙至今未解决,是数学物理最深层的开放问题之一。
170
-
171
- ## 宇称不守恒 / Parity Violation (Wu Experiment, 1957)
172
-
173
- > "物理定律可能在镜像世界中不成立——这打破了自然界最基本的直觉对称性。"
174
- > "Physical laws may not hold in the mirror world—this shatters the most intuitive symmetry of nature."
175
-
176
- **历史**:李政道与杨振宁(1956)提出弱相互作用可能不守恒宇称;**吴健雄**(Chien-Shiung Wu)在 1957 年用 Co-60 β 衰变实验确认了这一预言。
177
-
178
- **意义**:在此之前,物理学家普遍相信宇称守恒(左右对称)是自然的基本原理。Wu 实验证明弱相互作用区分左右——这是对称性并非普遍有效的第一个实验证据,深刻改变了物理学家的世界观。
179
-
180
- **后续**:宇称破缺导致引入 CP 对称性;1964 年 Cronin-Fitch 实验发现 CP 也破缺,进一步缩小了自然界的对称性。
181
-
182
- ## CPT 对称性 / CPT Symmetry in Particle Physics
183
-
184
- > "CPT 定理断言:任何 Lorentz 不变的局部量子场论必须在 C(电荷共轭)、P(宇称)、T(时间反演)的联合变换下不变。"
185
- > "The CPT theorem asserts: any Lorentz-invariant local quantum field theory must be invariant under the combined C (charge conjugation), P (parity), and T (time reversal) transformation."
186
-
187
- **CPT 的分量**:
188
- - **C**(电荷共轭):粒子 ↔ 反粒子
189
- - **P**(宇称):空间反演(镜像)
190
- - **T**(时间反演):时间流向逆转
191
-
192
- 单独的 C、P、T 均可被打破(弱相互作用破 P 和 C,K 介子衰变破 CP),但 **CPT 联合必须守恒**——这是量子场论最坚固的对称性壁垒。若 CPT 被实验打破,将意味着量子场论的基础架构需要重建。
193
-
194
- ## Weyl 的对称性哲学 / Weyl's Symmetry (1952)
195
-
196
- **Hermann Weyl**(1885-1955)在晚年著作 *Symmetry*(1952)中给出了对称性的哲学沉思:
197
-
198
- > "对称性,无论广义还是狭义,都是一种理念,人类自古以来就试图借此理解和创造秩序、美与完美。"
199
- > "Symmetry, as wide or as narrow as you may define its meaning, is one idea by which man through the ages has tried to comprehend and create order, beauty, and perfection."
200
-
201
- Weyl 从艺术(装饰纹样、建筑)、自然(晶体、花朵)、数学(群论)和物理(相对论、量子力学)四个维度展开讨论。此书将数学的严谨与哲学的深邃融为一体,是 "数学人文传统" 的典范之作。
202
-
203
- ## 不变量的力量 / The Power of Invariants
204
-
205
- > "在变化中找到不变的东西,这是理解世界的捷径。"
206
- > "Finding what does not change amid change is the shortcut to understanding the world."
207
-
208
- 经典案例:
209
- - **Euler 示性数**:无论怎样连续变形多面体,V - E + F = 2 不变
210
- - **拓扑亏格**:甜甜圈和咖啡杯有相同的拓扑结构(一个洞)
211
- - **图灵机停机问题的不可判定性**:无论算法如何改进,某些问题本质上不可计算
212
-
213
- ## 对称性与日常生活 / Symmetry and Everyday Life
214
-
215
- - **时间对称**:如果每天的安排有对称性(如早起-工作-休息的循环),生活会更高效
216
- - **信息对称**:博弈中信息对称是公平的前提,信息不对称是策略的来源
217
- - **结构对称**:组织结构中的对称性(如对称的汇报关系)通常意味着稳定
218
-
219
- ---
220
-
221
- **总结 / Summary**:对称性与不变量是数学与物理的核心主线。从 Galois 的有限群到 Lie 的连续群,从 Klein 的几何纲领到 Noether 的守恒定律,从表示论的抽象结构到粒子物理的规范对称——群论提供了统一的语法,不变量提供了语义。这条主线贯穿纯数学与应用科学,是人类理解世界秩序的最强有力的工具之一。
@@ -1,124 +0,0 @@
1
- ---
2
- name: topological-thinking
3
- description: |
4
- 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.
5
- ---
6
-
7
- # 🌀 Topological Thinking
8
-
9
- > "You can stretch and bend but never tear — truly important properties survive continuous deformation."
10
- >
11
- > — Topology, Homology, Topological Data Analysis
12
-
13
- ## Core Principle
14
-
15
- Topology studies properties invariant under continuous deformation. A donut and a coffee cup are topologically equivalent — both have one hole. The core insight: when exact distances are unimportant, topology captures essential structure — connectivity, holes, dimension. In the context of this skill set, topological thinking directly underpins cellular-layer diffusion attention and Čech cohomology regularization (see the activator examples).
16
-
17
- > **Mathematical Formalization**
18
- >
19
- > **Homeomorphism**: A continuous bijection with continuous inverse $h: X\to Y$; the standard for topological equivalence. **Homotopy**: The deformation process itself is continuous; coarser than homeomorphism. **Diffeomorphism**: A smooth bijection with smooth inverse; the standard of differential topology.
20
- >
21
- > **Euler characteristic** $\chi=V-E+F$: For convex polyhedra $\chi=2$, for the torus $\chi=0$; together with orientability, it is a complete topological invariant for surfaces.
22
- >
23
- > **Fundamental group** $\pi_1(X)$: Based loops modulo homotopy deformation; $\pi_1(S^1)=\mathbb{Z}$ (winding number), $\pi_1(S^2)=0$ (all loops are contractible), $\pi_1(\text{torus})=\mathbb{Z}\times\mathbb{Z}$.
24
- >
25
- > **Homology groups** $H_n(X)$: Count $n$-dimensional "holes": $H_0$ = connected components, $H_1$ = 1-dimensional holes (loops), $H_2$ = 2-dimensional voids. **Betti numbers** $\beta_n=\text{rank}\, H_n$: $\beta_0$ = number of connected components, $\beta_1$ = number of 1-dimensional holes, $\beta_2$ = number of 2-dimensional voids.
26
- >
27
- > **Simplicial complex**: A topological space model assembled from simplices (points / line segments / triangles). **Filtration**: Progressively increase the neighborhood radius; at each radius, construct a simplicial complex. **Persistent homology**: Compute homology groups along the filtration; long bars = genuine topological features, short bars = noise.
28
- >
29
- > **Cohomology** $H^n(X)$: The dual of homology (functorial, carries a ring structure). Čech cohomology detects global consistency obstructions from local data — $H^1\neq 0$ means local fragments cannot be assembled into a globally consistent object (this is precisely the algebraic criterion for "hallucination").
30
- >
31
- > See `original-texts.md` for details.
32
-
33
- ## GPU-Friendliness (Cross-Cutting Check)
34
-
35
- Whether topological structures can run on GPU depends on "locality" and "tensorizability" — pass through the eight-dimensional gate in `../../references/gpu-friendly-math.md`:
36
-
37
- - **Local topological quantities → friendly**: Local homology or restriction maps per edge / per patch are small computations; batch-parallelizable and map to small GEMM operations.
38
- - **Čech cohomology regularization**: Used as a local consistency loss — cheap, fusible (friendly); this is the key component of Tropical Sheaf Attention.
39
- - **Persistent homology (TDA)**: Constructing simplicial complexes and boundary matrix reduction often involves irregular sparsity / serial reduction — a classic "beautiful but intractable" case → reform via approximation / sampling / distributed computation.
40
- - **Global exact homology computation**: Symbolic computation, non-trainable, not friendly.
41
- - **Anti-pattern**: Embedding structures requiring global exact topological determination into the forward pass — intractable.
42
-
43
- Eight-dimensional minimum assessment (formal terms): **Tensorization** — whether topological quantities admit local batching; **GEMM-mappability** — whether restriction maps, boundary operators, and local Laplacians fall into matrix multiplication; **Complexity** — whether persistent homology / boundary matrix reduction is superlinear; **Memory and KV-Cache** — whether simplicial complexes, boundary matrices, and cover overlaps are compressible; **Low-precision stability** — whether small singular values, sorting, and thresholding are numerically robust; **Parallelism and communication** — whether cover patches / local complexes are independent; **Sparse structure** — whether the complex / graph is structurally sparse; **Operator fusion** — whether local consistency losses can be fused.
44
-
45
- > Use in conjunction with `../../references/books/algebraic-geometry-rising-sea.md` (sheaves / Čech cohomology → attention and hallucination regularization), `smooth-manifolds.md`, `differential-geometry.md`.
46
-
47
- ## When NOT to Use
48
-
49
- - **Exact measurements are needed** — topology only captures qualitative structure (connectivity, holes); it provides no distances or angles.
50
- - **Metric properties are central** — topologically equivalent spaces can have completely different metric behavior.
51
- - **Purely discrete structures with no continuity** — topology is grounded in continuity.
52
- - **Precise numerical decisions are required** (the question is "how much" rather than "is it connected") — the topological perspective is too coarse.
53
-
54
- ## When to Use
55
-
56
- - Need qualitative classification (not "how large" or "how far," but "is it connected" or "how many holes"); shape matters more than size.
57
- - Need robustness analysis (invariants guarantee that properties do not vanish under continuous perturbation).
58
- - Data has shape features that standard statistics cannot capture (clusters, voids, ring structures).
59
- - Need invariants that survive deformation (topological insulators, topological error correction).
60
- - **Design global consistency criteria for attention / representation learning** (Čech cohomology as hallucination regularizer, sheaf diffusion).
61
-
62
- ## Method
63
-
64
- ### Step 1: Identify Continuity Requirements
65
- Specify the equivalence standard: homeomorphism / homotopy / diffeomorphism. Determine what may vary (distances, angles, sizes) and what must remain fixed (number of holes, connectivity, dimension). Core distinction: variable (surface / metric) vs. invariant (structure / topology).
66
-
67
- ### Step 2: Find Topological Invariants
68
- - **Euler characteristic** $\chi=V-E+F$ (together with orientability, a complete invariant for surfaces).
69
- - **Connectivity** (path-connectedness): Number of connected components $= \text{rank}\, H_0$; **Compactness** (Heine-Borel: compact in $\mathbb{R}^n$ $\iff$ bounded and closed).
70
- - **Fundamental group** $\pi_1(X)$; **Homology groups** $H_n$ ($H_0$ = components, $H_1$ = 1-dimensional holes, $H_2$ = 2-dimensional voids); **Betti numbers** $\beta_n=\text{rank}\, H_n$.
71
- - **Cohomology** $H^n$ (dual of homology, functorial; Čech cohomology detects global consistency obstructions).
72
-
73
- ### Step 3: Classify Using Invariants
74
- Same $\chi$ → same surface type; same $\pi_1$ → same homotopy type; compact surfaces are completely classified by orientability + $\chi$. Classification relies on invariants — look past the surface to the structure.
75
-
76
- ### Step 4: Construct Topological Models
77
- - **Data**: For point clouds, construct a filtration; compute the simplicial complex and homology at each radius; extract persistent homology (barcode / persistence diagram; long bars = genuine features, short bars = noise).
78
- - **Networks**: Connected components (reachability), cycles (redundant paths), clustering coefficients; network topology determines information propagation and robustness.
79
- - **Systems**: Phase-space attractor topology — fixed points (points), limit cycles ($S^1$), chaotic attractors (fractals).
80
- - **Algorithms**: Use sheaves / Čech cohomology to make the question "can local fragments be assembled into a globally consistent object" into a computable algebraic obstruction.
81
-
82
- ### Step 5: Verify Topological Equivalence
83
- Attempt to construct an explicit homeomorphism / homotopy equivalence; check that invariants match. Different invariants → topologically distinct (reliable negative); all invariants match → possibly equivalent (invariants may be incomplete; cannot confirm).
84
-
85
- ### Step 6: Topological Reasoning and Applications
86
- - "$\pi_1(X)\neq 0$ → non-contractible loops exist → the system has unreachable states"
87
- - "$X$ is connected → paths exist → transitions are always possible"
88
- - "$\beta_1=3$ → the data has 3 significant ring structures"
89
- - "$H^1\neq 0$ → local fragments are globally inconsistent → hallucination / inconsistency signal"
90
-
91
- ## Common Errors
92
-
93
- | Error | Critique | Correct Approach |
94
- |---|---|---|
95
- | Confusing topological equivalence with geometric similarity | Topological equivalence only requires homeomorphism, not metric proximity | Distinguish "topologically identical" from "geometrically similar" |
96
- | Ignoring dimensional differences | $\mathbb{R}^1$ and $\mathbb{R}^2$ are not homeomorphic (invariance of domain, Brouwer) | Dimensional invariance is a mandatory check |
97
- | Confusing connected with path-connected | Connected $\neq$ path-connected (topologist's sine curve); path-connected $\Rightarrow$ connected, but not vice versa | Explicitly label which notion of connectivity is used |
98
- | Over-reliance on a single invariant | $\chi$ alone cannot distinguish all spaces (many spaces share $\chi=0$) | Use combinations of invariants; annotate uncertainty when incomplete |
99
- | Ignoring local vs. global topology | Local connectivity does not guarantee global connectivity; local homeomorphism $\neq$ global homeomorphism | Check local and global invariants separately |
100
- | Confusing homology with homotopy | $H_1(X)$ is the abelianization of $\pi_1(X)$; homology is a coarsening of homotopy | Specify whether $\pi_1$ (homotopy) or $H_1$ (homology) is used |
101
- | Embedding global exact homology into training | Persistent homology / symbolic homology involves irregular sparsity and serial reduction; intractable | Use local cohomology losses / approximation / sampling; pass through the GPU eight-dimensional gate |
102
-
103
- ## Operating Procedure
104
-
105
- The output must include:
106
-
107
- 1. **Continuity requirements**: `[Homeomorphism / Homotopy / Diffeomorphism], variable: [distances / angles / sizes], invariant: [hole count / connectivity / dimension]`
108
- 2. **Invariants**: `$\chi=$ , $\pi_1=$ , $\beta_n=$ , $H_0=$ , $H_1=$ , $H_2=$ , compactness = [yes / no]`
109
- 3. **Classification**: `[Orientable / Non-orientable], $\chi=$ → [surface type]; $\pi_1=$ → [homotopy type]`
110
- 4. **Topological model**: `[Simplicial complex / Filtration / Network graph / Phase space / Sheaf-Čech], construction method: [description]`
111
- 5. **Equivalence verification**: `[Invariants all match / differences found], conclusion: [equivalent / distinct / uncertain]`
112
- 6. **Reasoning**: `Because [topological property] → [conclusion]`
113
- 7. **[GPU Feasibility]** (if used for algorithm design) — whether topological quantities are local and batchable / GEMM-mappable; pass through the eight-dimensional gate; reform global exact homology via approximation.
114
-
115
- **Output must not consist of analysis alone without conclusions.**
116
-
117
- ## Relations to Other Skills
118
-
119
- - **Symmetry and Invariance**: Topological invariants are invariants under continuous transformations — sharing the "find the invariants" logic, but topology focuses on continuous deformation rather than group actions.
120
- - **Abstraction Thinking**: Topology is the abstraction of spatial structure — remove the metric, keep only open sets and continuity.
121
- - **Transformation Thinking**: Continuous deformation is a special class of transformations; homeomorphisms and homotopies are both transformations.
122
- - **Modeling Thinking**: TDA is data modeling — use persistent homology to build topological models of point clouds and discover shapes that statistics misses.
123
- - **Probability and Statistics**: TDA complements statistical shape analysis — statistics focuses on means and variances (quantities), TDA focuses on connectivity and voids (qualities); they are complementary.
124
- - **Modern Mathematics Activation**: `../../references/books/algebraic-geometry-rising-sea.md` (sheaves / Čech cohomology → sheaf attention and hallucination regularization), `smooth-manifolds.md`, `differential-geometry.md`.
@@ -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.