math-skill 1.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.en-US.md +313 -0
  2. package/README.md +313 -278
  3. package/agents/math-critic.en.md +235 -0
  4. package/agents/math-critic.md +237 -203
  5. package/commands/abstraction.md +11 -34
  6. package/commands/algorithmic-thinking.md +11 -34
  7. package/commands/ask.md +18 -21
  8. package/commands/axiomatization.md +11 -34
  9. package/commands/causal-inference.md +11 -34
  10. package/commands/discrete-combinatorial.md +11 -34
  11. package/commands/game-theory.md +11 -34
  12. package/commands/induction-analogy.md +11 -34
  13. package/commands/information-theory.md +11 -34
  14. package/commands/logic-deduction.md +11 -34
  15. package/commands/modeling.md +11 -37
  16. package/commands/optimization.md +11 -33
  17. package/commands/probability-statistics.md +11 -36
  18. package/commands/symmetry-invariance.md +11 -34
  19. package/commands/topological-thinking.md +11 -33
  20. package/commands/transformation.md +11 -33
  21. package/knowledge-base/overview.en.md +228 -0
  22. package/knowledge-base/overview.md +230 -230
  23. package/package.json +73 -59
  24. package/references/agentic-workflow.en.md +53 -0
  25. package/references/agentic-workflow.md +55 -0
  26. package/references/books/abstract-algebra.md +124 -0
  27. package/references/books/algebraic-geometry-rising-sea.md +171 -0
  28. package/references/books/differential-geometry.md +140 -0
  29. package/references/books/matrix-analysis.md +146 -0
  30. package/references/books/micro-lie-theory.md +116 -0
  31. package/references/books/optimization-ml.md +164 -0
  32. package/references/books/smooth-manifolds.md +105 -0
  33. package/references/gpu-friendly-math.en.md +65 -0
  34. package/references/gpu-friendly-math.md +67 -0
  35. package/references/inspiration.en.md +113 -0
  36. package/{docs → references}/inspiration.md +2 -0
  37. package/skills/abstraction/SKILL.en.md +117 -0
  38. package/skills/abstraction/SKILL.md +121 -264
  39. package/skills/abstraction/original-texts.en.md +163 -0
  40. package/skills/algorithmic-thinking/SKILL.en.md +132 -0
  41. package/skills/algorithmic-thinking/SKILL.md +138 -371
  42. package/skills/algorithmic-thinking/original-texts.en.md +253 -0
  43. package/skills/axiomatization/SKILL.en.md +144 -0
  44. package/skills/axiomatization/SKILL.md +151 -213
  45. package/skills/axiomatization/original-texts.en.md +154 -0
  46. package/skills/causal-inference/SKILL.en.md +147 -0
  47. package/skills/causal-inference/SKILL.md +151 -374
  48. package/skills/causal-inference/original-texts.en.md +136 -0
  49. package/skills/discrete-combinatorial/SKILL.en.md +124 -0
  50. package/skills/discrete-combinatorial/SKILL.md +131 -286
  51. package/skills/discrete-combinatorial/original-texts.en.md +184 -0
  52. package/skills/game-theory/SKILL.en.md +117 -0
  53. package/skills/game-theory/SKILL.md +123 -318
  54. package/skills/game-theory/original-texts.en.md +131 -0
  55. package/skills/induction-analogy/SKILL.en.md +145 -0
  56. package/skills/induction-analogy/SKILL.md +152 -310
  57. package/skills/induction-analogy/original-texts.en.md +140 -0
  58. package/skills/information-theory/SKILL.en.md +134 -0
  59. package/skills/information-theory/SKILL.md +140 -242
  60. package/skills/information-theory/original-texts.en.md +127 -0
  61. package/skills/logic-deduction/SKILL.en.md +130 -0
  62. package/skills/logic-deduction/SKILL.md +135 -280
  63. package/skills/logic-deduction/original-texts.en.md +160 -0
  64. package/skills/math-research-activator/SKILL.en.md +132 -0
  65. package/skills/math-research-activator/SKILL.md +136 -0
  66. package/skills/math-research-activator/original-texts.en.md +105 -0
  67. package/skills/{meta-selector → math-research-activator}/original-texts.md +104 -104
  68. package/skills/modeling/SKILL.en.md +135 -0
  69. package/skills/modeling/SKILL.md +139 -318
  70. package/skills/modeling/original-texts.en.md +162 -0
  71. package/skills/optimization/SKILL.en.md +129 -0
  72. package/skills/optimization/SKILL.md +135 -292
  73. package/skills/optimization/original-texts.en.md +167 -0
  74. package/skills/probability-statistics/SKILL.en.md +146 -0
  75. package/skills/probability-statistics/SKILL.md +151 -312
  76. package/skills/probability-statistics/original-texts.en.md +191 -0
  77. package/skills/symmetry-invariance/SKILL.en.md +135 -0
  78. package/skills/symmetry-invariance/SKILL.md +139 -358
  79. package/skills/symmetry-invariance/original-texts.en.md +206 -0
  80. package/skills/topological-thinking/SKILL.en.md +124 -0
  81. package/skills/topological-thinking/SKILL.md +128 -273
  82. package/skills/topological-thinking/original-texts.en.md +134 -0
  83. package/skills/transformation/SKILL.en.md +120 -0
  84. package/skills/transformation/SKILL.md +124 -264
  85. package/skills/transformation/original-texts.en.md +204 -0
  86. package/docs/CLAUDE.md +0 -187
  87. package/skills/meta-selector/SKILL.md +0 -188
