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.
Files changed (206) hide show
  1. package/README.en-US.md +167 -175
  2. package/README.md +167 -175
  3. package/agents/math-critic.en.md +235 -0
  4. package/agents/math-critic.md +10 -8
  5. package/commands/ask.md +3 -12
  6. package/design-patterns/attention/equivariant-attention.en.md +72 -0
  7. package/design-patterns/attention/equivariant-attention.md +72 -0
  8. package/design-patterns/attention/geometry-aware-attention.en.md +73 -0
  9. package/design-patterns/attention/geometry-aware-attention.md +72 -0
  10. package/design-patterns/attention/information-bottleneck-attention.en.md +72 -0
  11. package/design-patterns/attention/information-bottleneck-attention.md +72 -0
  12. package/design-patterns/attention/projection-attention.en.md +68 -0
  13. package/design-patterns/attention/projection-attention.md +68 -0
  14. package/design-patterns/attention/spectral-attention.en.md +71 -0
  15. package/design-patterns/attention/spectral-attention.md +71 -0
  16. package/design-patterns/compression/leverage-score-selection.en.md +71 -0
  17. package/design-patterns/compression/leverage-score-selection.md +71 -0
  18. package/design-patterns/compression/low-rank-kv-cache.en.md +60 -0
  19. package/design-patterns/compression/low-rank-kv-cache.md +60 -0
  20. package/design-patterns/compression/spectral-token-pruning.en.md +61 -0
  21. package/design-patterns/compression/spectral-token-pruning.md +61 -0
  22. package/design-patterns/compression/topology-preserving-compression.en.md +64 -0
  23. package/design-patterns/compression/topology-preserving-compression.md +64 -0
  24. package/design-patterns/loss/constraint-penalty.en.md +67 -0
  25. package/design-patterns/loss/constraint-penalty.md +78 -0
  26. package/design-patterns/loss/contrastive-loss.en.md +59 -0
  27. package/design-patterns/loss/contrastive-loss.md +68 -0
  28. package/design-patterns/loss/information-bottleneck-loss.en.md +69 -0
  29. package/design-patterns/loss/information-bottleneck-loss.md +74 -0
  30. package/design-patterns/loss/orthogonality-loss.en.md +56 -0
  31. package/design-patterns/loss/orthogonality-loss.md +60 -0
  32. package/design-patterns/loss/variational-loss.en.md +61 -0
  33. package/design-patterns/loss/variational-loss.md +71 -0
  34. package/design-patterns/representation/equivariant-split.en.md +87 -0
  35. package/design-patterns/representation/equivariant-split.md +89 -0
  36. package/design-patterns/representation/manifold-representation.en.md +85 -0
  37. package/design-patterns/representation/manifold-representation.md +87 -0
  38. package/design-patterns/representation/shared-private-decomposition.en.md +84 -0
  39. package/design-patterns/representation/shared-private-decomposition.md +86 -0
  40. package/design-patterns/representation/subspace-alignment.en.md +90 -0
  41. package/design-patterns/representation/subspace-alignment.md +92 -0
  42. package/design-patterns/routing/graph-routing.en.md +79 -0
  43. package/design-patterns/routing/graph-routing.md +81 -0
  44. package/design-patterns/routing/moe-routing.en.md +85 -0
  45. package/design-patterns/routing/moe-routing.md +87 -0
  46. package/design-patterns/routing/optimal-transport-routing.en.md +68 -0
  47. package/design-patterns/routing/optimal-transport-routing.md +72 -0
  48. package/design-patterns/routing/spectral-clustering-routing.en.md +88 -0
  49. package/design-patterns/routing/spectral-clustering-routing.md +90 -0
  50. package/knowledge-base/differential-geometry/connection.en.md +51 -0
  51. package/knowledge-base/differential-geometry/connection.md +51 -0
  52. package/knowledge-base/differential-geometry/curvature.en.md +49 -0
  53. package/knowledge-base/differential-geometry/curvature.md +49 -0
  54. package/knowledge-base/differential-geometry/geodesic.en.md +51 -0
  55. package/knowledge-base/differential-geometry/geodesic.md +51 -0
  56. package/knowledge-base/differential-geometry/manifold.en.md +47 -0
  57. package/knowledge-base/differential-geometry/manifold.md +47 -0
  58. package/knowledge-base/differential-geometry/metric-tensor.en.md +50 -0
  59. package/knowledge-base/differential-geometry/metric-tensor.md +50 -0
  60. package/knowledge-base/differential-geometry/tangent-space.en.md +48 -0
  61. package/knowledge-base/differential-geometry/tangent-space.md +48 -0
  62. package/knowledge-base/information-geometry/fisher-metric.en.md +56 -0
  63. package/knowledge-base/information-geometry/fisher-metric.md +56 -0
  64. package/knowledge-base/information-geometry/natural-gradient.en.md +54 -0
  65. package/knowledge-base/information-geometry/natural-gradient.md +54 -0
  66. package/knowledge-base/lie-theory/equivariance.en.md +54 -0
  67. package/knowledge-base/lie-theory/equivariance.md +54 -0
  68. package/knowledge-base/lie-theory/group-action.en.md +51 -0
  69. package/knowledge-base/lie-theory/group-action.md +51 -0
  70. package/knowledge-base/lie-theory/lie-algebra.en.md +51 -0
  71. package/knowledge-base/lie-theory/lie-algebra.md +51 -0
  72. package/knowledge-base/lie-theory/lie-group.en.md +51 -0
  73. package/knowledge-base/lie-theory/lie-group.md +51 -0
  74. package/knowledge-base/lie-theory/representation.en.md +52 -0
  75. package/knowledge-base/lie-theory/representation.md +52 -0
  76. package/knowledge-base/matrix-analysis/low-rank-approximation.en.md +49 -0
  77. package/knowledge-base/matrix-analysis/low-rank-approximation.md +49 -0
  78. package/knowledge-base/matrix-analysis/matrix-perturbation.en.md +49 -0
  79. package/knowledge-base/matrix-analysis/matrix-perturbation.md +49 -0
  80. package/knowledge-base/matrix-analysis/positive-semidefinite.en.md +50 -0
  81. package/knowledge-base/matrix-analysis/positive-semidefinite.md +50 -0
  82. package/knowledge-base/matrix-analysis/projection.en.md +47 -0
  83. package/knowledge-base/matrix-analysis/projection.md +47 -0
  84. package/knowledge-base/matrix-analysis/spectral-decomposition.en.md +48 -0
  85. package/knowledge-base/matrix-analysis/spectral-decomposition.md +48 -0
  86. package/knowledge-base/optimization/constrained-optimization.en.md +53 -0
  87. package/knowledge-base/optimization/constrained-optimization.md +53 -0
  88. package/knowledge-base/optimization/convex-optimization.en.md +50 -0
  89. package/knowledge-base/optimization/convex-optimization.md +50 -0
  90. package/knowledge-base/optimization/lagrangian-duality.en.md +50 -0
  91. package/knowledge-base/optimization/lagrangian-duality.md +50 -0
  92. package/knowledge-base/optimization/proximal-method.en.md +52 -0
  93. package/knowledge-base/optimization/proximal-method.md +52 -0
  94. package/knowledge-base/optimization/riemannian-optimization.en.md +51 -0
  95. package/knowledge-base/optimization/riemannian-optimization.md +51 -0
  96. package/knowledge-base/overview.en.md +39 -0
  97. package/knowledge-base/overview.md +29 -218
  98. package/knowledge-base/probability/concentration-inequality.en.md +45 -0
  99. package/knowledge-base/probability/concentration-inequality.md +45 -0
  100. package/knowledge-base/probability/entropy.en.md +47 -0
  101. package/knowledge-base/probability/entropy.md +47 -0
  102. package/knowledge-base/probability/fisher-information.en.md +48 -0
  103. package/knowledge-base/probability/fisher-information.md +48 -0
  104. package/knowledge-base/probability/information-bottleneck.en.md +49 -0
  105. package/knowledge-base/probability/information-bottleneck.md +49 -0
  106. package/knowledge-base/probability/kl-divergence.en.md +51 -0
  107. package/knowledge-base/probability/kl-divergence.md +51 -0
  108. package/knowledge-base/topology/euler-characteristic.en.md +54 -0
  109. package/knowledge-base/topology/euler-characteristic.md +54 -0
  110. package/knowledge-base/topology/fundamental-group.en.md +52 -0
  111. package/knowledge-base/topology/fundamental-group.md +52 -0
  112. package/knowledge-base/topology/persistent-homology.en.md +54 -0
  113. package/knowledge-base/topology/persistent-homology.md +54 -0
  114. package/lenses/algorithmic.en.md +49 -0
  115. package/lenses/algorithmic.md +49 -0
  116. package/lenses/axiomatization.en.md +48 -0
  117. package/lenses/axiomatization.md +48 -0
  118. package/lenses/categorical.en.md +48 -0
  119. package/lenses/categorical.md +48 -0
  120. package/lenses/causal.en.md +49 -0
  121. package/lenses/causal.md +49 -0
  122. package/lenses/duality.en.md +47 -0
  123. package/lenses/duality.md +47 -0
  124. package/lenses/game.en.md +50 -0
  125. package/lenses/game.md +50 -0
  126. package/lenses/geometric.en.md +53 -0
  127. package/lenses/geometric.md +53 -0
  128. package/lenses/local-to-global.en.md +52 -0
  129. package/lenses/local-to-global.md +52 -0
  130. package/lenses/perturbation.en.md +51 -0
  131. package/lenses/perturbation.md +51 -0
  132. package/lenses/probabilistic.en.md +48 -0
  133. package/lenses/probabilistic.md +48 -0
  134. package/lenses/projection.en.md +50 -0
  135. package/lenses/projection.md +50 -0
  136. package/lenses/spectral.en.md +52 -0
  137. package/lenses/spectral.md +52 -0
  138. package/lenses/symmetry.en.md +49 -0
  139. package/lenses/symmetry.md +49 -0
  140. package/lenses/topological.en.md +48 -0
  141. package/lenses/topological.md +48 -0
  142. package/lenses/variational.en.md +48 -0
  143. package/lenses/variational.md +48 -0
  144. package/package.json +11 -3
  145. package/references/agentic-workflow.en.md +53 -0
  146. package/references/agentic-workflow.md +2 -0
  147. package/references/books/abstract-algebra.md +9 -5
  148. package/references/books/algebraic-geometry-rising-sea.md +9 -5
  149. package/references/books/differential-geometry.md +7 -3
  150. package/references/books/matrix-analysis.md +8 -4
  151. package/references/books/micro-lie-theory.md +7 -3
  152. package/references/books/optimization-ml.md +5 -1
  153. package/references/books/smooth-manifolds.md +7 -3
  154. package/references/gpu-friendly-math.en.md +65 -0
  155. package/references/gpu-friendly-math.md +4 -2
  156. package/references/inspiration.en.md +113 -0
  157. package/references/inspiration.md +4 -2
  158. package/skills/math-research-activator/SKILL.en.md +187 -0
  159. package/skills/math-research-activator/SKILL.md +162 -108
  160. package/skills/math-research-activator/original-texts.en.md +105 -0
  161. package/skills/math-research-activator/original-texts.md +11 -11
  162. package/commands/abstraction.md +0 -13
  163. package/commands/algorithmic-thinking.md +0 -13
  164. package/commands/axiomatization.md +0 -13
  165. package/commands/causal-inference.md +0 -13
  166. package/commands/discrete-combinatorial.md +0 -13
  167. package/commands/game-theory.md +0 -13
  168. package/commands/induction-analogy.md +0 -13
  169. package/commands/information-theory.md +0 -13
  170. package/commands/logic-deduction.md +0 -13
  171. package/commands/modeling.md +0 -13
  172. package/commands/optimization.md +0 -13
  173. package/commands/probability-statistics.md +0 -13
  174. package/commands/symmetry-invariance.md +0 -13
  175. package/commands/topological-thinking.md +0 -13
  176. package/commands/transformation.md +0 -13
  177. package/skills/abstraction/SKILL.md +0 -119
  178. package/skills/abstraction/original-texts.md +0 -175
  179. package/skills/algorithmic-thinking/SKILL.md +0 -136
  180. package/skills/algorithmic-thinking/original-texts.md +0 -256
  181. package/skills/axiomatization/SKILL.md +0 -149
  182. package/skills/axiomatization/original-texts.md +0 -160
  183. package/skills/causal-inference/SKILL.md +0 -149
  184. package/skills/causal-inference/original-texts.md +0 -167
  185. package/skills/discrete-combinatorial/SKILL.md +0 -129
  186. package/skills/discrete-combinatorial/original-texts.md +0 -185
  187. package/skills/game-theory/SKILL.md +0 -121
  188. package/skills/game-theory/original-texts.md +0 -131
  189. package/skills/induction-analogy/SKILL.md +0 -150
  190. package/skills/induction-analogy/original-texts.md +0 -154
  191. package/skills/information-theory/SKILL.md +0 -138
  192. package/skills/information-theory/original-texts.md +0 -127
  193. package/skills/logic-deduction/SKILL.md +0 -133
  194. package/skills/logic-deduction/original-texts.md +0 -173
  195. package/skills/modeling/SKILL.md +0 -137
  196. package/skills/modeling/original-texts.md +0 -165
  197. package/skills/optimization/SKILL.md +0 -133
  198. package/skills/optimization/original-texts.md +0 -168
  199. package/skills/probability-statistics/SKILL.md +0 -149
  200. package/skills/probability-statistics/original-texts.md +0 -193
  201. package/skills/symmetry-invariance/SKILL.md +0 -137
  202. package/skills/symmetry-invariance/original-texts.md +0 -221
  203. package/skills/topological-thinking/SKILL.md +0 -126
  204. package/skills/topological-thinking/original-texts.md +0 -164
  205. package/skills/transformation/SKILL.md +0 -122
  206. package/skills/transformation/original-texts.md +0 -216
