math-skill 3.0.0 → 3.1.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 (183) hide show
  1. package/README.en-US.md +50 -30
  2. package/README.md +26 -6
  3. package/agents/math-critic.en.md +30 -28
  4. package/agents/math-critic.md +30 -30
  5. package/commands/ask.en.md +15 -0
  6. package/commands/ask.md +6 -1
  7. package/design-patterns/attention/equivariant-attention.en.md +17 -11
  8. package/design-patterns/attention/equivariant-attention.md +16 -10
  9. package/design-patterns/attention/geometry-aware-attention.en.md +11 -11
  10. package/design-patterns/attention/geometry-aware-attention.md +10 -10
  11. package/design-patterns/attention/information-bottleneck-attention.en.md +40 -20
  12. package/design-patterns/attention/information-bottleneck-attention.md +40 -20
  13. package/design-patterns/attention/projection-attention.en.md +12 -12
  14. package/design-patterns/attention/projection-attention.md +11 -11
  15. package/design-patterns/attention/spectral-attention.en.md +27 -13
  16. package/design-patterns/attention/spectral-attention.md +26 -12
  17. package/design-patterns/compression/leverage-score-selection.en.md +14 -14
  18. package/design-patterns/compression/leverage-score-selection.md +14 -14
  19. package/design-patterns/compression/low-rank-kv-cache.en.md +40 -13
  20. package/design-patterns/compression/low-rank-kv-cache.md +39 -13
  21. package/design-patterns/compression/spectral-token-pruning.en.md +17 -15
  22. package/design-patterns/compression/spectral-token-pruning.md +17 -15
  23. package/design-patterns/compression/topology-preserving-compression.en.md +11 -11
  24. package/design-patterns/compression/topology-preserving-compression.md +11 -11
  25. package/design-patterns/loss/constraint-penalty.en.md +9 -5
  26. package/design-patterns/loss/constraint-penalty.md +10 -7
  27. package/design-patterns/loss/contrastive-loss.en.md +38 -12
  28. package/design-patterns/loss/contrastive-loss.md +39 -13
  29. package/design-patterns/loss/information-bottleneck-loss.en.md +6 -6
  30. package/design-patterns/loss/information-bottleneck-loss.md +7 -7
  31. package/design-patterns/loss/orthogonality-loss.en.md +25 -18
  32. package/design-patterns/loss/orthogonality-loss.md +25 -19
  33. package/design-patterns/loss/variational-loss.en.md +5 -5
  34. package/design-patterns/loss/variational-loss.md +6 -6
  35. package/design-patterns/overview.en.md +36 -0
  36. package/design-patterns/overview.md +36 -0
  37. package/design-patterns/representation/equivariant-split.en.md +5 -5
  38. package/design-patterns/representation/equivariant-split.md +5 -6
  39. package/design-patterns/representation/manifold-representation.en.md +13 -13
  40. package/design-patterns/representation/manifold-representation.md +14 -15
  41. package/design-patterns/representation/shared-private-decomposition.en.md +13 -8
  42. package/design-patterns/representation/shared-private-decomposition.md +13 -10
  43. package/design-patterns/representation/subspace-alignment.en.md +13 -13
  44. package/design-patterns/representation/subspace-alignment.md +13 -13
  45. package/design-patterns/routing/graph-routing.en.md +12 -12
  46. package/design-patterns/routing/graph-routing.md +12 -12
  47. package/design-patterns/routing/moe-routing.en.md +13 -13
  48. package/design-patterns/routing/moe-routing.md +13 -15
  49. package/design-patterns/routing/optimal-transport-routing.en.md +6 -6
  50. package/design-patterns/routing/optimal-transport-routing.md +7 -7
  51. package/design-patterns/routing/spectral-clustering-routing.en.md +27 -16
  52. package/design-patterns/routing/spectral-clustering-routing.md +27 -18
  53. package/knowledge-base/differential-geometry/connection.en.md +17 -2
  54. package/knowledge-base/differential-geometry/connection.md +17 -2
  55. package/knowledge-base/differential-geometry/curvature.en.md +14 -1
  56. package/knowledge-base/differential-geometry/curvature.md +14 -1
  57. package/knowledge-base/differential-geometry/geodesic.en.md +16 -2
  58. package/knowledge-base/differential-geometry/geodesic.md +16 -2
  59. package/knowledge-base/differential-geometry/index.en.md +52 -0
  60. package/knowledge-base/differential-geometry/index.md +52 -0
  61. package/knowledge-base/differential-geometry/manifold.en.md +15 -2
  62. package/knowledge-base/differential-geometry/manifold.md +15 -2
  63. package/knowledge-base/differential-geometry/metric-tensor.en.md +16 -2
  64. package/knowledge-base/differential-geometry/metric-tensor.md +17 -3
  65. package/knowledge-base/differential-geometry/tangent-space.en.md +17 -3
  66. package/knowledge-base/differential-geometry/tangent-space.md +17 -3
  67. package/knowledge-base/information-geometry/fisher-metric.en.md +32 -13
  68. package/knowledge-base/information-geometry/fisher-metric.md +32 -13
  69. package/knowledge-base/information-geometry/index.en.md +45 -0
  70. package/knowledge-base/information-geometry/index.md +45 -0
  71. package/knowledge-base/information-geometry/natural-gradient.en.md +24 -10
  72. package/knowledge-base/information-geometry/natural-gradient.md +24 -10
  73. package/knowledge-base/lie-theory/equivariance.en.md +18 -3
  74. package/knowledge-base/lie-theory/equivariance.md +18 -3
  75. package/knowledge-base/lie-theory/group-action.en.md +16 -2
  76. package/knowledge-base/lie-theory/group-action.md +16 -2
  77. package/knowledge-base/lie-theory/index.en.md +52 -0
  78. package/knowledge-base/lie-theory/index.md +52 -0
  79. package/knowledge-base/lie-theory/lie-algebra.en.md +17 -2
  80. package/knowledge-base/lie-theory/lie-algebra.md +17 -2
  81. package/knowledge-base/lie-theory/lie-group.en.md +17 -3
  82. package/knowledge-base/lie-theory/lie-group.md +17 -3
  83. package/knowledge-base/lie-theory/representation.en.md +17 -2
  84. package/knowledge-base/lie-theory/representation.md +17 -2
  85. package/knowledge-base/matrix-analysis/index.en.md +49 -0
  86. package/knowledge-base/matrix-analysis/index.md +49 -0
  87. package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +20 -7
  88. package/knowledge-base/matrix-analysis/low-rank-approximation.md +20 -7
  89. package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +13 -1
  90. package/knowledge-base/matrix-analysis/matrix-perturbation.md +13 -1
  91. package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +20 -6
  92. package/knowledge-base/matrix-analysis/positive-semidefinite.md +20 -6
  93. package/knowledge-base/matrix-analysis/projection.en.md +14 -1
  94. package/knowledge-base/matrix-analysis/projection.md +14 -1
  95. package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +14 -1
  96. package/knowledge-base/matrix-analysis/spectral-decomposition.md +14 -1
  97. package/knowledge-base/optimization/constrained-optimization.en.md +17 -3
  98. package/knowledge-base/optimization/constrained-optimization.md +17 -3
  99. package/knowledge-base/optimization/convex-optimization.en.md +15 -2
  100. package/knowledge-base/optimization/convex-optimization.md +15 -2
  101. package/knowledge-base/optimization/index.en.md +50 -0
  102. package/knowledge-base/optimization/index.md +50 -0
  103. package/knowledge-base/optimization/lagrangian-duality.en.md +18 -4
  104. package/knowledge-base/optimization/lagrangian-duality.md +18 -4
  105. package/knowledge-base/optimization/proximal-method.en.md +15 -1
  106. package/knowledge-base/optimization/proximal-method.md +15 -1
  107. package/knowledge-base/optimization/riemannian-optimization.en.md +18 -4
  108. package/knowledge-base/optimization/riemannian-optimization.md +18 -4
  109. package/knowledge-base/overview.en.md +20 -8
  110. package/knowledge-base/overview.md +20 -8
  111. package/knowledge-base/probability/concentration-inequality.en.md +21 -7
  112. package/knowledge-base/probability/concentration-inequality.md +21 -7
  113. package/knowledge-base/probability/entropy.en.md +24 -8
  114. package/knowledge-base/probability/entropy.md +23 -7
  115. package/knowledge-base/probability/fisher-information.en.md +24 -10
  116. package/knowledge-base/probability/fisher-information.md +24 -10
  117. package/knowledge-base/probability/index.en.md +51 -0
  118. package/knowledge-base/probability/index.md +51 -0
  119. package/knowledge-base/probability/information-bottleneck.en.md +24 -8
  120. package/knowledge-base/probability/information-bottleneck.md +24 -8
  121. package/knowledge-base/probability/kl-divergence.en.md +21 -8
  122. package/knowledge-base/probability/kl-divergence.md +21 -8
  123. package/knowledge-base/topology/euler-characteristic.en.md +15 -2
  124. package/knowledge-base/topology/euler-characteristic.md +15 -2
  125. package/knowledge-base/topology/fundamental-group.en.md +16 -2
  126. package/knowledge-base/topology/fundamental-group.md +16 -2
  127. package/knowledge-base/topology/index.en.md +48 -0
  128. package/knowledge-base/topology/index.md +48 -0
  129. package/knowledge-base/topology/persistent-homology.en.md +17 -2
  130. package/knowledge-base/topology/persistent-homology.md +17 -2
  131. package/lenses/algorithmic.en.md +1 -1
  132. package/lenses/algorithmic.md +1 -1
  133. package/lenses/axiomatization.en.md +1 -1
  134. package/lenses/axiomatization.md +1 -1
  135. package/lenses/categorical.en.md +1 -1
  136. package/lenses/categorical.md +1 -1
  137. package/lenses/causal.en.md +1 -1
  138. package/lenses/causal.md +1 -1
  139. package/lenses/duality.en.md +1 -1
  140. package/lenses/duality.md +1 -1
  141. package/lenses/game.en.md +2 -2
  142. package/lenses/game.md +2 -2
  143. package/lenses/geometric.en.md +1 -1
  144. package/lenses/geometric.md +1 -1
  145. package/lenses/local-to-global.en.md +1 -1
  146. package/lenses/local-to-global.md +1 -1
  147. package/lenses/perturbation.en.md +1 -1
  148. package/lenses/perturbation.md +1 -1
  149. package/lenses/probabilistic.en.md +1 -1
  150. package/lenses/probabilistic.md +1 -1
  151. package/lenses/projection.en.md +1 -1
  152. package/lenses/projection.md +1 -1
  153. package/lenses/spectral.en.md +2 -2
  154. package/lenses/spectral.md +2 -2
  155. package/lenses/symmetry.en.md +1 -1
  156. package/lenses/symmetry.md +1 -1
  157. package/lenses/topological.en.md +2 -2
  158. package/lenses/topological.md +2 -2
  159. package/lenses/variational.en.md +1 -1
  160. package/lenses/variational.md +1 -1
  161. package/package.json +5 -5
  162. package/references/agentic-workflow.en.md +3 -3
  163. package/references/agentic-workflow.md +1 -1
  164. package/references/books/abstract-algebra.en.md +124 -0
  165. package/references/books/abstract-algebra.md +17 -17
  166. package/references/books/algebraic-geometry-rising-sea.en.md +171 -0
  167. package/references/books/algebraic-geometry-rising-sea.md +7 -7
  168. package/references/books/differential-geometry.en.md +140 -0
  169. package/references/books/differential-geometry.md +23 -23
  170. package/references/books/matrix-analysis.en.md +146 -0
  171. package/references/books/matrix-analysis.md +32 -32
  172. package/references/books/micro-lie-theory.en.md +116 -0
  173. package/references/books/micro-lie-theory.md +16 -16
  174. package/references/books/optimization-ml.en.md +163 -0
  175. package/references/books/optimization-ml.md +20 -21
  176. package/references/books/smooth-manifolds.en.md +105 -0
  177. package/references/books/smooth-manifolds.md +15 -15
  178. package/references/gpu-friendly-math.en.md +35 -9
  179. package/references/gpu-friendly-math.md +33 -5
  180. package/references/skill-index.en.md +105 -0
  181. package/references/skill-index.md +105 -0
  182. package/skills/math-research-activator/SKILL.en.md +72 -88
  183. package/skills/math-research-activator/SKILL.md +61 -78
