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.
- package/README.en-US.md +50 -30
- package/README.md +26 -6
- package/agents/math-critic.en.md +30 -28
- package/agents/math-critic.md +30 -30
- package/commands/ask.en.md +15 -0
- package/commands/ask.md +6 -1
- package/design-patterns/attention/equivariant-attention.en.md +17 -11
- package/design-patterns/attention/equivariant-attention.md +16 -10
- package/design-patterns/attention/geometry-aware-attention.en.md +11 -11
- package/design-patterns/attention/geometry-aware-attention.md +10 -10
- package/design-patterns/attention/information-bottleneck-attention.en.md +40 -20
- package/design-patterns/attention/information-bottleneck-attention.md +40 -20
- package/design-patterns/attention/projection-attention.en.md +12 -12
- package/design-patterns/attention/projection-attention.md +11 -11
- package/design-patterns/attention/spectral-attention.en.md +27 -13
- package/design-patterns/attention/spectral-attention.md +26 -12
- package/design-patterns/compression/leverage-score-selection.en.md +14 -14
- package/design-patterns/compression/leverage-score-selection.md +14 -14
- package/design-patterns/compression/low-rank-kv-cache.en.md +40 -13
- package/design-patterns/compression/low-rank-kv-cache.md +39 -13
- package/design-patterns/compression/spectral-token-pruning.en.md +17 -15
- package/design-patterns/compression/spectral-token-pruning.md +17 -15
- package/design-patterns/compression/topology-preserving-compression.en.md +11 -11
- package/design-patterns/compression/topology-preserving-compression.md +11 -11
- package/design-patterns/loss/constraint-penalty.en.md +9 -5
- package/design-patterns/loss/constraint-penalty.md +10 -7
- package/design-patterns/loss/contrastive-loss.en.md +38 -12
- package/design-patterns/loss/contrastive-loss.md +39 -13
- package/design-patterns/loss/information-bottleneck-loss.en.md +6 -6
- package/design-patterns/loss/information-bottleneck-loss.md +7 -7
- package/design-patterns/loss/orthogonality-loss.en.md +25 -18
- package/design-patterns/loss/orthogonality-loss.md +25 -19
- package/design-patterns/loss/variational-loss.en.md +5 -5
- package/design-patterns/loss/variational-loss.md +6 -6
- package/design-patterns/overview.en.md +36 -0
- package/design-patterns/overview.md +36 -0
- package/design-patterns/representation/equivariant-split.en.md +5 -5
- package/design-patterns/representation/equivariant-split.md +5 -6
- package/design-patterns/representation/manifold-representation.en.md +13 -13
- package/design-patterns/representation/manifold-representation.md +14 -15
- package/design-patterns/representation/shared-private-decomposition.en.md +13 -8
- package/design-patterns/representation/shared-private-decomposition.md +13 -10
- package/design-patterns/representation/subspace-alignment.en.md +13 -13
- package/design-patterns/representation/subspace-alignment.md +13 -13
- package/design-patterns/routing/graph-routing.en.md +12 -12
- package/design-patterns/routing/graph-routing.md +12 -12
- package/design-patterns/routing/moe-routing.en.md +13 -13
- package/design-patterns/routing/moe-routing.md +13 -15
- package/design-patterns/routing/optimal-transport-routing.en.md +6 -6
- package/design-patterns/routing/optimal-transport-routing.md +7 -7
- package/design-patterns/routing/spectral-clustering-routing.en.md +27 -16
- package/design-patterns/routing/spectral-clustering-routing.md +27 -18
- package/knowledge-base/differential-geometry/connection.en.md +17 -2
- package/knowledge-base/differential-geometry/connection.md +17 -2
- package/knowledge-base/differential-geometry/curvature.en.md +14 -1
- package/knowledge-base/differential-geometry/curvature.md +14 -1
- package/knowledge-base/differential-geometry/geodesic.en.md +16 -2
- package/knowledge-base/differential-geometry/geodesic.md +16 -2
- package/knowledge-base/differential-geometry/index.en.md +52 -0
- package/knowledge-base/differential-geometry/index.md +52 -0
- package/knowledge-base/differential-geometry/manifold.en.md +15 -2
- package/knowledge-base/differential-geometry/manifold.md +15 -2
- package/knowledge-base/differential-geometry/metric-tensor.en.md +16 -2
- package/knowledge-base/differential-geometry/metric-tensor.md +17 -3
- package/knowledge-base/differential-geometry/tangent-space.en.md +17 -3
- package/knowledge-base/differential-geometry/tangent-space.md +17 -3
- package/knowledge-base/information-geometry/fisher-metric.en.md +32 -13
- package/knowledge-base/information-geometry/fisher-metric.md +32 -13
- package/knowledge-base/information-geometry/index.en.md +45 -0
- package/knowledge-base/information-geometry/index.md +45 -0
- package/knowledge-base/information-geometry/natural-gradient.en.md +24 -10
- package/knowledge-base/information-geometry/natural-gradient.md +24 -10
- package/knowledge-base/lie-theory/equivariance.en.md +18 -3
- package/knowledge-base/lie-theory/equivariance.md +18 -3
- package/knowledge-base/lie-theory/group-action.en.md +16 -2
- package/knowledge-base/lie-theory/group-action.md +16 -2
- package/knowledge-base/lie-theory/index.en.md +52 -0
- package/knowledge-base/lie-theory/index.md +52 -0
- package/knowledge-base/lie-theory/lie-algebra.en.md +17 -2
- package/knowledge-base/lie-theory/lie-algebra.md +17 -2
- package/knowledge-base/lie-theory/lie-group.en.md +17 -3
- package/knowledge-base/lie-theory/lie-group.md +17 -3
- package/knowledge-base/lie-theory/representation.en.md +17 -2
- package/knowledge-base/lie-theory/representation.md +17 -2
- package/knowledge-base/matrix-analysis/index.en.md +49 -0
- package/knowledge-base/matrix-analysis/index.md +49 -0
- package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +20 -7
- package/knowledge-base/matrix-analysis/low-rank-approximation.md +20 -7
- package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +13 -1
- package/knowledge-base/matrix-analysis/matrix-perturbation.md +13 -1
- package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +20 -6
- package/knowledge-base/matrix-analysis/positive-semidefinite.md +20 -6
- package/knowledge-base/matrix-analysis/projection.en.md +14 -1
- package/knowledge-base/matrix-analysis/projection.md +14 -1
- package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +14 -1
- package/knowledge-base/matrix-analysis/spectral-decomposition.md +14 -1
- package/knowledge-base/optimization/constrained-optimization.en.md +17 -3
- package/knowledge-base/optimization/constrained-optimization.md +17 -3
- package/knowledge-base/optimization/convex-optimization.en.md +15 -2
- package/knowledge-base/optimization/convex-optimization.md +15 -2
- package/knowledge-base/optimization/index.en.md +50 -0
- package/knowledge-base/optimization/index.md +50 -0
- package/knowledge-base/optimization/lagrangian-duality.en.md +18 -4
- package/knowledge-base/optimization/lagrangian-duality.md +18 -4
- package/knowledge-base/optimization/proximal-method.en.md +15 -1
- package/knowledge-base/optimization/proximal-method.md +15 -1
- package/knowledge-base/optimization/riemannian-optimization.en.md +18 -4
- package/knowledge-base/optimization/riemannian-optimization.md +18 -4
- package/knowledge-base/overview.en.md +20 -8
- package/knowledge-base/overview.md +20 -8
- package/knowledge-base/probability/concentration-inequality.en.md +21 -7
- package/knowledge-base/probability/concentration-inequality.md +21 -7
- package/knowledge-base/probability/entropy.en.md +24 -8
- package/knowledge-base/probability/entropy.md +23 -7
- package/knowledge-base/probability/fisher-information.en.md +24 -10
- package/knowledge-base/probability/fisher-information.md +24 -10
- package/knowledge-base/probability/index.en.md +51 -0
- package/knowledge-base/probability/index.md +51 -0
- package/knowledge-base/probability/information-bottleneck.en.md +24 -8
- package/knowledge-base/probability/information-bottleneck.md +24 -8
- package/knowledge-base/probability/kl-divergence.en.md +21 -8
- package/knowledge-base/probability/kl-divergence.md +21 -8
- package/knowledge-base/topology/euler-characteristic.en.md +15 -2
- package/knowledge-base/topology/euler-characteristic.md +15 -2
- package/knowledge-base/topology/fundamental-group.en.md +16 -2
- package/knowledge-base/topology/fundamental-group.md +16 -2
- package/knowledge-base/topology/index.en.md +48 -0
- package/knowledge-base/topology/index.md +48 -0
- package/knowledge-base/topology/persistent-homology.en.md +17 -2
- package/knowledge-base/topology/persistent-homology.md +17 -2
- package/lenses/algorithmic.en.md +1 -1
- package/lenses/algorithmic.md +1 -1
- package/lenses/axiomatization.en.md +1 -1
- package/lenses/axiomatization.md +1 -1
- package/lenses/categorical.en.md +1 -1
- package/lenses/categorical.md +1 -1
- package/lenses/causal.en.md +1 -1
- package/lenses/causal.md +1 -1
- package/lenses/duality.en.md +1 -1
- package/lenses/duality.md +1 -1
- package/lenses/game.en.md +2 -2
- package/lenses/game.md +2 -2
- package/lenses/geometric.en.md +1 -1
- package/lenses/geometric.md +1 -1
- package/lenses/local-to-global.en.md +1 -1
- package/lenses/local-to-global.md +1 -1
- package/lenses/perturbation.en.md +1 -1
- package/lenses/perturbation.md +1 -1
- package/lenses/probabilistic.en.md +1 -1
- package/lenses/probabilistic.md +1 -1
- package/lenses/projection.en.md +1 -1
- package/lenses/projection.md +1 -1
- package/lenses/spectral.en.md +2 -2
- package/lenses/spectral.md +2 -2
- package/lenses/symmetry.en.md +1 -1
- package/lenses/symmetry.md +1 -1
- package/lenses/topological.en.md +2 -2
- package/lenses/topological.md +2 -2
- package/lenses/variational.en.md +1 -1
- package/lenses/variational.md +1 -1
- package/package.json +5 -5
- package/references/agentic-workflow.en.md +3 -3
- package/references/agentic-workflow.md +1 -1
- package/references/books/abstract-algebra.en.md +124 -0
- package/references/books/abstract-algebra.md +17 -17
- package/references/books/algebraic-geometry-rising-sea.en.md +171 -0
- package/references/books/algebraic-geometry-rising-sea.md +7 -7
- package/references/books/differential-geometry.en.md +140 -0
- package/references/books/differential-geometry.md +23 -23
- package/references/books/matrix-analysis.en.md +146 -0
- package/references/books/matrix-analysis.md +32 -32
- package/references/books/micro-lie-theory.en.md +116 -0
- package/references/books/micro-lie-theory.md +16 -16
- package/references/books/optimization-ml.en.md +163 -0
- package/references/books/optimization-ml.md +20 -21
- package/references/books/smooth-manifolds.en.md +105 -0
- package/references/books/smooth-manifolds.md +15 -15
- package/references/gpu-friendly-math.en.md +35 -9
- package/references/gpu-friendly-math.md +33 -5
- package/references/skill-index.en.md +105 -0
- package/references/skill-index.md +105 -0
- package/skills/math-research-activator/SKILL.en.md +72 -88
- package/skills/math-research-activator/SKILL.md +61 -78
|
@@ -30,20 +30,36 @@ $$\mathcal{L}_{VIB} = \mathbb{E}_{p(x,y)}[-\log q_\phi(y|z)] + D_{KL}(p_\theta(z
|
|
|
30
30
|
- **注意力稀疏化 / 路由的信息论解释**:Sparse Attention 和 MoE 路由可理解为隐式信息瓶颈——选择性地让"有用" token 通过,丢弃噪声
|
|
31
31
|
|
|
32
32
|
## 工程可行性
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
33
|
+
- **D1[v]**:VIB 的编码器/解码器均为标准网络,$D_{KL}$ 为逐元素计算
|
|
34
|
+
- **D2[v]**:主体计算为标准前向网络 + GEMM
|
|
35
|
+
- **D3[v]**:相比原始网络仅增加 KL 项的 $O(d)$ 计算
|
|
36
|
+
- **D4[~]**:需要额外维护先验分布 $r(z)$ 的参数和 KL 计算中间量
|
|
37
|
+
- **D5[v]**:重参数化技巧 + KL 解析解在 bf16 下稳定
|
|
38
|
+
- **D8[v]**:与标准训练流程无冲突,可正常融合
|
|
39
39
|
|
|
40
40
|
## 风险与失效条件
|
|
41
41
|
- **$I(X;Z)$ 的精确估计困难**:高维连续变量间的互信息估计本身是开放问题(MINE、NWJ 等估计器方差大),实际用 VIB 变分下界绕过,但下界可能很松。
|
|
42
42
|
- **$\beta$ 调参敏感**:$\beta$ 过大会过度压缩(欠拟合),过小则退化为标准 ERM(无压缩效果)。需要信息平面分析或自适应 $\beta$ 调度。
|
|
43
43
|
|
|
44
44
|
## 深入参考
|
|
45
|
-
-
|
|
45
|
+
- 蒸馏稿:`../../references/books/` 暂无专用 IB 蒸馏稿
|
|
46
46
|
- Tishby, Pereira, Bialek. "The Information Bottleneck Method." *arXiv:physics/0004057*, 2000
|
|
47
47
|
- Alemi, Poole, Fischer, Dillon, Suresh, Murphy. "Deep Variational Information Bottleneck." *ICLR*, 2017
|
|
48
48
|
- Shwartz-Ziv, Tishby. "Opening the Black Box of Deep Neural Networks via Information." *arXiv:1703.00810*, 2017
|
|
49
|
-
- 关联知识卡:`
|
|
49
|
+
- 关联知识卡:`entropy.md`、`kl-divergence.md`
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## 路由扩展
|
|
53
|
+
- 若需要 IB 目标中的 KL → `kl-divergence.md`(IB 目标的 KL 分量)
|
|
54
|
+
- 若涉及速率-失真理论 → `entropy.md`(IB 与率失真理论的关系)
|
|
55
|
+
- 若用于 VIB 损失设计 → `variational-loss`(设计模式层的变分信息瓶颈损失)
|
|
56
|
+
|
|
57
|
+
## 可扩展方向
|
|
58
|
+
- 速率-失真理论(rate-distortion theory):信息论的最优压缩界
|
|
59
|
+
- 确定性 IB(deterministic IB):确定性编码的 IB 变体
|
|
60
|
+
- 几何 IB(geometric IB):几何结构下的信息瓶颈
|
|
61
|
+
- IB 用于表示学习(IB for representation learning):IB 框架下的特征学习
|
|
62
|
+
- IB 用于聚类(IB for clustering):IB 驱动的聚类算法
|
|
63
|
+
- 深度 IB(deep IB):深度网络中的信息瓶颈
|
|
64
|
+
- 多瓶颈 IB(IB with multiple bottlenecks):多层信息约束
|
|
65
|
+
- IB 泛化界(IB generalization bounds):IB 与泛化能力的理论联系
|
|
@@ -33,19 +33,32 @@ $$D_{KL}(p \| q) = H(p, q) - H(p)$$
|
|
|
33
33
|
- **PPO / RLHF**: $D_{KL}(\pi_\theta \| \pi_{\text{ref}})$ serves as a penalty term for the policy deviating from the reference policy
|
|
34
34
|
|
|
35
35
|
## Engineering Feasibility
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
40
|
-
- **
|
|
41
|
-
- **
|
|
36
|
+
- **D1[v]**: Element-wise $p \log(p/q)$ is fully vectorizable
|
|
37
|
+
- **D2[~]**: KL itself is not a GEMM, but its inputs (logits) come from GEMM layers
|
|
38
|
+
- **D3[v]**: $O(|\mathcal{X}|)$ linear
|
|
39
|
+
- **D4[~]**: For large vocabularies, both $p$ and $q$ probability vectors must be held simultaneously; chunked computation is possible
|
|
40
|
+
- **D5[v]**: Log-softmax differences are stable in bf16; note that $\log q$ diverges as $q \to 0$, requiring clamping
|
|
41
|
+
- **D8[v]**: Can be fused with softmax into FusedKLDivLoss
|
|
42
42
|
|
|
43
43
|
## Risks and Failure Conditions
|
|
44
44
|
- **KL diverges to infinity when $q(x)=0$ but $p(x)>0$**: In practice, label smoothing or temperature scaling must be applied to $q$ to avoid zero probabilities. The mode-seeking behavior of reverse KL can exacerbate this issue — the student model "drops" low-probability regions of the teacher distribution.
|
|
45
45
|
- **High gradient variance**: In RL (PPO/RLHF), KL estimation relies on sampling; high variance can lead to training instability. A clipped + linear approximation $\mathbb{E}[\log p - \log q]$ is commonly used in place of the exact KL.
|
|
46
46
|
|
|
47
47
|
## Further References
|
|
48
|
-
- Distillation draft:
|
|
48
|
+
- Distillation draft: `../../references/books/` — no dedicated information theory distillation draft at present
|
|
49
49
|
- Cover & Thomas. *Elements of Information Theory*, Ch. 2-3. Wiley, 2006
|
|
50
50
|
- Murphy. *Probabilistic Machine Learning: Advanced Topics*, Ch. 6. MIT Press, 2023
|
|
51
|
-
- Related knowledge cards: `
|
|
51
|
+
- Related knowledge cards: `entropy.en.md`, `information-bottleneck.en.md`, `fisher-information.en.md`
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## Routing Extensions
|
|
55
|
+
- If used for IB objective -> `information-bottleneck.en.md` (IB defines objective using KL)
|
|
56
|
+
- If the absolute version is needed -> `entropy.en.md` (KL divergence reduces to entropy)
|
|
57
|
+
- If local KL geometry is needed -> `fisher-information.en.md` (Fisher information is local curvature of KL)
|
|
58
|
+
|
|
59
|
+
## Extensible Directions
|
|
60
|
+
- f-divergence family (chi-squared, Hellinger, Jensen-Shannon, total variation): unified divergence framework
|
|
61
|
+
- Reverse KL (mode-seeking): mode-seeking behavior in variational inference
|
|
62
|
+
- Bregman divergence: divergence family generated by convex functions
|
|
63
|
+
- Variational representations (Donsker-Varadhan, Barber-Agakov): variational upper/lower bounds of KL divergence
|
|
64
|
+
- KL in exponential families: geometry of sufficient statistics
|
|
@@ -33,19 +33,32 @@ $$D_{KL}(p \| q) = H(p, q) - H(p)$$
|
|
|
33
33
|
- **PPO / RLHF**:$D_{KL}(\pi_\theta \| \pi_{\text{ref}})$ 作为策略偏离参考策略的惩罚项
|
|
34
34
|
|
|
35
35
|
## 工程可行性
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
36
|
+
- **D1[v]**:逐元素 $p \log(p/q)$ 完全向量化
|
|
37
|
+
- **D2[~]**:KL 本身不是 GEMM,但输入(logits)来自 GEMM 层
|
|
38
|
+
- **D3[v]**:$O(|\mathcal{X}|)$ 线性
|
|
39
|
+
- **D4[~]**:大 vocab 下需同时保留 $p$ 和 $q$ 的完整概率向量,可 chunk 计算
|
|
40
|
+
- **D5[v]**:log-softmax 差值在 bf16 下稳定;注意 $q \to 0$ 时 $\log q$ 发散,需 clamp
|
|
41
|
+
- **D8[v]**:可与 softmax 融合为 FusedKLDivLoss
|
|
42
42
|
|
|
43
43
|
## 风险与失效条件
|
|
44
44
|
- **$q(x)=0$ 但 $p(x)>0$ 时 KL 发散为无穷**:实践中必须对 $q$ 做 label smoothing 或温度缩放,避免零概率。反向 KL 的 mode-seeking 行为可加剧此问题——学生模型"丢弃"教师分布的低概率区域。
|
|
45
45
|
- **梯度方差大**:在 RL(PPO/RLHF)中,KL 估计依赖采样,高方差可导致训练不稳定。常用 clip + 线性近似 $\mathbb{E}[\log p - \log q]$ 替代精确 KL。
|
|
46
46
|
|
|
47
47
|
## 深入参考
|
|
48
|
-
-
|
|
48
|
+
- 蒸馏稿:`../../references/books/` 暂无专用信息论蒸馏稿
|
|
49
49
|
- Cover & Thomas. *Elements of Information Theory*, Ch. 2-3. Wiley, 2006
|
|
50
50
|
- Murphy. *Probabilistic Machine Learning: Advanced Topics*, Ch. 6. MIT Press, 2023
|
|
51
|
-
- 关联知识卡:`
|
|
51
|
+
- 关联知识卡:`entropy.md`、`information-bottleneck.md`、`fisher-information.md`
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## 路由扩展
|
|
55
|
+
- 若用于 IB 目标函数 → `information-bottleneck.md`(IB 使用 KL 定义目标)
|
|
56
|
+
- 若需要绝对版本 → `entropy.md`(KL 散度退化为熵)
|
|
57
|
+
- 若需要局部 KL 几何 → `fisher-information.md`(Fisher 信息是 KL 的局部曲率)
|
|
58
|
+
|
|
59
|
+
## 可扩展方向
|
|
60
|
+
- f-散度族(chi-squared, Hellinger, Jensen-Shannon, total variation):统一的散度框架
|
|
61
|
+
- 逆 KL(reverse KL / mode-seeking):变分推断中的模式搜索行为
|
|
62
|
+
- Bregman 散度(Bregman divergence):凸函数生成的散度族
|
|
63
|
+
- 变分表示(Donsker-Varadhan, Barber-Agakov):KL 散度的变分上/下界
|
|
64
|
+
- 指数族中的 KL(KL in exponential families):充分统计量的几何
|
|
@@ -48,7 +48,20 @@ High GPU friendliness. Computing the Euler characteristic is extremely cheap:
|
|
|
48
48
|
|
|
49
49
|
## Further References
|
|
50
50
|
|
|
51
|
-
- Distillation notes: references/books/smooth-manifolds.md (Ch 17--18 De Rham Cohomology, Betti numbers and cohomology)
|
|
52
|
-
- Distillation notes: references/books/differential-geometry.md (Ch 4 Curves and Hypersurfaces, intuition source for Gauss curvature)
|
|
51
|
+
- Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 17--18 De Rham Cohomology, Betti numbers and cohomology)
|
|
52
|
+
- Distillation notes: ../../references/books/differential-geometry.en.md (Ch 4 Curves and Hypersurfaces, intuition source for Gauss curvature)
|
|
53
53
|
- Original text: John M. Lee, *Introduction to Smooth Manifolds*, Ch 17--18 (de Rham cohomology and topological invariants)
|
|
54
54
|
- Extended reading: Hatcher, *Algebraic Topology*, Ch 2 (standard treatment of simplicial homology and the Euler characteristic)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Routing Extensions
|
|
58
|
+
- If multi-scale topology analysis is needed -> `persistent-homology.en.md` (persistent homology provides scale-dependent topology)
|
|
59
|
+
- If curvature-topology connection is involved -> `../differential-geometry/curvature.md` (Gauss-Bonnet theorem connects curvature and Euler characteristic)
|
|
60
|
+
|
|
61
|
+
## Extensible Directions
|
|
62
|
+
- Betti numbers: counting independent loops at each dimension
|
|
63
|
+
- Poincare polynomial: generating function of Betti numbers
|
|
64
|
+
- Lefschetz fixed point theorem: Euler characteristic and map fixed points
|
|
65
|
+
- Morse inequalities: relationship between critical points and Betti numbers
|
|
66
|
+
- Discrete Morse theory: Morse functions on complexes
|
|
67
|
+
- Euler characteristic curve: Euler characteristic variation across thresholds
|
|
@@ -48,7 +48,20 @@ GPU 友好度高。欧拉示性数的计算极其廉价:
|
|
|
48
48
|
|
|
49
49
|
## 深入参考
|
|
50
50
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
51
|
+
- 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 17-18 De Rham Cohomology,Betti 数与上同调)
|
|
52
|
+
- 蒸馏稿:../../references/books/differential-geometry.md(Ch 4 Curves and Hypersurfaces, Gauss curvature 直觉来源)
|
|
53
53
|
- 原书:John M. Lee, *Introduction to Smooth Manifolds*, Ch 17-18(de Rham 上同调与拓扑不变量)
|
|
54
54
|
- 延伸:Hatcher, *Algebraic Topology*, Ch 2(单纯同调与欧拉示性数的标准处理)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## 路由扩展
|
|
58
|
+
- 若需要多尺度拓扑分析 → `persistent-homology.md`(持续同调提供尺度依赖的拓扑)
|
|
59
|
+
- 若涉及曲率-拓扑联系 → `../differential-geometry/curvature.md`(Gauss-Bonnet 定理连接曲率与 Euler 示性数)
|
|
60
|
+
|
|
61
|
+
## 可扩展方向
|
|
62
|
+
- Betti 数(Betti numbers):各维度的独立环路计数
|
|
63
|
+
- Poincare 多项式(Poincare polynomial):Betti 数的生成函数
|
|
64
|
+
- Lefschetz 不动点定理:Euler 示性数与映射不动点
|
|
65
|
+
- Morse 不等式(Morse inequalities):临界点与 Betti 数的关系
|
|
66
|
+
- 离散 Morse 理论(discrete Morse theory):复形上的 Morse 函数
|
|
67
|
+
- Euler 示性数曲线(Euler characteristic curve):多阈值的 Euler 示性数变化
|
|
@@ -46,7 +46,21 @@ Low GPU friendliness. Computation of the fundamental group is inherently combina
|
|
|
46
46
|
|
|
47
47
|
## Further References
|
|
48
48
|
|
|
49
|
-
- Distillation notes: references/books/smooth-manifolds.md (Ch 17--18 De Rham Cohomology, cohomology and topological invariants)
|
|
50
|
-
- Distillation notes: references/books/algebraic-geometry-rising-sea.md (Section 18 Cech Cohomology, local gluing and global obstructions)
|
|
49
|
+
- Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 17--18 De Rham Cohomology, cohomology and topological invariants)
|
|
50
|
+
- Distillation notes: ../../references/books/algebraic-geometry-rising-sea.en.md (Section 18 Cech Cohomology, local gluing and global obstructions)
|
|
51
51
|
- Original text: John M. Lee, *Introduction to Smooth Manifolds*, Ch 17 (de Rham cohomology, the loop integral perspective)
|
|
52
52
|
- Extended reading: Hatcher, *Algebraic Topology*, Ch 1 (standard textbook treatment of the fundamental group, including the Seifert-van Kampen theorem)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Routing Extensions
|
|
56
|
+
- If higher-dimensional homology is needed -> `persistent-homology.en.md` (higher homology groups)
|
|
57
|
+
- If geometric structure is involved -> `../differential-geometry/curvature.md` (relationship between geometry and topology)
|
|
58
|
+
|
|
59
|
+
## Extensible Directions
|
|
60
|
+
- Covering space theory: Galois correspondence between fundamental group and coverings
|
|
61
|
+
- Van Kampen theorem: computational tool for fundamental groups
|
|
62
|
+
- Higher homotopy groups: computation and obstructions of pi_n
|
|
63
|
+
- Hurewicz theorem: relationship between homotopy and homology groups
|
|
64
|
+
- Loop space: space of all loops based at a point
|
|
65
|
+
- Braid group: algebraic structure of braids
|
|
66
|
+
- Knot group: invariants of knots
|
|
@@ -46,7 +46,21 @@ GPU 友好度低。基本群的计算本质上是组合/代数的,而非数值
|
|
|
46
46
|
|
|
47
47
|
## 深入参考
|
|
48
48
|
|
|
49
|
-
-
|
|
50
|
-
-
|
|
49
|
+
- 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 17-18 De Rham Cohomology,上同调与拓扑不变量)
|
|
50
|
+
- 蒸馏稿:../../references/books/algebraic-geometry-rising-sea.md(§18 Cech Cohomology,局部黏合与全局障碍)
|
|
51
51
|
- 原书:John M. Lee, *Introduction to Smooth Manifolds*, Ch 17(de Rham 上同调,环路积分的视角)
|
|
52
52
|
- 延伸:Hatcher, *Algebraic Topology*, Ch 1(基本群的标准教材处理,含 Seifert-van Kampen 定理)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## 路由扩展
|
|
56
|
+
- 若需要更高维同调 → `persistent-homology.md`(高阶同调群)
|
|
57
|
+
- 若涉及几何结构 → `../differential-geometry/curvature.md`(几何与拓扑的关系)
|
|
58
|
+
|
|
59
|
+
## 可扩展方向
|
|
60
|
+
- 覆叠空间理论(covering space theory):基本群与覆叠的 Galois 对应
|
|
61
|
+
- Van Kampen 定理:基本群的计算工具
|
|
62
|
+
- 高阶同伦群(higher homotopy groups):pi_n 的计算与障碍
|
|
63
|
+
- Hurewicz 定理:同伦群与同调群的关系
|
|
64
|
+
- 环路空间(loop space):基于某点的环路全体
|
|
65
|
+
- 辫群(braid group):辫子的代数结构
|
|
66
|
+
- 纽群(knot group):纽结的不变量
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Topology Activation Index
|
|
2
|
+
|
|
3
|
+
## Domain Signals
|
|
4
|
+
Activate this domain direction when the problem involves:
|
|
5
|
+
- Connectivity preservation: need to maintain or detect connectivity structure of a space
|
|
6
|
+
- Representation space tearing: latent space or representation space exhibits topological tearing
|
|
7
|
+
- Local-to-global consistency: whether local information can be consistently glued into a global structure
|
|
8
|
+
- Multimodal alignment obstruction: whether topological obstructions exist for multimodal alignment
|
|
9
|
+
- Whether compression destroys structure: whether dimensionality reduction or compression alters the topological features of data
|
|
10
|
+
|
|
11
|
+
## Core Anchors
|
|
12
|
+
- `persistent-homology.en.md` — Persistent homology
|
|
13
|
+
- `euler-characteristic.en.md` — Euler characteristic
|
|
14
|
+
- `fundamental-group.en.md` — Fundamental group
|
|
15
|
+
|
|
16
|
+
## Extended Concepts
|
|
17
|
+
When core anchors are insufficient, the following concepts may need temporary activation:
|
|
18
|
+
- simplicial complex: simplicial complexes (Vietoris-Rips, alpha complex, etc.)
|
|
19
|
+
- Cech complex: Cech complex and coverings
|
|
20
|
+
- sheaf theory (section, restriction map, gluing, Cech cohomology): sheaf theory basics and Cech cohomology
|
|
21
|
+
- covering space: covering spaces and covering maps
|
|
22
|
+
- homotopy group: higher homotopy groups
|
|
23
|
+
- CW complex: CW complexes and cell structure
|
|
24
|
+
- Morse theory: Morse theory and critical point analysis
|
|
25
|
+
- Betti numbers: Betti numbers and topological invariants
|
|
26
|
+
- topological data analysis (Mapper algorithm): topological data analysis and Mapper algorithm
|
|
27
|
+
- obstruction theory: obstruction theory
|
|
28
|
+
- classifying space: classifying spaces
|
|
29
|
+
- K-theory: K-theory
|
|
30
|
+
- cobordism: cobordism theory
|
|
31
|
+
|
|
32
|
+
## Reference Book Directions
|
|
33
|
+
- `../../references/books/smooth-manifolds.en.md`: Chapters 17-18, covering homology theory basics
|
|
34
|
+
- `../../references/books/algebraic-geometry-rising-sea.en.md`: Cech cohomology sections
|
|
35
|
+
|
|
36
|
+
## AI Translation Directions
|
|
37
|
+
- persistent homology → representation topology monitor / topological regularization loss
|
|
38
|
+
- euler characteristic → complexity metric / model selection criterion
|
|
39
|
+
- fundamental group → loop structure detection / cycle-preserving compression
|
|
40
|
+
- sheaf / gluing → cross-modal consistency loss / multi-view alignment
|
|
41
|
+
- obstruction theory → alignment failure signal / topological bottleneck detection
|
|
42
|
+
- simplicial complex → higher-order token relation graph / hypergraph attention
|
|
43
|
+
|
|
44
|
+
## Temporary Activation Rules
|
|
45
|
+
When the problem requires mathematics not in the core anchors:
|
|
46
|
+
1. First check whether extended concepts contain a match
|
|
47
|
+
2. If yes, generate a temporary knowledge card based on the lens
|
|
48
|
+
3. If no, enter the Knowledge Gap Protocol
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# 拓扑 激活索引 / Topology Activation Index
|
|
2
|
+
|
|
3
|
+
## 领域信号
|
|
4
|
+
当问题涉及以下信号时,激活本领域方向:
|
|
5
|
+
- 连通性保持:需要保持或检测空间的连通性结构
|
|
6
|
+
- 表示空间断裂:隐空间或表示空间出现拓扑断裂
|
|
7
|
+
- 局部到全局一致性:局部信息是否能一致地拼接成全局结构
|
|
8
|
+
- 多模态对齐 obstruction:多模态对齐是否存在拓扑障碍
|
|
9
|
+
- 压缩是否破坏结构:降维或压缩是否改变了数据的拓扑特征
|
|
10
|
+
|
|
11
|
+
## 核心锚点
|
|
12
|
+
- `persistent-homology.md` — 持续同调
|
|
13
|
+
- `euler-characteristic.md` — Euler 示性数
|
|
14
|
+
- `fundamental-group.md` — 基本群
|
|
15
|
+
|
|
16
|
+
## 扩展概念
|
|
17
|
+
当核心锚点不够时,以下概念可能需要临时激活:
|
|
18
|
+
- simplicial complex:单纯复形(Vietoris-Rips, alpha complex 等)
|
|
19
|
+
- Cech complex:Cech 复形与覆盖
|
|
20
|
+
- sheaf theory(section, restriction map, gluing, Cech cohomology):层论基础与 Cech 上同调
|
|
21
|
+
- covering space:覆叠空间与覆叠映射
|
|
22
|
+
- homotopy group:高阶同伦群
|
|
23
|
+
- CW complex:CW 复形与胞腔结构
|
|
24
|
+
- Morse theory:Morse 理论与临界点分析
|
|
25
|
+
- Betti numbers:Betti 数与拓扑不变量
|
|
26
|
+
- topological data analysis(Mapper algorithm):拓扑数据分析与 Mapper 算法
|
|
27
|
+
- obstruction theory:障碍理论
|
|
28
|
+
- classifying space:分类空间
|
|
29
|
+
- K-theory:K 理论
|
|
30
|
+
- cobordism:配边理论
|
|
31
|
+
|
|
32
|
+
## 参考书方向
|
|
33
|
+
- `../../references/books/smooth-manifolds.md`:第 17-18 章,覆盖同调论基础
|
|
34
|
+
- `../../references/books/algebraic-geometry-rising-sea.md`:Cech 上同调部分
|
|
35
|
+
|
|
36
|
+
## AI 翻译方向
|
|
37
|
+
- persistent homology → representation topology monitor / topological regularization loss
|
|
38
|
+
- euler characteristic → complexity metric / model selection criterion
|
|
39
|
+
- fundamental group → loop structure detection / cycle-preserving compression
|
|
40
|
+
- sheaf / gluing → cross-modal consistency loss / multi-view alignment
|
|
41
|
+
- obstruction theory → alignment failure signal / topological bottleneck detection
|
|
42
|
+
- simplicial complex → higher-order token relation graph / hypergraph attention
|
|
43
|
+
|
|
44
|
+
## 临时激活规则
|
|
45
|
+
当问题需要的数学不在核心锚点中时:
|
|
46
|
+
1. 先检查扩展概念中是否有匹配
|
|
47
|
+
2. 若有,根据透镜生成临时知识卡
|
|
48
|
+
3. 若无,进入 Knowledge Gap Protocol
|
|
@@ -48,7 +48,22 @@ Limited GPU friendliness, which is the main bottleneck for deploying persistent
|
|
|
48
48
|
|
|
49
49
|
## Further References
|
|
50
50
|
|
|
51
|
-
- Distillation notes: references/books/smooth-manifolds.md (Ch 17--18 De Rham Cohomology, conceptual origin of topological invariants)
|
|
52
|
-
- Distillation notes: references/books/algebraic-geometry-rising-sea.md (Section 18 Cech Cohomology, Section 23 Derived Functors, cohomology computations)
|
|
51
|
+
- Distillation notes: ../../references/books/smooth-manifolds.en.md (Ch 17--18 De Rham Cohomology, conceptual origin of topological invariants)
|
|
52
|
+
- Distillation notes: ../../references/books/algebraic-geometry-rising-sea.en.md (Section 18 Cech Cohomology, Section 23 Derived Functors, cohomology computations)
|
|
53
53
|
- Original text: John M. Lee, *Introduction to Smooth Manifolds*, Ch 17--18 (de Rham cohomology)
|
|
54
54
|
- Extended reading: Edelsbrunner & Harer, *Computational Topology: An Introduction* (standard textbook on persistent homology)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Routing Extensions
|
|
58
|
+
- If topological invariant computation is needed -> `euler-characteristic.en.md` (Euler characteristic as alternating sum of Betti numbers)
|
|
59
|
+
- If 1-dimensional topology analysis is needed -> `fundamental-group.en.md` (fundamental group captures loop structure)
|
|
60
|
+
- If used for information-preserving compression -> `../probability/information-bottleneck.md` (topology-preserving information compression)
|
|
61
|
+
|
|
62
|
+
## Extensible Directions
|
|
63
|
+
- Simplicial complex types (Cech, Vietoris-Rips, alpha): advantages and disadvantages of different constructions
|
|
64
|
+
- Sheaf theory: local-to-global consistent data structures
|
|
65
|
+
- Mapper algorithm: visualization and clustering based on persistent homology
|
|
66
|
+
- Topological data analysis (TDA): complete TDA methodology
|
|
67
|
+
- Persistence image / landscape: vectorized representations of persistence diagrams
|
|
68
|
+
- Multiparameter persistence: homology with multi-scale filtrations
|
|
69
|
+
- Zigzag persistence: persistent homology allowing bidirectional filtrations
|
|
@@ -48,7 +48,22 @@ GPU 友好度有限,是持续同调落地的主要瓶颈:
|
|
|
48
48
|
|
|
49
49
|
## 深入参考
|
|
50
50
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
51
|
+
- 蒸馏稿:../../references/books/smooth-manifolds.md(Ch 17-18 De Rham Cohomology,拓扑不变量概念来源)
|
|
52
|
+
- 蒸馏稿:../../references/books/algebraic-geometry-rising-sea.md(§18 Cech Cohomology, §23 Derived Functors,上同调计算)
|
|
53
53
|
- 原书:John M. Lee, *Introduction to Smooth Manifolds*, Ch 17-18(de Rham 上同调)
|
|
54
54
|
- 延伸:Edelsbrunner & Harer, *Computational Topology: An Introduction*(持续同调标准教材)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## 路由扩展
|
|
58
|
+
- 若需要拓扑不变量的计算 → `euler-characteristic.md`(Euler 示性数作为 Betti 数的交替和)
|
|
59
|
+
- 若需要 1 维拓扑分析 → `fundamental-group.md`(基本群捕捉环路结构)
|
|
60
|
+
- 若用于信息保持压缩 → `../probability/information-bottleneck.md`(拓扑保持的信息压缩)
|
|
61
|
+
|
|
62
|
+
## 可扩展方向
|
|
63
|
+
- 单纯复形类型(Cech, Vietoris-Rips, alpha):不同复形构造的优缺点
|
|
64
|
+
- 层论(sheaf theory):局部到全局的一致数据结构
|
|
65
|
+
- Mapper 算法:基于持续同调的可视化与聚类
|
|
66
|
+
- 拓扑数据分析(topological data analysis):TDA 的完整方法论
|
|
67
|
+
- 持续图像/景观(persistence image / landscape):持续图的向量化表示
|
|
68
|
+
- 多参数持续(multiparameter persistence):多尺度过滤的同调
|
|
69
|
+
- zigzag 持续(zigzag persistence):允许双向过滤的持续同调
|
package/lenses/algorithmic.en.md
CHANGED
package/lenses/algorithmic.md
CHANGED
package/lenses/axiomatization.md
CHANGED
package/lenses/categorical.en.md
CHANGED
package/lenses/categorical.md
CHANGED
package/lenses/causal.en.md
CHANGED
package/lenses/causal.md
CHANGED
package/lenses/duality.en.md
CHANGED
package/lenses/duality.md
CHANGED
package/lenses/game.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Game Lens
|
|
2
2
|
|
|
3
3
|
> Your optimal choice depends on others' choices — thinking must be not only deep but interactive.
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ This is a "player's" perspective — in environments where multiple decision-mak
|
|
|
15
15
|
|
|
16
16
|
## What Problems It Is Not Suited For
|
|
17
17
|
|
|
18
|
-
- Single-agent decision problems with no interaction with others —
|
|
18
|
+
- Single-agent decision problems with no interaction with others — the variational lens is more appropriate
|
|
19
19
|
- Purely cooperative problems where all participants share identical objectives — strategic analysis is unnecessary
|
|
20
20
|
- Deterministic problems where outcomes are uniquely determined by one's own actions — no others' responses are involved
|
|
21
21
|
- Outcomes determined purely by luck, with no strategic choices available to any party
|
package/lenses/game.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 博弈透镜 / Game Lens
|
|
2
2
|
|
|
3
3
|
> 你的最优选择取决于他人的选择——思考不仅要深入,还要互动。
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
## 不适合什么问题
|
|
17
17
|
|
|
18
|
-
-
|
|
18
|
+
- 单人决策问题,与他人无互动——变分透镜更适用
|
|
19
19
|
- 纯合作问题,参与者目标完全一致——无需战略分析
|
|
20
20
|
- 确定性问题,结果由自身行动唯一决定——不涉及他人反应
|
|
21
21
|
- 纯粹运气决定的结果,各方无策略选择
|
package/lenses/geometric.en.md
CHANGED
package/lenses/geometric.md
CHANGED
package/lenses/perturbation.md
CHANGED
package/lenses/probabilistic.md
CHANGED
package/lenses/projection.en.md
CHANGED
package/lenses/projection.md
CHANGED
package/lenses/spectral.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Spectral Decomposition Lens
|
|
2
2
|
|
|
3
3
|
> Any linear operator can be decomposed into a superposition of eigencomponents — eigenvalues reveal dominant structure, eigenvectors reveal dominant directions.
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ This is a "decomposer's" perspective — breaking complex linear operators (matr
|
|
|
17
17
|
## What Problems It Is Not Suited For
|
|
18
18
|
|
|
19
19
|
- Problems dominated by nonlinear effects — spectral decomposition is a linear tool
|
|
20
|
-
- Operators that are
|
|
20
|
+
- Operators that are non-diagonalizable or non-normal — Jordan form is mainly theoretical; for numerical / engineering use prefer Schur decomposition, SVD, or pseudospectral stability analysis
|
|
21
21
|
- Problems that require preserving global topological structure — spectral methods may destroy topology
|
|
22
22
|
|
|
23
23
|
## Which Knowledge Domains It Routes To
|
package/lenses/spectral.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 谱分解透镜 / Spectral Decomposition Lens
|
|
2
2
|
|
|
3
3
|
> 任何线性算子都可以分解为特征分量的叠加——特征值揭示主导结构,特征向量揭示主导方向。
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## 不适合什么问题
|
|
18
18
|
|
|
19
19
|
- 非线性效应主导的问题——谱分解是线性工具
|
|
20
|
-
-
|
|
20
|
+
- 算子本身不可对角化或非正规——Jordan 形式主要用于理论分析,数值/工程上优先用 Schur 分解、SVD 或 pseudospectrum 稳定性分析
|
|
21
21
|
- 需要保留全局拓扑结构的问题——谱方法可能破坏拓扑
|
|
22
22
|
|
|
23
23
|
## 会路由到哪些知识域
|
package/lenses/symmetry.en.md
CHANGED
package/lenses/symmetry.md
CHANGED
package/lenses/topological.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Topological Lens
|
|
2
2
|
|
|
3
3
|
> Stretching and bending are allowed, but tearing is not — the truly important properties are those invariant under continuous deformation
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ Topology is a way of "ignoring precise measurements and focusing only on qualita
|
|
|
23
23
|
|
|
24
24
|
- `topology/persistent-homology`: Fundamental group, homology groups, Betti numbers, and cohomology — computational tools for topological invariants
|
|
25
25
|
- **tda**: Persistent homology, filtrations, and simplicial complexes — extracting topological features from data
|
|
26
|
-
- `topology/fundamental-group`:
|
|
26
|
+
- `topology/fundamental-group`: Fundamental group, loop homotopy classes, covering spaces — detecting non-contractible loops and path-connectivity structure
|
|
27
27
|
|
|
28
28
|
## What AI Designs It May Inspire
|
|
29
29
|
|