math-skill 2.0.1 → 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.
- package/README.en-US.md +167 -175
- package/README.md +167 -175
- package/agents/math-critic.en.md +235 -0
- package/agents/math-critic.md +10 -8
- package/commands/ask.md +3 -12
- package/design-patterns/attention/equivariant-attention.en.md +72 -0
- package/design-patterns/attention/equivariant-attention.md +72 -0
- package/design-patterns/attention/geometry-aware-attention.en.md +73 -0
- package/design-patterns/attention/geometry-aware-attention.md +72 -0
- package/design-patterns/attention/information-bottleneck-attention.en.md +72 -0
- package/design-patterns/attention/information-bottleneck-attention.md +72 -0
- package/design-patterns/attention/projection-attention.en.md +68 -0
- package/design-patterns/attention/projection-attention.md +68 -0
- package/design-patterns/attention/spectral-attention.en.md +71 -0
- package/design-patterns/attention/spectral-attention.md +71 -0
- package/design-patterns/compression/leverage-score-selection.en.md +71 -0
- package/design-patterns/compression/leverage-score-selection.md +71 -0
- package/design-patterns/compression/low-rank-kv-cache.en.md +60 -0
- package/design-patterns/compression/low-rank-kv-cache.md +60 -0
- package/design-patterns/compression/spectral-token-pruning.en.md +61 -0
- package/design-patterns/compression/spectral-token-pruning.md +61 -0
- package/design-patterns/compression/topology-preserving-compression.en.md +64 -0
- package/design-patterns/compression/topology-preserving-compression.md +64 -0
- package/design-patterns/loss/constraint-penalty.en.md +67 -0
- package/design-patterns/loss/constraint-penalty.md +78 -0
- package/design-patterns/loss/contrastive-loss.en.md +59 -0
- package/design-patterns/loss/contrastive-loss.md +68 -0
- package/design-patterns/loss/information-bottleneck-loss.en.md +69 -0
- package/design-patterns/loss/information-bottleneck-loss.md +74 -0
- package/design-patterns/loss/orthogonality-loss.en.md +56 -0
- package/design-patterns/loss/orthogonality-loss.md +60 -0
- package/design-patterns/loss/variational-loss.en.md +61 -0
- package/design-patterns/loss/variational-loss.md +71 -0
- package/design-patterns/representation/equivariant-split.en.md +87 -0
- package/design-patterns/representation/equivariant-split.md +89 -0
- package/design-patterns/representation/manifold-representation.en.md +85 -0
- package/design-patterns/representation/manifold-representation.md +87 -0
- package/design-patterns/representation/shared-private-decomposition.en.md +84 -0
- package/design-patterns/representation/shared-private-decomposition.md +86 -0
- package/design-patterns/representation/subspace-alignment.en.md +90 -0
- package/design-patterns/representation/subspace-alignment.md +92 -0
- package/design-patterns/routing/graph-routing.en.md +79 -0
- package/design-patterns/routing/graph-routing.md +81 -0
- package/design-patterns/routing/moe-routing.en.md +85 -0
- package/design-patterns/routing/moe-routing.md +87 -0
- package/design-patterns/routing/optimal-transport-routing.en.md +68 -0
- package/design-patterns/routing/optimal-transport-routing.md +72 -0
- package/design-patterns/routing/spectral-clustering-routing.en.md +88 -0
- package/design-patterns/routing/spectral-clustering-routing.md +90 -0
- package/knowledge-base/differential-geometry/connection.en.md +51 -0
- package/knowledge-base/differential-geometry/connection.md +51 -0
- package/knowledge-base/differential-geometry/curvature.en.md +49 -0
- package/knowledge-base/differential-geometry/curvature.md +49 -0
- package/knowledge-base/differential-geometry/geodesic.en.md +51 -0
- package/knowledge-base/differential-geometry/geodesic.md +51 -0
- package/knowledge-base/differential-geometry/manifold.en.md +47 -0
- package/knowledge-base/differential-geometry/manifold.md +47 -0
- package/knowledge-base/differential-geometry/metric-tensor.en.md +50 -0
- package/knowledge-base/differential-geometry/metric-tensor.md +50 -0
- package/knowledge-base/differential-geometry/tangent-space.en.md +48 -0
- package/knowledge-base/differential-geometry/tangent-space.md +48 -0
- package/knowledge-base/information-geometry/fisher-metric.en.md +56 -0
- package/knowledge-base/information-geometry/fisher-metric.md +56 -0
- package/knowledge-base/information-geometry/natural-gradient.en.md +54 -0
- package/knowledge-base/information-geometry/natural-gradient.md +54 -0
- package/knowledge-base/lie-theory/equivariance.en.md +54 -0
- package/knowledge-base/lie-theory/equivariance.md +54 -0
- package/knowledge-base/lie-theory/group-action.en.md +51 -0
- package/knowledge-base/lie-theory/group-action.md +51 -0
- package/knowledge-base/lie-theory/lie-algebra.en.md +51 -0
- package/knowledge-base/lie-theory/lie-algebra.md +51 -0
- package/knowledge-base/lie-theory/lie-group.en.md +51 -0
- package/knowledge-base/lie-theory/lie-group.md +51 -0
- package/knowledge-base/lie-theory/representation.en.md +52 -0
- package/knowledge-base/lie-theory/representation.md +52 -0
- package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +49 -0
- package/knowledge-base/matrix-analysis/low-rank-approximation.md +49 -0
- package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +49 -0
- package/knowledge-base/matrix-analysis/matrix-perturbation.md +49 -0
- package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +50 -0
- package/knowledge-base/matrix-analysis/positive-semidefinite.md +50 -0
- package/knowledge-base/matrix-analysis/projection.en.md +47 -0
- package/knowledge-base/matrix-analysis/projection.md +47 -0
- package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +48 -0
- package/knowledge-base/matrix-analysis/spectral-decomposition.md +48 -0
- package/knowledge-base/optimization/constrained-optimization.en.md +53 -0
- package/knowledge-base/optimization/constrained-optimization.md +53 -0
- package/knowledge-base/optimization/convex-optimization.en.md +50 -0
- package/knowledge-base/optimization/convex-optimization.md +50 -0
- package/knowledge-base/optimization/lagrangian-duality.en.md +50 -0
- package/knowledge-base/optimization/lagrangian-duality.md +50 -0
- package/knowledge-base/optimization/proximal-method.en.md +52 -0
- package/knowledge-base/optimization/proximal-method.md +52 -0
- package/knowledge-base/optimization/riemannian-optimization.en.md +51 -0
- package/knowledge-base/optimization/riemannian-optimization.md +51 -0
- package/knowledge-base/overview.en.md +39 -0
- package/knowledge-base/overview.md +29 -218
- package/knowledge-base/probability/concentration-inequality.en.md +45 -0
- package/knowledge-base/probability/concentration-inequality.md +45 -0
- package/knowledge-base/probability/entropy.en.md +47 -0
- package/knowledge-base/probability/entropy.md +47 -0
- package/knowledge-base/probability/fisher-information.en.md +48 -0
- package/knowledge-base/probability/fisher-information.md +48 -0
- package/knowledge-base/probability/information-bottleneck.en.md +49 -0
- package/knowledge-base/probability/information-bottleneck.md +49 -0
- package/knowledge-base/probability/kl-divergence.en.md +51 -0
- package/knowledge-base/probability/kl-divergence.md +51 -0
- package/knowledge-base/topology/euler-characteristic.en.md +54 -0
- package/knowledge-base/topology/euler-characteristic.md +54 -0
- package/knowledge-base/topology/fundamental-group.en.md +52 -0
- package/knowledge-base/topology/fundamental-group.md +52 -0
- package/knowledge-base/topology/persistent-homology.en.md +54 -0
- package/knowledge-base/topology/persistent-homology.md +54 -0
- package/lenses/algorithmic.en.md +49 -0
- package/lenses/algorithmic.md +49 -0
- package/lenses/axiomatization.en.md +48 -0
- package/lenses/axiomatization.md +48 -0
- package/lenses/categorical.en.md +48 -0
- package/lenses/categorical.md +48 -0
- package/lenses/causal.en.md +49 -0
- package/lenses/causal.md +49 -0
- package/lenses/duality.en.md +47 -0
- package/lenses/duality.md +47 -0
- package/lenses/game.en.md +50 -0
- package/lenses/game.md +50 -0
- package/lenses/geometric.en.md +53 -0
- package/lenses/geometric.md +53 -0
- package/lenses/local-to-global.en.md +52 -0
- package/lenses/local-to-global.md +52 -0
- package/lenses/perturbation.en.md +51 -0
- package/lenses/perturbation.md +51 -0
- package/lenses/probabilistic.en.md +48 -0
- package/lenses/probabilistic.md +48 -0
- package/lenses/projection.en.md +50 -0
- package/lenses/projection.md +50 -0
- package/lenses/spectral.en.md +52 -0
- package/lenses/spectral.md +52 -0
- package/lenses/symmetry.en.md +49 -0
- package/lenses/symmetry.md +49 -0
- package/lenses/topological.en.md +48 -0
- package/lenses/topological.md +48 -0
- package/lenses/variational.en.md +48 -0
- package/lenses/variational.md +48 -0
- package/package.json +11 -3
- package/references/agentic-workflow.en.md +53 -0
- package/references/agentic-workflow.md +2 -0
- package/references/books/abstract-algebra.md +9 -5
- package/references/books/algebraic-geometry-rising-sea.md +9 -5
- package/references/books/differential-geometry.md +7 -3
- package/references/books/matrix-analysis.md +8 -4
- package/references/books/micro-lie-theory.md +7 -3
- package/references/books/optimization-ml.md +5 -1
- package/references/books/smooth-manifolds.md +7 -3
- package/references/gpu-friendly-math.en.md +65 -0
- package/references/gpu-friendly-math.md +4 -2
- package/references/inspiration.en.md +113 -0
- package/references/inspiration.md +4 -2
- package/skills/math-research-activator/SKILL.en.md +187 -0
- package/skills/math-research-activator/SKILL.md +162 -108
- package/skills/math-research-activator/original-texts.en.md +105 -0
- package/skills/math-research-activator/original-texts.md +11 -11
- package/commands/abstraction.md +0 -13
- package/commands/algorithmic-thinking.md +0 -13
- package/commands/axiomatization.md +0 -13
- package/commands/causal-inference.md +0 -13
- package/commands/discrete-combinatorial.md +0 -13
- package/commands/game-theory.md +0 -13
- package/commands/induction-analogy.md +0 -13
- package/commands/information-theory.md +0 -13
- package/commands/logic-deduction.md +0 -13
- package/commands/modeling.md +0 -13
- package/commands/optimization.md +0 -13
- package/commands/probability-statistics.md +0 -13
- package/commands/symmetry-invariance.md +0 -13
- package/commands/topological-thinking.md +0 -13
- package/commands/transformation.md +0 -13
- package/skills/abstraction/SKILL.md +0 -119
- package/skills/abstraction/original-texts.md +0 -175
- package/skills/algorithmic-thinking/SKILL.md +0 -136
- package/skills/algorithmic-thinking/original-texts.md +0 -256
- package/skills/axiomatization/SKILL.md +0 -149
- package/skills/axiomatization/original-texts.md +0 -160
- package/skills/causal-inference/SKILL.md +0 -149
- package/skills/causal-inference/original-texts.md +0 -167
- package/skills/discrete-combinatorial/SKILL.md +0 -129
- package/skills/discrete-combinatorial/original-texts.md +0 -185
- package/skills/game-theory/SKILL.md +0 -121
- package/skills/game-theory/original-texts.md +0 -131
- package/skills/induction-analogy/SKILL.md +0 -150
- package/skills/induction-analogy/original-texts.md +0 -154
- package/skills/information-theory/SKILL.md +0 -138
- package/skills/information-theory/original-texts.md +0 -127
- package/skills/logic-deduction/SKILL.md +0 -133
- package/skills/logic-deduction/original-texts.md +0 -173
- package/skills/modeling/SKILL.md +0 -137
- package/skills/modeling/original-texts.md +0 -165
- package/skills/optimization/SKILL.md +0 -133
- package/skills/optimization/original-texts.md +0 -168
- package/skills/probability-statistics/SKILL.md +0 -149
- package/skills/probability-statistics/original-texts.md +0 -193
- package/skills/symmetry-invariance/SKILL.md +0 -137
- package/skills/symmetry-invariance/original-texts.md +0 -221
- package/skills/topological-thinking/SKILL.md +0 -126
- package/skills/topological-thinking/original-texts.md +0 -164
- package/skills/transformation/SKILL.md +0 -122
- package/skills/transformation/original-texts.md +0 -216
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# 📡 Spectral Decomposition Lens
|
|
2
|
+
|
|
3
|
+
> Any linear operator can be decomposed into a superposition of eigencomponents — eigenvalues reveal dominant structure, eigenvectors reveal dominant directions.
|
|
4
|
+
|
|
5
|
+
## What Perspective It Offers
|
|
6
|
+
|
|
7
|
+
This is a "decomposer's" perspective — breaking complex linear operators (matrices, kernel functions, graph Laplacians) into spectra of eigenvalues and singular values, using dominant eigencomponents to capture global behavior and tail eigenvalues to quantify noise and redundancy. The core conviction: the spectrum — the distribution of eigenvalues — determines everything about an operator: its condition number, rank, stability, and convergence rate.
|
|
8
|
+
|
|
9
|
+
## What Problems It Is Suited to Diagnose
|
|
10
|
+
|
|
11
|
+
- What is the dominant structure of a matrix or operator? What is its effective rank?
|
|
12
|
+
- Optimizer convergence is slow — is the condition number too large? How should a preconditioner be designed?
|
|
13
|
+
- Where are the critical bottlenecks in a graph or network? Is the spectral gap too small?
|
|
14
|
+
- Need to reduce dimensions while preserving maximum variance — are the first k principal components sufficient?
|
|
15
|
+
- How large is the spectral drift after quantization or pruning? Has stability been compromised?
|
|
16
|
+
|
|
17
|
+
## What Problems It Is Not Suited For
|
|
18
|
+
|
|
19
|
+
- Problems dominated by nonlinear effects — spectral decomposition is a linear tool
|
|
20
|
+
- Operators that are not diagonalizable (non-normal matrices, defective matrices) — Jordan form is required
|
|
21
|
+
- Problems that require preserving global topological structure — spectral methods may destroy topology
|
|
22
|
+
|
|
23
|
+
## Which Knowledge Domains It Routes To
|
|
24
|
+
|
|
25
|
+
- **matrix-analysis/spectral-decomposition**: EVD, Schur decomposition, normal matrices
|
|
26
|
+
- **matrix-analysis/low-rank-approximation**: Eckart-Young theorem, randomized SVD
|
|
27
|
+
- **matrix-analysis/matrix-perturbation**: Weyl's inequality, Davis-Kahan theorem
|
|
28
|
+
- **matrix-analysis/positive-semidefinite**: Spectral properties of PSD matrices, Cholesky factorization
|
|
29
|
+
|
|
30
|
+
## What AI Designs It May Inspire
|
|
31
|
+
|
|
32
|
+
- **Spectral Normalization**: Constrain the largest singular value of weight matrices to stabilize training
|
|
33
|
+
- **Low-Rank Adaptation (LoRA)**: Fine-tune in a truncated SVD subspace
|
|
34
|
+
- **Spectral Graph Attention**: Use graph Laplacian eigenvectors for positional encoding
|
|
35
|
+
- **Spectral Clustering Routing**: Use top-k eigenvectors for MoE token assignment
|
|
36
|
+
- **Effective Rank Monitoring**: Track the stable rank of weight matrices to detect overfitting
|
|
37
|
+
|
|
38
|
+
## Reasoning Protocol
|
|
39
|
+
|
|
40
|
+
1. **Identify the operator**: Which matrix, kernel, or graph requires spectral analysis? What are its dimensions?
|
|
41
|
+
2. **Compute or estimate the spectrum**: Full EVD (small matrices) / power iteration for dominant eigenvalues / randomized SVD
|
|
42
|
+
3. **Analyze the spectral distribution**: Condition number, spectral gap, effective rank, decay rate
|
|
43
|
+
4. **Identify dominant components**: What proportion of the variance or Frobenius norm is explained by the first k eigenvalues?
|
|
44
|
+
5. **Assess truncation impact**: Quantify the error introduced by discarding tail eigenvalues (Eckart-Young provides a sharp bound)
|
|
45
|
+
|
|
46
|
+
## Acceptance Criteria
|
|
47
|
+
|
|
48
|
+
- The target operator is clearly defined
|
|
49
|
+
- The spectrum (or dominant eigenvalues/singular values) has been computed or estimated
|
|
50
|
+
- Spectral distribution metrics are reported (condition number, spectral gap, effective rank)
|
|
51
|
+
- Truncation and approximation decisions are backed by quantitative error bounds (Weyl / Davis-Kahan / Eckart-Young)
|
|
52
|
+
- The output includes actionable conclusions (preconditioner design, dimensionality selection, stability guarantees)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# 📡 谱分解透镜 / Spectral Decomposition Lens
|
|
2
|
+
|
|
3
|
+
> 任何线性算子都可以分解为特征分量的叠加——特征值揭示主导结构,特征向量揭示主导方向。
|
|
4
|
+
|
|
5
|
+
## 它是什么视角
|
|
6
|
+
|
|
7
|
+
这是一种"分解者"的视角——将复杂线性算子(矩阵、核函数、图 Laplacian)分解为特征值/奇异值的谱,用主导特征分量捕获全局行为,用尾部特征量化噪声与冗余。核心信念:谱(特征值分布)决定了算子的一切——条件数、秩、稳定性、收敛速度。
|
|
8
|
+
|
|
9
|
+
## 适合诊断什么问题
|
|
10
|
+
|
|
11
|
+
- 矩阵/算子的主导结构是什么?有效秩是多少?
|
|
12
|
+
- 优化器收敛速度慢——条件数是否过大?预条件如何设计?
|
|
13
|
+
- 图/网络的关键瓶颈在哪里?谱隙(spectral gap)是否过小?
|
|
14
|
+
- 需要降维但保留最大方差——前 k 个主成分够不够?
|
|
15
|
+
- 量化/剪枝后的谱漂移有多大?稳定性是否被破坏?
|
|
16
|
+
|
|
17
|
+
## 不适合什么问题
|
|
18
|
+
|
|
19
|
+
- 非线性效应主导的问题——谱分解是线性工具
|
|
20
|
+
- 算子本身不可对角化(非正规矩阵、亏损矩阵)——需要 Jordan 形式
|
|
21
|
+
- 需要保留全局拓扑结构的问题——谱方法可能破坏拓扑
|
|
22
|
+
|
|
23
|
+
## 会路由到哪些知识域
|
|
24
|
+
|
|
25
|
+
- **matrix-analysis/spectral-decomposition**:EVD、Schur 分解、正规矩阵
|
|
26
|
+
- **matrix-analysis/low-rank-approximation**:Eckart-Young 定理、随机化 SVD
|
|
27
|
+
- **matrix-analysis/matrix-perturbation**:Weyl 不等式、Davis-Kahan 定理
|
|
28
|
+
- **matrix-analysis/positive-semidefinite**:PSD 矩阵的谱性质、Cholesky
|
|
29
|
+
|
|
30
|
+
## 可能产生哪些 AI 设计
|
|
31
|
+
|
|
32
|
+
- **谱归一化**:约束权重矩阵的最大奇异值,稳定训练
|
|
33
|
+
- **低秩适配器 (LoRA)**:在截断 SVD 子空间中做微调
|
|
34
|
+
- **谱图注意力**:用图 Laplacian 特征向量做位置编码
|
|
35
|
+
- **谱聚类路由**:用 top-k 特征向量做 MoE token 分配
|
|
36
|
+
- **有效秩监控**:跟踪权重矩阵的稳定秩,检测过拟合
|
|
37
|
+
|
|
38
|
+
## 推理协议
|
|
39
|
+
|
|
40
|
+
1. **识别算子**:哪个矩阵/核/图需要谱分析?维度多大?
|
|
41
|
+
2. **计算或估计谱**:完整 EVD(小矩阵)/ 幂迭代估计主导特征值 / 随机化 SVD
|
|
42
|
+
3. **分析谱分布**:条件数、谱隙、有效秩、衰减率
|
|
43
|
+
4. **识别主导分量**:前 k 个特征值解释了多大比例的方差/Frobenius 范数?
|
|
44
|
+
5. **评估截断影响**:丢弃尾部特征造成的误差(Eckart-Young 给出精确界)
|
|
45
|
+
|
|
46
|
+
## 验收标准
|
|
47
|
+
|
|
48
|
+
- 目标算子已明确定义
|
|
49
|
+
- 谱(或主导特征值/奇异值)已计算或估计
|
|
50
|
+
- 谱分布指标已给出(条件数、谱隙、有效秩)
|
|
51
|
+
- 截断/近似决策有量化误差界(Weyl/Davis-Kahan/Eckart-Young)
|
|
52
|
+
- 输出包含可执行结论(预条件设计、降维维度选择、稳定性保证)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# ⚛️ Symmetry Lens
|
|
2
|
+
|
|
3
|
+
> Seek the invariant amid change — every symmetry corresponds to a conserved quantity, and every invariant is a key to simplifying the problem
|
|
4
|
+
|
|
5
|
+
## What Perspective It Offers
|
|
6
|
+
|
|
7
|
+
Symmetry is a way of "finding what remains unchanged under transformations": when confronting a complex system, first ask, "Under what transformations do which properties of the system remain invariant?" Invariants are the core tool for simplification — they distinguish only between orbits (equivalence classes), not between elements within the same orbit. A complete set of invariants can embed the entire space into a simpler quotient space, achieving a full classification. Noether's theorem tells us that every continuous symmetry necessarily corresponds to a conservation law.
|
|
8
|
+
|
|
9
|
+
## What Problems It Is Suited to Diagnose
|
|
10
|
+
|
|
11
|
+
- Facing a complex system and seeking simplification clues — use invariants to reduce dimensionality
|
|
12
|
+
- Needing to classify or identify objects — use orbits (the quotient space X/G)
|
|
13
|
+
- Searching for conserved quantities or invariants — functions that are constant on orbits
|
|
14
|
+
- Determining the solvability of equations (Galois theory) or designing equivariant structures
|
|
15
|
+
|
|
16
|
+
## What Problems It Is Not Suited For
|
|
17
|
+
|
|
18
|
+
- The system is completely asymmetric with no discernible pattern — no group action is available to exploit
|
|
19
|
+
- Precise numerical solutions are required — symmetry provides structural information, not specific values
|
|
20
|
+
- Symmetry breaking is the central mechanism — one should turn to analyzing the breaking pattern rather than searching for invariants
|
|
21
|
+
- The group structure is too complex — when the quotient space is no simpler than the original space
|
|
22
|
+
|
|
23
|
+
## Which Knowledge Domains It Routes To
|
|
24
|
+
|
|
25
|
+
- `lie-theory/group-action`: Group actions, the orbit-stabilizer theorem, and Burnside's lemma — the algebraic foundations of symmetry
|
|
26
|
+
- **lie-theory**: Lie groups, Lie algebras, and Noether's theorem — continuous symmetries and conservation laws
|
|
27
|
+
- `lie-theory/lie-group`: Galois groups and solvable groups — algebraic criteria for the solvability of equations
|
|
28
|
+
|
|
29
|
+
## What AI Designs It May Inspire
|
|
30
|
+
|
|
31
|
+
- **Symmetry Detector**: Identifies candidate transformation groups from a problem description and verifies the group axioms
|
|
32
|
+
- **Invariant Extractor**: Computes invariants using the Reynolds operator or Lie algebra generators
|
|
33
|
+
- **Quotient-Space Classifier**: Works on X/G and uses a complete set of invariants to classify equivalence classes
|
|
34
|
+
|
|
35
|
+
## Reasoning Protocol
|
|
36
|
+
|
|
37
|
+
1. **Identify the Transformation Group**: List the candidate transformations of the system, organize them into a candidate group, and verify closure, associativity, identity, and inverses
|
|
38
|
+
2. **Find Invariants**: For finite groups, use the Reynolds operator; for continuous groups, use Lie algebra generator equations
|
|
39
|
+
3. **Simplify Using Invariants**: Work on the quotient space X/G, replacing constrained variables with invariants
|
|
40
|
+
4. **Orbit Classification**: Use the orbit-stabilizer theorem and assess the completeness of the invariant set
|
|
41
|
+
5. **Check for Symmetry Breaking**: Identify G → H breaking patterns and analyze Goldstone modes
|
|
42
|
+
|
|
43
|
+
## Acceptance Criteria
|
|
44
|
+
|
|
45
|
+
- The candidate group has been verified through the axioms (not merely assumed to have group structure)
|
|
46
|
+
- Invariants have been explicitly given, distinguishing orbital invariants from global invariants
|
|
47
|
+
- The simplification strategy has stated the degree of dimensionality reduction
|
|
48
|
+
- Symmetry breaking has been checked (presence or absence; spontaneous or explicit)
|
|
49
|
+
- Classification results and the completeness of the invariant set have been assessed
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# ⚛️ 对称透镜
|
|
2
|
+
|
|
3
|
+
> 在变化中寻找不变——每一个对称性都对应一个守恒量,每一个不变量都是简化问题的钥匙
|
|
4
|
+
|
|
5
|
+
## 它是什么视角
|
|
6
|
+
|
|
7
|
+
对称是一种"在变换下寻找不变"的眼光:面对复杂系统时,先问"什么变换下系统的哪些性质不变?"不变量是简化问题的核心工具——它只区分轨道(等价类),不区分同轨道内的元素。完备的不变量集能将整个空间嵌入更简单的商空间,实现完全分类。Noether 定理告诉我们:连续对称必然对应守恒律。
|
|
8
|
+
|
|
9
|
+
## 适合诊断什么问题
|
|
10
|
+
|
|
11
|
+
- 面对复杂系统想找简化线索——利用不变量降维
|
|
12
|
+
- 需要分类/识别对象——利用轨道(商空间 X/G)
|
|
13
|
+
- 寻找守恒量或不变量——轨道上取常值的函数
|
|
14
|
+
- 判断方程可解性(Galois 理论)或设计等变结构
|
|
15
|
+
|
|
16
|
+
## 不适合什么问题
|
|
17
|
+
|
|
18
|
+
- 系统完全不对称且无规律——无群作用可利用
|
|
19
|
+
- 需要精确数值解——对称性给结构信息而非具体数值
|
|
20
|
+
- 对称破缺是核心机制——应转向分析破缺模式而非找不变量
|
|
21
|
+
- 群结构过于复杂——商空间不比原空间简单时
|
|
22
|
+
|
|
23
|
+
## 会路由到哪些知识域
|
|
24
|
+
|
|
25
|
+
- `lie-theory/group-action`:群作用、轨道-稳定子定理、Burnside 引理——对称性的代数基础
|
|
26
|
+
- **lie-theory**:李群/李代数、Noether 定理——连续对称与守恒律
|
|
27
|
+
- `lie-theory/lie-group`:Galois 群、可解群——方程可解性的代数判据
|
|
28
|
+
|
|
29
|
+
## 可能产生哪些 AI 设计
|
|
30
|
+
|
|
31
|
+
- **对称性探测器**:从问题描述中识别候选变换群,验证群公理
|
|
32
|
+
- **不变量提取器**:利用 Reynolds 算子或 Lie 代数生成元计算不变量
|
|
33
|
+
- **商空间分类器**:在 X/G 上工作,用完备不变量集实现等价类分类
|
|
34
|
+
|
|
35
|
+
## 推理协议
|
|
36
|
+
|
|
37
|
+
1. **识别变换群**:列出系统可能的变换,组织为候选群,验证封闭/结合/单位/逆
|
|
38
|
+
2. **寻找不变量**:有限群用 Reynolds 算子,连续群用 Lie 代数生成元方程
|
|
39
|
+
3. **利用不变量简化**:在商空间 X/G 上工作,用不变量替代被约束变量
|
|
40
|
+
4. **轨道分类**:利用轨道-稳定子定理,评估不变量完备性
|
|
41
|
+
5. **检查对称破缺**:识别 G→H 破缺模式,分析 Goldstone 模数
|
|
42
|
+
|
|
43
|
+
## 验收标准
|
|
44
|
+
|
|
45
|
+
- 候选群已通过公理验证(不是假设它有群结构)
|
|
46
|
+
- 不变量已显式给出,区分了轨道不变量与全局不变量
|
|
47
|
+
- 简化策略已说明维度缩减程度
|
|
48
|
+
- 对称破缺已检查(存在/破缺、自发/显式)
|
|
49
|
+
- 分类结果与不变量完备性已评估
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# 🌀 Topological Lens
|
|
2
|
+
|
|
3
|
+
> Stretching and bending are allowed, but tearing is not — the truly important properties are those invariant under continuous deformation
|
|
4
|
+
|
|
5
|
+
## What Perspective It Offers
|
|
6
|
+
|
|
7
|
+
Topology is a way of "ignoring precise measurements and focusing only on qualitative structure": when exact distances do not matter, topology captures the essential structure — connectedness, the number of holes, and dimension. A donut and a coffee cup are topologically equivalent because each has exactly one hole. The core insight is that shape matters more than size; invariants that survive continuous deformation are the truly robust properties. Cohomology (especially Čech cohomology) can also detect whether "local fragments can be assembled into a globally consistent object."
|
|
8
|
+
|
|
9
|
+
## What Problems It Is Suited to Diagnose
|
|
10
|
+
|
|
11
|
+
- Qualitative classification — not "how large" or "how far," but "is it connected?" and "how many holes does it have?"
|
|
12
|
+
- Robustness analysis — topological invariants guarantee that properties do not vanish under continuous perturbation
|
|
13
|
+
- Data whose shape standard statistics cannot capture — clusters, voids, and ring-like structures
|
|
14
|
+
- Detecting global consistency obstructions — whether local fragments can be assembled into a globally consistent object
|
|
15
|
+
|
|
16
|
+
## What Problems It Is Not Suited For
|
|
17
|
+
|
|
18
|
+
- Precise measurements are required — topology concerns only qualitative structure and does not provide distances or angles
|
|
19
|
+
- Metric properties are central — topologically equivalent spaces can have entirely different metric behavior
|
|
20
|
+
- Precise numerical decisions are needed — the topological perspective is too coarse to answer "how much" questions
|
|
21
|
+
|
|
22
|
+
## Which Knowledge Domains It Routes To
|
|
23
|
+
|
|
24
|
+
- `topology/persistent-homology`: Fundamental group, homology groups, Betti numbers, and cohomology — computational tools for topological invariants
|
|
25
|
+
- **tda**: Persistent homology, filtrations, and simplicial complexes — extracting topological features from data
|
|
26
|
+
- `topology/fundamental-group`: Sheaf cohomology and Čech cohomology — algebraic criteria for local-to-global consistency
|
|
27
|
+
|
|
28
|
+
## What AI Designs It May Inspire
|
|
29
|
+
|
|
30
|
+
- **Topological Feature Extractor**: Builds filtrations from point-cloud data and computes persistent homology barcodes
|
|
31
|
+
- **Consistency Detector**: Uses Čech cohomology H¹ to detect obstructions to global consistency among local fragments
|
|
32
|
+
- **Shape Classifier**: Uses combinations of invariants (χ, π₁, βₙ) to perform topological classification of spaces
|
|
33
|
+
|
|
34
|
+
## Reasoning Protocol
|
|
35
|
+
|
|
36
|
+
1. **Specify the Equivalence Standard**: Determine whether the relevant notion is homeomorphism, homotopy equivalence, or diffeomorphism; distinguish what may vary (distance) from what must remain invariant (number of holes)
|
|
37
|
+
2. **Compute Topological Invariants**: Euler characteristic, connected components, fundamental group, homology groups, and Betti numbers
|
|
38
|
+
3. **Classify Using Invariants**: Same χ implies same surface type; same π₁ implies same homotopy type
|
|
39
|
+
4. **Construct a Topological Model**: Build a filtration from a point cloud, a graph from a network, or a phase space from a dynamical system
|
|
40
|
+
5. **Verify Equivalence**: Attempt to construct an explicit homeomorphism or homotopy; check whether all invariants match
|
|
41
|
+
|
|
42
|
+
## Acceptance Criteria
|
|
43
|
+
|
|
44
|
+
- The equivalence standard has been explicitly stated (homeomorphism, homotopy equivalence, or diffeomorphism)
|
|
45
|
+
- Invariants have been computed: at minimum, χ, π₁, and βₙ (where obtainable) have been provided
|
|
46
|
+
- A classification conclusion has been given, with a note on whether the invariants are complete
|
|
47
|
+
- Equivalence verification has been completed (match, mismatch, or inconclusive)
|
|
48
|
+
- The reasoning chain is complete: "because [topological property] → [conclusion]"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# 🌀 拓扑透镜
|
|
2
|
+
|
|
3
|
+
> 可以拉伸弯曲但不能撕裂——真正重要的性质在连续变形中不变
|
|
4
|
+
|
|
5
|
+
## 它是什么视角
|
|
6
|
+
|
|
7
|
+
拓扑是一种"忽略精确度量、只看定性结构"的眼光:当精确距离不重要时,拓扑捕获本质结构——连通性、洞的个数、维数。甜甜圈与咖啡杯拓扑等价,因为都恰好有一个洞。核心洞察:形状比大小重要,连续变形下存活的不变量才是真正鲁棒的性质。上同调(特别是 Cech 上同调)还能检测"局部片段能否拼成全局相容对象"。
|
|
8
|
+
|
|
9
|
+
## 适合诊断什么问题
|
|
10
|
+
|
|
11
|
+
- 需要定性分类——不在乎"多大""多远",只在乎"是否连通""有多少洞"
|
|
12
|
+
- 需要鲁棒性分析——拓扑不变量保证性质在连续扰动下不消失
|
|
13
|
+
- 数据有标准统计无法捕获的形状——聚类、空洞、环状结构
|
|
14
|
+
- 检测全局一致性障碍——局部片段能否拼成全局相容对象
|
|
15
|
+
|
|
16
|
+
## 不适合什么问题
|
|
17
|
+
|
|
18
|
+
- 需要精确测量——拓扑只关心定性结构,不给距离/角度
|
|
19
|
+
- 度量性质是核心——拓扑等价空间可有完全不同的度量行为
|
|
20
|
+
- 需要精确数值决策——拓扑视角过粗,回答不了"多少"的问题
|
|
21
|
+
|
|
22
|
+
## 会路由到哪些知识域
|
|
23
|
+
|
|
24
|
+
- `topology/persistent-homology`:基本群、同调群、Betti 数、上同调——拓扑不变量的计算工具
|
|
25
|
+
- **tda**:持续同调、滤流、单纯复形——从数据中提取拓扑特征
|
|
26
|
+
- `topology/fundamental-group`:层上同调、Cech 上同调——从局部到全局的一致性代数判据
|
|
27
|
+
|
|
28
|
+
## 可能产生哪些 AI 设计
|
|
29
|
+
|
|
30
|
+
- **拓扑特征提取器**:从数据点云构建滤流,计算持续同调条形码
|
|
31
|
+
- **一致性检测器**:用 Cech 上同调 H^1 检测局部片段的全局相容性障碍
|
|
32
|
+
- **形状分类器**:利用不变量组合(chi, pi_1, beta_n)对空间做拓扑分类
|
|
33
|
+
|
|
34
|
+
## 推理协议
|
|
35
|
+
|
|
36
|
+
1. **明确等价标准**:确定同胚/同伦/微分同胚,区分什么可变(距离)什么不变(洞数)
|
|
37
|
+
2. **计算拓扑不变量**:欧拉示性数、连通分量、基本群、同调群、Betti 数
|
|
38
|
+
3. **用不变量分类**:同 chi 同类型曲面;同 pi_1 同同伦类型
|
|
39
|
+
4. **构造拓扑模型**:点云建滤流/网络建图/系统建相空间
|
|
40
|
+
5. **验证等价性**:尝试构造显式同胚/同伦,检查不变量是否全部匹配
|
|
41
|
+
|
|
42
|
+
## 验收标准
|
|
43
|
+
|
|
44
|
+
- 等价标准已明确(同胚/同伦/微分同胚)
|
|
45
|
+
- 不变量已计算:chi, pi_1, beta_n 至少给出可得的
|
|
46
|
+
- 分类结论已给出,标注了不变量是否完备
|
|
47
|
+
- 等价验证已完成(匹配/不匹配/不确定)
|
|
48
|
+
- 推理链条完整:"因为[拓扑性质] → [结论]"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# ⚖️ Variational Lens
|
|
2
|
+
|
|
3
|
+
> Pursue the best among the feasible under constraints — convexity determines difficulty, duality reveals structure
|
|
4
|
+
|
|
5
|
+
## What Perspective It Offers
|
|
6
|
+
|
|
7
|
+
The variational perspective (formerly "Optimization") is a way of viewing "rational decision-making under constraints": any decision problem can be formulated as maximizing or minimizing an objective subject to constraints. The core idea is not to pursue an abstract "best," but to find the optimum within the feasible region. Convexity is the critical watershed — for convex problems, a local optimum is the global optimum; for non-convex problems, one must guard against local traps. Shadow prices (Lagrange multipliers) reveal which constraints truly matter.
|
|
8
|
+
|
|
9
|
+
## What Problems It Is Suited to Diagnose
|
|
10
|
+
|
|
11
|
+
- Resource allocation and trade-off decisions — maximizing or minimizing a quantifiable objective under constraints
|
|
12
|
+
- Convexity determination — assessing problem difficulty and selecting solution strategies
|
|
13
|
+
- Duality structure analysis — when the primal problem is hard, the dual may be more tractable
|
|
14
|
+
- Sensitivity analysis — how the optimal solution responds to changes in constraints
|
|
15
|
+
|
|
16
|
+
## What Problems It Is Not Suited For
|
|
17
|
+
|
|
18
|
+
- Problems with no clear evaluation criterion — define the objective before optimizing
|
|
19
|
+
- Purely executional tasks — there is no room for optimization
|
|
20
|
+
- Problems that are inherently qualitative rather than quantitative extrema — model first, then optimize
|
|
21
|
+
|
|
22
|
+
## Which Knowledge Domains It Routes To
|
|
23
|
+
|
|
24
|
+
- `optimization/convex-optimization`: Convexity determination, properties of convex sets and functions — determines the difficulty class of the problem
|
|
25
|
+
- **optimization**: Solution methods for LP, QP, convex, non-convex, combinatorial, and stochastic optimization
|
|
26
|
+
- **matrix-analysis**: Condition numbers, preconditioning, and low-rank approximation — feasibility analysis for second-order methods
|
|
27
|
+
|
|
28
|
+
## What AI Designs It May Inspire
|
|
29
|
+
|
|
30
|
+
- **Objective–Constraint Decomposer**: Automatically extracts the objective function, hard and soft constraints, and the feasible region from a problem description
|
|
31
|
+
- **Dual-Solution Router**: Detects whether the primal or dual problem is more tractable and selects the optimal solution path
|
|
32
|
+
- **Sensitivity Monitor**: Tracks active constraints and shadow prices, triggering re-optimization when constraints change
|
|
33
|
+
|
|
34
|
+
## Reasoning Protocol
|
|
35
|
+
|
|
36
|
+
1. **Define the Objective**: Specify what to maximize or minimize; determine convexity (if convex, local = global)
|
|
37
|
+
2. **List Constraints**: Distinguish hard from soft constraints, inequality from equality, linear from nonlinear
|
|
38
|
+
3. **Classify Problem Type**: LP, QP, convex, non-convex, combinatorial, or stochastic — match to an appropriate solution method
|
|
39
|
+
4. **Solve and Verify**: Exploit convexity or employ global search; check feasibility and optimality
|
|
40
|
+
5. **Sensitivity Analysis**: Compute shadow prices, identify active constraints, and assess robustness
|
|
41
|
+
|
|
42
|
+
## Acceptance Criteria
|
|
43
|
+
|
|
44
|
+
- The objective function and its convexity status have been explicitly annotated
|
|
45
|
+
- All constraints (including implicit ones) have been exhaustively listed
|
|
46
|
+
- The problem type has been classified and a solution method has been matched
|
|
47
|
+
- Sensitivity analysis has been provided (at minimum, active constraints are identified)
|
|
48
|
+
- Multi-objective scenarios have been subjected to Pareto analysis
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# ⚖️ 变分透镜
|
|
2
|
+
|
|
3
|
+
> 在约束下追求可行中的最优——凸性决定难度,对偶揭示结构
|
|
4
|
+
|
|
5
|
+
## 它是什么视角
|
|
6
|
+
|
|
7
|
+
变分(原"优化")是一种"约束下的理性决策"眼光:任何决策问题都可以表述为在约束条件下最大化或最小化某个目标。核心不是追求抽象的"最好",而是在可行域中寻找最优。凸性是关键分水岭——凸问题局部最优即全局最优,非凸问题则需警惕局部陷阱。影子价格(拉格朗日乘子)揭示哪些约束真正重要。
|
|
8
|
+
|
|
9
|
+
## 适合诊断什么问题
|
|
10
|
+
|
|
11
|
+
- 资源分配与取舍决策——在约束下最大化/最小化可量化目标
|
|
12
|
+
- 凸性判定——判断问题难度,选择求解策略
|
|
13
|
+
- 对偶结构分析——原问题难解时,对偶问题可能更易处理
|
|
14
|
+
- 灵敏度分析——约束变化时最优解如何响应
|
|
15
|
+
|
|
16
|
+
## 不适合什么问题
|
|
17
|
+
|
|
18
|
+
- 没有明确评价标准——先定义目标再优化
|
|
19
|
+
- 纯执行性任务——没有优化空间
|
|
20
|
+
- 本质是定性判断而非定量极值——应先建模再优化
|
|
21
|
+
|
|
22
|
+
## 会路由到哪些知识域
|
|
23
|
+
|
|
24
|
+
- `optimization/convex-optimization`:凸性判定、凸集/凸函数性质——决定问题难度等级
|
|
25
|
+
- **optimization**:LP/QP/凸/非凸/组合/随机优化的求解方法
|
|
26
|
+
- **matrix-analysis**:条件数、预条件、低秩近似——二阶法的可行性分析
|
|
27
|
+
|
|
28
|
+
## 可能产生哪些 AI 设计
|
|
29
|
+
|
|
30
|
+
- **目标-约束分解器**:从问题描述中自动提取目标函数、硬/软约束、可行域
|
|
31
|
+
- **对偶求解路由**:检测原问题与对偶问题哪个更易解,选择最优路径
|
|
32
|
+
- **灵敏度监控器**:跟踪活跃约束与影子价格,约束变化时触发重优化
|
|
33
|
+
|
|
34
|
+
## 推理协议
|
|
35
|
+
|
|
36
|
+
1. **定义目标**:明确最大化/最小化什么,判断凸性(凸则局部=全局)
|
|
37
|
+
2. **列出约束**:区分硬/软约束、不等式/等式、线性/非线性
|
|
38
|
+
3. **分类问题类型**:LP/QP/凸/非凸/组合/随机,匹配求解方法
|
|
39
|
+
4. **求解与验证**:利用凸性或全局搜索求解,检查可行性与最优性
|
|
40
|
+
5. **灵敏度分析**:计算影子价格,识别活跃约束,评估鲁棒性
|
|
41
|
+
|
|
42
|
+
## 验收标准
|
|
43
|
+
|
|
44
|
+
- 目标函数与凸性已明确标注
|
|
45
|
+
- 所有约束(含隐式约束)已穷尽列出
|
|
46
|
+
- 问题类型已分类,求解方法已匹配
|
|
47
|
+
- 灵敏度分析已给出(至少标注活跃约束)
|
|
48
|
+
- 多目标场景已做帕累托分析
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "math-skill",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "面向 AI 架构创新的数学研究操作系统 v3:三层正交架构(思想透镜 / 数学知识库 / 设计翻译层),自动诊断用户意图并路由。Math Research OS for AI architecture design: thinking lenses + math knowledge base + design translation layer with auto intent diagnosis.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"math",
|
|
7
7
|
"mathematics",
|
|
@@ -41,7 +41,12 @@
|
|
|
41
41
|
"agentic-workflow",
|
|
42
42
|
"auto-trigger",
|
|
43
43
|
"co-design",
|
|
44
|
-
"research"
|
|
44
|
+
"research",
|
|
45
|
+
"bilingual",
|
|
46
|
+
"lenses",
|
|
47
|
+
"knowledge-base",
|
|
48
|
+
"design-patterns",
|
|
49
|
+
"math-research-os"
|
|
45
50
|
],
|
|
46
51
|
"license": "MIT",
|
|
47
52
|
"author": "the-thinker0",
|
|
@@ -55,9 +60,12 @@
|
|
|
55
60
|
},
|
|
56
61
|
"files": [
|
|
57
62
|
"README.md",
|
|
63
|
+
"README.en-US.md",
|
|
58
64
|
"LICENSE",
|
|
59
65
|
"commands/",
|
|
60
66
|
"skills/",
|
|
67
|
+
"lenses/",
|
|
68
|
+
"design-patterns/",
|
|
61
69
|
"agents/",
|
|
62
70
|
"knowledge-base/",
|
|
63
71
|
"references/"
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Agentic Research Workflow / Human-in-the-Agent-Loop
|
|
2
|
+
|
|
3
|
+
> Distilled from frontline auto-research practice (Infra / Algorithms / Chip Co-design). It defines the **collaborative mindset** this skill expects: what humans do, what the agent does, and what loop grounds "activating mathematical capability" in practice.
|
|
4
|
+
> The activator references this file at runtime. This file defines the collaboration style the skill expects.
|
|
5
|
+
|
|
6
|
+
## Creed
|
|
7
|
+
|
|
8
|
+
1. **The mathematical foundation of this AI revolution is the first time 20th-century mathematics has stepped onto the commercial computing stage** — category theory, algebraic topology, algebraic geometry. The mathematical foundations of most mainstream algorithms still largely rest on the calculus and linear algebra of 1800–1900. Activating modern mathematics in algorithm design is the most important task during the algorithm exploration phase.
|
|
9
|
+
2. **Humility**: The breadth of knowledge from the pre-training stage already surpasses any individual. **More knowledge is learned from the model than taught to it.** Letting go of the bias toward "teaching the model" usually yields better results.
|
|
10
|
+
3. **Mathematical beauty ≠ computability**: Many mathematically elegant constructs break down in the face of GPU parallelism and low-precision arithmetic errors. Every deliverable must pass the acceptance gate defined in `gpu-friendly-math.md`.
|
|
11
|
+
|
|
12
|
+
## Division of Labor
|
|
13
|
+
|
|
14
|
+
**Humans are responsible for (what humans excel at and find most valuable):**
|
|
15
|
+
- **Cross-domain activation**: Transferring the structure of one domain to another. The model already contains sufficient internal knowledge, but "without someone to activate it, that knowledge is unlikely to be developed." Example: applying algebraic geometry perspectives to study model architectures; historically, the correspondence between fiber bundles and gauge fields — the structure was already there, awaiting only a single cross-domain activation.
|
|
16
|
+
- **Avoid hard-coding subjective bias**: The more rules you add, the more you constrain the model's ability to explore alternatives. To get good results, **do not impose human subjective preferences by force.**
|
|
17
|
+
- **Expanding cognitive context with the model**: The human brain can manually compare at most 2–3 variables simultaneously, while the model's long context window can weigh many at once. Leveraging the model to expand an individual's cognitive context is a core principle of agentic development.
|
|
18
|
+
- **Choosing directions and setting acceptance gates**: Deciding which path to explore and what standards to apply for acceptance.
|
|
19
|
+
|
|
20
|
+
**The Agent is responsible for (what the model excels at):**
|
|
21
|
+
- **Large-context search and enumeration**: Enumerating large numbers of candidate structures, comparing multi-parameter combinations in parallel.
|
|
22
|
+
- **Verification**: Checking mathematical correctness + GPU feasibility.
|
|
23
|
+
- **Building and executing test plans**: Recording research tasks as trackable markdown tables, autonomously adding new cases, fixing compilation errors, and retrying on failure.
|
|
24
|
+
|
|
25
|
+
## The Activation Loop
|
|
26
|
+
|
|
27
|
+
> The activator's `Diagnosis → Mapping → GPU Filtering` main pipeline is a distillation of this loop.
|
|
28
|
+
|
|
29
|
+
1. **Diagnosis**: What is the algorithmic structure / bottleneck of the problem? (Do not start by piling on math tutorials.)
|
|
30
|
+
2. **Cross-domain activation**: Scan `books/*.md` for transferable modern mathematical structures, **enumerate multiple candidates** (leveraging the model's large-context advantage).
|
|
31
|
+
3. **Dual acceptance gate**: Each candidate passes two gates — (1) Mathematically correct (differentiable, self-consistent, with correctness guarantees); (2) GPU-feasible (the eight dimensions of `gpu-friendly-math.md`).
|
|
32
|
+
4. **Iterative tracking**: Record candidates, scores, and status in a markdown test plan, converging step by step.
|
|
33
|
+
|
|
34
|
+
## Markdown Test Plan Template / Tracking Template
|
|
35
|
+
|
|
36
|
+
Record research tasks in a table that the Agent can continuously update:
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
| Candidate Structure | Math Correctness | GPU 8-Dim | Complexity | Status | Notes / Next Steps |
|
|
40
|
+
|--------------------|-----------------|-----------|------------|--------|-------------------|
|
|
41
|
+
| Tropical gating replacing TopK | ✅ Differentiable relaxation | 1✅2❌3✅… | Sub-quadratic (per-token) | Verifying | Compare with SWA baseline |
|
|
42
|
+
| … | | | | Todo | |
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The Agent is responsible for tracking execution and updating this table; the human is responsible for reading the table and adjusting direction.
|
|
46
|
+
|
|
47
|
+
## Operating Principles
|
|
48
|
+
|
|
49
|
+
- **Diagnose first, then map, then filter** — do not produce lengthy math tutorials; go straight to structural mapping and GPU feasibility.
|
|
50
|
+
- **Preserve exploratory freedom**: Add fewer hard rules; leave room for the model to explore.
|
|
51
|
+
- **Humans should be "lazy"**: Delegate all tedious work to the Agent; humans focus only on cross-domain activation and directional judgment.
|
|
52
|
+
- **Progressive disclosure**: The methodology layer, GPU checklist, and book layer are all loaded on demand; only the minimal trigger and diagnostic logic stays resident, to save tokens.
|
|
53
|
+
- **Do not create a pile of skills / rules right away**: The model already has many capabilities; use them fully first, then add structure.
|
|
@@ -88,15 +88,15 @@
|
|
|
88
88
|
| 有限域编码压缩 KV/梯度 | 22, 31 | 2❌ 非浮点 MAC,1/6✅ int 并行 | ❌主干 / ✅前后处理 |
|
|
89
89
|
| 循环群表示(FFT/RoPE token mixing)| 4, 11 | 1✅ 2✅ 3✅(n log n)| ✅ |
|
|
90
90
|
|
|
91
|
-
##
|
|
91
|
+
## 该调用哪个思想透镜
|
|
92
92
|
|
|
93
|
-
- **主:`symmetry
|
|
94
|
-
- **副:`
|
|
93
|
+
- **主:`symmetry`(对称与不变性)**——群作用、等变/不变、轨道-稳定子是本书与 ML 的最大接口。
|
|
94
|
+
- **副:`categorical`**——提取群/环/域的公共结构,看穿"不同模块其实是同一代数对象"。
|
|
95
95
|
- **副:`axiomatization`**——放松环公理得半环、逐条核对所设代数性质是否真成立(防伪对称)。
|
|
96
|
-
- **副:`
|
|
96
|
+
- **副:`duality`**——同态/同构作等价转换、FFT/频域变换简化问题。
|
|
97
97
|
- **副:`discrete-combinatorial`**——有限群计数(Burnside, 29)、编码(31)、有限域枚举(22)。
|
|
98
98
|
|
|
99
|
-
典型组合链:先 `symmetry
|
|
99
|
+
典型组合链:先 `symmetry` 识别问题里的群与不变量 → `categorical` 抽出公共代数结构 → `axiomatization` 核对公理是否真成立(防伪对称、防误用减法)→ `duality` 落成可学习线性映射 → 最后过 `../gpu-friendly-math.md` 八维门。
|
|
100
100
|
|
|
101
101
|
## 反模式
|
|
102
102
|
|
|
@@ -110,6 +110,10 @@
|
|
|
110
110
|
|
|
111
111
|
## 深挖入口
|
|
112
112
|
|
|
113
|
+
> **📖 书目信息**:Joseph A. Gallian, *Contemporary Abstract Algebra*, 8th Edition, Brooks/Cole, Cengage Learning, 2013. ISBN 978-1-133-59971-5.
|
|
114
|
+
>
|
|
115
|
+
> **启用方式**:将 `Contemporary Abstract Algebra.pdf` 放入项目根目录的 `math_book/` 文件夹,Agent 即可自动搜索原文。PDF 不随 npm/git 分发(版权原因),需自行获取。
|
|
116
|
+
|
|
113
117
|
> **全保真回查 = Agent 自动搜索本地 PDF**:`math_book/Contemporary Abstract Algebra.pdf`。需要精确定义/定理/例子时,让 Agent 按下列真实章号定向略读,不要凭记忆;若安装环境没有 `math_book/`,停在本蒸馏稿层。
|
|
114
118
|
|
|
115
119
|
- **Ch 5 Permutation Groups**——轨道 orbit / 稳定子 stabilizer:等变权重共享的根。
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
## GPU 友好性警告
|
|
114
114
|
|
|
115
115
|
> **必读且唯一权威**:`../gpu-friendly-math.md`
|
|
116
|
-
> 八维记分卡:①张量化 ②GEMM 可映射 ③复杂度 ④显存/KV ⑤低精度稳定
|
|
116
|
+
> 八维记分卡:①张量化 ②GEMM 可映射 ③复杂度 ④显存/KV ⑤低精度稳定 ⑥并行与通信 ⑦稀疏结构 ⑧算子融合。
|
|
117
117
|
> **数学美 ≠ 可算**;任一维"不友好且不可改造"即淘汰。
|
|
118
118
|
|
|
119
119
|
**可落 GEMM / 亚二次(友好 ✅):**
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
- **理想消元 / Gröbner 基(Chevalley 定理与消元理论,§8.4)**:组合爆炸、串行、非结构化 → 违反维度③⑥⑦。
|
|
136
136
|
- **动态 / 非结构化的 Čech 覆盖**:若覆盖随输入变化或交叠不规则,H¹ 计算退化为随机 gather/scatter → 违反维度⑦。**必须固定有限覆盖 + 结构化(块/带状)交叠。**
|
|
137
137
|
|
|
138
|
-
##
|
|
138
|
+
## 该调用哪个思想透镜
|
|
139
139
|
|
|
140
140
|
- **topological-thinking(🌀 拓扑思想)** — 主力:上同调、H¹ 障碍、连续变形下的不变量,正是层/上同调激活的母题。
|
|
141
|
-
- **
|
|
142
|
-
- **
|
|
143
|
-
- **symmetry
|
|
141
|
+
- **categorical(范畴化透镜)**:用"层 = 局部数据 + 黏合"提取消息传递的本质,把工程算子抽象为限制映射。
|
|
142
|
+
- **duality(对偶透镜)**:tropicalization、Plücker 嵌入、pullback/pushforward —— 用等价转换把难算问题搬到可算坐标系。
|
|
143
|
+
- **symmetry(⚛️ 对称与不变性)**:射影不变、规范(gauge)对称、层的协变性,约束模型的等变结构。
|
|
144
144
|
- **axiomatization(📐 公理化)**:把层公理(局部性 + 黏合)、上同调长正合列当作正确性约束,审查"该有的一致性是否被违反"。
|
|
145
145
|
|
|
146
146
|
## 反模式
|
|
@@ -154,6 +154,10 @@
|
|
|
154
154
|
|
|
155
155
|
## 深挖入口
|
|
156
156
|
|
|
157
|
+
> **📖 书目信息**:Ravi Vakil, *The Rising Sea: Foundations of Algebraic Geometry*, Princeton University Press, 2025. ISBN 978-0-691-26866-8.
|
|
158
|
+
>
|
|
159
|
+
> **启用方式**:将 `The Rising Sea Foundations of Algebraic Geometry.pdf` 放入项目根目录的 `math_book/` 文件夹,Agent 即可自动搜索原文。PDF 不随 npm/git 分发(版权原因),需自行获取。
|
|
160
|
+
|
|
157
161
|
**全保真回查(full-fidelity lookup)**:当摘要不足以支撑设计时,让 Agent 自动检索本地 PDF
|
|
158
162
|
`math_book/The Rising Sea Foundations of Algebraic Geometry.pdf`
|
|
159
163
|
(用 `pdftotext -f <start> -l <end>` 取定向页,**不要 dump 整本**)。
|
|
@@ -98,15 +98,15 @@
|
|
|
98
98
|
|
|
99
99
|
**结论**:黎曼 / 信息几何方法**只有在度量被结构化因子化(Kronecker / 块对角 / 低秩)后才 GPU 可行**;精确求逆与精确平行移动都属于"美但不可算",须改造或淘汰。
|
|
100
100
|
|
|
101
|
-
##
|
|
101
|
+
## 该调用哪个思想透镜
|
|
102
102
|
|
|
103
|
-
- **symmetry
|
|
103
|
+
- **symmetry(⚛️ 对称与不变性)—— 首选。** 规范等变、李群对称、纤维丛 = 把"frame / 坐标选择无关"编码成对称性,是本书与 DL 最强的接口。
|
|
104
104
|
- **optimization(⚖️ 优化)—— 并列首选。** 自然梯度、Riemannian SGD、曲率正则都是"在弯曲约束空间里找最优"。
|
|
105
105
|
- **transformation(🔄 变换)**:指数 / 对数映射、retraction、坐标变换简化问题。
|
|
106
106
|
- **modeling(🌉 建模)**:把参数 / 数据空间显式建模为流形,再翻译回算法。
|
|
107
107
|
- **topological-thinking(🌀 拓扑)**:辅助——de Rham 上同调 / 整体不变量用于守恒量与可积性诊断。
|
|
108
108
|
|
|
109
|
-
组合建议:先 `symmetry
|
|
109
|
+
组合建议:先 `symmetry` 定对称结构 → `optimization` 落到自然梯度 / Riemannian 优化 → `duality` 处理 retraction → 过 `../gpu-friendly-math.md` 验收门。
|
|
110
110
|
|
|
111
111
|
## 反模式
|
|
112
112
|
|
|
@@ -127,6 +127,10 @@
|
|
|
127
127
|
|
|
128
128
|
## 深挖入口
|
|
129
129
|
|
|
130
|
+
> **📖 书目信息**:Jeffrey M. Lee, *Manifolds and Differential Geometry*, Graduate Studies in Mathematics Vol. 107, American Mathematical Society, 2009. ISBN 978-0-8218-4815-9.
|
|
131
|
+
>
|
|
132
|
+
> **启用方式**:将 `Manifolds and Differential Geometry.pdf` 放入项目根目录的 `math_book/` 文件夹,Agent 即可自动搜索原文。PDF 不随 npm/git 分发(版权原因),需自行获取。
|
|
133
|
+
|
|
130
134
|
> 全保真回查 = 让 Agent **自动搜索本地 PDF** `math_book/Manifolds and Differential Geometry.pdf`(按章号 / 节号定位,勿凭记忆复述)。本摘要只给坐标,不替代原文。
|
|
131
135
|
|
|
132
136
|
- **§6.8 Principal and Associated Bundles** + **§12.12 G-Connections**:规范等变的几何基础(主丛 + 联络 = 规范场)。
|