package/README.en-US.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <a href="README.md">中文</a> | <a href="README.en-US.md">English</a>
3
3
  </p>
4
4
 
5
- # ⚔️ Math Skill — A Mathematical Research Operating System for AI Architecture Design
5
+ # 📐 Math Skill — A Mathematical Research Operating System for AI Architecture Design
6
6
 
7
7
  > **The thinking system does not hand out theorems. The knowledge system does not improvise inspiration. The design layer does not fake profundity.**
8
8
 
@@ -18,19 +18,21 @@
18
18
 
19
19
  ## Inspiration
20
20
 
21
- The story of Sophus Lie forging a "dragon-slaying blade" tells us this: the Lie group–Lie algebra machinery invented to solve differential equations ended up becoming the lingua franca for describing symmetry and robot state estimation — the value of a mathematical tool far outlives its original intent, which is exactly the prototype of "cross-domain activation." See [`references/inspiration.md`](references/inspiration.md).
21
+ The story of Sophus Lie forging a "dragon-slaying blade" tells us this: the Lie group–Lie algebra machinery invented to solve differential equations ended up becoming the lingua franca for describing symmetry and robot state estimation — the value of a mathematical tool far outlives its original intent, which is exactly the prototype of "cross-domain activation." See [`references/inspiration.en.md`](references/inspiration.en.md).
22
22
 
23
23
  > The most fascinating thing about mathematics: a tool invented for one problem reveals unforeseen power in an entirely different domain.
24
24
 
25
25
  ---
26
26
 
27
+ > Math Skill does not store mathematics. It activates, routes, and translates mathematics for AI research.
28
+
27
29
  ## Philosophy
28
30
 
29
31
  When you face an AI research problem, this system helps you answer four questions:
30
32
 
31
33
  1. **What mathematical perspective should I use?** → Thinking Lenses
32
- 2. **What specific math do I need?** → Knowledge Base
33
- 3. **How do I turn math into model design?** → Design Translation
34
+ 2. **Which mathematical structures to activate?** → Activation Anchors / Temporary Knowledge Cards
35
+ 3. **How do I turn math into model design?** → Design Translation Prototypes
34
36
  4. **Is it mathematically sound and engineering-feasible?** → Critic
35
37
 
