math-skill 3.0.1 → 3.1.1
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 +72 -47
- package/README.md +40 -15
- package/agents/math-critic.en.md +6 -6
- package/agents/math-critic.md +6 -6
- package/commands/ask.en.md +6 -1
- package/commands/ask.md +6 -1
- package/design-patterns/attention/equivariant-attention.en.md +8 -2
- package/design-patterns/attention/equivariant-attention.md +7 -1
- package/design-patterns/attention/geometry-aware-attention.en.md +2 -2
- package/design-patterns/attention/geometry-aware-attention.md +1 -1
- package/design-patterns/attention/information-bottleneck-attention.en.md +32 -12
- package/design-patterns/attention/information-bottleneck-attention.md +32 -12
- package/design-patterns/attention/projection-attention.en.md +3 -3
- package/design-patterns/attention/projection-attention.md +2 -2
- package/design-patterns/attention/spectral-attention.en.md +19 -5
- package/design-patterns/attention/spectral-attention.md +18 -4
- package/design-patterns/compression/leverage-score-selection.en.md +13 -13
- package/design-patterns/compression/leverage-score-selection.md +13 -13
- package/design-patterns/compression/low-rank-kv-cache.en.md +39 -12
- package/design-patterns/compression/low-rank-kv-cache.md +38 -12
- package/design-patterns/compression/spectral-token-pruning.en.md +16 -14
- package/design-patterns/compression/spectral-token-pruning.md +16 -14
- package/design-patterns/compression/topology-preserving-compression.en.md +10 -10
- package/design-patterns/compression/topology-preserving-compression.md +10 -10
- package/design-patterns/loss/constraint-penalty.en.md +8 -4
- package/design-patterns/loss/constraint-penalty.md +9 -6
- package/design-patterns/loss/contrastive-loss.en.md +37 -11
- package/design-patterns/loss/contrastive-loss.md +38 -12
- package/design-patterns/loss/information-bottleneck-loss.en.md +5 -5
- package/design-patterns/loss/information-bottleneck-loss.md +6 -6
- package/design-patterns/loss/orthogonality-loss.en.md +24 -17
- package/design-patterns/loss/orthogonality-loss.md +24 -18
- package/design-patterns/loss/variational-loss.en.md +4 -4
- package/design-patterns/loss/variational-loss.md +5 -5
- package/design-patterns/overview.en.md +36 -0
- package/design-patterns/overview.md +36 -0
- package/design-patterns/representation/equivariant-split.en.md +4 -4
- package/design-patterns/representation/equivariant-split.md +4 -5
- package/design-patterns/representation/manifold-representation.en.md +12 -12
- package/design-patterns/representation/manifold-representation.md +13 -14
- package/design-patterns/representation/shared-private-decomposition.en.md +12 -7
- package/design-patterns/representation/shared-private-decomposition.md +12 -9
- package/design-patterns/representation/subspace-alignment.en.md +12 -12
- package/design-patterns/representation/subspace-alignment.md +12 -12
- package/design-patterns/routing/graph-routing.en.md +11 -11
- package/design-patterns/routing/graph-routing.md +11 -11
- package/design-patterns/routing/moe-routing.en.md +12 -12
- package/design-patterns/routing/moe-routing.md +12 -14
- package/design-patterns/routing/optimal-transport-routing.en.md +5 -5
- package/design-patterns/routing/optimal-transport-routing.md +6 -6
- package/design-patterns/routing/spectral-clustering-routing.en.md +26 -15
- package/design-patterns/routing/spectral-clustering-routing.md +26 -17
- 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 +16 -2
- 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 +24 -5
- package/knowledge-base/information-geometry/fisher-metric.md +24 -5
- 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 +17 -3
- package/knowledge-base/information-geometry/natural-gradient.md +17 -3
- 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 +16 -2
- package/knowledge-base/probability/concentration-inequality.md +16 -2
- package/knowledge-base/probability/entropy.en.md +19 -3
- package/knowledge-base/probability/entropy.md +18 -2
- package/knowledge-base/probability/fisher-information.en.md +17 -3
- package/knowledge-base/probability/fisher-information.md +17 -3
- 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 +18 -2
- package/knowledge-base/probability/information-bottleneck.md +18 -2
- package/knowledge-base/probability/kl-divergence.en.md +15 -2
- package/knowledge-base/probability/kl-divergence.md +15 -2
- 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/spectral.en.md +1 -1
- package/lenses/spectral.md +1 -1
- package/lenses/topological.en.md +1 -1
- package/lenses/topological.md +1 -1
- package/package.json +6 -6
- package/references/agentic-workflow.en.md +2 -2
- package/references/books/abstract-algebra.en.md +12 -12
- package/references/books/abstract-algebra.md +9 -9
- package/references/books/algebraic-geometry-rising-sea.en.md +2 -2
- package/references/books/differential-geometry.en.md +16 -16
- package/references/books/differential-geometry.md +14 -14
- package/references/books/matrix-analysis.en.md +3 -3
- package/references/books/matrix-analysis.md +24 -24
- package/references/books/micro-lie-theory.en.md +1 -1
- package/references/books/optimization-ml.en.md +15 -15
- package/references/books/optimization-ml.md +14 -14
- package/references/books/smooth-manifolds.en.md +3 -3
- package/references/books/smooth-manifolds.md +6 -6
- package/references/gpu-friendly-math.en.md +21 -8
- package/references/gpu-friendly-math.md +19 -4
- package/references/skill-index.en.md +106 -0
- package/references/skill-index.md +106 -0
- package/skills/math-research-activator/SKILL.en.md +76 -118
- package/skills/math-research-activator/SKILL.md +69 -109
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: math-research-activator
|
|
3
3
|
description: |
|
|
4
|
-
Mathematical research OS — auto-diagnoses user intent, routes to thinking lenses,
|
|
4
|
+
Mathematical research OS — auto-diagnoses user intent, routes to thinking lenses, activation anchors, or design translation layer. Triggers on architecture/operator design, theoretical analysis, math-to-AI transfer. Does NOT trigger for pure engineering tasks (debug, refactoring, hyperparameter tuning).
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
> **
|
|
9
|
-
>
|
|
10
|
-
> ## Language Routing & Mixed-Input Rules
|
|
11
|
-
>
|
|
12
|
-
> Language routing only determines "which language version to read" and "what language to respond in." It does NOT affect whether the math system triggers or the A/B/C/D/E scenario classification.
|
|
13
|
-
>
|
|
14
|
-
> ### Decision Rules
|
|
15
|
-
>
|
|
16
|
-
> 1. **Judge the natural-language frame first**
|
|
17
|
-
> - If the user's sentence structure, verbs, and mood particles are primarily Chinese, treat as Chinese even if English technical terms are interspersed.
|
|
18
|
-
> - E.g., "帮我 design 一个 attention" / "这个 loss 有没有理论问题" → Chinese.
|
|
19
|
-
>
|
|
20
|
-
> 2. **English technical terms do not count as English primary language**
|
|
21
|
-
> - attention, loss, routing, embedding, manifold, operator, kernel, KV-cache, transformer, MoE, etc. are domain terms and do not trigger a switch to English.
|
|
22
|
-
>
|
|
23
|
-
> 3. **Code, paths, and formulas are excluded from language detection**
|
|
24
|
-
> - File paths, function names, variable names, LaTeX formulas, and CLI arguments do not count toward language ratio.
|
|
25
|
-
>
|
|
26
|
-
> 4. **When primary language is unclear, follow the user's last clear language**
|
|
27
|
-
> - If the CN/EN ratio is close and indeterminate, use the user's most recent unambiguous natural language.
|
|
28
|
-
> - If there is no prior context, default to Chinese.
|
|
29
|
-
>
|
|
30
|
-
> 5. **Output language matches primary language**
|
|
31
|
-
> - Chinese primary → read `SKILL.md`, respond in Chinese, retaining necessary English terms.
|
|
32
|
-
> - English primary → read `SKILL.en.md`, respond in English.
|
|
33
|
-
> - If the user explicitly requests "in English" / "in Chinese," follow the explicit request.
|
|
8
|
+
> **Language Routing & Mixed-Input Rules**: Judge primary language by sentence structure/verbs/mood particles. AI/math/engineering terms don't count. Code/paths/formulas excluded. When CN/EN ratio is close, follow last turn; default to Chinese if no context. Explicit request overrides. Chinese → `SKILL.md`, English → this file. Full rules: `../../references/skill-index.en.md`.
|
|
34
9
|
|
|
35
10
|
# Math Research OS
|
|
36
11
|
|
|
@@ -38,76 +13,48 @@ description: |
|
|
|
38
13
|
|
|
39
14
|
This system is a mathematical staff office for AI architecture innovation — not an arsenal, but one that tells you: **what kind of battle this is, which arms to deploy, how to deploy them, and where things could go wrong.**
|
|
40
15
|
|
|
16
|
+
## Core Principle
|
|
17
|
+
|
|
18
|
+
> Math Skill does not store mathematics. It activates, routes, and translates mathematics for AI research.
|
|
19
|
+
|
|
20
|
+
- **knowledge-base/** is not a closed encyclopedia but a set of mathematical activation anchors
|
|
21
|
+
- When existing cards cannot cover a problem, the agent must NOT stop or force-fit; instead, generate a "temporary knowledge card" based on lenses, reference layers, and the agent's own mathematical knowledge, then continue with design translation
|
|
22
|
+
- **design-patterns/** is a collection of math→AI translation prototypes, not a complete model repository; when no matching pattern exists, generate a temporary design candidate from the mathematical structure and label it as a temporary design pattern
|
|
23
|
+
|
|
41
24
|
## Three-Layer Orthogonal Architecture
|
|
42
25
|
|
|
43
26
|
| Layer | Responsibility | Directory | Core Question |
|
|
44
27
|
|-------|---------------|-----------|--------------|
|
|
45
|
-
| **Thinking Lenses** | Diagnose problem structure, recommend mathematical perspectives | `../../lenses/*.md` | Which perspective should we view this problem through? |
|
|
46
|
-
| **
|
|
47
|
-
| **Design Translation** | Translate mathematics into AI modules/losses/operators | `../../design-patterns/*/*.md` | How does this mathematics become model architecture? |
|
|
28
|
+
| **Thinking Lenses** | Diagnose problem structure, recommend mathematical perspectives | `../../lenses/*.en.md` | Which perspective should we view this problem through? |
|
|
29
|
+
| **Activation Anchors** | Activate high-frequency math structures; trigger Knowledge Gap Protocol when insufficient | `../../knowledge-base/*/*.en.md` | What math structures does this perspective require? |
|
|
30
|
+
| **Design Translation** | Translate mathematics into AI modules/losses/operators | `../../design-patterns/*/*.en.md` | How does this mathematics become model architecture? |
|
|
48
31
|
|
|
49
32
|
Auxiliary layers:
|
|
50
|
-
- `../../references/books/*.md`: Distilled notes from 7 textbooks; full context when deeper understanding is needed
|
|
51
|
-
- `../../references/gpu-friendly-math.md`: GPU Eight-Dimension Acceptance Gate (single source of truth)
|
|
52
|
-
- `../../agents/math-critic.md`: Math-engineering dual critic
|
|
33
|
+
- `../../references/books/*.en.md`: Distilled notes from 7 textbooks; full context when deeper understanding is needed
|
|
34
|
+
- `../../references/gpu-friendly-math.en.md`: GPU Eight-Dimension Acceptance Gate (single source of truth)
|
|
35
|
+
- `../../agents/math-critic.en.md`: Math-engineering dual critic
|
|
53
36
|
|
|
54
37
|
## Intent Diagnosis (5 Scenarios)
|
|
55
38
|
|
|
56
39
|
| Scenario | Diagnostic Signal | Invocation Path |
|
|
57
40
|
|----------|------------------|-----------------|
|
|
58
41
|
| **A. Problem Analysis** | "Is this design sound?" "Are there gaps in the reasoning chain?" | Lenses → critic |
|
|
59
|
-
| **B. Mechanism Design** | "Design a new attention mechanism" "Transfer X to Y" | Lenses →
|
|
60
|
-
| **C. Knowledge Query** | "What is a tangent space on a manifold?" "How is the projection theorem applied?" |
|
|
61
|
-
| **D. Verification & Review** | "Does this formula hold?" "What guarantees does this loss provide?" |
|
|
42
|
+
| **B. Mechanism Design** | "Design a new attention mechanism" "Transfer X to Y" | Lenses → Anchors → Design → critic |
|
|
43
|
+
| **C. Knowledge Query** | "What is a tangent space on a manifold?" "How is the projection theorem applied?" | Anchors |
|
|
44
|
+
| **D. Verification & Review** | "Does this formula hold?" "What guarantees does this loss provide?" | Anchors → relevant design patterns (if a concrete AI construct is cited) → critic |
|
|
62
45
|
| **E. Pure Engineering** | Debugging, refactoring, hyperparameter tuning, code review | **Do not invoke the math system** |
|
|
63
46
|
|
|
64
47
|
## Lens Library (15 Mathematical Perspectives)
|
|
65
48
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
| Lens | File | Core Perspective |
|
|
69
|
-
|------|------|-----------------|
|
|
70
|
-
| Axiomatization | `../../lenses/axiomatization.md` | Examine consistency/independence/completeness of assumptions |
|
|
71
|
-
| Duality | `../../lenses/duality.md` | Transform to the dual space to expose constraints and invariants |
|
|
72
|
-
| Symmetry | `../../lenses/symmetry.md` | Invariants and conservation laws under transformations |
|
|
73
|
-
| Spectral Decomposition | `../../lenses/spectral.md` | Eigenvalues/singular values reveal dominant structure |
|
|
74
|
-
| Geometric | `../../lenses/geometric.md` | Metric/curvature/spatial structure on manifolds |
|
|
75
|
-
| Projection & Decomposition | `../../lenses/projection.md` | Orthogonal decomposition, subspace separation, conflict elimination |
|
|
76
|
-
| Variational | `../../lenses/variational.md` | Constrained extrema, energy minimization |
|
|
77
|
-
| Local-to-Global | `../../lenses/local-to-global.md` | Patching local properties into global ones, cohomological obstructions |
|
|
78
|
-
| Topological | `../../lenses/topological.md` | Invariants under continuous deformation, connectedness, holes |
|
|
79
|
-
| Categorical | `../../lenses/categorical.md` | Universal properties, functors, natural transformations |
|
|
80
|
-
| Perturbation | `../../lenses/perturbation.md` | Propagation of small perturbations, stability, robustness |
|
|
81
|
-
| Causal | `../../lenses/causal.md` | Correlation ≠ causation, interventions, counterfactuals |
|
|
82
|
-
| Game-Theoretic | `../../lenses/game.md` | Multi-agent strategic interaction, equilibria, mechanism design |
|
|
83
|
-
| Probabilistic & Statistical | `../../lenses/probabilistic.md` | Quantifying uncertainty, Bayesian updating |
|
|
84
|
-
| Algorithmic | `../../lenses/algorithmic.md` | Complexity, feasibility, parallelizability |
|
|
85
|
-
|
|
86
|
-
## Knowledge Base (Organized by Mathematical Domain)
|
|
87
|
-
|
|
88
|
-
Each knowledge card answers: Minimal definition, core formulas, applicable problems, AI design translation, engineering feasibility, risks.
|
|
89
|
-
|
|
90
|
-
| Domain | Directory | Knowledge Cards |
|
|
91
|
-
|--------|-----------|----------------|
|
|
92
|
-
| Matrix Analysis | `../../knowledge-base/matrix-analysis/` | projection, spectral-decomposition, low-rank-approximation, positive-semidefinite, matrix-perturbation |
|
|
93
|
-
| Optimization | `../../knowledge-base/optimization/` | lagrangian-duality, convex-optimization, constrained-optimization, riemannian-optimization, proximal-method |
|
|
94
|
-
| Differential Geometry | `../../knowledge-base/differential-geometry/` | manifold, tangent-space, metric-tensor, geodesic, curvature, connection |
|
|
95
|
-
| Lie Theory | `../../knowledge-base/lie-theory/` | group-action, lie-group, lie-algebra, representation, equivariance |
|
|
96
|
-
| Topology | `../../knowledge-base/topology/` | persistent-homology, euler-characteristic, fundamental-group |
|
|
97
|
-
| Probability & Information | `../../knowledge-base/probability/` | concentration-inequality, entropy, kl-divergence, information-bottleneck, fisher-information |
|
|
98
|
-
| Information Geometry | `../../knowledge-base/information-geometry/` | natural-gradient, fisher-metric |
|
|
49
|
+
15 lenses covering: Axiomatization, Duality, Symmetry, Spectral Decomposition, Geometric, Projection & Decomposition, Variational, Local-to-Global, Topological, Categorical, Perturbation, Causal, Game-Theoretic, Probabilistic & Statistical, Algorithmic. Directory: `../../lenses/*.en.md`. Full catalog table: `../../references/skill-index.en.md`.
|
|
99
50
|
|
|
100
|
-
##
|
|
51
|
+
## Activation Anchors (Organized by Mathematical Domain)
|
|
52
|
+
|
|
53
|
+
7 domains: Matrix Analysis, Optimization, Differential Geometry, Lie Theory, Topology, Probability & Information, Information Geometry. Directory: `../../knowledge-base/*/*.en.md`. Full catalog table: `../../references/skill-index.en.md`.
|
|
101
54
|
|
|
102
|
-
|
|
55
|
+
## Design Pattern Library (Organized by AI Component)
|
|
103
56
|
|
|
104
|
-
|
|
105
|
-
|---------------|-----------|----------|
|
|
106
|
-
| Attention | `../../design-patterns/attention/` | projection-attention, spectral-attention, equivariant-attention, geometry-aware-attention, information-bottleneck-attention |
|
|
107
|
-
| Loss Functions | `../../design-patterns/loss/` | orthogonality-loss, contrastive-loss, variational-loss, information-bottleneck-loss, constraint-penalty |
|
|
108
|
-
| Routing | `../../design-patterns/routing/` | optimal-transport-routing, graph-routing, moe-routing, spectral-clustering-routing |
|
|
109
|
-
| Representation | `../../design-patterns/representation/` | shared-private-decomposition, manifold-representation, equivariant-split, subspace-alignment |
|
|
110
|
-
| Compression | `../../design-patterns/compression/` | low-rank-kv-cache, spectral-token-pruning, topology-preserving-compression, leverage-score-selection |
|
|
57
|
+
5 component types: Attention, Loss Functions, Routing, Representation, Compression. Directory: `../../design-patterns/*/*.en.md`. Full catalog table: `../../references/skill-index.en.md`.
|
|
111
58
|
|
|
112
59
|
## Automatic Trigger Conditions
|
|
113
60
|
|
|
@@ -138,76 +85,87 @@ The user's intent matches one of scenarios A/B/C/D. Pure engineering tasks match
|
|
|
138
85
|
|
|
139
86
|
```
|
|
140
87
|
Scenario A (Analysis): Select 1–3 lenses → output perspective diagnosis → critic review
|
|
141
|
-
Scenario B (Design): Select 1–3 lenses →
|
|
142
|
-
Scenario C (Query):
|
|
143
|
-
Scenario D (Verification): Load knowledge cards → critic reviews conditions and boundaries
|
|
88
|
+
Scenario B (Design): Select 1–3 lenses → invoke relevant activation anchors; if no coverage, enter Knowledge Gap Protocol → generate formal/temporary design patterns → critic review
|
|
89
|
+
Scenario C (Query): Prefer loading relevant activation anchors; if no coverage, generate temporary knowledge card → output per knowledge activation protocol
|
|
90
|
+
Scenario D (Verification): Load relevant anchors or temporary knowledge cards → critic reviews conditions and boundaries
|
|
144
91
|
Scenario E (Engineering): No intervention
|
|
145
92
|
```
|
|
146
93
|
|
|
147
94
|
### Step 3: Output Format
|
|
148
95
|
|
|
96
|
+
**Token-economy rule**: The following is the maximum structure, not the default full template. Trim to the user's question; for simple knowledge queries, provide only the needed definition / formula / risk. Expand design and GPU sections only when relevant, and do not restate loaded cards verbatim.
|
|
97
|
+
|
|
149
98
|
**Scenario A/B Output**:
|
|
150
99
|
1. **[Diagnosis]** Problem type + core tension
|
|
151
100
|
2. **[Lens]** Recommend 1–3 mathematical perspectives (annotate why each is/is not suitable)
|
|
152
|
-
3. **[Knowledge]** (Scenario B only)
|
|
153
|
-
4. **[Design]** (Scenario B only) Candidate AI module drafts (reference design patterns)
|
|
101
|
+
3. **[Knowledge]** (Scenario B only) Activated mathematical structures (reference activation anchors or temporary knowledge cards)
|
|
102
|
+
4. **[Design]** (Scenario B only) Candidate AI module drafts (reference design patterns or temporary design drafts)
|
|
154
103
|
5. **[GPU]** Run candidates through the Eight-Dimension Gate (friendly/retrofittable/unfriendly)
|
|
155
104
|
6. **[Conclusion]** Retain candidates that pass both acceptance gates + next-step recommendations
|
|
156
105
|
|
|
157
|
-
**Scenario C Output** (Knowledge Activation Protocol):
|
|
106
|
+
**Scenario C Output** (Knowledge Activation Protocol, trimmed as needed):
|
|
158
107
|
1. Minimal definition
|
|
159
108
|
2. Core formulas
|
|
160
109
|
3. Applicable problems
|
|
161
|
-
4. AI design translation
|
|
162
|
-
5. Engineering feasibility
|
|
110
|
+
4. AI design translation (only when the question involves AI / operators)
|
|
111
|
+
5. Engineering feasibility (only when implementation / GPU matters)
|
|
163
112
|
6. Risks and failure conditions
|
|
164
|
-
7. Further references (
|
|
113
|
+
7. Further references (only when traceability is requested or the conclusion depends on book references)
|
|
165
114
|
|
|
166
|
-
**Scenario D Output
|
|
115
|
+
**Scenario D Output** (short conclusion first + conditions/boundaries):
|
|
167
116
|
1. Conditions under which it holds
|
|
168
117
|
2. Conditions under which it fails
|
|
169
118
|
3. What it can guarantee at most
|
|
170
119
|
4. What it cannot guarantee
|
|
171
|
-
5. Engineering feasibility
|
|
120
|
+
5. Engineering feasibility (only when implementation / GPU matters)
|
|
172
121
|
|
|
173
122
|
**A conclusion must always be provided — never output analysis alone without convergence.**
|
|
174
123
|
|
|
175
124
|
## GPU Eight-Dimension Acceptance Gate
|
|
176
125
|
|
|
177
|
-
Formal terminology (single authoritative source: `../../references/gpu-friendly-math.md`):
|
|
126
|
+
Formal terminology (single authoritative source: `../../references/gpu-friendly-math.en.md`):
|
|
178
127
|
**Tensorization / GEMM-mappability / Complexity / Memory & KV-Cache / Low-Precision Stability / Parallelism & Communication / Sparse Structure / Operator Fusion**
|
|
179
128
|
|
|
129
|
+
**Quantitative assessment requirements**: For each candidate design, the GPU assessment should not only provide [v]/[~]/[x] labels but also answer:
|
|
130
|
+
1. FLOPs of core operations and ratio vs. baseline
|
|
131
|
+
2. Peak memory (bytes), whether large matrices are materialized
|
|
132
|
+
3. Numerical stability strategy under bf16/fp8
|
|
133
|
+
4. Number of fusible kernels and expected speedup
|
|
134
|
+
|
|
135
|
+
See the quantitative checklist in `../../references/gpu-friendly-math.en.md`.
|
|
136
|
+
|
|
180
137
|
## Depth-of-Consultation Protocol
|
|
181
138
|
|
|
182
|
-
- **Light**: Read knowledge cards (`../../knowledge-base/*/*.md`); self-contained and immediately usable
|
|
183
|
-
- **Medium**: Read distilled book notes (`../../references/books/*.md`) for more complete context
|
|
139
|
+
- **Light**: Read knowledge cards (`../../knowledge-base/*/*.en.md`); self-contained and immediately usable
|
|
140
|
+
- **Medium**: Read distilled book notes (`../../references/books/*.en.md`) for more complete context
|
|
184
141
|
- **Deep**: When `math_book/<PDF>` is available locally, the agent automatically runs `pdftotext` + grep to locate the original page
|
|
185
142
|
|
|
186
|
-
##
|
|
143
|
+
## Knowledge Gap Protocol
|
|
187
144
|
|
|
188
|
-
|
|
145
|
+
When the mathematical tools required by the user's problem are not in the existing `knowledge-base/`, do NOT force-fit existing cards. Execute the following procedure:
|
|
189
146
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
147
|
+
1. **Gap Identification**: Explicitly state that no fully corresponding knowledge card exists. Classify the gap as: new domain, new theorem family, new structure, new application scenario, or combinatorial extension of existing cards.
|
|
148
|
+
|
|
149
|
+
2. **Lens Fallback**: Select 1–3 most relevant thinking lenses to determine the problem's mathematical structure. E.g., local-to-global, categorical, spectral, projection, causal, perturbation.
|
|
150
|
+
|
|
151
|
+
3. **Candidate Knowledge Localization**: Provide mathematical keywords, theorem families, concept clusters, and reference book directions to look up. Existing card coverage is not required, but explain why these concepts are relevant.
|
|
152
|
+
|
|
153
|
+
4. **Temporary Knowledge Card**: Generate a temporary knowledge summary in the same format as formal cards:
|
|
154
|
+
- Minimal definition
|
|
155
|
+
- Core structure
|
|
156
|
+
- Applicable problems
|
|
157
|
+
- AI design translation
|
|
158
|
+
- GPU feasibility
|
|
159
|
+
- Risks and failure conditions
|
|
160
|
+
- **Source & Confidence** (required):
|
|
161
|
+
- Knowledge source: label as "Agent inference / Lens derivation / Reference book extrapolation / Requires external verification"
|
|
162
|
+
- Confidence: High (theorem-backed) / Medium (reasonable inference, not rigorously proven) / Low (exploratory hypothesis)
|
|
163
|
+
- Unverified claims: list key conclusions requiring subsequent verification
|
|
164
|
+
|
|
165
|
+
5. **Design Translation**: If the user's goal is mechanism design, translate the temporary knowledge into candidate AI modules, losses, routing, attention, representation, or compression schemes.
|
|
166
|
+
|
|
167
|
+
6. **Upgrade Recommendation**: If this gap recurs frequently, recommend adding a formal knowledge card or design pattern.
|
|
168
|
+
|
|
169
|
+
## Workflow Example
|
|
170
|
+
|
|
171
|
+
Full workflow example: `../../references/skill-index.en.md`.
|
|
@@ -1,34 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: math-research-activator
|
|
3
3
|
description: |
|
|
4
|
-
|
|
5
|
-
English: Mathematical research OS — auto-diagnoses user intent, routes to thinking lenses,
|
|
4
|
+
数学研究操作系统:自动诊断用户意图,路由到思想透镜、激活锚点或设计翻译层。触发于设计/改进模型架构/算子/注意力、分析理论性质、迁移数学结构到 AI 设计。不触发于纯工程任务(debug、重构、调参)。
|
|
5
|
+
English: Mathematical research OS — auto-diagnoses user intent, routes to thinking lenses, activation anchors, or design translation layer. Triggers on architecture/operator design, theoretical analysis, math-to-AI transfer. Does NOT trigger for pure engineering tasks.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
> 语言路由只决定"读取哪个语言版本的说明"和"最终用什么语言回答",不参与数学系统是否触发、也不参与 A/B/C/D/E 场景判断。
|
|
11
|
-
>
|
|
12
|
-
> ### 判定规则
|
|
13
|
-
>
|
|
14
|
-
> 1. **先判断自然语言主框架**
|
|
15
|
-
> - 如果用户的请求句式、动词、语气词主要是中文,即使夹杂英文技术词,也按中文处理。
|
|
16
|
-
> - 例如:"帮我 design 一个 attention""这个 loss 有没有理论问题""能不能用 manifold 做 routing"均按中文处理。
|
|
17
|
-
>
|
|
18
|
-
> 2. **英文技术词不计入英文主语言**
|
|
19
|
-
> - attention、loss、routing、embedding、manifold、operator、kernel、KV-cache、transformer、MoE 等 AI/数学/工程术语视为领域术语,不作为切换到英文的依据。
|
|
20
|
-
>
|
|
21
|
-
> 3. **代码、路径、公式不参与语言判定**
|
|
22
|
-
> - 文件路径、函数名、变量名、LaTeX 公式、命令行参数不计入语言比例。
|
|
23
|
-
>
|
|
24
|
-
> 4. **主语言不明显时,沿用用户上一轮主要语言**
|
|
25
|
-
> - 若中英文比例接近且无法判断,以用户最近一次明确使用的自然语言为准。
|
|
26
|
-
> - 若没有上下文,默认中文。
|
|
27
|
-
>
|
|
28
|
-
> 5. **输出语言与主语言一致**
|
|
29
|
-
> - 中文主语言 → 读取中文 `SKILL.md`,用中文回答,保留必要英文术语。
|
|
30
|
-
> - 英文主语言 → 读取 `SKILL.en.md`,用英文回答。
|
|
31
|
-
> - 用户明确要求"用英文/用中文"时,以用户显式要求为准。
|
|
8
|
+
> **语言路由与混合输入规则**:看句式/动词/语气词主框架判定主语言。AI/数学/工程术语不计入。代码/路径/公式不计入。中英接近时沿用上一轮,无上下文默认中文。显式要求优先。中文→本文件,英文→`SKILL.en.md`。完整规则见 `../../references/skill-index.md`。
|
|
32
9
|
|
|
33
10
|
# 数学研究操作系统 / Math Research OS
|
|
34
11
|
|
|
@@ -36,12 +13,20 @@ description: |
|
|
|
36
13
|
|
|
37
14
|
本系统是面向 AI 架构创新的数学参谋部——不是武器库,而是告诉你:**这场仗是什么仗、该用什么兵种、怎么部署、哪里会翻车。**
|
|
38
15
|
|
|
16
|
+
## 核心原则
|
|
17
|
+
|
|
18
|
+
> Math Skill 不存储数学,它激活数学、路由数学,并把数学翻译成 AI 研究设计。
|
|
19
|
+
|
|
20
|
+
- **knowledge-base/** 不是封闭百科,而是数学激活锚点集合(activation anchors)
|
|
21
|
+
- 当现有卡片不能覆盖问题时,Agent 不得停止或强行套用,而应基于透镜、参考层和自身数学知识生成"临时知识卡",继续完成设计翻译
|
|
22
|
+
- **design-patterns/** 是 math→AI 翻译原型集合,不是完整模型仓库;无对应模式时根据数学结构临时生成候选设计,并标记为 temporary design pattern
|
|
23
|
+
|
|
39
24
|
## 三层正交架构
|
|
40
25
|
|
|
41
26
|
| 层 | 职责 | 目录 | 核心问题 |
|
|
42
27
|
|----|------|------|---------|
|
|
43
28
|
| **思想透镜** | 诊断问题结构,推荐数学视角 | `../../lenses/*.md` | 这个问题该用什么视角看? |
|
|
44
|
-
|
|
|
29
|
+
| **激活锚点** | 激活高频数学结构,并在不足时触发 Knowledge Gap Protocol | `../../knowledge-base/*/*.md` | 这个视角需要激活哪些数学结构? |
|
|
45
30
|
| **设计翻译** | 把数学变成 AI 模块/loss/算子 | `../../design-patterns/*/*.md` | 这些数学怎么变成模型结构? |
|
|
46
31
|
|
|
47
32
|
辅助层:
|
|
@@ -54,58 +39,22 @@ description: |
|
|
|
54
39
|
| 场景 | 诊断信号 | 调用路径 |
|
|
55
40
|
|------|---------|---------|
|
|
56
41
|
| **A. 问题分析** | "这个设计合理吗?""逻辑链有没有漏洞?" | 透镜 → critic |
|
|
57
|
-
| **B. 机制设计** | "设计新 attention""把 X 迁移到 Y" | 透镜 →
|
|
58
|
-
| **C. 知识查询** | "流形上的切空间是什么?""投影定理怎么用?" |
|
|
59
|
-
| **D. 验证审查** | "这个公式成立吗?""loss 能保证什么?" |
|
|
42
|
+
| **B. 机制设计** | "设计新 attention""把 X 迁移到 Y" | 透镜 → 激活锚点 → 设计 → critic |
|
|
43
|
+
| **C. 知识查询** | "流形上的切空间是什么?""投影定理怎么用?" | 激活锚点 |
|
|
44
|
+
| **D. 验证审查** | "这个公式成立吗?""loss 能保证什么?" | 激活锚点 → 相关设计模式(若引用具体 AI 构造)→ critic |
|
|
60
45
|
| **E. 纯工程** | debug、重构、调参、代码审查 | **不调用数学系统** |
|
|
61
46
|
|
|
62
47
|
## 透镜库(15 个数学视角)
|
|
63
48
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
| 透镜 | 文件 | 核心视角 |
|
|
67
|
-
|------|------|---------|
|
|
68
|
-
| 公理化 | `../../lenses/axiomatization.md` | 审查假设的相容性/独立性/完备性 |
|
|
69
|
-
| 对偶 | `../../lenses/duality.md` | 转换到对偶空间暴露约束与不变量 |
|
|
70
|
-
| 对称性 | `../../lenses/symmetry.md` | 变换下的不变量与守恒律 |
|
|
71
|
-
| 谱分解 | `../../lenses/spectral.md` | 特征值/奇异值揭示主导结构 |
|
|
72
|
-
| 几何 | `../../lenses/geometric.md` | 度量/曲率/流形上的空间结构 |
|
|
73
|
-
| 投影与分解 | `../../lenses/projection.md` | 正交分解、子空间分离、冲突消除 |
|
|
74
|
-
| 变分 | `../../lenses/variational.md` | 约束下极值、能量最小化 |
|
|
75
|
-
| 局部到整体 | `../../lenses/local-to-global.md` | 局部性质拼接为全局、层上同调障碍 |
|
|
76
|
-
| 拓扑 | `../../lenses/topological.md` | 连续变形不变量、连通性、空洞 |
|
|
77
|
-
| 范畴化 | `../../lenses/categorical.md` | 泛性质、函子、自然变换 |
|
|
78
|
-
| 扰动 | `../../lenses/perturbation.md` | 小扰动的传播、稳定性、鲁棒性 |
|
|
79
|
-
| 因果 | `../../lenses/causal.md` | 相关≠因果、干预、反事实 |
|
|
80
|
-
| 博弈 | `../../lenses/game.md` | 多方策略互动、均衡、机制设计 |
|
|
81
|
-
| 概率统计 | `../../lenses/probabilistic.md` | 量化不确定性、贝叶斯更新 |
|
|
82
|
-
| 算法 | `../../lenses/algorithmic.md` | 复杂度、可行性、并行性 |
|
|
83
|
-
|
|
84
|
-
## 知识库(按数学领域组织)
|
|
85
|
-
|
|
86
|
-
每个知识卡片回答:最小定义、核心公式、适用问题、AI 设计翻译、工程可行性、风险。
|
|
87
|
-
|
|
88
|
-
| 领域 | 目录 | 知识卡片 |
|
|
89
|
-
|------|------|---------|
|
|
90
|
-
| 矩阵分析 | `../../knowledge-base/matrix-analysis/` | projection, spectral-decomposition, low-rank-approximation, positive-semidefinite, matrix-perturbation |
|
|
91
|
-
| 最优化 | `../../knowledge-base/optimization/` | lagrangian-duality, convex-optimization, constrained-optimization, riemannian-optimization, proximal-method |
|
|
92
|
-
| 微分几何 | `../../knowledge-base/differential-geometry/` | manifold, tangent-space, metric-tensor, geodesic, curvature, connection |
|
|
93
|
-
| 李理论 | `../../knowledge-base/lie-theory/` | group-action, lie-group, lie-algebra, representation, equivariance |
|
|
94
|
-
| 拓扑 | `../../knowledge-base/topology/` | persistent-homology, euler-characteristic, fundamental-group |
|
|
95
|
-
| 概率与信息 | `../../knowledge-base/probability/` | concentration-inequality, entropy, kl-divergence, information-bottleneck, fisher-information |
|
|
96
|
-
| 信息几何 | `../../knowledge-base/information-geometry/` | natural-gradient, fisher-metric |
|
|
49
|
+
15 个透镜覆盖:公理化、对偶、对称性、谱分解、几何、投影与分解、变分、局部到整体、拓扑、范畴化、扰动、因果、博弈、概率统计、算法。目录:`../../lenses/*.md`。完整目录表见 `../../references/skill-index.md`。
|
|
97
50
|
|
|
98
|
-
##
|
|
51
|
+
## 激活锚点(按数学领域组织)
|
|
52
|
+
|
|
53
|
+
7 个领域:矩阵分析、最优化、微分几何、李理论、拓扑、概率与信息、信息几何。目录:`../../knowledge-base/*/*.md`。完整目录表见 `../../references/skill-index.md`。
|
|
99
54
|
|
|
100
|
-
|
|
55
|
+
## 设计模式库(按 AI 组件组织)
|
|
101
56
|
|
|
102
|
-
|
|
103
|
-
|---------|------|------|
|
|
104
|
-
| 注意力 | `../../design-patterns/attention/` | projection-attention, spectral-attention, equivariant-attention, geometry-aware-attention, information-bottleneck-attention |
|
|
105
|
-
| 损失函数 | `../../design-patterns/loss/` | orthogonality-loss, contrastive-loss, variational-loss, information-bottleneck-loss, constraint-penalty |
|
|
106
|
-
| 路由 | `../../design-patterns/routing/` | optimal-transport-routing, graph-routing, moe-routing, spectral-clustering-routing |
|
|
107
|
-
| 表示 | `../../design-patterns/representation/` | shared-private-decomposition, manifold-representation, equivariant-split, subspace-alignment |
|
|
108
|
-
| 压缩 | `../../design-patterns/compression/` | low-rank-kv-cache, spectral-token-pruning, topology-preserving-compression, leverage-score-selection |
|
|
57
|
+
5 个组件类型:注意力、损失函数、路由、表示、压缩。目录:`../../design-patterns/*/*.md`。完整目录表见 `../../references/skill-index.md`。
|
|
109
58
|
|
|
110
59
|
## 自动触发条件
|
|
111
60
|
|
|
@@ -136,37 +85,39 @@ description: |
|
|
|
136
85
|
|
|
137
86
|
```
|
|
138
87
|
场景 A(分析):选 1-3 个透镜 → 输出视角诊断 → critic 审查
|
|
139
|
-
场景 B(设计):选 1-3 个透镜 →
|
|
140
|
-
场景 C
|
|
141
|
-
场景 D
|
|
88
|
+
场景 B(设计):选 1-3 个透镜 → 调用相关激活锚点;若无覆盖则进入 Knowledge Gap Protocol → 生成正式/临时设计模式 → critic 审查
|
|
89
|
+
场景 C(查询):优先加载相关激活锚点;若无覆盖则生成临时知识卡 → 按知识激活协议输出
|
|
90
|
+
场景 D(验证):加载相关锚点或临时知识卡 → critic 审查条件与边界
|
|
142
91
|
场景 E(工程):不介入
|
|
143
92
|
```
|
|
144
93
|
|
|
145
94
|
### 第三步:输出格式
|
|
146
95
|
|
|
96
|
+
**Token 经济原则**:以下是最长结构,不是默认全文模板。按用户问题裁剪;简单知识查询只给必要定义/公式/风险,设计与 GPU 内容只在与问题有关时展开;避免复述已加载卡片全文。
|
|
97
|
+
|
|
147
98
|
**场景 A/B 输出**:
|
|
148
99
|
1. **[诊断]** 问题类型 + 核心张力
|
|
149
100
|
2. **[透镜]** 推荐 1-3 个数学视角(标注为什么适合/不适合)
|
|
150
|
-
3. **[知识]**(仅场景 B
|
|
151
|
-
4. **[设计]**(仅场景 B)候选 AI
|
|
101
|
+
3. **[知识]**(仅场景 B)激活的数学结构(引用激活锚点或临时知识卡)
|
|
102
|
+
4. **[设计]**(仅场景 B)候选 AI 模块草案(引用设计模式或临时设计草案)
|
|
152
103
|
5. **[GPU]** 候选过八维门(友好/可改造/不友好)
|
|
153
104
|
6. **[结论]** 保留通过双验收门的候选 + 下一步建议
|
|
154
105
|
|
|
155
|
-
**场景 C
|
|
106
|
+
**场景 C 输出**(知识激活协议,按需裁剪):
|
|
156
107
|
1. 最小定义
|
|
157
108
|
2. 核心公式
|
|
158
109
|
3. 适用问题
|
|
159
|
-
4. AI
|
|
160
|
-
5.
|
|
110
|
+
4. AI 设计翻译(仅当问题与 AI/算子相关)
|
|
111
|
+
5. 工程可行性(仅当涉及实现/GPU)
|
|
161
112
|
6. 风险与失效条件
|
|
162
|
-
7.
|
|
113
|
+
7. 深入参考(仅当用户要追溯或结论依赖外部书稿)
|
|
163
114
|
|
|
164
|
-
**场景 D
|
|
115
|
+
**场景 D 输出**(优先短结论 + 条件边界):
|
|
165
116
|
1. 成立条件
|
|
166
117
|
2. 不成立条件
|
|
167
118
|
3. 最多能保证什么
|
|
168
119
|
4. 不能保证什么
|
|
169
|
-
5.
|
|
120
|
+
5. 工程可行性(仅当涉及实现/GPU)
|
|
170
121
|
|
|
171
122
|
**必须给出结论,不得只输出分析而不收敛。**
|
|
172
123
|
|
|
@@ -175,37 +126,46 @@ description: |
|
|
|
175
126
|
正式术语(唯一权威来源:`../../references/gpu-friendly-math.md`):
|
|
176
127
|
**张量化 / GEMM 可映射 / 复杂度 / 显存与 KV-Cache / 低精度稳定 / 并行与通信 / 稀疏结构 / 算子融合**
|
|
177
128
|
|
|
129
|
+
**量化评估要求**:对每个候选设计,GPU 评估不应只给 [v]/[~]/[x] 标签,还需回答:
|
|
130
|
+
1. 核心操作的 FLOPs 和与 baseline 的比值
|
|
131
|
+
2. 峰值显存 (bytes),是否物化大矩阵
|
|
132
|
+
3. bf16/fp8 下的数值稳定性策略
|
|
133
|
+
4. 可融合的 kernel 数和预期加速
|
|
134
|
+
|
|
135
|
+
详见 `../../references/gpu-friendly-math.md` 的量化检查清单。
|
|
136
|
+
|
|
178
137
|
## 深度查阅协议
|
|
179
138
|
|
|
180
139
|
- **轻度**:读知识卡片(`../../knowledge-base/*/*.md`),自足可用
|
|
181
140
|
- **中度**:读书蒸馏稿(`../../references/books/*.md`),获取更完整上下文
|
|
182
141
|
- **深度**:本机有 `math_book/<PDF>` 时,Agent 自动 `pdftotext` + grep 定位原文页
|
|
183
142
|
|
|
184
|
-
##
|
|
143
|
+
## 知识缺口协议 / Knowledge Gap Protocol
|
|
185
144
|
|
|
186
|
-
|
|
145
|
+
当用户问题需要的数学工具不在现有 `knowledge-base/` 中时,不得强行套用已有卡片。执行以下流程:
|
|
187
146
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
147
|
+
1. **缺口识别**:明确指出现有知识库中没有完全对应的知识卡片。判断缺口属于:新领域、新定理族、新结构、新应用场景,还是已有卡片的组合扩展。
|
|
148
|
+
|
|
149
|
+
2. **透镜回退**:选择 1-3 个最相关思想透镜,用它们确定问题的数学结构。例如:局部到整体、范畴化、谱分解、投影、因果、扰动等。
|
|
150
|
+
|
|
151
|
+
3. **候选知识定位**:给出应查找的数学关键词、定理族、概念簇、参考书方向。不要求已有知识卡覆盖,但必须说明为什么这些知识相关。
|
|
152
|
+
|
|
153
|
+
4. **临时知识卡**:生成一个"临时知识摘要",格式同正式知识卡:
|
|
154
|
+
- 最小定义
|
|
155
|
+
- 核心结构
|
|
156
|
+
- 适用问题
|
|
157
|
+
- AI 设计翻译
|
|
158
|
+
- GPU 可行性
|
|
159
|
+
- 风险与失效条件
|
|
160
|
+
- **来源与置信度**(必填):
|
|
161
|
+
- 知识来源:标注为"Agent 推断 / 透镜推导 / 参考书外推 / 需外部验证"
|
|
162
|
+
- 置信度:高(有定理支撑)/ 中(合理推断但未严格证明)/ 低(探索性假说)
|
|
163
|
+
- 未核验声明:列出需要后续验证的关键结论
|
|
164
|
+
|
|
165
|
+
5. **设计翻译**:若用户目标是机制设计,则将临时知识转译为候选 AI 模块、loss、routing、attention、representation 或 compression 方案。
|
|
166
|
+
|
|
167
|
+
6. **升级建议**:如果该缺口高频出现,建议新增正式 knowledge card 或 design pattern。
|
|
168
|
+
|
|
169
|
+
## 工作流范例
|
|
170
|
+
|
|
171
|
+
完整工作流范例见 `../../references/skill-index.md`。
|