@@ -0,0 +1,50 @@
1
+ # 🎯 Game Lens
2
+
3
+ > Your optimal choice depends on others' choices — thinking must be not only deep but interactive.
4
+
5
+ ## What Perspective It Offers
6
+
7
+ This is a "player's" perspective — in environments where multiple decision-makers mutually influence one another, each participant's optimal action depends on others' actions, and others' optimal actions in turn depend on yours. It demands recursive depth of reasoning: "I think that you think that I think..." The core is not optimizing one's own payoff, but finding a stable state from which no one is willing to unilaterally deviate — the Nash equilibrium.
8
+
9
+ ## What Problems It Is Suited to Diagnose
10
+
11
+ - Multiple decision-makers whose strategies affect one another's payoffs
12
+ - Designing incentive mechanisms that channel self-interested behavior toward desired social outcomes
13
+ - Analyzing optimal strategies and equilibrium predictions in competitive or adversarial scenarios
14
+ - Anticipating others' actions and adjusting one's own decisions accordingly
15
+
16
+ ## What Problems It Is Not Suited For
17
+
18
+ - Single-agent decision problems with no interaction with others — optimization thinking is more appropriate
19
+ - Purely cooperative problems where all participants share identical objectives — strategic analysis is unnecessary
20
+ - Deterministic problems where outcomes are uniquely determined by one's own actions — no others' responses are involved
21
+ - Outcomes determined purely by luck, with no strategic choices available to any party
22
+
23
+ ## Which Knowledge Domains It Routes To
24
+
25
+ - Game theory (Nash equilibrium / dominant strategies / mixed strategies): the core framework for analyzing strategic interaction
26
+ - Mechanism design: redesigning the rules when equilibria are undesirable, making cooperation the self-interested choice
27
+ - Optimization theory (minimax / linear programming): computational tools for zero-sum games and equilibrium computation
28
+ - Probability theory (Bayesian games / expected payoffs): handling asymmetric information and type uncertainty
29
+
30
+ ## What AI Designs It May Inspire
31
+
32
+ - Game-type classifier: zero-sum / non-zero-sum / sequential / cooperative → automatic matching of solution methods
33
+ - Equilibrium solver and stability checker: Nash equilibrium + trembling-hand perfection + evolutionary stability
34
+ - Mechanism design engine: when equilibria are undesirable, automatically generating payoff-structure / rule-modification recommendations
35
+
36
+ ## Reasoning Protocol
37
+
38
+ 1. **Identify players and strategy sets**: Who is making decisions? What can each choose? Omitting a key player is the most common error
39
+ 2. **Determine the game type**: Zero-sum / general-sum? Simultaneous / sequential? Complete / incomplete information? The type determines the method
40
+ 3. **Construct the payoff structure**: Write out the payoff matrix or payoff functions; verify completeness and accuracy
41
+ 4. **Solve for equilibrium**: Dominant strategies → pure-strategy Nash → mixed strategies → subgame perfection; rank multiple equilibria by Pareto dominance
42
+ 5. **Test stability and design mechanisms**: Is the equilibrium robust? If the equilibrium is undesirable, redesign the rules so that good outcomes become the self-interested choice
43
+
44
+ ## Acceptance Criteria
45
+
46
+ - All players have been identified; strategy sets and payoff functions are explicitly defined
47
+ - The game type has been determined and the corresponding solution method selected
48
+ - Equilibria have been computed (pure / mixed / subgame-perfect); multiple equilibria are annotated and ranked
49
+ - Stability checks have been performed (trembling-hand / evolutionary stability / deviation incentives)
50
+ - If equilibria are undesirable, mechanism design recommendations have been provided (rule changes / payoff modifications / reputation mechanisms)
package/lenses/game.md ADDED
@@ -0,0 +1,50 @@
1
+ # 🎯 博弈透镜 / Game Lens
2
+
3
+ > 你的最优选择取决于他人的选择——思考不仅要深入,还要互动。
4
+
5
+ ## 它是什么视角
6
+
7
+ 这是一种"对弈者"的视角——在多个决策者相互影响的环境中,每个参与者的最优行动取决于他人的行动,而他人的最优行动又反过来取决于你。它要求思维具有递归深度:"我认为你认为我认为……"。核心不是优化自己的收益,而是找到无人愿意单方面偏离的稳定状态——纳什均衡。
8
+
9
+ ## 适合诊断什么问题
10
+
11
+ - 多个决策者相互影响,各自策略影响他人收益
12
+ - 需要设计激励机制,使自利行为导向期望的社会结果
13
+ - 分析竞争/对抗场景中的最优策略与均衡预测
14
+ - 预判他人行动并据此调整自己的决策
15
+
16
+ ## 不适合什么问题
17
+
18
+ - 单人决策问题,与他人无互动——优化思想更适用
19
+ - 纯合作问题,参与者目标完全一致——无需战略分析
20
+ - 确定性问题,结果由自身行动唯一决定——不涉及他人反应
21
+ - 纯粹运气决定的结果,各方无策略选择
22
+
23
+ ## 会路由到哪些知识域
24
+
25
+ - 博弈论(纳什均衡/占优策略/混合策略):分析战略互动的核心框架
26
+ - 机制设计:当均衡不理想时重新设计规则,让合作成为自利选择
27
+ - 优化理论(minimax/线性规划):零和博弈与均衡求解的计算工具
28
+ - 概率论(贝叶斯博弈/期望支付):处理信息不对称与类型不确定性
29
+
30
+ ## 可能产生哪些 AI 设计
31
+
32
+ - 博弈类型分类器:零和/非零和/序列/合作→自动匹配求解方法
33
+ - 均衡求解与稳定性检验:纳什均衡 + 颤抖手完美性 + 演化稳定性
34
+ - 机制设计引擎:均衡不理想时,自动生成支付结构/规则修改建议
35
+
36
+ ## 推理协议
37
+
38
+ 1. **识别参与者与策略集**:谁在决策?每人可选什么?遗漏关键参与者是最常见错误
39
+ 2. **判定博弈类型**:零和/一般和?同时/序列?完全/不完全信息?类型决定方法
40
+ 3. **构建支付结构**:写出支付矩阵或支付函数,验证完备性与准确性
41
+ 4. **求解均衡**:占优策略→纯策略纳什→混合策略→子博弈完美,多重均衡做帕累托排序
42
+ 5. **检验稳定性与设计机制**:均衡是否鲁棒?若均衡不理想,重新设计规则让好结果成为自利选择
43
+
44
+ ## 验收标准
45
+
46
+ - 所有参与者已识别,策略集与支付函数已显式定义
47
+ - 博弈类型已判定,对应求解方法已选择
48
+ - 均衡已计算(纯/混合/子博弈完美),多重均衡已标注并排序
49
+ - 稳定性检验已执行(颤抖手/演化稳定/偏离激励)
50
+ - 若均衡不理想,机制设计建议已给出(改规则/改支付/引入声誉)
@@ -0,0 +1,53 @@
1
+ # 🌉 Geometric Lens
2
+
3
+ > Metric, curvature, and spatial structure on manifolds — seeing problems through the eyes of differential geometry, where distance, bending, and optimal paths reveal the intrinsic shape of data
4
+
5
+ ## What This Perspective Is
6
+
7
+ This is a "surveyor's" perspective — endowing the problem space with a metric tensor (defining distance and angle), characterizing spatial bending through curvature, and finding optimal paths via geodesics. The core conviction: many seemingly complex nonlinear problems become natural once the correct manifold structure is recognized — the geometry of parameter space determines the optimization landscape, and the intrinsic dimensionality of data sets the ultimate compression limit.
8
+
9
+ ## Problems It Diagnoses Well
10
+
11
+ - The geometry of parameter space — is a Euclidean metric adequate, or is a Riemannian metric needed?
12
+ - The intrinsic dimensionality of data is far below the embedding dimension — does the manifold hypothesis hold?
13
+ - Distance between two distributions or models — the difference between Fisher metric and Euclidean distance
14
+ - Optimization landscape analysis — high-curvature directions converge fast, low-curvature directions converge slowly
15
+ - The importance of preserving intrinsic geometry in representation learning
16
+
17
+ ## Problems It Doesn't Fit
18
+
19
+ - Problems with no natural geometric structure — forcing a metric only introduces spurious structure
20
+ - Purely algebraic or combinatorial problems — no concept of distance, angle, or bending is involved
21
+ - Manifold dimension close to embedding dimension — the manifold hypothesis offers no compression benefit
22
+
23
+ ## Knowledge Domains It Routes To
24
+
25
+ - **differential-geometry/manifold**: Manifold definitions, atlases, coordinate transformations — the stage for geometric reasoning
26
+ - **differential-geometry/metric-tensor**: Metric tensors defining distance and inner product; Fisher information matrix as the natural metric
27
+ - **differential-geometry/curvature**: Curvature tensors and sectional curvature — precise measures of spatial bending
28
+ - **differential-geometry/geodesic**: Geodesic equations and exponential maps — shortest paths on manifolds
29
+ - **optimization/riemannian-optimization**: Riemannian gradient descent and retraction operators — optimization algorithms on manifolds
30
+ - **information-geometry/natural-gradient**: Natural gradient as steepest descent direction under the Fisher metric
31
+
32
+ ## AI Designs It May Inspire
33
+
34
+ - **Riemannian Optimizer**: Perform natural gradient descent on parameter spaces with manifold constraints
35
+ - **Geometry-Aware Attention**: Replace Euclidean distance with geodesic distance when computing attention weights
36
+ - **Manifold Regularization**: Add curvature penalties to the loss function to maintain geometric smoothness of the representation space
37
+ - **Intrinsic Dimension Estimator**: Estimate the intrinsic dimension of the data manifold online to guide bottleneck layer width selection
38
+
39
+ ## Reasoning Protocol
40
+
41
+ 1. **Identify the manifold structure**: What is the natural parameter space? What type of manifold is it (sphere, Grassmannian, SPD matrix space)?
42
+ 2. **Choose a metric**: Is the Euclidean metric sufficient, or is a Fisher information metric or other Riemannian metric required?
43
+ 3. **Analyze curvature**: What is the curvature of the space? Positive (spherical) vs. negative (hyperbolic) vs. flat — what does this imply for optimization and representation?
44
+ 4. **Compute geodesics**: What is the optimal path between two points? Can the exponential and logarithmic maps be computed efficiently?
45
+ 5. **Design geometry-consistent algorithms**: Ensure optimization steps respect the manifold structure (retraction to manifold, Riemannian gradient)
46
+
47
+ ## Acceptance Criteria
48
+
49
+ - The manifold type and coordinate parameterization are clearly defined
50
+ - The metric tensor has been chosen with theoretical or empirical justification
51
+ - Curvature properties have been analyzed and their implications for optimization and representation are annotated
52
+ - Geodesic distance and exponential maps have a computationally feasible scheme
53
+ - Algorithm design respects manifold structure — intrinsic vs. extrinsic quantities are distinguished
@@ -0,0 +1,53 @@
1
+ # 🌉 几何透镜
2
+
3
+ > 度量/曲率/流形上的空间结构——用微分几何的眼光看问题,距离、弯曲与最优路径揭示数据的内在形状
4
+
5
+ ## 它是什么视角
6
+
7
+ 这是一种"测量者"的视角——为问题空间赋予度量张量(定义距离与角度),用曲率刻画空间的弯曲程度,用测地线寻找最优路径。核心信念:许多看似复杂的非线性问题,在正确的流形结构下会变得自然——参数空间的几何决定了优化的地形,数据的内在维度决定了可用的压缩极限。
8
+
9
+ ## 适合诊断什么问题
10
+
11
+ - 参数空间的几何结构——欧氏度量是否合适?是否需要黎曼度量?
12
+ - 数据的内在维度远低于嵌入维度——流形假设是否成立?
13
+ - 两个分布/模型之间的距离——Fisher 度量 vs 欧氏距离的差异
14
+ - 优化地形分析——曲率大的方向收敛快,曲率小的方向收敛慢
15
+ - 表示学习中保持内蕴几何不变的重要性
16
+
17
+ ## 不适合什么问题
18
+
19
+ - 问题本身没有自然的几何结构——强行赋予度量只会引入伪结构
20
+ - 纯代数/组合问题——不涉及距离、角度、弯曲的概念
21
+ - 流形维度接近嵌入维度——流形假设无压缩收益
22
+
23
+ ## 会路由到哪些知识域
24
+
25
+ - **differential-geometry/manifold**:流形定义、图册、坐标变换——几何推理的舞台
26
+ - **differential-geometry/metric-tensor**:度量张量定义距离与内积,Fisher 信息矩阵作为自然度量
27
+ - **differential-geometry/curvature**:曲率张量、截面曲率——空间弯曲的精确度量
28
+ - **differential-geometry/geodesic**:测地线方程、指数映射——流形上的最短路径
29
+ - **optimization/riemannian-optimization**:黎曼梯度下降、收缩算子——流形上的优化算法
30
+ - **information-geometry/natural-gradient**:自然梯度 = Fisher 度量下的最速下降方向
31
+
32
+ ## 可能产生哪些 AI 设计
33
+
34
+ - **黎曼优化器**:在流形约束的参数空间上做自然梯度下降
35
+ - **几何感知注意力**:用测地距离替代欧氏距离计算注意力权重
36
+ - **流形正则化**:损失函数中加入曲率惩罚,保持表示空间的几何光滑性
37
+ - **内蕴维度估计器**:在线估计数据流形的本征维度,指导瓶颈层宽度选择
38
+
39
+ ## 推理协议
40
+
41
+ 1. **识别流形结构**:问题的自然参数空间是什么?它是哪种流形(球面、Grassmannian、SPD 矩阵空间)?
42
+ 2. **选择度量**:欧氏度量是否充分?是否需要 Fisher 信息度量或其他黎曼度量?
43
+ 3. **分析曲率**:空间的曲率如何?正曲率(球面)vs 负曲率(双曲)vs 平坦——对优化和表示意味着什么?
44
+ 4. **计算测地线**:两点之间的最优路径是什么?指数映射和对数映射是否可高效计算?
45
+ 5. **设计几何一致的算法**:确保优化步骤尊重流形结构(收缩到流形、黎曼梯度)
46
+
47
+ ## 验收标准
48
+
49
+ - 流形类型与坐标参数化已明确定义
50
+ - 度量张量已选择且有理论或经验依据
51
+ - 曲率性质已分析,其对优化/表示的影响已标注
52
+ - 测地距离/指数映射有可计算方案
53
+ - 算法设计尊重流形结构——内蕴量 vs 外蕴量已区分
@@ -0,0 +1,52 @@
1
+ # 📈 Local-to-Global Lens
2
+
3
+ > Patching local properties into global, sheaf cohomology obstructions — can local solutions be seamlessly assembled into a global solution? Where do the obstructions lie?
4
+
5
+ ## What This Perspective Is
6
+
7
+ This is a "patcher's" perspective — starting from local patches that cover a space, asking: "Can properties that hold in each local region be consistently assembled into a globally valid property?" The core conviction: the difficulty of many global problems lies not in local solving but in the compatibility between local solutions. The partition of unity theorem guarantees that smooth functions can always be patched from local to global, but sheaf cohomology precisely characterizes when such patching fails — a nonzero cohomology group signals the existence of a global obstruction.
8
+
9
+ ## Problems It Diagnoses Well
10
+
11
+ - Whether locally defined quantities (gradients, features, representations) can be consistently assembled into a global quantity
12
+ - When analytic continuation is unique and when multivaluedness arises (applicability of the monodromy theorem)
13
+ - Whether local consensus in a distributed system can guarantee global consistency
14
+ - Whether local trivializations of a fiber bundle can be patched into a global trivialization — what is the topological obstruction?
15
+ - Detecting global inconsistencies across overlapping covers via Cech cohomology
16
+
17
+ ## Problems It Doesn't Fit
18
+
19
+ - Problems that are inherently global and indivisible — no natural local cover exists
20
+ - Concerns only single-point properties rather than the local-to-global transition
21
+ - Purely algebraic problems — no concept of spatial covering or patching is involved
22
+
23
+ ## Knowledge Domains It Routes To
24
+
25
+ - **topology/persistent-homology**: Persistent homology — a bridge from local neighborhoods to global topological features
26
+ - **topology/fundamental-group**: Fundamental group as a global invariant of path connectivity, detecting "holes" invisible locally
27
+ - **topology/euler-characteristic**: Euler characteristic — linking local combinatorial information to global topology
28
+ - **differential-geometry/connection**: Connections defining parallel transport — consistency conditions from local tangent spaces to global
29
+ - **differential-geometry/manifold**: Atlases and coordinate transformations — the manifold definition itself is the paradigm of local-to-global
30
+
31
+ ## AI Designs It May Inspire
32
+
33
+ - **Sheaf Consistency Loss**: Penalize incompatibility between representations in adjacent local regions, driving globally consistent representation learning
34
+ - **Local-Global Verifier**: Solve independently on multiple patches, then check global consistency via the Cech condition
35
+ - **Cohomological Obstruction Detector**: Automatically identify which local solution combinations have topological obstructions requiring global correction
36
+ - **Partition-and-Stitch Framework**: Decompose a global problem into a weighted superposition of local subproblems using the partition of unity idea
37
+
38
+ ## Reasoning Protocol
39
+
40
+ 1. **Choose a local cover**: What family of open sets covers the problem space? What are the granularity and overlap of the cover?
41
+ 2. **Solve local problems**: Solve independently on each covering set, recording the form and scope of each solution
42
+ 3. **Check compatibility conditions**: Are the local solutions consistent on overlap regions? Do the transition functions satisfy the cocycle condition?
43
+ 4. **Identify cohomological obstructions**: If compatibility fails, compute the Cech cohomology group — a nonzero group indicates an irremovable global obstruction
44
+ 5. **Decide on a strategy**: Is the obstruction removable (adjust local solutions) or essential (a global method is required, or multivaluedness must be accepted)?
45
+
46
+ ## Acceptance Criteria
47
+
48
+ - The local cover is clearly defined with stated granularity and overlap
49
+ - Each local solution is independently provided with its scope annotated
50
+ - Compatibility conditions on overlap regions have been checked and results recorded
51
+ - If obstructions exist, the cohomology group has been computed or estimated and the obstruction type classified
52
+ - A final strategy is determined — patching succeeded, global correction needed, or obstruction is irremovable
@@ -0,0 +1,52 @@
1
+ # 📈 局部到全局透镜
2
+
3
+ > 局部性质拼接为全局、层上同调障碍——局部解能否无缝组装成全局解?障碍在哪里?
4
+
5
+ ## 它是什么视角
6
+
7
+ 这是一种"拼接者"的视角——从覆盖空间的局部 patches 出发,追问"每个局部区域内成立的性质,能否一致地拼接为全局成立的性质?"核心信念:许多全局问题的难度不在于局部求解,而在于局部解之间的相容性。单位分解定理保证了光滑函数总可局部拼接为全局,但层上同调精确刻画了什么时候这种拼接会失败——上同调群非零 = 全局障碍存在。
8
+
9
+ ## 适合诊断什么问题
10
+
11
+ - 局部定义的量(梯度、特征、表示)能否一致地组装为全局量?
12
+ - 解析延拓何时唯一、何时出现多值性(单值化定理的适用性)
13
+ - 分布式系统中局部共识能否保证全局一致性?
14
+ - 纤维丛的局部平凡化能否拼接为全局平凡化——拓扑障碍是什么?
15
+ - Cech 上同调检测覆盖之间的全局不一致性
16
+
17
+ ## 不适合什么问题
18
+
19
+ - 问题本身就是全局的且不可分解——没有自然的局部覆盖
20
+ - 只关心单点性质而非局部到全局的过渡
21
+ - 纯代数问题——不涉及空间覆盖与拼接的概念
22
+
23
+ ## 会路由到哪些知识域
24
+
25
+ - **topology/persistent-homology**:持续同调——从局部邻域到全局拓扑特征的桥梁
26
+ - **topology/fundamental-group**:基本群作为路径连通性的全局不变量,检测局部无法捕获的"洞"
27
+ - **topology/euler-characteristic**:Euler 示性数——局部组合信息与全局拓扑的关联
28
+ - **differential-geometry/connection**:联络定义平行移动——局部切空间到全局的一致性条件
29
+ - **differential-geometry/manifold**:图册与坐标变换——流形定义本身即局部到全局的范式
30
+
31
+ ## 可能产生哪些 AI 设计
32
+
33
+ - **层一致性损失**:惩罚相邻局部区域表示之间的不相容,驱动全局一致表示学习
34
+ - **局部-全局验证器**:在多 patch 上独立求解后用 Cech 条件检验全局一致性
35
+ - **上同调障碍检测器**:自动识别哪些局部解组合存在拓扑障碍,需要全局修正
36
+ - **分区拼接框架**:用单位分解思想将全局问题分解为加权局部子问题的叠加
37
+
38
+ ## 推理协议
39
+
40
+ 1. **选择局部覆盖**:用什么开集族覆盖问题空间?覆盖的粒度和重叠度如何?
41
+ 2. **求解局部问题**:在每个覆盖集上独立求解,记录解的形式与适用范围
42
+ 3. **检查相容性条件**:在重叠区域,局部解是否一致?转移函数是否满足余环条件?
43
+ 4. **识别上同调障碍**:若相容性失败,计算 Cech 上同调群——非零群 = 不可消除的全局障碍
44
+ 5. **决定策略**:障碍可消除(调整局部解)还是本质性的(需要全局方法或接受多值性)?
45
+
46
+ ## 验收标准
47
+
48
+ - 局部覆盖已明确定义,覆盖粒度与重叠度已说明
49
+ - 每个局部解已独立给出并标注适用范围
50
+ - 重叠区域的相容性条件已检查,结果已记录
51
+ - 若存在障碍,上同调群已计算或估计,障碍类型已分类
52
+ - 最终策略已确定——拼接成功/需要全局修正/障碍不可消除
@@ -0,0 +1,51 @@
1
+ # 🧠 Perturbation Lens
2
+
3
+ > Propagation of small perturbations, stability, and robustness — a system's sensitivity to tiny changes determines its reliability
4
+
5
+ ## What This Perspective Is
6
+
7
+ This is a "stress-tester's" perspective — for any mathematical object or system design, ask: "If the input, parameters, or structure undergo a small change, how much does the output shift? Is the shift controllable?" The core conviction: a well-posed system's response to perturbation should be bounded and predictable; if a design collapses under infinitesimal perturbation, it is destined to fail in practice. The condition number is the precise measure of perturbation amplification.
8
+
9
+ ## Problems It Diagnoses Well
10
+
11
+ - Robustness analysis of models against input noise or adversarial perturbations
12
+ - Small parameter changes causing solution jumps in optimization — is the problem ill-conditioned?
13
+ - Stability of eigenvalues and eigenvectors under matrix perturbation (Davis-Kahan theorem)
14
+ - Identifying regular vs. singular perturbations in asymptotic expansions
15
+ - Error propagation and condition number analysis in numerical algorithms
16
+
17
+ ## Problems It Doesn't Fit
18
+
19
+ - Problems where the perturbation itself is the object of study (e.g., butterfly effect in chaotic systems is a feature, not a defect)
20
+ - Large-deformation or global structural analysis — perturbation theory only concerns local neighborhoods
21
+ - Discrete combinatorial problems — perturbation theory relies on continuity assumptions
22
+
23
+ ## Knowledge Domains It Routes To
24
+
25
+ - **matrix-analysis/matrix-perturbation**: Weyl's inequality, Davis-Kahan theorem, perturbation bounds for eigenvalues and singular values
26
+ - **optimization/constrained-optimization**: Stability of KKT conditions, sensitivity of optimal solutions to perturbation
27
+ - **probability/concentration-inequality**: Concentration phenomena under random perturbation, sub-Gaussian tail bounds
28
+ - **differential-geometry/curvature**: Curvature as a measure of geodesic deviation — perturbation amplification in geometric terms
29
+
30
+ ## AI Designs It May Inspire
31
+
32
+ - **Perturbation Regularization**: Add input or weight perturbation terms to the loss to train models insensitive to small changes
33
+ - **Condition Number Monitor**: Track the condition number of weight matrices or the Hessian in real time to warn of ill-conditioning
34
+ - **Robustness Verification Layer**: Quantify maximum output shift using epsilon-delta bounds, providing formal robustness guarantees
35
+ - **Adaptive Preconditioning**: Dynamically adjust optimizer step size based on the perturbation amplification factor
36
+
37
+ ## Reasoning Protocol
38
+
39
+ 1. **Identify the perturbation source**: Does the perturbation occur in the input, parameters, or structure? What is its magnitude epsilon?
40
+ 2. **Compute sensitivity**: Derive the Jacobian or condition number — the ratio of output shift Delta to perturbation epsilon
41
+ 3. **Classify the perturbation**: Regular perturbation (expansion converges order by order) vs. singular perturbation (leading-order term changes)
42
+ 4. **Establish perturbation bounds**: Use known theorems (Weyl, Davis-Kahan, Lipschitz constants) to provide rigorous upper bounds
43
+ 5. **Assess robustness**: Is the perturbation amplification within acceptable range? If not, what regularization is needed?
44
+
45
+ ## Acceptance Criteria
46
+
47
+ - The perturbation source and its magnitude epsilon are clearly defined
48
+ - Sensitivity or condition number has been computed or estimated
49
+ - The perturbation type has been classified (regular or singular)
50
+ - The output shift has a quantified upper bound (not merely a heuristic estimate)
51
+ - The robustness conclusion is actionable — pass, fail, or specification of required regularization
@@ -0,0 +1,51 @@
1
+ # 🧠 微扰透镜
2
+
3
+ > 小扰动的传播、稳定性、鲁棒性——系统对微小变化的敏感度决定了它的可靠性
4
+
5
+ ## 它是什么视角
6
+
7
+ 这是一种"压力测试者"的视角——对任何数学对象或系统设计,追问"如果输入/参数/结构发生微小变化,输出会偏移多少?偏移是否可控?"核心信念:一个良态系统的输出对扰动的响应应当是有界的、可预测的;如果一个设计在无穷小扰动下就崩溃,那它在现实中注定失败。条件数是扰动放大倍数的精确度量。
8
+
9
+ ## 适合诊断什么问题
10
+
11
+ - 模型对输入噪声/对抗扰动的鲁棒性分析
12
+ - 优化问题中参数微变导致解的跳变——问题是病态的吗?
13
+ - 特征值/特征向量在矩阵微扰下的稳定性(Davis-Kahan 定理)
14
+ - 渐近展开中正则扰动 vs 奇异扰动的识别
15
+ - 数值算法的误差传播与条件数分析
16
+
17
+ ## 不适合什么问题
18
+
19
+ - 扰动本身就是研究对象(如混沌系统中蝴蝶效应是特征而非缺陷)
20
+ - 需要大变形/全局结构分析——微扰只关心局部邻域
21
+ - 离散组合问题——微扰理论依赖连续性假设
22
+
23
+ ## 会路由到哪些知识域
24
+
25
+ - **matrix-analysis/matrix-perturbation**:Weyl 不等式、Davis-Kahan 定理、特征值/奇异值的扰动界
26
+ - **optimization/constrained-optimization**:KKT 条件的稳定性、扰动后最优解的灵敏度
27
+ - **probability/concentration-inequality**:随机扰动下的集中现象、亚高斯尾部界
28
+ - **differential-geometry/curvature**:曲率作为测地线偏离的度量——几何意义上的扰动放大
29
+
30
+ ## 可能产生哪些 AI 设计
31
+
32
+ - **扰动正则化**:在损失中加入输入/权重扰动项,训练对微小变化不敏感的模型
33
+ - **条件数监控器**:实时跟踪权重矩阵/Hessian 的条件数,预警病态
34
+ - **鲁棒性验证层**:用 ε-δ 界量化模型输出的最大偏移,提供形式化鲁棒性保证
35
+ - **自适应预条件**:根据扰动放大因子动态调整优化器步长
36
+
37
+ ## 推理协议
38
+
39
+ 1. **识别扰动源**:扰动发生在输入、参数还是结构上?扰动的量级 ε 是多少?
40
+ 2. **计算灵敏度**:求导/Jacobian/条件数——输出偏移 Δ 与扰动 ε 的比值 Δ/ε
41
+ 3. **判断扰动类型**:正则扰动(展开式逐阶收敛)vs 奇异扰动(主导项阶次改变)
42
+ 4. **给出扰动界**:用已知定理(Weyl、Davis-Kahan、Lipschitz 常数)给出严格上界
43
+ 5. **评估鲁棒性**:扰动放大是否在可接受范围内?若不可接受,如何正则化?
44
+
45
+ ## 验收标准
46
+
47
+ - 扰动源与扰动量级 ε 已明确定义
48
+ - 灵敏度/条件数已计算或估计
49
+ - 扰动类型已判定(正则/奇异)
50
+ - 输出偏移有量化上界(非仅启发式估计)
51
+ - 鲁棒性结论可执行——通过/不通过/需要何种正则化
@@ -0,0 +1,48 @@
1
+ # 🎲 Probabilistic Lens
2
+
3
+ > Uncertainty is quantifiable — probability is quantified belief, data is quantified evidence
4
+
5
+ ## What Perspective It Offers
6
+
7
+ The probabilistic perspective is a way of "making rational decisions under uncertainty": the world is full of uncertainty, and rational decision-making does not mean pursuing certainty but rather making choices that optimize expected value amid uncertainty. Bayesian updating is the core operation — a prior, upon encountering new data, becomes a posterior; the posterior, upon encountering further data, becomes the new prior. A critical distinction must be maintained: statistical significance is not the same as practical significance (p < 0.05 does not mean a large effect), and correlation is not causation (P(Y|X) is not P(Y|do(X))).
8
+
9
+ ## What Problems It Is Suited to Diagnose
10
+
11
+ - Quantifying uncertainty — probability distributions, confidence intervals, and effect-size estimation
12
+ - Bayesian inference — step-by-step belief updating through the prior–likelihood–posterior cycle
13
+ - Hypothesis testing and experimental design — significance tests, power analysis, and sample-size planning
14
+ - Causal effect estimation — distinguishing statistical association from causal effect
15
+
16
+ ## What Problems It Is Not Suited For
17
+
18
+ - Deterministic problems — the answer is known or can be obtained by deduction; probabilistic tools are unnecessary
19
+ - Extremely small sample sizes (n < 5) with no possibility of increase — report the data itself rather than inferences from it
20
+ - Data that is entirely missing or severely corrupted — no meaningful statistical operation can be performed
21
+
22
+ ## Which Knowledge Domains It Routes To
23
+
24
+ - `probability/entropy`: Kolmogorov axioms, distribution families, and the law of large numbers / CLT — the mathematical foundations of uncertainty
25
+ - `probability/kl-divergence`: MLE, hypothesis testing, Bayesian inference, and regression modeling — extracting patterns from data
26
+ - causal inference (no KB card yet, use critic): DAGs, the back-door criterion, and do-calculus — the reasoning framework from association to causation
27
+
28
+ ## What AI Designs It May Inspire
29
+
30
+ - **Belief-Updating Engine**: Implements an automatic chain of Bayesian prior-to-posterior updates
31
+ - **Experiment Design Advisor**: Automatically computes the minimum sample size based on effect size and statistical power
32
+ - **Causal Identification Module**: Constructs a DAG from variable relationships and identifies back-door paths and adjustment sets
33
+
34
+ ## Reasoning Protocol
35
+
36
+ 1. **Define the Random Phenomenon**: Specify the random variables, sample space, event space, and probability measure
37
+ 2. **Select a Probabilistic Model**: Choose a distribution based on data type, sample size, and the underlying physical mechanism
38
+ 3. **Statistical Inference**: Point estimation / MLE, confidence intervals, hypothesis testing, or Bayesian updating
39
+ 4. **Causal Assessment** (where applicable): Construct a DAG, identify confounders, and apply the back-door criterion
40
+ 5. **Quantify Uncertainty**: Provide confidence or credible intervals, report effect sizes, and distinguish statistical significance from practical significance
41
+
42
+ ## Acceptance Criteria
43
+
44
+ - Random variables and distributions have been explicitly defined
45
+ - The inference method (frequentist or Bayesian) has been selected with stated rationale
46
+ - The meaning of p-values has been correctly understood (not "degree of confidence")
47
+ - Correlation and causation have been distinguished, and confounders have been checked
48
+ - Effect sizes and uncertainty have been reported, not merely point estimates
@@ -0,0 +1,48 @@
1
+ # 🎲 概率透镜
2
+
3
+ > 不确定性是可量化的——概率是量化的信念,数据是量化的证据
4
+
5
+ ## 它是什么视角
6
+
7
+ 概率是一种"在不确定性中做理性决策"的眼光:世界充满不确定性,理性决策不是追求确定性,而是在不确定性中做出期望值最优的选择。贝叶斯更新是核心操作——先验遇新数据变成后验,后验遇更新数据又成为新先验。关键区分:统计显著不等于实际显著(p<0.05 不等于效应大),相关不等于因果(P(Y|X) 不等于 P(Y|do(X)))。
8
+
9
+ ## 适合诊断什么问题
10
+
11
+ - 量化不确定性——概率分布、置信区间、效应量评估
12
+ - 贝叶斯推断——先验-似然-后验的逐步信念更新
13
+ - 假设检验与实验设计——显著性检验、功效分析、样本量规划
14
+ - 因果效应估计——区分统计关联与因果效应
15
+
16
+ ## 不适合什么问题
17
+
18
+ - 确定性问题——已知答案或可演绎推理得到,不需要概率工具
19
+ - 样本量极小(n<5)且无法增加——应报告数据本身而非推断
20
+ - 数据完全缺失或严重损坏——无法做有意义的统计操作
21
+
22
+ ## 会路由到哪些知识域
23
+
24
+ - `probability/entropy`:Kolmogorov 公理、分布族、大数定律/CLT——不确定性的数学基础
25
+ - `probability/kl-divergence`:MLE、假设检验、贝叶斯推断、回归建模——从数据中提取规律
26
+ - 因果推断(暂无知识卡,由 critic 审查):DAG、后门准则、do-演算——从关联到因果的推理框架
27
+
28
+ ## 可能产生哪些 AI 设计
29
+
30
+ - **信念更新引擎**:实现贝叶斯先验→后验的自动更新链条
31
+ - **实验设计顾问**:根据效应量与功效自动计算最小样本量
32
+ - **因果识别器**:从变量关系构建 DAG,识别后门路径与调整集
33
+
34
+ ## 推理协议
35
+
36
+ 1. **定义随机现象**:明确随机变量、样本空间、事件域、概率测度
37
+ 2. **选择概率模型**:根据数据类型、样本量、物理机制选择分布
38
+ 3. **统计推断**:点估计/MLE、置信区间、假设检验或贝叶斯更新
39
+ 4. **因果评估**(如适用):构建 DAG,识别混淆变量,应用后门准则
40
+ 5. **量化不确定性**:给出置信/可信区间,报告效应量,区分统计显著与实际显著
41
+
42
+ ## 验收标准
43
+
44
+ - 随机变量与分布已明确定义
45
+ - 推断方法(频率/贝叶斯)已选择并说明理由
46
+ - p-value 的含义已正确理解(非"把握程度")
47
+ - 相关与因果已区分,混淆变量已检查
48
+ - 效应量与不确定性已报告,非仅点估计
@@ -0,0 +1,50 @@
1
+ # 🧮 Projection & Decomposition Lens
2
+
3
+ > Complex wholes can be orthogonally decomposed into independent components — conflicts are exposed in subspaces, signal and noise are separated under projection.
4
+
5
+ ## What Perspective It Offers
6
+
7
+ This is a "separator's" perspective — projecting mixed wholes onto orthogonal subspaces, splitting shared information from conflicting information, signal from noise, global structure from local detail. The core conviction: any vector can be decomposed into a parallel component plus an orthogonal component, and this decomposition is the first step toward understanding conflicts, eliminating redundancy, and compressing information.
8
+
9
+ ## What Problems It Is Suited to Diagnose
10
+
11
+ - Multiple information sources are mixed; need to separate shared components from specific components (multi-domain learning, multimodal fusion)
12
+ - Representations contain conflicting gradients or contradictory signals (multi-task learning, adversarial training)
13
+ - Need to reduce dimensions or compress while preserving key structure (KV-Cache compression, feature selection)
14
+ - Need to eliminate redundancy or orthogonalize multiple objectives (decorrelation, diversity constraints)
15
+
16
+ ## What Problems It Is Not Suited For
17
+
18
+ - The problem itself is an indecomposable whole (strongly coupled systems, chaotic dynamics)
19
+ - The subspace assumption is too strong — data does not lie on a low-dimensional subspace
20
+ - Scenarios that require retaining all information with zero loss
21
+
22
+ ## Which Knowledge Domains It Routes To
23
+
24
+ - **matrix-analysis/projection**: Orthogonal projection matrices, Courant-Fischer variational characterization
25
+ - **matrix-analysis/spectral-decomposition**: EVD/SVD, principal component analysis
26
+ - **matrix-analysis/low-rank-approximation**: Eckart-Young theorem, truncated SVD
27
+ - **optimization/constrained-optimization**: Orthogonality-constrained optimization, Stiefel manifold
28
+
29
+ ## What AI Designs It May Inspire
30
+
31
+ - **Shared-Private Decomposition**: Project multi-domain representations into a shared subspace plus domain-specific orthogonal complements
32
+ - **Orthogonal Gradient Projection**: In multi-task learning, project new-task gradients onto the orthogonal complement of old-task gradients
33
+ - **Low-Rank KV-Cache Compression**: Project K/V into a low-dimensional subspace, truncating weak components
34
+ - **Head Diversity Constraint**: Force different attention heads to project onto approximately orthogonal subspaces
35
+
36
+ ## Reasoning Protocol
37
+
38
+ 1. **Identify mixed sources**: Which information, gradients, or representations are mixed together? Where do conflicts arise?
39
+ 2. **Define subspaces**: How are the dimensions of the shared space versus the specific space determined? What is the effective rank?
40
+ 3. **Construct projection operators**: $P = AA^H$ (orthonormal basis) or $P = A(A^HA)^{-1}A^H$ (general basis)
41
+ 4. **Perform decomposition**: $x = Px + (I-P)x$; evaluate the contribution of each component separately
42
+ 5. **Verify orthogonality**: Are $P^2 = P$ and $P = P^H$ satisfied? Is the condition number well-controlled?
43
+
44
+ ## Acceptance Criteria
45
+
46
+ - The subspace decomposition is explicitly defined (dimensions, basis vectors, projection matrices)
47
+ - The contributions of both components after projection have been separately quantified
48
+ - Orthogonality conditions have been verified ($P^2 = P$, numerical condition number checked)
49
+ - Compression/discard decisions are supported by quantified information-loss evidence
50
+ - The output includes actionable conclusions, not merely the decomposition process
@@ -0,0 +1,50 @@
1
+ # 🧮 投影与分解透镜 / Projection & Decomposition Lens
2
+
3
+ > 复杂整体可以正交分解为独立分量——冲突在子空间中暴露,信号与噪声在投影下分离。
4
+
5
+ ## 它是什么视角
6
+
7
+ 这是一种"分离者"的视角——将混杂的整体投影到正交子空间,把共享信息与冲突信息、信号与噪声、全局结构与局部细节拆分开来。核心信念:任何向量都可以分解为平行分量 + 正交分量,这种分解是理解冲突、消除冗余、压缩信息的第一步。
8
+
9
+ ## 适合诊断什么问题
10
+
11
+ - 多个信息源混杂,需要分离共享成分与特异成分(多域学习、多模态融合)
12
+ - 表示中存在冲突梯度或矛盾信号(多任务学习、对抗训练)
13
+ - 需要降维或压缩但保留关键结构(KV-Cache 压缩、特征选择)
14
+ - 需要消除冗余或正交化多个目标(去相关、diversity 约束)
15
+
16
+ ## 不适合什么问题
17
+
18
+ - 问题本身就是不可分解的整体(强耦合系统、混沌动力学)
19
+ - 子空间假设过强——数据不在低维子空间上
20
+ - 需要保留全部信息不能有任何损失的场景
21
+
22
+ ## 会路由到哪些知识域
23
+
24
+ - **matrix-analysis/projection**:正交投影矩阵、Courant-Fischer 变分刻画
25
+ - **matrix-analysis/spectral-decomposition**:EVD/SVD、主成分分析
26
+ - **matrix-analysis/low-rank-approximation**:Eckart-Young 定理、截断 SVD
27
+ - **optimization/constrained-optimization**:正交约束优化、Stiefel 流形
28
+
29
+ ## 可能产生哪些 AI 设计
30
+
31
+ - **Shared-Private 分解**:将多域表示投影为共享子空间 + 域特异正交补
32
+ - **正交梯度投影**:在多任务学习中,将新任务梯度投影到旧任务梯度的正交补
33
+ - **低秩 KV-Cache 压缩**:将 K/V 投影到低维子空间,截断弱分量
34
+ - **Head diversity 约束**:强制不同 attention head 投影到近似正交的子空间
35
+
36
+ ## 推理协议
37
+
38
+ 1. **识别混杂源**:哪些信息/梯度/表示被混在一起?冲突在哪里发生?
39
+ 2. **定义子空间**:共享空间 vs 特异空间的维度如何确定?有效秩是多少?
40
+ 3. **构造投影算子**:$P = AA^H$(正交基)或 $P = A(A^HA)^{-1}A^H$(一般基)
41
+ 4. **执行分解**:$x = Px + (I-P)x$,分别评估两个分量的贡献
42
+ 5. **验证正交性**:$P^2 = P$、$P = P^H$ 是否满足?条件数是否可控?
43
+
44
+ ## 验收标准
45
+
46
+ - 子空间分解已显式定义(维度、基向量、投影矩阵)
47
+ - 投影后两个分量的贡献已分别量化
48
+ - 正交性条件已验证($P^2 = P$、数值条件数已检查)
49
+ - 压缩/丢弃决策有信息损失量化依据
50
+ - 输出包含可执行结论,不只是分解过程