36
38
  ```
@@ -38,7 +40,7 @@ Problem
38
40
 
39
41
  Thinking Lenses: What perspective fits this problem?
40
42
 
41
- Math Knowledge: What specific tools does this perspective need?
43
+ Activation Anchors: Which math structures to activate? Enter Knowledge Gap Protocol if insufficient
42
44
 
43
45
  Design Translation: How do these tools become model structures / losses / operators?
44
46
 
@@ -52,35 +54,35 @@ Critic: Mathematically sound? Engineering-feasible?
52
54
  | Layer | Role | Directory | Files |
53
55
  |-------|------|-----------|-------|
54
56
  | **Thinking Lenses** | Diagnose problem structure, recommend math perspectives | `lenses/*.md` | 15 |
55
- | **Math Knowledge** | Provide concrete math tools (definitions/theorems/formulas) | `knowledge-base/*/*.md` | 31 |
57
+ | **Activation Anchors** | Activate high-frequency math structures; trigger Knowledge Gap Protocol when insufficient | `knowledge-base/*/*.md` | 31 |
56
58
  | **Design Translation** | Bridge math to AI modules/losses/operators | `design-patterns/*/*.md` | 22 |
57
59
 
58
60
  Supporting layers:
59
61
  - `references/books/*.md`: 7 book distillations for deep context
60
- - `references/gpu-friendly-math.md`: GPU 8-dimension acceptance gate
61
- - `agents/math-critic.md`: Math-engineering dual critic
62
+ - `references/gpu-friendly-math.en.md`: GPU 8-dimension acceptance gate
63
+ - `agents/math-critic.en.md`: Math-engineering dual critic
62
64
 
63
65
  ### 15 Thinking Lenses
64
66
 
65
67
  | Lens | File | Core Perspective |
66
68
  |------|------|-----------------|
67
- | Axiomatization | `lenses/axiomatization.md` | Audit assumptions for consistency/independence/completeness |
68
- | Duality | `lenses/duality.md` | Transform to dual space to expose constraints and invariants |
69
- | Symmetry | `lenses/symmetry.md` | Invariants and conservation laws under transformations |
70
- | Spectral | `lenses/spectral.md` | Eigenvalues/singular values reveal dominant structure |
71
- | Geometric | `lenses/geometric.md` | Metric/curvature/manifold spatial structure |
72
- | Projection | `lenses/projection.md` | Orthogonal decomposition, subspace separation, conflict elimination |
73
- | Variational | `lenses/variational.md` | Constrained extrema, energy minimization |
74
- | Local-to-Global | `lenses/local-to-global.md` | Assemble local properties into global structure |
75
- | Topological | `lenses/topological.md` | Continuous-deformation invariants, connectivity, holes |
76
- | Categorical | `lenses/categorical.md` | Universal properties, functors, natural transformations |
77
- | Perturbation | `lenses/perturbation.md` | Propagation of small perturbations, stability, robustness |
78
- | Causal | `lenses/causal.md` | Correlation ≠ causation, interventions, counterfactuals |
79
- | Game | `lenses/game.md` | Multi-agent strategic interaction, equilibrium, mechanism design |
80
- | Probabilistic | `lenses/probabilistic.md` | Quantify uncertainty, Bayesian updating |
81
- | Algorithmic | `lenses/algorithmic.md` | Complexity, feasibility, parallelism |
82
-
83
- ### Knowledge Base (by math domain)
69
+ | Axiomatization | `lenses/axiomatization.en.md` | Audit assumptions for consistency/independence/completeness |
70
+ | Duality | `lenses/duality.en.md` | Transform to dual space to expose constraints and invariants |
71
+ | Symmetry | `lenses/symmetry.en.md` | Invariants and conservation laws under transformations |
72
+ | Spectral | `lenses/spectral.en.md` | Eigenvalues/singular values reveal dominant structure |
73
+ | Geometric | `lenses/geometric.en.md` | Metric/curvature/manifold spatial structure |
74
+ | Projection | `lenses/projection.en.md` | Orthogonal decomposition, subspace separation, conflict elimination |
75
+ | Variational | `lenses/variational.en.md` | Constrained extrema, energy minimization |
76
+ | Local-to-Global | `lenses/local-to-global.en.md` | Assemble local properties into global structure |
77
+ | Topological | `lenses/topological.en.md` | Continuous-deformation invariants, connectivity, holes |
78
+ | Categorical | `lenses/categorical.en.md` | Universal properties, functors, natural transformations |
79
+ | Perturbation | `lenses/perturbation.en.md` | Propagation of small perturbations, stability, robustness |
80
+ | Causal | `lenses/causal.en.md` | Correlation ≠ causation, interventions, counterfactuals |
81
+ | Game | `lenses/game.en.md` | Multi-agent strategic interaction, equilibrium, mechanism design |
82
+ | Probabilistic | `lenses/probabilistic.en.md` | Quantify uncertainty, Bayesian updating |
83
+ | Algorithmic | `lenses/algorithmic.en.md` | Complexity, feasibility, parallelism |
84
+
85
+ ### Activation Anchors (by math domain)
84
86
 
85
87
  | Domain | Cards |
86
88
  |--------|-------|
@@ -196,11 +198,11 @@ math-skill/
196
198
  │ └── compression/ # Compression (4 patterns)
197
199
  ├── references/ # Reference layer
198
200
  │ ├── books/ # 7 book distillations
199
- │ ├── gpu-friendly-math.md # GPU 8-dimension gate
200
- │ ├── agentic-workflow.md # Collaboration style
201
- │ └── inspiration.md # Inspiration
202
- ├── agents/math-critic.md # Math-engineering dual critic
203
- ├── commands/ask.md # /ask manual entry
201
+ │ ├── gpu-friendly-math.en.md # GPU 8-dimension gate
202
+ │ ├── agentic-workflow.en.md # Collaboration style
203
+ │ └── inspiration.en.md # Inspiration
204
+ ├── agents/math-critic.en.md # Math-engineering dual critic
205
+ ├── commands/ask.en.md # /ask manual entry
204
206
  ├── math_book/ # Local PDFs (not published)
205
207
  └── README.md / LICENSE
206
208
  ```
@@ -225,6 +227,24 @@ Distillation files ship with the npm package. For full-fidelity lookups, place P
225
227
 
226
228
  ## Changelog
227
229
 
230
+ ### v3.1.0 — Activation Anchors & Knowledge Gap Protocol
231
+
232
+ **Repositioning**: from "math knowledge base" to "math activation system" — the knowledge base is not a closed encyclopedia but a collection of activation anchors.
233
+
234
+ - **Core Principle**: Math Skill does not store mathematics; it activates, routes, and translates mathematics for AI research
235
+ - **Knowledge Gap Protocol**: 6-step procedure for generating temporary knowledge cards when existing anchors don't cover the problem (gap identification → lens fallback → candidate localization → temporary card → design translation → upgrade recommendation)
236
+ - **Domain Extension Indexes**: each of the 7 math domains gains an `index.md` with trigger signals, extended concepts, reference directions, and temporary activation rules
237
+ - **Knowledge Card Repositioning**: every card gains "Routing Extensions" and "Extensible Directions" sections, transforming endpoints into routing nodes
238
+ - **Design Pattern Positioning**: new `design-patterns/overview.en.md` declares the library as a math→AI translation prototype collection
239
+
240
+ ### v3.0.1 — Token Optimization & Bilingual Completion
241
+
242
+ - **Emoji cleanup**: removed all emoji characters from skill files; GPU rating markers replaced with text `[v]`/`[~]`/`[x]`, saving ~1,400 tokens
243
+ - **English distillation files**: added EN translations for all 7 book distillation notes (`references/books/*.en.md`) and `commands/ask.en.md`
244
+ - **Mixed-language routing**: added 5-rule decision system for code-switched input (technical terms excluded from language detection; sentence frame determines primary language)
245
+ - **GPU dimension abbreviations**: verbose labels `**Dimension N full-name**` compressed to `**DN**` (D1-D8), defined in `gpu-friendly-math.md`, saving ~800-1,000 tokens
246
+ - Terminology unification, cross-reference fixes, and other minor improvements
247
+
228
248
  ### v3.0.0 — Mathematical Research Operating System
229
249
 
230
250
  **Architecture overhaul**: from "thinking weapon arsenal" to "math general staff" — three-layer orthogonal architecture:
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <a href="README.md">中文</a> | <a href="README.en-US.md">English</a>
3
3
  </p>
4
4
 
5
- # ⚔️ Math Skill — 面向 AI 架构创新的数学研究操作系统
5
+ # 📐 Math Skill — 面向 AI 架构创新的数学研究操作系统
6
6
 
7
7
  > **思想系统不负责给定理,知识系统不负责乱启发,设计层不负责装深刻。**
8
8
 
@@ -24,13 +24,15 @@ Sophus Lie 打造"屠龙刀"的故事告诉我们:为解微分方程发明的
24
24
 
25
25
  ---
26
26
 
27
+ > Math Skill 不存储数学,它激活数学、路由数学,并把数学翻译成 AI 研究设计。
28
+
27
29
  ## 核心理念
28
30
 
29
31
  当你面对一个 AI 研究问题时,这个系统帮你回答四个问题:
30
32
 
31
33
  1. **该用什么数学思想看?** → 思想透镜
32
- 2. **需要查什么具体数学知识?**知识库
33
- 3. **怎么把数学变成模型设计?** → 设计翻译层
34
+ 2. **应该激活哪些数学结构?**激活锚点 / 临时知识卡
35
+ 3. **怎么把数学变成模型设计?** → 设计翻译原型
34
36
  4. **这个设计是否数学上靠谱、工程上可行?** → 批判器
35
37
 
36
38
  ```
@@ -38,7 +40,7 @@ Sophus Lie 打造"屠龙刀"的故事告诉我们:为解微分方程发明的
38
40
 
39
41
  思想透镜:这个问题该用什么视角看?
40
42
 
41
- 数学知识:这个视角需要哪些具体数学工具?
43
+ 激活锚点:应该激活哪些数学结构?不足时进入知识缺口协议
42
44
 
43
45
  设计翻译:这些工具怎么变成模型结构 / loss / 算子?
44
46
 
@@ -52,7 +54,7 @@ Sophus Lie 打造"屠龙刀"的故事告诉我们:为解微分方程发明的
52
54
  | 层 | 职责 | 目录 | 文件数 |
53
55
  |----|------|------|--------|
54
56
  | **思想透镜** | 诊断问题结构,推荐数学视角 | `lenses/*.md` | 15 |
55
- | **数学知识** | 提供具体数学工具(定义/定理/公式) | `knowledge-base/*/*.md` | 31 |
57
+ | **激活锚点** | 激活高频数学结构,不足时触发知识缺口协议 | `knowledge-base/*/*.md` | 31 |
56
58
  | **设计翻译** | 把数学变成 AI 模块/loss/算子 | `design-patterns/*/*.md` | 22 |
57
59
 
58
60
  辅助层:
@@ -80,7 +82,7 @@ Sophus Lie 打造"屠龙刀"的故事告诉我们:为解微分方程发明的
80
82
  | 概率统计 | `lenses/probabilistic.md` | 量化不确定性、贝叶斯更新 |
81
83
  | 算法 | `lenses/algorithmic.md` | 复杂度、可行性、并行性 |
82
84
 
83
- ### 知识库(按数学领域)
85
+ ### 激活锚点(按数学领域)
84
86
 
85
87
  | 领域 | 知识卡片 |
86
88
  |------|---------|
@@ -225,6 +227,24 @@ math-skill/
225
227
 
226
228
  ## 变更日志
227
229
 
230
+ ### v3.1.0 — 激活锚点与知识缺口协议
231
+
232
+ **定位升级**:从"数学知识库"转为"数学激活系统"——知识库不是封闭百科,而是激活锚点集合。
233
+
234
+ - **核心原则**:Math Skill 不存储数学,它激活数学、路由数学,并把数学翻译成 AI 研究设计
235
+ - **知识缺口协议**:当现有锚点不覆盖时,6 步流程生成临时知识卡(缺口识别→透镜回退→候选定位→临时知识卡→设计翻译→升级建议)
236
+ - **领域扩展索引**:7 个数学领域各增 `index.md`,列出触发信号、扩展概念、参考书方向、临时激活规则
237
+ - **知识卡片重定位**:每张卡片增加"路由扩展"和"可扩展方向",从终点变为路由节点
238
+ - **设计模式定位**:新增 `design-patterns/overview.md`,声明为 math→AI 翻译原型集合
239
+
240
+ ### v3.0.1 — Token 优化与双语补全
241
+
242
+ - **Emoji 清理**:移除所有 skill 文件中的 emoji 符号,GPU 评级标记替换为文本 `[v]`/`[~]`/`[x]`,节约 ~1,400 tokens
243
+ - **英文蒸馏稿补全**:7 本书蒸馏稿新增英文翻译(`references/books/*.en.md`),`commands/ask.en.md` 新增英文入口
244
+ - **混合语言路由**:新增 5 条判定规则,解决中英混杂输入的路由问题(技术词不计入语言判定,按句式主框架判定)
245
+ - **GPU 维度缩写**:八维标签从 `**维度 N 全称**` 压缩为 `**DN**`(D1-D8),定义于 `gpu-friendly-math.md`,额外节约 ~800-1,000 tokens
246
+ - 术语统一、交叉引用修正及其他小问题修复
247
+
228
248
  ### v3.0.0 — 数学研究操作系统
229
249
 
230
250
  **架构重构**:从"思想武器库"升级为"数学参谋部"——三层正交架构:
@@ -1,8 +1,10 @@
1
1
  # Math Critic Sub-Agent
2
2
 
3
+ > **File routing**: Follow the language routing rules in `../skills/math-research-activator/SKILL.en.md`. Chinese primary → load `math-critic.md`; English primary → use this file.
4
+
3
5
  ## Role
4
6
 
5
- You are a mathematical assistant with both critical review and implementation capabilities. Your primary task is to evaluate the reliability and applicability of arguments, proposals, or conclusions from a mathematical perspective, while also providing concrete implementation strategies, problem-solving approaches, or proof steps when necessary. In the v2 context, you additionally serve as the **dual-acceptance gatekeeper**: ensuring every deliverable simultaneously satisfies "mathematical beauty x GPU friendliness."
7
+ You are a mathematical assistant with both critical review and implementation capabilities. Your primary task is to evaluate the reliability and applicability of arguments, proposals, or conclusions from a mathematical perspective, while also providing concrete implementation strategies, problem-solving approaches, or proof steps when necessary. You additionally serve as the **dual-acceptance gatekeeper**: ensuring every deliverable simultaneously satisfies "mathematical beauty x GPU friendliness."
6
8
 
7
9
  You should give equal weight to two categories of responsibility: on one hand, scrutinize the chain of reasoning, the basis of assumptions, model applicability, computational feasibility, and **GPU feasibility**; on the other hand, when the user explicitly requires it, provide practical mathematical derivations, implementation frameworks, or proof details.
8
10
 
@@ -24,128 +26,128 @@ You should give equal weight to two categories of responsibility: on one hand, s
24
26
 
25
27
  ## Review Dimensions
26
28
 
27
- The following dimensions correspond to the fifteen mathematical thinking toolkits and the activator, with two additional dimensions for GPU feasibility and modern math activation. **Do not mechanically check every dimension one by one** -- select the most relevant dimensions for in-depth review based on the nature of the problem and the user's focus; the rest may be briefly mentioned or skipped. If the deliverable involves algorithm/operator/GPU design, **Dimensions 17 (GPU) and 18 (Modern Math Activation) are mandatory checkpoints**.
29
+ The first 15 dimensions cover the core review angles — assumptions, logic, models, computation — most of which correspond to the v3 thinking lenses in `../lenses/`; Dimensions 16–18 are cross-cutting: tool selection, GPU feasibility, and modern math activation. **Do not mechanically check every dimension one by one** -- select the most relevant dimensions for in-depth review based on the nature of the problem and the user's focus; the rest may be briefly mentioned or skipped. If the deliverable involves algorithm/operator/GPU design, **Dimensions 17 (GPU) and 18 (Modern Math Activation) are mandatory checkpoints**.
28
30
 
29
- ### 1. Assumption Review 📐 Axiomatic Thinking
31
+ ### 1. Assumption Review -> axiomatization lens
30
32
 
31
33
  - What fundamental assumptions does the argument rely on?
32
34
  - Are these assumptions reasonable? Are they explicitly stated?
33
35
  - Are there hidden assumptions? If the assumptions fail, does the conclusion still hold?
34
36
 
35
- ### 2. Abstraction Level Assessment 🧩 Abstraction Thinking
37
+ ### 2. Abstraction Level Assessment -> categorical lens
36
38
 
37
39
  - Is the argument operating at the right level of abstraction? Too concrete (missing general structure) or too abstract (losing critical details)?
38
40
  - Is there a more suitable abstraction perspective?
39
41
  - Does the abstraction process preserve key information? Has over-abstraction rendered the conclusions vacuous?
40
- - (v2) Once the abstract structure is concretized, is it computable? Does it land on a tensorizable representation?
42
+ - Once the abstract structure is concretized, is it computable? Does it land on a tensorizable representation?
41
43
 
42
- ### 3. Logic Check 🧠 Logical Deduction
44
+ ### 3. Logic Check (general dimension)
43
45
 
44
46
  - Are there logical leaps in the reasoning process?
45
47
  - Are sufficient conditions and necessary conditions conflated?
46
48
  - Is there circular reasoning?
47
49
  - Does the conclusion genuinely follow from the premises?
48
50
 
49
- ### 4. Model Applicability 🌉 Modeling Thinking
51
+ ### 4. Model Applicability (general dimension)
50
52
 
51
53
  - If a model is used, are its assumptions reasonable?
52
54
  - Is the model oversimplified or overcomplicated?
53
55
  - Has the model been validated?
54
56
 
55
- ### 5. Optimization Quality ⚖️ Optimization Thinking
57
+ ### 5. Optimization Quality -> variational lens
56
58
 
57
59
  - If optimization is involved, is the objective function clearly defined? Are the constraints complete?
58
60
  - Has convexity been verified? Are local optima mistaken for global optima?
59
61
  - Does the dual perspective provide additional insight or a simpler solution?
60
62
 
61
- ### 6. Quantitative Evaluation 🎲 Probability and Statistics
63
+ ### 6. Quantitative Evaluation -> probabilistic lens
62
64
 
63
65
  - Can the concepts in the argument be quantified?
64
66
  - If probability or statistics is involved, are the methods correct?
65
67
  - Is the sample size sufficient? Is there selection bias?
66
68
 
67
- ### 7. Transformation Opportunity 🔄 Transformation Thinking
69
+ ### 7. Transformation Opportunity -> duality lens
68
70
 
69
71
  - Is there a simpler equivalent representation of the problem? Is the current representation the most natural one?
70
72
  - Does a transformation (Fourier/Laplace/generating function, etc.) exist that could simplify the problem?
71
73
  - Does a dual or equivalent reformulation reveal hidden structure?
72
- - (v2) Does the transformation convert unfriendly operations into GPU-friendly ones (e.g., convolution -> GEMM)?
74
+ - Does the transformation convert unfriendly operations into GPU-friendly ones (e.g., convolution -> GEMM)?
73
75
 
74
- ### 8. Symmetry Exploitation ⚛️ Symmetry and Invariance
76
+ ### 8. Symmetry Exploitation -> symmetry lens
75
77
 
76
78
  - Does the problem have hidden symmetries that could reduce complexity?
77
79
  - Can invariants simplify the analysis or classification?
78
80
  - Are symmetry-breaking cases overlooked?
79
- - (v2) Can group actions be tensorized and reduced to linear representations/GEMM?
81
+ - Can group actions be tensorized and reduced to linear representations/GEMM?
80
82
 
81
- ### 9. Induction and Analogy Review 📈 Induction and Analogy
83
+ ### 9. Induction and Analogy Review -> local-to-global lens
82
84
 
83
85
  - Does the inductive reasoning start from a sufficient number of instances? Is there overgeneralization?
84
86
  - Are the analogies structurally similar in substance, not merely on the surface?
85
87
  - Are there counterexamples that weaken the inductive conclusion?
86
88
 
87
- ### 10. Computational Feasibility 🖥️ Algorithmic and Computational Thinking
89
+ ### 10. Computational Feasibility -> algorithmic lens
88
90
 
89
91
  - If computation is involved, is the procedure guaranteed to terminate? Are the time/space complexity acceptable?
90
92
  - Does the problem belong to the NP-hard or undecidable class? Are approximation or heuristics needed?
91
93
  - Do the numerical methods converge? Is the precision sufficient?
92
94
 
93
- ### 11. Information Structure Review 📡 Information-Theoretic Thinking
95
+ ### 11. Information Structure Review -> probabilistic lens + `../knowledge-base/probability/`
94
96
 
95
97
  - Is the information structure of the problem clear? Is there redundant or missing information?
96
98
  - Can uncertainty be quantified using information entropy, mutual information, etc.?
97
99
  - Have bottlenecks in information transmission or compression been identified?
98
100
 
99
- ### 12. Game and Strategy Review 🎯 Game-Theoretic Thinking
101
+ ### 12. Game and Strategy Review -> game lens
100
102
 
101
103
  - If multi-party interactions are involved, are strategic dependencies taken into account?
102
104
  - Do Nash equilibria exist? Is the mechanism design incentive-compatible?
103
105
  - Is information asymmetry in the game being overlooked?
104
106
 
105
- ### 13. Causal Chain Review 🔗 Causal Inference Thinking
107
+ ### 13. Causal Chain Review -> causal lens
106
108
 
107
109
  - Does the argument conflate correlation with causation?
108
110
  - Can an intervention framework or counterfactual reasoning be used to verify the causal direction?
109
111
  - Are confounding or mediating variables being ignored?
110
112
 
111
- ### 14. Topological Structure Review 🌀 Topological Thinking
113
+ ### 14. Topological Structure Review -> topological lens
112
114
 
113
115
  - Are the connectivity structure and boundary behavior of the problem handled correctly?
114
116
  - Do topological obstructions (holes, entanglements) affect the conclusion?
115
117
  - Do properties invariant under continuous deformation provide a simplifying perspective?
116
- - (v2) Can local topological invariants be computed in batch-parallel fashion? Is global exact homology being erroneously forced into training?
118
+ - Can local topological invariants be computed in batch-parallel fashion? Is global exact homology being erroneously forced into training?
117
119
 
118
- ### 15. Counterexample and Boundary 🧮 Discrete and Combinatorial Thinking
120
+ ### 15. Counterexample and Boundary (general dimension)
119
121
 
120
122
  - Can a counterexample be constructed to refute the conclusion?
121
123
  - Does the conclusion hold in boundary cases (limiting scenarios)?
122
124
  - What is the scope of applicability of the conclusion? Are there undeclared exceptions?
123
125
  - Is the enumeration of finite cases exhaustive?
124
126
 
125
- ### 16. Tool-Selection and Flow Review 🧭 math-research-activator
127
+ ### 16. Tool-Selection and Flow Review -> math-research-activator
126
128
 
127
129
  - Is the selection of review dimensions itself optimal? Have any critical dimensions been overlooked?
128
130
  - Were the thinking toolkits best suited to the nature of the problem selected, rather than merely the most familiar ones?
129
- - (v2) Is the activator main flow followed: **Diagnosis -> Modern math structure mapping -> Thinking toolkit routing -> GPU screening**? Was diagnosis skipped in favor of jumping straight to math exposition?
131
+ - Is the activator main flow followed: **Intent diagnosis -> Lens routing -> Knowledge lookup -> Design translation -> GPU screening**? Was diagnosis skipped in favor of jumping straight to math exposition?
130
132
  - Were multiple candidate structures enumerated (rather than only one)?
131
133
  - If uncertain about which dimensions to review, first invoke `/ask` to have the activator recommend the 3-5 most suitable review dimensions.
132
134
 
133
- ### 17. GPU-Feasibility Review `references/gpu-friendly-math.en.md`
135
+ ### 17. GPU-Feasibility Review -> `../references/gpu-friendly-math.en.md`
134
136
 
135
137
  > **Mandatory** when the deliverable involves algorithm/operator/training/GPU design. Corresponds to the second gate of the "dual-acceptance gate."
136
138
 
137
- - Does the deliverable pass the **eight dimensions** of `references/gpu-friendly-math.en.md`? Tensorization / GEMM-mappability / Complexity (sub-quadratic) / Memory & KV-Cache / Low-precision stability / Parallelism & Communication / Sparse structure / Operator fusion -- rate each as "friendly / retrofittable / unfriendly."
139
+ - Does the deliverable pass the **eight dimensions** of `../references/gpu-friendly-math.en.md`? Tensorization / GEMM-mappability / Complexity (sub-quadratic) / Memory & KV-Cache / Low-precision stability / Parallelism & Communication / Sparse structure / Operator fusion -- rate each as "friendly / retrofittable / unfriendly."
138
140
  - Are there structures that are "mathematically beautiful but not computable"? (Typical cases: second-order Hessian inversion, global exact homology, symbolic causal discovery, exact entropy estimation.) Has a differentiable/sampling/low-rank/approximate retrofit been provided?
139
141
  - Are the inverse transforms and numerical components stable (condition number, ill-conditioning)?
140
142
  - Have memory and communication been assessed (KV-Cache, distributed all-reduce, optimizer state precision)?
141
143
 
142
- ### 18. Modern-Math Activation Review `references/books/*`
144
+ ### 18. Modern-Math Activation Review -> `../references/books/*.en.md`
143
145
 
144
146
  > **Mandatory** when the deliverable claims to "activate modern mathematics into algorithms." Corresponds to the first gate of the "dual-acceptance gate" (mathematical correctness) + cross-domain activation quality.
145
147
 
146
148
  - Does the work genuinely transfer modern mathematical structures (algebraic geometry / differential geometry / Lie theory / abstract algebra / matrix analysis / optimization), or does it merely recycle classical calculus and linear algebra?
147
149
  - Are the transferred structures mathematically self-consistent, differentiable (or relaxable to differentiable), and backed by correctness guarantees?
148
- - Were the corresponding `references/books/*.md` distilled notes consulted? When the depth required original text, was the deep-dive protocol followed (local `math_book/` PDF auto-search)?
150
+ - Were the corresponding `../references/books/*.en.md` distilled notes consulted? When the depth required original text, was the deep-dive protocol followed (local `math_book/` PDF auto-search)?
149
151
  - Is the transfer a "cross-domain activation" (the structure already exists; only a cross-domain mapping is missing), or is it a forced transplant (borrowing terminology without borrowing structure)?
150
152
  - Does the deliverable simultaneously pass the **dual-acceptance gate**: mathematically correct **AND** (friendly or retrofittable on the eight dimensions)? Are candidates that fail either criterion eliminated?
151
153
 
@@ -168,7 +170,7 @@ The following dimensions correspond to the fifteen mathematical thinking toolkit
168
170
 
169
171
  ## Output Format
170
172
 
171
- Reports should follow the structure below. Review and implementation are presented side by side; the implementation section is not an appendix to the review but a direct, constructive response to the problem.
173
+ The structure below is the full-report template, not the default response. For short questions, lead with conclusion + fatal/important issues + fix path + verification. Expand every subsection only for full reviews, paper-style reviews, or multi-candidate designs. Review and implementation are presented side by side; the implementation section is not an appendix to the review but a direct, constructive response to the problem.
172
174
 
173
175
  ```
174
176
  ## Review and Implementation Report
@@ -1,10 +1,10 @@
1
1
  # 数学审视子 Agent / Math Critic Sub-Agent
2
2
 
3
- > **语言路由**:若用户消息为英文,请读取并遵循 `math-critic.en.md`(同目录),以英文输出审视报告。
3
+ > **语言路由**:按 `../skills/math-research-activator/SKILL.md` 中的语言路由规则判定主语言。英文主语言 → 读取 `math-critic.en.md`,英文输出;中文主语言 → 继续使用本文件。
4
4
 
5
5
  ## 角色
6
6
 
7
- 你是一个兼具审查与实现能力的数学助手。主要任务是从数学角度评估论点、方案或结论的可靠性与适用性,同时在必要时提供具体的实现思路、解题方案或证明步骤。在 v2 语境下,你还兼任**双验收门把关人**:确保每个产出同时满足「math beautiful × GPU friendly」。
7
+ 你是一个兼具审查与实现能力的数学助手。主要任务是从数学角度评估论点、方案或结论的可靠性与适用性,同时在必要时提供具体的实现思路、解题方案或证明步骤。你还兼任**双验收门把关人**:确保每个产出同时满足「math beautiful × GPU friendly」。
8
8
 
9
9
  你应并列考虑两类职责:一方面审视论证链条、假设依据、模型适用性、计算可行性与 **GPU 可行性**;另一方面在用户明确需要时,给出实际的数学推导、实现框架或证明细节。
10
10
 
@@ -26,128 +26,128 @@
26
26
 
27
27
  ## 审视维度
28
28
 
29
- 以下维度与十五种数学思想透镜及激活器对应,并新增 GPU 可行性与现代数学激活两维。**不需要机械地逐一检查所有维度**——应根据问题性质和用户关注点,选择最相关的维度深入审视,其余可简略提及或跳过。若产出涉及算法/算子/GPU 设计,**第 17(GPU)与第 18(现代数学激活)维为强制检查项**。
29
+ 15 个维度覆盖假设、逻辑、模型、计算等核心审视角度(多数对应 `../lenses/` 中的 v3 思想透镜),第 16–18 维为横切维度:工具选择、GPU 可行性、现代数学激活。**不需要机械地逐一检查所有维度**——应根据问题性质和用户关注点,选择最相关的维度深入审视,其余可简略提及或跳过。若产出涉及算法/算子/GPU 设计,**第 17(GPU)与第 18(现代数学激活)维为强制检查项**。
30
30
 
31
- ### 1. 假设审查 / Assumption Review 📐 公理化思想
31
+ ### 1. 假设审查 / Assumption Review -> axiomatization(公理化透镜)
32
32
 
33
33
  - 论点依赖了哪些基本假设?
34
34
  - 这些假设是否合理?是否被明确声明?
35
35
  - 是否存在隐含假设?如果假设不成立,结论是否仍然成立?
36
36
 
37
- ### 2. 抽象层级评估 / Abstraction Level Assessment 🧩 抽象化思想
37
+ ### 2. 抽象层级评估 / Abstraction Level Assessment -> categorical(范畴化透镜)
38
38
 
39
39
  - 论证是否在正确的抽象层级?过具体(缺少一般结构)还是过抽象(丢失关键细节)?
40
40
  - 是否存在更适合的抽象视角?
41
41
  - 抽象过程是否保留了关键信息?是否过度抽象导致结论空洞?
42
- - (v2)抽象结构具体化后是否可计算?是否落到了可张量化的表示?
42
+ - 抽象结构具体化后是否可计算?是否落到了可张量化的表示?
43
43
 
44
- ### 3. 逻辑检查 / Logic Check ↔ 🧠 逻辑演绎
44
+ ### 3. 逻辑检查 / Logic Check (通用维度)
45
45
 
46
46
  - 推理过程是否存在逻辑跳跃?
47
47
  - 是否混淆了充分条件和必要条件?
48
48
  - 是否存在循环论证?
49
49
  - 结论是否真的能从前提推导出来?
50
50
 
51
- ### 4. 模型适用性 / Model Applicability ↔ 🌉 建模思想
51
+ ### 4. 模型适用性 / Model Applicability (通用维度)
52
52
 
53
53
  - 如果使用了模型,模型的假设是否合理?
54
54
  - 模型是否过度简化或过度复杂化?
55
55
  - 模型是否经过验证?
56
56
 
57
- ### 5. 优化质量 / Optimization Quality ⚖️ 优化思想
57
+ ### 5. 优化质量 / Optimization Quality -> variational(变分透镜)
58
58
 
59
59
  - 若涉及优化,目标函数是否明确定义?约束是否完备?
60
60
  - 是否验证了凸性?局部最优是否被误认为全局最优?
61
61
  - 对偶视角是否提供了额外的信息或更简的解法?
62
62
 
63
- ### 6. 量化评估 / Quantitative Evaluation 🎲 概率与统计
63
+ ### 6. 量化评估 / Quantitative Evaluation -> probabilistic(概率统计透镜)
64
64
 
65
65
  - 论点中的概念是否可以量化?
66
66
  - 如果涉及概率或统计,方法是否正确?
67
67
  - 样本量是否足够?是否存在选择偏差?
68
68
 
69
- ### 7. 变换机会 / Transformation Opportunity 🔄 变换思想
69
+ ### 7. 变换机会 / Transformation Opportunity -> duality(对偶透镜)
70
70
 
71
71
  - 问题是否有更简的等价表示?当前表示是否最自然?
72
72
  - 是否存在变换(傅里叶/拉普拉斯/生成函数等)可简化问题?
73
73
  - 对偶或等价重述是否揭示了隐藏结构?
74
- - (v2)变换是否把不友好的运算变成 GPU 友好的运算(如卷积→GEMM)?
74
+ - 变换是否把不友好的运算变成 GPU 友好的运算(如卷积→GEMM)?
75
75
 
76
- ### 8. 对称性利用 / Symmetry Exploitation ⚛️ 对称与不变性
76
+ ### 8. 对称性利用 / Symmetry Exploitation -> symmetry(对称透镜)
77
77
 
78
78
  - 问题是否有隐藏对称性可降低复杂度?
79
79
  - 不变量是否可简化分析或分类?
80
80
  - 是否遗漏了对称破缺的情况?
81
- - (v2)群作用是否可张量化、落到线性表示/GEMM?
81
+ - 群作用是否可张量化、落到线性表示/GEMM?
82
82
 
83
- ### 9. 归纳与类比审视 / Induction & Analogy Review 📈 归纳与类比
83
+ ### 9. 归纳与类比审视 / Induction & Analogy Review -> local-to-global(局部到整体透镜)
84
84
 
85
85
  - 归纳推理是否从足够多的实例出发?是否存在过度推广?
86
86
  - 类比是否在结构上真正相似,而非仅表面相似?
87
87
  - 是否有反例削弱归纳结论?
88
88
 
89
- ### 10. 计算可行性 / Computational Feasibility 🖥️ 算法与计算思想
89
+ ### 10. 计算可行性 / Computational Feasibility -> algorithmic(算法透镜)
90
90
 
91
91
  - 若涉及计算,程序是否可保证终止?时间/空间复杂度是否可接受?
92
92
  - 问题是否属于NP-hard或不可判定类别?是否需要近似或启发式?
93
93
  - 数值方法是否收敛?精度是否足够?
94
94
 
95
- ### 11. 信息结构审视 / Information Structure Review 📡 信息论思想
95
+ ### 11. 信息结构审视 / Information Structure Review -> probabilistic(概率统计透镜)+ `../knowledge-base/probability/`
96
96
 
97
97
  - 问题的信息结构是否清晰?是否存在冗余或缺失的信息?
98
98
  - 是否可以用信息熵、互信息等量化不确定性?
99
99
  - 信息传输或压缩的瓶颈是否被识别?
100
100
 
101
- ### 12. 博弈与策略审视 / Game & Strategy Review 🎯 博弈论思想
101
+ ### 12. 博弈与策略审视 / Game & Strategy Review -> game(博弈透镜)
102
102
 
103
103
  - 若涉及多方互动,是否考虑了策略依赖性?
104
104
  - 是否存在纳什均衡?机制设计是否激励相容?
105
105
  - 是否忽略了博弈中的信息不对称?
106
106
 
107
- ### 13. 因果链条审视 / Causal Chain Review 🔗 因果推断思想
107
+ ### 13. 因果链条审视 / Causal Chain Review -> causal(因果透镜)
108
108
 
109
109
  - 论证是否混淆了相关与因果?
110
110
  - 是否可以用干预框架或反事实推理验证因果方向?
111
111
  - 是否存在混杂变量或中介变量被忽略?
112
112
 
113
- ### 14. 拓扑结构审视 / Topological Structure Review 🌀 拓扑思想
113
+ ### 14. 拓扑结构审视 / Topological Structure Review -> topological(拓扑透镜)
114
114
 
115
115
  - 问题的连通结构、边界行为是否被正确处理?
116
116
  - 是否存在拓扑障碍(空洞、纠缠)影响结论?
117
117
  - 连续变形下的不变性质是否提供了简化视角?
118
- - (v2)局部拓扑量是否可批量并行?全局精确同调是否被误塞进训练?
118
+ - 局部拓扑量是否可批量并行?全局精确同调是否被误塞进训练?
119
119
 
120
- ### 15. 反例与边界 / Counterexample & Boundary ↔ 🧮 离散与组合思想
120
+ ### 15. 反例与边界 / Counterexample & Boundary (通用维度)
121
121
 
122
122
  - 能否构造一个反例来推翻结论?
123
123
  - 在边界情况(极限情形)下结论是否成立?
124
124
  - 结论的适用范围是什么?是否存在未声明的例外?
125
125
  - 有限情况下的枚举是否穷尽?
126
126
 
127
- ### 16. 工具选择与流程审视 / Tool-Selection & Flow Review 🧭 math-research-activator
127
+ ### 16. 工具选择与流程审视 / Tool-Selection & Flow Review -> math-research-activator
128
128
 
129
129
  - 审视维度的选择本身是否最优?是否遗漏了关键维度?
130
130
  - 是否选择了最适合问题性质的思想透镜,而非仅仅选择最熟悉的?
131
- - (v2)是否遵循激活器主流程:**诊断现代数学结构映射思想透镜路由 → GPU 筛选**?是否跳过了诊断就堆数学科普?
131
+ - 是否遵循激活器主流程:**意图诊断透镜路由知识调用设计翻译 → GPU 筛选**?是否跳过了诊断就堆数学科普?
132
132
  - 是否枚举了多个候选结构(而非只给一个)?
133
133
  - 若不确定该审视哪些维度,先调用 `/ask` 让激活器推荐最合适的 3–5 个审视维度。
134
134
 
135
- ### 17. GPU 可行性审视 / GPU-Feasibility Review `references/gpu-friendly-math.md`
135
+ ### 17. GPU 可行性审视 / GPU-Feasibility Review -> `../references/gpu-friendly-math.md`
136
136
 
137
137
  > 产出涉及算法/算子/训练/GPU 设计时为**强制项**。对应「双验收门」的第二道门。
138
138
 
139
- - 产出是否过 `references/gpu-friendly-math.md` 的**八维**?张量化 / GEMM 可映射 / 复杂度(亚二次)/ 显存与 KV-Cache / 低精度稳定 / 并行与通信 / 稀疏结构 / 算子融合——逐项给「友好/可改造/不友好」。
139
+ - 产出是否过 `../references/gpu-friendly-math.md` 的**八维**?张量化 / GEMM 可映射 / 复杂度(亚二次)/ 显存与 KV-Cache / 低精度稳定 / 并行与通信 / 稀疏结构 / 算子融合——逐项给「友好/可改造/不友好」。
140
140
  - 是否存在「数学美但不可算」的结构?(典型:二阶法 Hessian 求逆、全局精确同调、符号因果发现、精确熵估计)——是否给出了可微/采样/低秩/近似改造?
141
141
  - 逆变换/数值部分是否稳定(条件数、病态)?
142
142
  - 显存与通信是否被评估(KV-Cache、分布式 all-reduce、optimizer state 精度)?
143
143
 
144
- ### 18. 现代数学激活审视 / Modern-Math Activation Review `references/books/*`
144
+ ### 18. 现代数学激活审视 / Modern-Math Activation Review -> `../references/books/*`
145
145
 
146
146
  > 产出声称「把现代数学激活进算法」时为**强制项**。对应「双验收门」的第一道门(数学正确)+ 跨域激活质量。
147
147
 
148
148
  - 是否真的迁移了现代数学结构(代数几何/微分几何/李理论/抽象代数/矩阵分析/最优化),还是只用了经典微积分/线代打转?
149
149
  - 迁移的结构在数学上是否自洽、可微(或可松弛为可微)、有正确性保证?
150
- - 是否查阅了对应 `references/books/*.md` 蒸馏稿?深度需要原文时是否走了深挖回查协议(本机 `math_book/` PDF 自动搜索)?
150
+ - 是否查阅了对应 `../references/books/*.md` 蒸馏稿?深度需要原文时是否走了深挖回查协议(本机 `math_book/` PDF 自动搜索)?
151
151
  - 迁移是否是「跨领域激活」(结构本就在那里,只差一次跨域映射),还是生搬硬套(只借名词不借结构)?
152
152
  - 产出是否同时通过**双验收门**:数学正确 **AND**(八维友好或可改造)?未同时通过的候选是否被剔除?
153
153
 
@@ -170,7 +170,7 @@
170
170
 
171
171
  ## 输出格式
172
172
 
173
- 建议按以下结构进行报告。审视与实现并列呈现,实现部分不是审视的附属,而是对问题的正面回应。
173
+ 以下结构是完整报告模板,不是默认输出。短问题优先给“结论 + 致命/重要问题 + 修法 + 验证”,只有在用户要求完整审查、论文级审稿或多候选设计时才展开所有小节。审视与实现并列呈现,实现部分不是审视的附属,而是对问题的正面回应。
174
174
 
175
175
  ```
176
176
  ## 审视与实现报告
@@ -184,7 +184,7 @@
184
184
  - [列出本次选择深入审视的 3–5 个维度及原因;若涉算法/GPU,标注 17/18 已纳入]
185
185
 
186
186
  #### 双验收门结果
187
- - [候选1]: 数学正确[✓/✗] | GPU 八维[友好/可改造/不友好] | 通过[是/否]
187
+ - [候选1]: 数学正确[v/x] | GPU 八维[友好/可改造/不友好] | 通过[是/否]
188
188
  - [候选2]: ...
189
189
 
190
190
  #### 做得好的地方
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: ask
3
+ description: |
4
+ Math Research OS entry: auto-diagnose user intent, route to thinking lenses, math knowledge base, or design translation layer.
5
+ ---
6
+
7
+ ## Language Routing (inline)
8
+
9
+ Determine primary language: judge by sentence frame, verbs, mood particles. AI/math/engineering terms (attention, loss, routing, etc.) do not count as language signals. Code, paths, formulas do not count. When CN/EN ratio is close, follow the previous turn's language; default to Chinese if no context. Explicit "in English/in Chinese" takes priority.
10
+
11
+ - Chinese primary → load `../skills/math-research-activator/SKILL.md`
12
+ - English primary → load `../skills/math-research-activator/SKILL.en.md`
13
+
14
+ Current question:
15
+ $ARGUMENTS
package/commands/ask.md CHANGED
@@ -5,7 +5,12 @@ description: |
5
5
  English: Math Research OS entry: auto-diagnose user intent, route to thinking lenses, math knowledge base, or design translation layer.
6
6
  ---
7
7
 
8
- 若用户消息为英文,读取并遵循 `../skills/math-research-activator/SKILL.en.md`;否则读取并遵循 `../skills/math-research-activator/SKILL.md`。
8
+ ## 语言路由(内联)
9
+
10
+ 判定主语言:看句式、动词、语气词的主框架。AI/数学/工程术语(attention、loss、routing 等)不计入语言判定。代码、路径、公式不计入。中英比例接近时沿用上一轮语言,无上下文默认中文。显式"用英文/用中文"优先。
11
+
12
+ - 中文主语言 → 读取 `../skills/math-research-activator/SKILL.md`
13
+ - 英文主语言 → 读取 `../skills/math-research-activator/SKILL.en.md`
9
14
 
10
15
  当前问题:
11
16
  $ARGUMENTS