@@ -1,310 +1,152 @@
1
- ---
2
- name: induction-analogy
3
- description: |
4
- 科研模式触发:数学归纳法证明、科学假说生成、科研中的规律发现。
5
- 生活模式触发:从经验中学习、跨领域借用经验、做出有根据的猜测。
6
- English (Research mode): Trigger for mathematical induction proofs, scientific hypothesis generation, pattern discovery in research.
7
- English (Life mode): Trigger for learning from experience, cross-domain borrowing, making educated guesses.
8
- ---
9
-
10
- # 📈 归纳与类比
11
-
12
- > "从特殊到一般,从已知到未知——归纳发现规律,类比迁移经验,两者都不等于证明"
13
- > "From the specific to the general, from the known to the unknown—induction discovers patterns, analogy transfers experience, but neither equals proof"
14
- >
15
- > —— Pólya《数学与猜想》、Lakatos《证明与反驳》
16
- > —— Pólya "Mathematics and Plausible Reasoning", Lakatos "Proofs and Refutations"
17
-
18
- ## 核心原则 / Core Principle
19
-
20
- **归纳是从有限实例中发现一般规律的过程,它是创造新知识的引擎。类比是将一个领域的理解迁移到另一个领域的桥梁。两者都不是严格证明,但它们是发现定理、提出假说、产生创新的根本方法。严格性是验证的工具,而非发现的工具——Pólya。**
21
-
22
- **Induction is the process of discovering general patterns from limited instances—it is the engine of creating new knowledge. Analogy is the bridge that transfers understanding from one domain to another. Neither is rigorous proof, but both are fundamental methods for discovering theorems, proposing hypotheses, and generating innovation. Rigor is a tool of verification, not of discovery—Pólya.**
23
-
24
- 归纳与类比的区别与联系:
25
- - **归纳**:从 N 个具体案例 → 一般规律(纵向深入) / From N concrete cases → general pattern (vertical deepening)
26
- - **类比**:从领域 A 的结构 → 领域 B 的结构(横向迁移) / From domain A's structure → domain B's structure (horizontal transfer)
27
- - **共同点**:都产生假设而非定理——需要后续验证 / Both produce hypotheses, not theorems—require subsequent verification
28
-
29
- 归纳推理与归纳证明的区分:
30
- - **归纳推理**(inductive reasoning):经验性的,从观察中提出假说 / Empirical, proposing hypotheses from observations
31
- - **归纳证明**(inductive proof):逻辑性的,数学归纳法是严格的演绎证明格式 / Logical, mathematical induction is a rigorous deductive proof format
32
- - **关键**:归纳推理产生猜想,归纳证明验证猜想——两者不可混淆 / Key: inductive reasoning generates conjectures, inductive proof verifies them—these must not be conflated
33
-
34
- > **数学形式化**(科研模式参考 / Research mode reference)
35
- >
36
- > 归纳证明与归纳推理的严格区分:
37
- > - 归纳推理(inductive reasoning):经验性的,从观察中提出假说
38
- > - 归纳证明(inductive proof):逻辑性的,数学归纳法是严格的演绎证明格式
39
- > - 关键:归纳推理产生猜想,归纳证明验证猜想——两者不可混淆
40
- >
41
- > 归纳证明的变体及其适用场景:
42
- > - **弱归纳法(Weak Induction)**:证明 P(1) 成立 + 证明 ∀k(P(k)→P(k+1)) → 得出 ∀n P(n);适用:P(k+1) 仅依赖 P(k)
43
- > - **强归纳法(Strong / Complete Induction)**:假设 P(1), P(2), …, P(k) 全部成立,证明 P(k+1) 成立;适用:P(k+1) 依赖多个前驱
44
- > - **结构归纳法(Structural Induction)**:证明 P(base) 成立 + P(composite) 由 P(components) 推出;适用:递归定义的结构(树、列表、表达式)
45
- > - **超限归纳法(Transfinite Induction)**:对良序集 (W, <),证明 ∀α∈W(∀β<α P(β) P(α)) ∀α∈W P(α);适用:索引超越自然数的良序集
46
- >
47
- > Lakatos 方法论的形式化描述:
48
- > - **怪物排除(monster-barring)**:将反例归为不属于假说本意范围的对象,在假说中显式排除——最简单的修正,但需警惕过度排除导致假说空洞化
49
- > - **引理吸收(lemma-incorporation)**:将反例暴露的隐藏条件纳入假说作为新引理——使假说更精确
50
- > - **证明策略修订(proof-strategy revision)**:反例揭示原证明思路有根本缺陷,需换一种证明框架——最深刻的修正
51
- >
52
- > 类比的结构性相似度度量:
53
- > - 结构相似度 = (成功映射的关系数 + 成功映射的组件数) / (源关系总数 + 源组件总数)
54
- > - 高有效性(同态映射 homomorphism):大部分结构有对应,关键关系保持
55
- > - 中有效性(部分同态 partial homomorphism):部分结构和关系保持,部分失真
56
- > - 低有效性(表面相似 surface similarity):仅外观或术语相似,深层结构不同
57
-
58
- > 详细数学依据见 `original-texts.md`
59
-
60
- ## 不适用场景 / When NOT to Use
61
-
62
- - **需要严格证明** `[科研]` ——归纳推理和类比只能产生假设,不是证明;但数学归纳法本身是证明方法 / Need rigorous proof—inductive reasoning and analogy only produce hypotheses, not proofs; but mathematical induction itself is a proof method
63
- - **样本只有一个或极少** `[通用]` ——归纳推理需要足够的实例支撑 / Only one or very few samples—inductive reasoning requires sufficient instances
64
- - **两个领域差异太大** `[科研/生活]` ——类比需要结构相似性,而非表面相似 / Domains are too different—analogy requires structural similarity, not surface similarity
65
- - **结论必须零误差** `[科研]` ——归纳推理有不确定性,类比有失真风险 / Conclusion must have zero error—inductive reasoning has uncertainty, analogy has distortion risk
66
- - **问题可用演绎直接解决** `[科研/通用]` ——不必绕道归纳 / Problem can be solved directly by deduction—no need to detour through induction
67
- - **从太少例子推广** `[生活]` ——两三个个案不足以支撑"规律" / Generalizing from too few examples—two or three cases cannot support a "pattern"
68
- - **只找正面证据不找反例** `[生活]` ——确认偏差让人只看到支持自己的例子 / Only seeking confirming evidence, not counterexamples—confirmation bias makes you only see cases that support your view
69
- - **表面类比(结构不相似却强行迁移)** `[生活]` ——游泳的经验不能直接迁移到跑步 / Surface analogy (forcing transfer when structures don't match)—swimming experience can't directly transfer to running
70
-
71
- ## 何时使用 / When to Use
72
-
73
- ### 科研触发条件 / Research Trigger Conditions
74
-
75
- - 观察到多个案例有共同模式,想要提出一般性假说 / Observed common patterns across multiple cases, want to propose a general hypothesis
76
- - 在科研中尝试发现新定理或新规律 / Attempting to discover new theorems or laws in research
77
- - 需要对递归定义的结构(树、列表、表达式)进行性质证明——使用结构归纳法 / Need to prove properties of recursively defined structures (trees, lists, expressions)—use structural induction
78
- - 需要证明涉及分解的命题(如整数的素因子分解)——使用强归纳法 / Need to prove propositions involving decomposition (e.g., prime factorization of integers)—use strong induction
79
- - 需要对超越自然数的良序集进行论证——使用超限归纳法 / Need to reason about well-ordered sets beyond natural numbers—use transfinite induction
80
- - 跨学科借鉴——其他领域的方法能否用到我的问题? / Cross-disciplinary borrowing—can methods from other fields apply to my problem?
81
-
82
- ### 生活触发条件 / Life Trigger Conditions
83
-
84
- - 从自己的经历中总结经验教训,想知道"这个教训是不是普遍适用" / Summarizing lessons from your own experience, wondering "is this lesson generally applicable?"
85
- - 面对新问题时,想借鉴过去类似问题的解决经验 / Facing a new problem, wanting to borrow experience from similar past problems
86
- - 需要做判断但没有完整信息,只能基于有限观察做出猜测 / Need to make a judgment without complete information, only able to guess based on limited observations
87
- - 学习新领域时,想用已知领域的理解来加速学习 / Learning a new domain, wanting to use understanding from a known domain to accelerate learning
88
- - 做决策时需要评估"这个方案在其他类似场景中效果如何" / Making decisions, needing to evaluate "how did this approach work in other similar scenarios?"
89
-
90
- ## 方法流程 / Method
91
-
92
- ### 第一步:收集具体案例 / Step 1: Collect Concrete Cases
93
-
94
- **科研模式 / Research Mode**
95
- 系统地收集和观察具体实例:
96
- - 阅读相关文献,提取关键案例 / Read relevant literature, extract key cases
97
- - 收集实验数据中的模式 / Collect patterns in experimental data
98
- - 整理已知的定理或结果 / Organize known theorems or results
99
- - 确保案例覆盖不同类型(边界值、典型值、极端值) / Ensure cases cover different types (boundary, typical, extreme values)
100
-
101
- **生活模式 / Life Mode**
102
- 你观察到了哪些具体例子?——积累足够的经验案例是归纳的基础 / What specific examples have you observed?—accumulating enough experience cases is the foundation of induction
103
- - 回忆自己经历过的类似情况 / Recall similar situations you've experienced
104
- - 询问他人的经验——拓宽案例来源 / Ask others about their experiences—broaden the source of cases
105
- - 注意不同条件下的表现——同一做法在不同环境下可能效果不同 / Note performance under different conditions—the same approach may work differently in different environments
106
-
107
- **共通要点 / Shared Key Point**
108
- 案例的多样性和覆盖度决定归纳的质量——太少或太单一的案例会误导你 / The diversity and coverage of cases determine the quality of induction—too few or too uniform cases will mislead you
109
-
110
- ### 第二步:识别模式 / Step 2: Identify Patterns
111
-
112
- **科研模式 / Research Mode**
113
- 比较案例之间的共同点和差异 / Compare commonalities and differences across cases:
114
- - 什么特征在所有(或大多数)案例中都出现? / What features appear in all (or most) cases?
115
- - 什么特征只出现在部分案例中? / What features appear only in some cases?
116
- - 案例之间的差异有没有规律? / Do the differences across cases follow a pattern?
117
- - 注意:模式可能在若干案例后突然破坏(如 Borwein 积分现象) / Note: patterns may suddenly break after several cases (e.g., Borwein integral phenomenon)
118
-
119
- **生活模式 / Life Mode**
120
- 这些例子之间有什么共同点?——找到看似不同的事物背后的共同模式 / What do these examples have in common?—find the shared pattern behind seemingly different things
121
- - 列出每个例子中重复出现的要素 / List the elements that repeat in each example
122
- - 找出例外——哪些例子不符合你看到的模式 / Identify exceptions—which examples don't fit the pattern you see
123
- - 区分"核心共同点"和"偶然巧合"——真正的模式在更多案例中会持续出现,巧合则不会 / Distinguish "core commonality" from "coincidental coincidence"—true patterns persist across more cases, coincidences do not
124
-
125
- **共通要点 / Shared Key Point**
126
- 模式识别要同时关注共同点和差异——只看共同点会忽视反例 / Pattern identification must attend to both commonalities and differences—focusing only on commonalities will miss counterexamples
127
-
128
- ### 第三步:提出假说 / Step 3: Formulate a Hypothesis
129
-
130
- **科研模式 / Research Mode**
131
- 基于观察到的模式,提出一般性的假说或猜想 / Based on observed patterns, propose a general hypothesis or conjecture:
132
- - **强假说**:模式在所有情况下都成立(∀n P(n)) / Strong hypothesis: the pattern holds in all cases
133
- - **弱假说**:模式在大多数情况下成立,存在例外(P(n) 对足够大的 n 成立) / Weak hypothesis: the pattern holds in most cases, with exceptions
134
- - **条件假说**:模式在特定条件下成立(∀n∈S P(n),S 为特定子集) / Conditional hypothesis: the pattern holds under specific conditions
135
- - 选择原则:优先尝试强假说,再用反例逐级弱化 / Selection principle: prioritize strong hypotheses, then progressively weaken with counterexamples
136
-
137
- **生活模式 / Life Mode**
138
- 基于观察到模式提出猜测——"看起来规律是这样的",但记住这只是猜测,还需要验证 / Based on observed patterns, make a guess—"it seems the pattern works this way", but remember this is only a guess, it still needs verification
139
- - 先大胆猜测:规律可能是什么? / First, make a bold guess: what might the pattern be?
140
- - 标记猜测的强度:你觉得它是"总是这样"、"通常这样"还是"在某些条件下这样"? / Mark the strength of your guess: do you think it's "always like this", "usually like this", or "under certain conditions like this"?
141
- - 更强的猜测更有用但也更可能出错——先试最强的,再根据实际情况调整 / Stronger guesses are more useful but also more likely to be wrong—try the strongest first, then adjust based on reality
142
-
143
- **共通要点 / Shared Key Point**
144
- 假说/猜测是从模式到可检验陈述的跃迁——它必须足够明确以至于可以被推翻 / A hypothesis/guess is the leap from pattern to a testable statement—it must be specific enough to be falsifiable
145
-
146
- ### 第四步:搜索反例 / Step 4: Search for Counterexamples
147
-
148
- **科研模式 / Research Mode**
149
- 主动寻找推翻假说的反例。这是区分科学与伪科学的关键步骤 / Actively seek counterexamples that refute the hypothesis. This is the key step distinguishing science from pseudoscience:
150
- - 如果能找到反例:修改假说(弱化或加条件) / If counterexamples found: modify the hypothesis (weaken or add conditions)
151
- - 如果找不到反例:假说暂时成立 / If no counterexamples found: hypothesis tentatively holds
152
- - 特别关注边界条件、极端值、参数变化时模式是否突然失效 / Pay special attention to boundary conditions, extreme values, and whether patterns suddenly fail when parameters change
153
-
154
- **生活模式 / Life Mode**
155
- 有没有反例推翻你的猜测?——一个反例就够了。主动寻找反例比不断确认正面例子更重要 / Are there counterexamples that overturn your guess?—one counterexample is enough. Actively seeking counterexamples is more important than endlessly confirming positive examples
156
- - 刻意寻找"不符合猜测"的情况——这比找更多正面例子更有价值 / Deliberately look for cases that "don't fit the guess"—this is more valuable than finding more positive examples
157
- - 检查极端情况——压力下、资源不足时、条件变化时,规律还成立吗? / Check extreme situations—under pressure, with insufficient resources, or when conditions change, does the pattern still hold?
158
- - 问问反对者——不同视角的人更容易发现你看不到的反例 / Ask dissenters—people with different perspectives are more likely to find counterexamples you can't see
159
-
160
- **共通要点 / Shared Key Point**
161
- 反例检验是归纳的保险——没有经过反例检验的猜测不可信赖 / Counterexample testing is induction's insurance—an untested guess is unreliable
162
-
163
- ### 第五步:尝试证明 / Step 5: Attempt a Proof / Attempt Verification
164
-
165
- **科研模式 / Research Mode**
166
- 对于数学假说,尝试严格证明。归纳证明有多种变体,选择正确的变体是关键 / For mathematical hypotheses, attempt rigorous proof. Inductive proof has multiple variants; choosing the correct variant is key:
167
-
168
- **弱归纳法(Weak Induction)**:
169
- - 格式:证明 P(1) 成立 + 证明 ∀k(P(k)→P(k+1)) → 得出 ∀n P(n)
170
- - 适用:P(k+1) 仅依赖 P(k) 一个前驱(如求和公式、简单递推关系)
171
- - 示例:1+2+…+n = n(n+1)/2
172
-
173
- **强归纳法(Strong / Complete Induction)**:
174
- - 格式:假设 P(1), P(2), …, P(k) 全部成立,证明 P(k+1) 成立
175
- - 适用:P(k+1) 依赖多个前驱(涉及分解、拆分的命题)
176
- - 示例:每个大于 1 的整数都是素数的乘积;斐波那契数列的性质
177
- - 关键区分:当证明 P(k+1) 需引用 P(j)(j < k),必须用强归纳而非弱归纳
178
-
179
- **结构归纳法(Structural Induction)**:
180
- - 格式:证明 P(base) 成立 + P(composite) 由 P(components) 推出
181
- - 适用:递归定义的结构——树、列表、表达式、公式、程序语义
182
- - 示例:二叉树叶节点数 = 内部节点数 + 1;BNF 语法定义的公式性质
183
- - 与弱归纳的关系:结构归纳法是数学归纳法在递归结构上的自然推广
184
-
185
- **超限归纳法(Transfinite Induction)**:
186
- - 格式:对良序集 (W, <),证明 ∀α∈W(∀β<α P(β) → P(α)) → ∀α∈W P(α)
187
- - 适用:索引超越自然数的良序集——序数、偏序集、拓扑中的传递闭包论证
188
- - 示例:Zorn 引理的应用、集合论中的递归构造
189
-
190
- **良序原理等价性**:
191
- - 良序原理:每个非空子集有最小元 ↔ 自然数上的归纳法 ↔ 强归纳法 ↔ 超限归纳法(在良序集上)
192
- - 实践意义:选择哪种形式取决于问题结构——用最自然的形式
193
-
194
- **生活模式 / Life Mode**
195
- 尝试验证猜测——不是所有猜测都能被严格证明,但至少要检查它在更多情况下是否成立 / Try to verify your guess—not all guesses can be rigorously proven, but at least check whether it holds in more situations
196
- - 在更多场景中检验:把猜测用到还没检查过的情况中,看是否依然成立 / Test in more scenarios: apply the guess to untested situations and see if it still holds
197
- - 寻找因果机制:如果猜测成立,背后的原因是什么?有原因支撑比纯统计相关更可靠 / Look for causal mechanisms: if the guess holds, what's the underlying reason? Causal support is more reliable than pure statistical correlation
198
- - 量化检验:如果可能,用数据或实验检验,而不是仅凭感觉 / Quantitative testing: if possible, verify with data or experiments, not just feelings
199
-
200
- **共通要点 / Shared Key Point**
201
- 验证是猜测走向可靠知识的桥梁——未经验证的猜测只是直觉 / Verification is the bridge from guess to reliable knowledge—an unverified guess is just intuition
202
-
203
- ### 第六步:类比迁移 / Step 6: Analogical Transfer
204
-
205
- **科研模式 / Research Mode**
206
- 如果使用了类比,必须进行定量评估而非仅凭直觉 / If analogy is used, quantitative assessment is required, not just intuition:
207
-
208
- **结构性相似度度量 / Structural Similarity Metric**:
209
- - 计算源领域到目标领域的结构映射覆盖率:多少组件有对应?多少关系保持?
210
- - 结构相似度 = (成功映射的关系数 + 成功映射的组件数) / (源关系总数 + 源组件总数)
211
-
212
- **类比有效性分级 / Analogy Effectiveness Grading**:
213
- - **高有效性(同态映射 homomorphism)**:源领域的大部分结构在目标领域有对应,关键关系保持——类比结论可信度高
214
- - **中有效性(部分同态 partial homomorphism)**:部分结构和关系保持,部分失真——类比结论需修正后使用
215
- - **低有效性(表面相似 surface similarity)**:仅外观或术语相似,深层结构不同——类比结论基本不可信
216
-
217
- **系统性检验清单 / Systematic Inspection Checklist**:
218
- 1. 对源领域的每个组件:目标领域是否有对应组件? / For each component in the source domain: does the target domain have a corresponding component?
219
- 2. 对源领域的每个关系:该关系在目标领域中是否成立? / For each relation in the source domain: does it hold in the target domain?
220
- 3. 对源领域的每个操作:该操作在目标领域中是否有定义? / For each operation in the source domain: is it defined in the target domain?
221
- 4. 检验映射的一致性:若 a↦a', b↦b',则 R(a,b) 是否蕴含 R'(a',b')? / Verify mapping consistency: if a↦a', b↦b', does R(a,b) entail R'(a',b')?
222
-
223
- **生活模式 / Life Mode**
224
- 你在一个领域学到的经验能否迁移到另一个领域?——关键看两个领域的核心结构是否相似,不是表面相似。游泳的经验不能直接迁移到跑步,但"循序渐进"的策略可以 / Can experience learned in one domain transfer to another?—the key is whether the core structures of the two domains are similar, not whether they look similar on the surface. Swimming experience can't directly transfer to running, but the "gradual progression" strategy can
225
- - 先问:两个领域的核心挑战是什么?如果核心挑战相似,迁移更有可能成功 / First ask: what are the core challenges in both domains? If the core challenges are similar, transfer is more likely to succeed
226
- - 区分"策略迁移"和"技能迁移":策略(如分解问题、循序渐进)更容易跨领域,技能(如具体操作)更难迁移 / Distinguish "strategy transfer" from "skill transfer": strategies (e.g., breaking down problems, gradual progression) transfer more easily across domains; skills (e.g., specific operations) are harder to transfer
227
- - 检验迁移效果:把迁移后的做法实际试一下,看效果是否如预期 / Verify transfer effectiveness: actually try the transferred approach and see if results match expectations
228
-
229
- **共通要点 / Shared Key Point**
230
- 类比的有效性取决于结构相似度而非表面相似度——核心挑战匹配的类比比外观匹配的类比更可靠 / Analogy effectiveness depends on structural similarity, not surface similarity—analogies matching on core challenges are more reliable than those matching on appearance
231
-
232
- ### 第七步:假说修正 / Step 7: Hypothesis Revision
233
-
234
- **科研模式 / Research Mode**
235
- 根据反例和证明尝试的结果修正假说,遵循 Lakatos 的方法论 / Revise hypotheses based on counterexamples and proof attempts, following Lakatos's methodology:
236
- - **怪物排除(monster-barring)**:将反例归为不属于假说本意范围的对象,在假说中显式排除——最简单的修正,但需警惕过度排除导致假说空洞化
237
- - **引理吸收(lemma-incorporation)**:将反例暴露的隐藏条件纳入假说作为新引理——使假说更精确
238
- - **证明策略修订(proof-strategy revision)**:反例揭示原证明思路有根本缺陷,需换一种证明框架——最深刻的修正
239
- - 修正后回到第四步,迭代直至假说稳定 / After revision, return to Step 4, iterate until the hypothesis stabilizes
240
-
241
- **生活模式 / Life Mode**
242
- 遇到反例怎么办?——要么修正猜测的范围("在什么条件下成立"),要么深化猜测("真正的规律是什么") / What to do when you encounter a counterexample?—either narrow the scope of your guess ("under what conditions it holds"), or deepen the guess ("what the real pattern is")
243
- - 收缩范围:"也许这个规律只在特定条件下成立"——明确条件是什么 / Narrow the scope: "maybe this pattern only holds under specific conditions"—clarify what those conditions are
244
- - 深化理解:"反例暴露了什么?真正的规律可能比我的猜测更复杂"——反例是深化理解的契机 / Deepen understanding: "what does the counterexample reveal? The real pattern may be more complex than my guess"—counterexamples are opportunities to deepen understanding
245
- - 不要固执于最初的猜测——猜测是临时的,修正才是进步 / Don't cling to your initial guess—guesses are temporary, revision is progress
246
-
247
- **共通要点 / Shared Key Point**
248
- 修正不是失败而是进步——每次修正都让假说/猜测更接近真相 / Revision is not failure but progress—each revision brings the hypothesis/guess closer to the truth
249
-
250
- ## 常见错误 / Common Errors
251
-
252
- | 错误 / Error | 数学批评 / Mathematical Critique | 正确做法 / Correct Approach | 标签 / Tag |
253
- |-------------|-------------------------------|---------------------------|-----------|
254
- | 样本不足就归纳 | 从 2-3 个案例归纳的"规律"极不可靠 / "Patterns" induced from 2-3 cases are extremely unreliable | 样本量要足够大,且覆盖各种情况 / Sample size must be large enough and cover various situations | `[科研/生活]` |
255
- | 把归纳推理当证明 | 归纳推理只产生假设,不是证明;数学归纳法才是证明 / Inductive reasoning only produces hypotheses, not proofs; mathematical induction is proof | 区分归纳推理与归纳证明,前者产猜想后者验证 / Distinguish inductive reasoning from inductive proof | `[科研]` |
256
- | 确认偏差 | 只看到支持假说的案例,忽视反例 / Only seeing cases that support the hypothesis, ignoring counterexamples | 主动寻找反例,这是最关键的一步 / Actively seek counterexamples—this is the most crucial step | `[科研/生活]` |
257
- | 表面类比 | 基于表面相似而非结构相似的类比 / Analogy based on surface similarity, not structural similarity | 类比的依据是结构同构/同态,不是表面相似 / Analogy should be based on structural isomorphism/homomorphism, not surface similarity | `[科研/生活]` |
258
- | 类比过度 | 两个领域不完全同构,类比结论不完全成立 / Two domains are not fully isomorphic, analogy conclusions don't fully hold | 用结构性相似度量化评估类比强度 / Quantitatively assess analogy strength using structural similarity metrics | `[科研]` |
259
- | 归纳后不验证 | 提出假说后不去检验 / Proposing a hypothesis but not testing it | 假说必须经过反例检验和/或证明 / Hypotheses must undergo counterexample testing and/or proof | `[科研/生活]` |
260
- | 需强归纳却用弱归纳 | P(k+1) 依赖多个前驱时,弱归纳无法完成归纳步骤 / When P(k+1) depends on multiple predecessors, weak induction can't complete the inductive step | 识别依赖结构:若 P(k+1) 需引用 P(j)(j<k),用强归纳 / Identify dependency structure: use strong induction when P(k+1) needs P(j)(j<k) | `[科研]` |
261
- | 仅凭表面特征评估类比 | 表面特征相似不意味着结构相似,类比结论可能完全错误 / Surface feature similarity doesn't mean structural similarity, analogy conclusions may be completely wrong | 用系统映射检验:逐一比较组件、关系、操作 / Use systematic mapping: compare components, relations, operations one by one | `[科研]` |
262
- | 混淆归纳推理与归纳证明 | 归纳推理是经验性的,归纳证明是演绎性的——性质完全不同 / Inductive reasoning is empirical, inductive proof is deductive—completely different in nature | 明确区分:推理→假说,证明→定理 / Clearly distinguish: reasoning → hypothesis, proof → theorem | `[科研]` |
263
- | 忽略模式破坏(Borwein积分) | 模式在前若干案例中成立后可能突然失效,归纳推理有盲区 / Patterns holding for several cases may suddenly fail; inductive reasoning has blind spots | 检查足够多案例,特别关注边界与参数变化时的模式突变 / Check enough cases, especially boundary and parameter-change pattern mutations | `[科研]` |
264
- | 从太少例子推广 | 两三个个案不足以支撑"规律",生活经验也需要足够样本 / Two or three cases can't support a "pattern"; life experience also needs sufficient samples | 积累更多经验,或明确标注"这只是初步印象" / Accumulate more experience, or clearly label "this is only an initial impression" | `[生活]` |
265
- | 只找正面证据不找反例 | 确认偏差在生活中同样常见——只记住成功的案例 / Confirmation bias is equally common in life—only remembering successful cases | 刻意回忆失败案例,问"什么时候这个做法不灵?" / Deliberately recall failure cases, ask "when did this approach not work?" | `[生活]` |
266
- | 表面类比(结构不相似却强行迁移) | 游泳的经验不能直接迁移到跑步——核心挑战不同 / Swimming experience can't directly transfer to running—core challenges are different | 先比核心挑战,再比表面特征——核心挑战匹配的类比更可靠 / Compare core challenges first, then surface features—analogies matching on core challenges are more reliable | `[生活]` |
267
-
268
- ## 操作规程 / Operating Procedure
269
-
270
- 当本 skill 被触发时,首先判断模式 / When this skill is triggered, first determine the mode:
271
-
272
- **模式选择 / Mode Selection**:
273
- - **科研模式**:涉及数学证明、科学假说、定理发现、结构映射度量 / Involves mathematical proofs, scientific hypotheses, theorem discovery, structural mapping metrics
274
- - **生活模式**:涉及日常经验总结、跨领域借鉴、初步猜测、决策辅助 / Involves daily experience summarization, cross-domain borrowing, initial guesses, decision support
275
-
276
- ---
277
-
278
- ### 科研模式输出格式 / Research Mode Output Format
279
-
280
- 1. **案例清单**:列出所有观察到的具体案例 `[案例N]: [描述] [关键特征]`,确保覆盖边界值与极端值 / Case list: list all observed concrete cases, ensuring coverage of boundary and extreme values
281
- 2. **模式识别**:`[共同模式]: [描述] [出现频率: N/M] [差异模式]: [描述]`,注意是否有 Borwein 型突然破坏 / Pattern identification with frequency and difference patterns, noting potential Borwein-type sudden breaks
282
- 3. **假说表述**:用精确语言表述假说 `[假说]: [内容] [类型: 强/弱/条件]`,优先尝试强假说 / Hypothesis formulation with precise language, prioritizing strong hypotheses
283
- 4. **反例搜索**:`[反例]: [找到/未找到]。如找到: [描述],假说修正: [新表述]` / Counterexample search results
284
- 5. **证明方向**:如适用,选择归纳变体 `[归纳类型: 弱/强/结构/超限]` 并给出证明思路;说明为何选择该变体 / Proof direction with induction variant selection and reasoning
285
- 6. **类比映射**:`[源领域A] → [目标领域B]: [对应关系] [结构相似度: X/Y] [有效性: 高/中/低]`,逐项检验组件、关系、操作 / Analogy mapping with structural similarity and effectiveness grading
286
- 7. **假说修正**:如需修正,记录 `[修正方式: 怪物排除/引理吸收/策略修订] [修正后假说]` / Hypothesis revision with Lakatos methodology notation
287
-
288
- **输出必须包含以上 7 项,不得只输出分析性文字而不给出结论。**
289
-
290
- ---
291
-
292
- ### 生活模式输出格式 / Life Mode Output Format
293
-
294
- 1. **[观察案例]:[列表]** —— 具体观察到什么 / What you specifically observed
295
- 2. **[共同模式]:[发现]** —— 案例之间的共同点 / Commonality among the cases
296
- 3. **[初步猜测]:[提出]** —— 基于模式提出什么假设 / What hypothesis you propose based on the pattern
297
- 4. **[反例检查]:[验证]** —— 有没有反例推翻猜测 / Whether counterexamples overturn the guess
298
- 5. **[经验迁移]:[评估]** —— 能否将经验迁移到其他领域(核心结构是否相似) / Whether experience can transfer to other domains (are core structures similar)
299
- 6. **[修正方向]:[建议]** —— 如果有反例,如何修正猜测 / If counterexamples exist, how to revise the guess
300
-
301
- **输出必须包含以上 6 项,不得只输出分析性文字而不给出结论。**
302
-
303
- ## 与其他 skill 的关系 / Relations to Other Skills
304
-
305
- - **逻辑演绎**:归纳产生假说,演绎证明假说——两者是发现与验证的双翼 / Induction produces hypotheses, deduction proves them—the two wings of discovery and verification
306
- - **抽象化思想**:类比本质上是识别两个领域的共同抽象结构 / Analogy is essentially identifying the shared abstract structure of two domains
307
- - **概率与统计**:归纳推理的概率版本就是统计推断 / The probabilistic version of inductive reasoning is statistical inference
308
- - **建模思想**:从数据中发现规律的归纳过程也是建模的一部分 / The inductive process of discovering patterns from data is also part of modeling
309
- - **算法思想**:归纳作为正确性证明范式——循环不变量即归纳假设,递归程序正确性依赖结构归纳 / Induction as a correctness proof paradigm—loop invariants are induction hypotheses, recursive program correctness relies on structural induction
310
- - **离散/组合思想**:组合归纳——对组合对象的归纳论证,如图论归纳、生成函数方法中的归纳递推 / Combinatorial induction—inductive arguments on combinatorial objects, e.g., graph induction, inductive recursion in generating function methods
1
+ ---
2
+ name: induction-analogy
3
+ description: |
4
+ 触发:从数据/经验找规律、特殊→一般、已知→未知、数学归纳证明(弱/强/结构/超限)、跨域类比迁移结构、为算法/算子设计借鉴其他领域结构等科研语境时调用。
5
+ English: Trigger when finding patterns from data/experience, specific→general, known→unknown, mathematical induction proofs (weak/strong/structural/transfinite), cross-domain analogical transfer of structures, or borrowing structures from other fields for algorithm/operator design.
6
+ ---
7
+
8
+ > **语言路由**:若用户消息为英文,请读取并遵循同目录下的 `SKILL.en.md`,按其操作规程以英文输出;中文消息则继续使用本文件。
9
+
10
+ # 📈 归纳与类比 / Induction & Analogy
11
+
12
+ > "从特殊到一般,从已知到未知——归纳发现规律,类比迁移经验,两者都不等于证明"
13
+ > "From the specific to the general, from the known to the unknown—induction discovers patterns, analogy transfers experience, but neither equals proof"
14
+ >
15
+ > —— Pólya《数学与猜想》、Lakatos《证明与反驳》
16
+ > —— Pólya "Mathematics and Plausible Reasoning", Lakatos "Proofs and Refutations"
17
+
18
+ ## 核心原则 / Core Principle
19
+
20
+ **归纳是从有限实例中发现一般规律的过程,是创造新知识的引擎;类比是将一个领域的理解迁移到另一个领域的桥梁。两者都不是严格证明,但都是发现定理、提出假说、产生创新的根本方法。严格性是验证的工具,而非发现的工具——Pólya。**
21
+
22
+ **Induction discovers general patterns from limited instances—the engine of new knowledge; analogy transfers understanding across domains. Neither is rigorous proof, but both are fundamental to discovering theorems, proposing hypotheses, and generating innovation. Rigor is a tool of verification, not of discovery—Pólya.**
23
+
24
+ 归纳与类比的区别:**归纳**从 N 个具体案例 → 一般规律(纵向深入);**类比**从领域 A 的结构 → 领域 B 的结构(横向迁移);两者都产生假设而非定理,需后续验证。
25
+
26
+ > **数学形式化 / Mathematical Formalization**
27
+ >
28
+ > 归纳推理与归纳证明的严格区分:
29
+ > - 归纳推理(inductive reasoning):经验性的,从观察中提出假说
30
+ > - 归纳证明(inductive proof):逻辑性的,数学归纳法是严格的演绎证明格式
31
+ > - 关键:归纳推理产生猜想,归纳证明验证猜想——两者不可混淆
32
+ >
33
+ > 归纳证明的变体及其适用场景:
34
+ > - **弱归纳法(Weak Induction)**:证明 P(1) 成立 + 证明 ∀k(P(k)→P(k+1)) → 得出 ∀n P(n);适用:P(k+1) 仅依赖 P(k)
35
+ > - **强归纳法(Strong / Complete Induction)**:假设 P(1), P(2), …, P(k) 全部成立,证明 P(k+1) 成立;适用:P(k+1) 依赖多个前驱
36
+ > - **结构归纳法(Structural Induction)**:证明 P(base) 成立 + P(composite) 由 P(components) 推出;适用:递归定义的结构(树、列表、表达式)
37
+ > - **超限归纳法(Transfinite Induction)**:对良序集 (W, <),证明 ∀α∈W(∀β<α P(β) → P(α)) → ∀α∈W P(α);适用:索引超越自然数的良序集
38
+ >
39
+ > Lakatos 方法论的形式化描述:
40
+ > - **怪物排除(monster-barring)**:将反例归为不属于假说本意范围的对象,在假说中显式排除——最简单的修正,但需警惕过度排除导致假说空洞化
41
+ > - **引理吸收(lemma-incorporation)**:将反例暴露的隐藏条件纳入假说作为新引理——使假说更精确
42
+ > - **证明策略修订(proof-strategy revision)**:反例揭示原证明思路有根本缺陷,需换一种证明框架——最深刻的修正
43
+ >
44
+ > 类比的结构性相似度度量:
45
+ > - 结构相似度 = (成功映射的关系数 + 成功映射的组件数) / (源关系总数 + 源组件总数)
46
+ > - 高有效性(同态映射 homomorphism):大部分结构有对应,关键关系保持
47
+ > - 中有效性(部分同态 partial homomorphism):部分结构和关系保持,部分失真
48
+ > - 低有效性(表面相似 surface similarity):仅外观或术语相似,深层结构不同
49
+
50
+ ## GPU 友好性 / GPU-Friendliness(横切检查)
51
+
52
+ 归纳与类比本身偏**元启发式**——它们产生猜想、迁移结构,但不直接规定计算。真正要过 GPU 八维门的是它们的**产物**:被迁移到算法/算子设计中的那个结构。类比迁移来的结构若不可算则需改造。
53
+
54
+ - **友好**:迁移来的结构能写成稠密 GEMM 链或低秩线性映射——如结构归纳思路落到递归算子的可融合实现、代数同态类比成低秩 GEMM(维度 1/2/4)。
55
+ - **可改造**:迁移来的全局/串行结构(朴素上同调计算、非结构化图遍历、朴素 RNN 式递推)→ 用块稀疏化、低秩投影、热带半环松弛改造(见 `../../references/gpu-friendly-math.md` 改造手法)。
56
+ - **反模式**:仅因结构同构/同态优美就采用,却忽略 O(n²) 显存、fp64 依赖或长串行递推——"数学美 ≠ 可算",类比结论即便数学正确也未必硬件可行。
57
+
58
+ 八维最低判定(正式术语):**张量化**检查迁移结构的可批量表达;**GEMM 可映射**检查类比后的核心算子是否落矩阵乘;**复杂度**检查从源领域带来的全局构造是否爆炸;**显存与 KV-Cache**检查是否引入大表或长缓存;**低精度稳定**检查类比结构是否依赖精确符号/高精度;**并行与通信**检查递推或交互能否分块;**稀疏结构**检查稀疏是否规则;**算子融合**检查迁移结构是否可实现为少量 fused ops。
59
+
60
+ > 配合 `../../references/gpu-friendly-math.md`(八维门)、`../../references/books/abstract-algebra.md`(同态/同构结构)、`../../references/books/algebraic-geometry-rising-sea.md`(跨域结构迁移与压缩)。
61
+
62
+ ## 不适用场景 / When NOT to Use
63
+
64
+ - **需要严格证明**——归纳推理和类比只能产生假设,不是证明;但数学归纳法本身是证明方法。
65
+ - **样本只有一个或极少**——归纳推理需要足够的实例支撑。
66
+ - **两个领域差异太大**——类比需要结构相似性,而非表面相似。
67
+ - **结论必须零误差**——归纳推理有不确定性,类比有失真风险。
68
+ - **问题可用演绎直接解决**——不必绕道归纳。
69
+
70
+ ## 何时使用 / When to Use
71
+
72
+ - 观察到多个案例有共同模式,想要提出一般性假说。
73
+ - 在科研中尝试发现新定理或新规律。
74
+ - 需要对递归定义的结构(树、列表、表达式)进行性质证明——使用结构归纳法。
75
+ - 需要证明涉及分解的命题(如整数的素因子分解)——使用强归纳法。
76
+ - 需要对超越自然数的良序集进行论证——使用超限归纳法。
77
+ - 跨学科借鉴——其他领域的方法能否用到我的问题?
78
+ - **为算法/算子设计借鉴其他领域的结构**——跨域类比迁移结构(如代数同态→低秩映射、层扩散→块摘要),迁移后过 GPU 八维门再采用。
79
+
80
+ ## 方法流程 / Method
81
+
82
+ ### 第一步:收集具体案例 / Collect Concrete Cases
83
+ 系统收集与观察具体实例:阅读文献提取关键案例、收集实验数据中的模式、整理已知定理;确保案例覆盖边界值、典型值与极端值。案例的多样性与覆盖度决定归纳质量——太少或太单一会误导。
84
+
85
+ ### 第二步:识别模式 / Identify Patterns
86
+ 比较案例的共同点与差异:什么特征在所有(或大多数)案例中出现?什么只出现在部分?差异是否有规律?注意模式可能在若干案例后突然破坏(如 Borwein 积分现象)——只看共同点会忽视反例。
87
+
88
+ ### 第三步:提出假说 / Formulate a Hypothesis
89
+ 基于观察到的模式提出一般性假说:**强假说** ∀n P(n)(所有情况成立);**弱假说** P(n) 对足够大的 n 成立(存在例外);**条件假说** ∀n∈S P(n)(特定子集)。选择原则:优先尝试强假说,再用反例逐级弱化。假说必须足够明确以至于可被推翻。
90
+
91
+ ### 第四步:搜索反例 / Search for Counterexamples
92
+ 主动寻找推翻假说的反例——区分科学与伪科学的关键。找到反例则修改(弱化或加条件);找不到则假说暂时成立。特别关注边界条件、极端值、参数变化时模式是否突然失效。
93
+
94
+ ### 第五步:尝试证明 / Attempt a Proof
95
+ 对数学假说尝试严格证明,选择正确的归纳变体是关键:
96
+
97
+ - **弱归纳法(Weak Induction)**:证明 P(1) + ∀k(P(k)→P(k+1)) ∀n P(n);适用 P(k+1) 仅依赖 P(k)(求和公式、简单递推);示例 1+2+…+n = n(n+1)/2。
98
+ - **强归纳法(Strong Induction)**:假设 P(1)..P(k) 全部成立证 P(k+1);适用 P(k+1) 依赖多个前驱(分解、拆分命题);示例:每个大于 1 的整数都是素数乘积、斐波那契性质。关键:P(k+1) 需引用 P(j)(j<k) 时必须用强归纳。
99
+ - **结构归纳法(Structural Induction)**:证 P(base) + P(composite) P(components) 推出;适用递归定义结构(树、列表、表达式、公式、程序语义);示例:二叉树叶节点数 = 内部节点数 + 1。它是数学归纳法在递归结构上的自然推广。
100
+ - **超限归纳法(Transfinite Induction)**:对良序集 (W,<) 证 ∀α∈W(∀β<α P(β)→P(α)) → ∀α∈W P(α);适用索引超越自然数的良序集(序数、偏序集、拓扑传递闭包);示例:Zorn 引理应用、集合论递归构造。
101
+ - **良序原理等价性**:每个非空子集有最小元 自然数归纳法 ↔ 强归纳法 ↔ 良序集上的超限归纳。实践意义:选最自然的形式。
102
+
103
+ ### 第六步:类比迁移 / Analogical Transfer
104
+ 使用类比必须定量评估而非仅凭直觉:
105
+
106
+ - **结构性相似度度量**:结构相似度 = (成功映射的关系数 + 成功映射的组件数) / (源关系总数 + 源组件总数)。
107
+ - **类比有效性分级**:**高有效性(同态映射 homomorphism)**——大部分结构有对应、关键关系保持,结论可信度高;**中有效性(部分同态)**——部分保持部分失真,结论需修正后使用;**低有效性(表面相似)**——仅外观/术语相似,深层结构不同,结论基本不可信。
108
+ - **系统性检验清单**:① 源领域每个组件,目标领域是否有对应?② 每个关系在目标领域是否成立?③ 每个操作在目标领域是否有定义?④ 映射一致性:若 a↦a', b↦b',则 R(a,b) 是否蕴含 R'(a',b')?
109
+
110
+ ### 第七步:假说修正 / Hypothesis Revision
111
+ 据反例与证明尝试结果修正假说,遵循 Lakatos 方法论:**怪物排除(monster-barring)**——将反例归为不属于假说本意范围并显式排除(最简单,警惕过度排除致空洞化);**引理吸收(lemma-incorporation)**——将反例暴露的隐藏条件纳入为新引理(使假说更精确);**证明策略修订(proof-strategy revision)**——反例揭示原证明思路根本缺陷,换证明框架(最深刻)。修正后回到第四步,迭代直至假说稳定。
112
+
113
+ ## 常见错误 / Common Errors
114
+
115
+ | 错误 / Error | 批评 / Critique | 正确做法 / Correct Approach |
116
+ |---|---|---|
117
+ | 样本不足就归纳 | 2-3 个案例归纳的"规律"极不可靠 | 样本量要足够大,且覆盖各种情况 |
118
+ | 把归纳推理当证明 | 归纳推理只产生假设,不是证明;数学归纳法才是证明 | 区分归纳推理与归纳证明,前者产猜想后者验证 |
119
+ | 确认偏差 | 只看到支持假说的案例,忽视反例 | 主动寻找反例——最关键的一步 |
120
+ | 表面类比 | 基于表面相似而非结构相似的类比 | 类比的依据是结构同构/同态,不是表面相似 |
121
+ | 类比过度 | 两个领域不完全同构,类比结论不完全成立 | 用结构性相似度量化评估类比强度 |
122
+ | 归纳后不验证 | 提出假说后不去检验 | 假说必须经过反例检验和/或证明 |
123
+ | 需强归纳却用弱归纳 | P(k+1) 依赖多个前驱时,弱归纳无法完成归纳步骤 | 识别依赖结构:若 P(k+1) 需引用 P(j)(j<k),用强归纳 |
124
+ | 仅凭表面特征评估类比 | 表面特征相似不意味着结构相似,结论可能完全错误 | 用系统映射逐一比较组件、关系、操作 |
125
+ | 混淆归纳推理与归纳证明 | 归纳推理是经验性的,归纳证明是演绎性的——性质完全不同 | 明确区分:推理→假说,证明→定理 |
126
+ | 忽略模式破坏(Borwein积分) | 模式在前若干案例中成立后可能突然失效,归纳推理有盲区 | 检查足够多案例,关注边界与参数变化时的模式突变 |
127
+ | 类比迁移来不可算的结构 | 仅因结构同构优美就采用,忽略 O(n²) 显存或 fp64 依赖——"数学美 ≠ 可算" | 迁移来的结构先过 GPU 八维门,不可算则改造(低秩/块稀疏/松弛)后再采用 |
128
+
129
+ ## 操作规程 / Operating Procedure
130
+
131
+ 当本 skill 被触发时,输出必须包含:
132
+
133
+ 1. **案例清单**:`[案例N]: [描述] [关键特征]`,确保覆盖边界值与极端值。
134
+ 2. **模式识别**:`[共同模式]: [描述] [出现频率: N/M] [差异模式]: [描述]`,注意是否有 Borwein 型突然破坏。
135
+ 3. **假说表述**:`[假说]: [内容] [类型: 强/弱/条件]`,优先尝试强假说。
136
+ 4. **反例搜索**:`[反例]: [找到/未找到]。如找到: [描述],假说修正: [新表述]`。
137
+ 5. **证明方向**:`[归纳类型: 弱/强/结构/超限]` 并给出证明思路;说明为何选择该变体。
138
+ 6. **类比映射**:`[源领域A] [目标领域B]: [对应关系] [结构相似度: X/Y] [有效性: 高/中/低]`,逐项检验组件、关系、操作。
139
+ 7. **假说修正**:`[修正方式: 怪物排除/引理吸收/策略修订] [修正后假说]`。
140
+ 8. **[GPU 可行性]**(若迁移结构用于算法/算子设计)— 迁移来的结构过 `../../references/gpu-friendly-math.md` 八维门,标注友好/可改造/不友好 + 改造建议。
141
+
142
+ **输出不得只给分析而无结论;需要继续执行时,在结尾用一句话说明接下来将做什么。**
143
+
144
+ ## 与其他 skill 的关系 / Relations to Other Skills
145
+
146
+ - **逻辑演绎**:归纳产生假说,演绎证明假说——发现与验证的双翼。
147
+ - **抽象化思想**:类比本质上是识别两个领域的共同抽象结构。
148
+ - **概率与统计**:归纳推理的概率版本就是统计推断。
149
+ - **建模思想**:从数据中发现规律的归纳过程也是建模的一部分。
150
+ - **算法思想**:归纳作为正确性证明范式——循环不变量即归纳假设,递归程序正确性依赖结构归纳。
151
+ - **离散/组合思想**:组合归纳——对组合对象的归纳论证,如图论归纳、生成函数方法中的归纳递推。
152
+ - **现代数学激活**:`../../references/books/abstract-algebra.md`(结构类比:同态/同构作为类比的形式化)、`../../references/books/algebraic-geometry-rising-sea.md`(跨域结构迁移:层/限制映射/Plücker 压缩)。