math-skill 2.0.1 → 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.
- package/README.en-US.md +40 -7
- package/README.md +40 -7
- package/agents/math-critic.en.md +235 -0
- package/agents/math-critic.md +2 -0
- package/commands/abstraction.md +1 -3
- package/commands/algorithmic-thinking.md +1 -3
- package/commands/ask.md +1 -3
- package/commands/axiomatization.md +1 -3
- package/commands/causal-inference.md +1 -3
- package/commands/discrete-combinatorial.md +1 -3
- package/commands/game-theory.md +1 -3
- package/commands/induction-analogy.md +1 -3
- package/commands/information-theory.md +1 -3
- package/commands/logic-deduction.md +1 -3
- package/commands/modeling.md +1 -3
- package/commands/optimization.md +1 -3
- package/commands/probability-statistics.md +1 -3
- package/commands/symmetry-invariance.md +1 -3
- package/commands/topological-thinking.md +1 -3
- package/commands/transformation.md +1 -3
- package/knowledge-base/overview.en.md +228 -0
- package/knowledge-base/overview.md +2 -0
- package/package.json +4 -2
- package/references/agentic-workflow.en.md +53 -0
- package/references/agentic-workflow.md +2 -0
- package/references/books/abstract-algebra.md +4 -0
- package/references/books/algebraic-geometry-rising-sea.md +4 -0
- package/references/books/differential-geometry.md +4 -0
- package/references/books/matrix-analysis.md +4 -0
- package/references/books/micro-lie-theory.md +4 -0
- package/references/books/optimization-ml.md +4 -0
- package/references/books/smooth-manifolds.md +4 -0
- package/references/gpu-friendly-math.en.md +65 -0
- package/references/gpu-friendly-math.md +2 -0
- package/references/inspiration.en.md +113 -0
- package/references/inspiration.md +2 -0
- package/skills/abstraction/SKILL.en.md +117 -0
- package/skills/abstraction/SKILL.md +2 -0
- package/skills/abstraction/original-texts.en.md +163 -0
- package/skills/algorithmic-thinking/SKILL.en.md +132 -0
- package/skills/algorithmic-thinking/SKILL.md +2 -0
- package/skills/algorithmic-thinking/original-texts.en.md +253 -0
- package/skills/axiomatization/SKILL.en.md +144 -0
- package/skills/axiomatization/SKILL.md +2 -0
- package/skills/axiomatization/original-texts.en.md +154 -0
- package/skills/causal-inference/SKILL.en.md +147 -0
- package/skills/causal-inference/SKILL.md +2 -0
- package/skills/causal-inference/original-texts.en.md +136 -0
- package/skills/discrete-combinatorial/SKILL.en.md +124 -0
- package/skills/discrete-combinatorial/SKILL.md +2 -0
- package/skills/discrete-combinatorial/original-texts.en.md +184 -0
- package/skills/game-theory/SKILL.en.md +117 -0
- package/skills/game-theory/SKILL.md +2 -0
- package/skills/game-theory/original-texts.en.md +131 -0
- package/skills/induction-analogy/SKILL.en.md +145 -0
- package/skills/induction-analogy/SKILL.md +2 -0
- package/skills/induction-analogy/original-texts.en.md +140 -0
- package/skills/information-theory/SKILL.en.md +134 -0
- package/skills/information-theory/SKILL.md +2 -0
- package/skills/information-theory/original-texts.en.md +127 -0
- package/skills/logic-deduction/SKILL.en.md +130 -0
- package/skills/logic-deduction/SKILL.md +2 -0
- package/skills/logic-deduction/original-texts.en.md +160 -0
- package/skills/math-research-activator/SKILL.en.md +132 -0
- package/skills/math-research-activator/SKILL.md +2 -0
- package/skills/math-research-activator/original-texts.en.md +105 -0
- package/skills/modeling/SKILL.en.md +135 -0
- package/skills/modeling/SKILL.md +2 -0
- package/skills/modeling/original-texts.en.md +162 -0
- package/skills/optimization/SKILL.en.md +129 -0
- package/skills/optimization/SKILL.md +2 -0
- package/skills/optimization/original-texts.en.md +167 -0
- package/skills/probability-statistics/SKILL.en.md +146 -0
- package/skills/probability-statistics/SKILL.md +2 -0
- package/skills/probability-statistics/original-texts.en.md +191 -0
- package/skills/symmetry-invariance/SKILL.en.md +135 -0
- package/skills/symmetry-invariance/SKILL.md +2 -0
- package/skills/symmetry-invariance/original-texts.en.md +206 -0
- package/skills/topological-thinking/SKILL.en.md +124 -0
- package/skills/topological-thinking/SKILL.md +2 -0
- package/skills/topological-thinking/original-texts.en.md +134 -0
- package/skills/transformation/SKILL.en.md +120 -0
- package/skills/transformation/SKILL.md +2 -0
- package/skills/transformation/original-texts.en.md +204 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Algorithmic Thinking -- Original Texts & Historical Context
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## 1. Turing Machine (1936)
|
|
6
|
+
|
|
7
|
+
Alan Turing's paper **"On Computable Numbers, with an Application to the Entscheidungsproblem"** (1936) defined a precise mathematical model of "computability" -- the Turing machine.
|
|
8
|
+
|
|
9
|
+
> "The 'computable' numbers may be described briefly as the real numbers whose expressions as a decimal are calculable by finite means."
|
|
10
|
+
> -- Alan Turing, 1936
|
|
11
|
+
|
|
12
|
+
**Core definition:**
|
|
13
|
+
- A Turing machine $M = (Q, \Sigma, \Gamma, \delta, q_0, q_{\text{accept}}, q_{\text{reject}})$, where $\delta: Q \times \Gamma \to Q \times \Gamma \times \{L, R\}$ is the transition function.
|
|
14
|
+
- Universal Turing machine: can simulate the execution of any Turing machine $M$ on input $w$, i.e., $U(\langle M \rangle, w) = M(w)$.
|
|
15
|
+
|
|
16
|
+
**Halting problem:**
|
|
17
|
+
- The halting problem $H = \{\langle M, w \rangle : M \text{ halts on } w\}$ is undecidable.
|
|
18
|
+
- Proof: Suppose $H$ is decidable. Construct $D(\langle M \rangle) = \text{run } H(\langle M, \langle M \rangle \rangle)$; if $M$ halts on $\langle M \rangle$ then $D$ loops forever, otherwise $D$ halts. Applying $D(\langle D \rangle)$ produces a contradiction.
|
|
19
|
+
|
|
20
|
+
**Entscheidungsproblem (Decision Problem):**
|
|
21
|
+
- Proposed by Hilbert in 1928: Does there exist an algorithm to decide the validity of first-order logic statements?
|
|
22
|
+
- Turing and Church independently proved: No such algorithm exists. The validity of first-order logic is undecidable.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Church-Turing Thesis
|
|
27
|
+
|
|
28
|
+
**Thesis (not a theorem):**
|
|
29
|
+
> Every "effectively calculable" function is Turing-computable.
|
|
30
|
+
|
|
31
|
+
**Equivalent formulations:**
|
|
32
|
+
- Church: $\lambda$-definable functions (lambda calculus, 1936)
|
|
33
|
+
- Godel-Herbrand-Kleene: general recursive functions
|
|
34
|
+
- Post: Post canonical systems
|
|
35
|
+
- The sets of functions computable by all these models are identical, supporting the plausibility of the thesis.
|
|
36
|
+
|
|
37
|
+
**Strong Church-Turing thesis:**
|
|
38
|
+
- Any problem solvable on a physical device in time $T$ can be solved on a Turing machine in time $O(T^k)$ ($k$ a constant).
|
|
39
|
+
- That is: all reasonable computational models are equivalent up to polynomial time.
|
|
40
|
+
- Quantum computing challenges this -- does there exist a polynomial speedup with $k > 1$?
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 3. Euclid's Algorithm (~300 BC)
|
|
45
|
+
|
|
46
|
+
**The oldest algorithm still in use.**
|
|
47
|
+
|
|
48
|
+
**GCD computation:**
|
|
49
|
+
$$\gcd(a, b) = \gcd(b, a \bmod b), \quad a \bmod b \neq 0$$
|
|
50
|
+
$$\gcd(a, 0) = a$$
|
|
51
|
+
|
|
52
|
+
**Termination proof:**
|
|
53
|
+
- At each step $b' = a \bmod b < b$, so the sequence $b_0 > b_1 > b_2 > \cdots \geq 0$ is strictly decreasing.
|
|
54
|
+
- Within finitely many steps $b_k = 0$ and the algorithm terminates.
|
|
55
|
+
|
|
56
|
+
**Extended Euclidean algorithm:**
|
|
57
|
+
- Computes $\gcd(a, b)$ while simultaneously finding $x, y$ such that $ax + by = \gcd(a, b)$.
|
|
58
|
+
- Application: modular inverse $a^{-1} \bmod m$ -- when $\gcd(a, m) = 1$, $ax \equiv 1 \pmod{m}$ and $x = a^{-1}$.
|
|
59
|
+
|
|
60
|
+
**Time complexity:**
|
|
61
|
+
- Lame's theorem (1844): The number of steps in Euclid's algorithm is at most $5 \times$ the number of decimal digits of the smaller number, i.e., $O(\log \min(a, b))$.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 4. Knuth -- The Art of Computer Programming (1968-)
|
|
66
|
+
|
|
67
|
+
Donald Knuth's multi-volume magnum opus **TAOCP** systematized the field of algorithm analysis.
|
|
68
|
+
|
|
69
|
+
> "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music."
|
|
70
|
+
> -- Donald Knuth, TAOCP Vol. 1, Preface
|
|
71
|
+
|
|
72
|
+
**Contributions:**
|
|
73
|
+
- Introduced and popularized big-O notation from number theory into computer science. $O(f(n))$: there exist constants $c, n_0$ such that $T(n) \leq c \cdot f(n)$ for all $n \geq n_0$.
|
|
74
|
+
- A systematic taxonomy of algorithms (sorting, searching, arithmetic, combinatorial, etc.).
|
|
75
|
+
- MMIX/MIX mixed pseudo-machines for precise models of algorithm analysis.
|
|
76
|
+
- Volumes: Vol. 1 (Fundamental Algorithms, 1968), Vol. 2 (Seminumerical Algorithms, 1969), Vol. 3 (Sorting and Searching, 1973), Vol. 4A (Combinatorial Algorithms, 2011).
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 5. Cook-Levin Theorem (1971)
|
|
81
|
+
|
|
82
|
+
**NP-completeness:**
|
|
83
|
+
|
|
84
|
+
> "The question 'is P = NP?' is one of the most important open questions in theoretical computer science."
|
|
85
|
+
> -- Stephen Cook, 1971
|
|
86
|
+
|
|
87
|
+
**The Cook-Levin theorem:**
|
|
88
|
+
- SAT (the Boolean satisfiability problem) is NP-complete.
|
|
89
|
+
- Proof: The accepting computation of a nondeterministic Turing machine $M$ for any NP language $L$ on input $w$ can be encoded as a SAT formula $\varphi_{M,w}$; $w \in L \iff \varphi_{M,w}$ is satisfiable.
|
|
90
|
+
- Reduction: $L \leq_p \text{SAT}$ holds for all $L \in \text{NP}$.
|
|
91
|
+
|
|
92
|
+
**Karp's 21 NP-complete problems (1972):**
|
|
93
|
+
- Richard Karp, in "Reducibility among Combinatorial Problems," proved 21 classic problems to be NP-complete, including:
|
|
94
|
+
- 3SAT, CLIQUE, VERTEX-COVER, HAM-CYCLE, TSP, SUBSET-SUM, PARTITION, etc.
|
|
95
|
+
|
|
96
|
+
**P vs NP:**
|
|
97
|
+
- $\text{P} = \text{NP}$? If true, all NP problems would have polynomial-time algorithms. The prevailing conjecture is $\text{P} \neq \text{NP}$. One of the Clay Mathematics Institute Millennium Prize Problems.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 6. Divide-and-Conquer
|
|
102
|
+
|
|
103
|
+
**Key idea:** Decompose the problem into subproblems, solve recursively, and combine results.
|
|
104
|
+
|
|
105
|
+
**Canonical examples:**
|
|
106
|
+
- **Merge sort:** $T(n) = 2T(n/2) + O(n) \Rightarrow T(n) = O(n \log n)$. A stable sort.
|
|
107
|
+
- **Quicksort:** Average $O(n \log n)$, worst case $O(n^2)$. Hoare (1962).
|
|
108
|
+
- **Binary search:** $T(n) = T(n/2) + O(1) \Rightarrow T(n) = O(\log n)$. Requires a sorted array.
|
|
109
|
+
|
|
110
|
+
**Master theorem:**
|
|
111
|
+
$$T(n) = a\,T(n/b) + f(n)$$
|
|
112
|
+
- Case 1: If $f(n) = O(n^{\log_b a - \varepsilon})$, then $T(n) = \Theta(n^{\log_b a})$.
|
|
113
|
+
- Case 2: If $f(n) = \Theta(n^{\log_b a} \log^k n)$, then $T(n) = \Theta(n^{\log_b a} \log^{k+1} n)$.
|
|
114
|
+
- Case 3: If $f(n) = \Omega(n^{\log_b a + \varepsilon})$ and $af(n/b) \leq cf(n)$, then $T(n) = \Theta(f(n))$.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## 7. Dynamic Programming
|
|
119
|
+
|
|
120
|
+
> "I decided to use the word 'dynamic' ... it was something not even a Congressman could object to."
|
|
121
|
+
> -- Richard Bellman, on naming "dynamic programming" (1957)
|
|
122
|
+
|
|
123
|
+
**Core principles:**
|
|
124
|
+
1. **Optimal substructure:** An optimal solution contains optimal solutions to subproblems.
|
|
125
|
+
2. **Overlapping subproblems:** Different subproblems share smaller sub-subproblems, so naive recursion redundantly recomputes them.
|
|
126
|
+
|
|
127
|
+
**Classic algorithms:**
|
|
128
|
+
- **Shortest paths:** Dijkstra (1959) -- single-source shortest paths, $O((V+E)\log V)$.
|
|
129
|
+
- **Floyd-Warshall (1962):** All-pairs shortest paths, $O(V^3)$. Recurrence: $d_{ij}^{(k)} = \min(d_{ij}^{(k-1)}, d_{ik}^{(k-1)} + d_{kj}^{(k-1)})$.
|
|
130
|
+
- **Knapsack problem:** $O(nW)$ pseudo-polynomial time.
|
|
131
|
+
|
|
132
|
+
**Bottom-up vs Top-down (memoization):**
|
|
133
|
+
- Bottom-up: Fill in a table from the smallest subproblems to the largest.
|
|
134
|
+
- Top-down + memoization: Recurse but cache the results of already-solved subproblems.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 8. Greedy Algorithms
|
|
139
|
+
|
|
140
|
+
**Key idea:** At each step, choose the locally optimal option, hoping to reach a globally optimal solution.
|
|
141
|
+
|
|
142
|
+
**Classic algorithms:**
|
|
143
|
+
- **Kruskal's minimum spanning tree (1956):** Add edges in ascending order of weight, skipping those that form a cycle. $O(E \log E)$. Greedy is optimal for MST problems.
|
|
144
|
+
- **Huffman coding (1952):** Repeatedly merge the two nodes with the lowest frequencies. Produces an optimal prefix code.
|
|
145
|
+
|
|
146
|
+
**When greedy works:**
|
|
147
|
+
- **Matroid structure:** If the set of feasible solutions forms a matroid $(E, \mathcal{I})$ -- satisfying the hereditary property and the exchange property -- then the greedy algorithm yields an optimal solution for any weight function.
|
|
148
|
+
- Exchange property: If $A, B \in \mathcal{I}$ and $|A| < |B|$, then there exists $e \in B \setminus A$ such that $A \cup \{e\} \in \mathcal{I}$.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 9. Backtracking and Search
|
|
153
|
+
|
|
154
|
+
**Depth-First Search (DFS) / Breadth-First Search (BFS):**
|
|
155
|
+
- DFS: Uses a stack (or recursion), explores as deep as possible first; used for topological sorting and connected components.
|
|
156
|
+
- BFS: Uses a queue, expands level by level; used for shortest paths in unweighted graphs.
|
|
157
|
+
|
|
158
|
+
**Backtracking:**
|
|
159
|
+
- Systematically enumerates candidate solutions, retreating as soon as a constraint is violated.
|
|
160
|
+
- Examples: N-Queens problem, subset enumeration, permutation enumeration.
|
|
161
|
+
|
|
162
|
+
**Pruning and branch-and-bound:**
|
|
163
|
+
- Pruning: Uses constraints to eliminate impossible branches early, reducing the search space.
|
|
164
|
+
- Branch-and-bound: For optimization problems, maintains a bound on the current best solution and prunes branches that cannot improve it. Commonly used for TSP and integer programming.
|
|
165
|
+
|
|
166
|
+
**Constraint Satisfaction Problems (CSP):**
|
|
167
|
+
- A set of variables + domains + constraints. Backtracking search + constraint propagation (AC-3, etc.).
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 10. Randomized Algorithms
|
|
172
|
+
|
|
173
|
+
**Two types:**
|
|
174
|
+
- **Las Vegas algorithms:** Always produce correct results; running time is random. Example: randomized quicksort.
|
|
175
|
+
- **Monte Carlo algorithms:** Running time is deterministic; result may be incorrect (but error probability can be made arbitrarily small). Example: Miller-Rabin primality test.
|
|
176
|
+
|
|
177
|
+
**Miller-Rabin primality test (1976/1980):**
|
|
178
|
+
- For an odd number $n$, choose a random $a \in \{2, \ldots, n-1\}$ and check whether the sequence $a^{d} \bmod n$ satisfies the strengthened conditions of Fermat's little theorem.
|
|
179
|
+
- Error probability per test $\leq 1/4$; after $k$ independent tests, error probability $\leq 4^{-k}$.
|
|
180
|
+
- Time complexity $O(k \log^3 n)$.
|
|
181
|
+
|
|
182
|
+
**Randomized quicksort:**
|
|
183
|
+
- Randomly select a pivot; expected number of comparisons $2n \ln n \approx 1.39 n \log_2 n$; expected running time $O(n \log n)$.
|
|
184
|
+
- The probability of the worst case $O(n^2)$ can be shown to be extremely low.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## 11. Decidability and Undecidability
|
|
189
|
+
|
|
190
|
+
**The halting problem is undecidable (see Section 1).**
|
|
191
|
+
|
|
192
|
+
**Rice's theorem (1953):**
|
|
193
|
+
> Every non-trivial semantic property of Turing machines is undecidable.
|
|
194
|
+
|
|
195
|
+
- "Semantic property": depends only on the function computed by $M$, not on the structure of $M$.
|
|
196
|
+
- "Non-trivial": holds for some Turing machines but not for others.
|
|
197
|
+
- Examples: "Does $M$ compute a constant function?", "Does $M$ halt on some input?", "Does $M$ compute a decidable language?" -- all undecidable.
|
|
198
|
+
|
|
199
|
+
**Post Correspondence Problem (PCP, 1946):**
|
|
200
|
+
- Given a set of dominos $\{(t_1, b_1), \ldots, (t_k, b_k)\}$ (where $t_i, b_i$ are strings), does there exist a sequence $i_1, i_2, \ldots, i_m$ such that $t_{i_1} t_{i_2} \cdots t_{i_m} = b_{i_1} b_{i_2} \cdots b_{i_m}$?
|
|
201
|
+
- PCP is undecidable. Commonly used to prove the undecidability of other problems.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## 12. Complexity Classes
|
|
206
|
+
|
|
207
|
+
| Class | Definition | Description |
|
|
208
|
+
|-------|-----------|-------------|
|
|
209
|
+
| **P** | $\{L : L \text{ is decidable in } O(n^k) \text{ time}\}$ | Decidable in polynomial time |
|
|
210
|
+
| **NP** | $\{L : L \text{ has a polynomial-length certificate}\}$ | Decidable in nondeterministic polynomial time |
|
|
211
|
+
| **co-NP** | $\{L : \bar{L} \in \text{NP}\}$ | Complement of NP |
|
|
212
|
+
| **EXP** | $\{L : L \text{ is decidable in } O(2^{n^k}) \text{ time}\}$ | Decidable in exponential time |
|
|
213
|
+
| **R** | $\{L : L \text{ is decidable}\}$ | Recursive / decidable languages |
|
|
214
|
+
| **RE** | $\{L : L \text{ is recognizable by a Turing machine}\}$ | Recursively enumerable languages |
|
|
215
|
+
|
|
216
|
+
**Hierarchies:**
|
|
217
|
+
$$\text{P} \subseteq \text{NP} \subseteq \text{PSPACE} \subseteq \text{EXP} \subseteq \text{R} \subseteq \text{RE}$$
|
|
218
|
+
$$\text{P} \neq \text{EXP} \quad (\text{time hierarchy theorem, Hartmanis-Stearns 1965})$$
|
|
219
|
+
$$\text{R} \neq \text{RE} \quad (\text{halting problem} \in \text{RE} \setminus \text{R})$$
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## 13. Sorting Lower Bound
|
|
224
|
+
|
|
225
|
+
**Lower bound for comparison-based sorting:**
|
|
226
|
+
|
|
227
|
+
$$T(n) \geq \Omega(n \log n)$$
|
|
228
|
+
|
|
229
|
+
**Information-theoretic argument:**
|
|
230
|
+
- The number of permutations of $n$ elements $= n!$; each comparison halves the search space at most.
|
|
231
|
+
- The decision tree height $h$ must satisfy $2^h \geq n!$, so $h \geq \log_2(n!) = \Omega(n \log n)$.
|
|
232
|
+
- By Stirling's formula: $\log_2(n!) \approx n \log_2 n - n \log_2 e + O(\log n)$.
|
|
233
|
+
|
|
234
|
+
**Breaking the bound:**
|
|
235
|
+
- Non-comparison sorts can surpass $\Omega(n \log n)$: counting sort $O(n+k)$, radix sort $O(d(n+k))$ -- but require special structure in the input.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## 14. Algorithm Design Paradigms -- Summary Table
|
|
240
|
+
|
|
241
|
+
| Paradigm | Key Idea | When to Use | Canonical Example |
|
|
242
|
+
|----------|---------|-------------|-------------------|
|
|
243
|
+
| Divide-and-Conquer | Decompose -> recurse -> combine | Problem naturally decomposes into independent subproblems | Merge sort, Binary search |
|
|
244
|
+
| Dynamic Programming | Overlapping subproblems + optimal substructure; fill a table to avoid recomputation | Severe subproblem overlap with optimal substructure | Floyd-Warshall, Knapsack |
|
|
245
|
+
| Greedy | Choose locally optimal at each step | Matroid structure or provable greedy correctness | Kruskal MST, Huffman coding |
|
|
246
|
+
| Backtracking | Systematic search + pruning | Search space is finite but large | N-Queens, CSP |
|
|
247
|
+
| Branch-and-Bound | Search + maintain upper/lower bounds for pruning | Optimization problems where bounds on solutions can be computed | TSP (exact), Integer programming |
|
|
248
|
+
| Randomized | Introduce randomness to reduce expected cost or error probability | Probabilistic guarantees or expected efficiency needed | Miller-Rabin, Randomized quicksort |
|
|
249
|
+
| Reduction | Transform a problem into a known problem | An efficient algorithm already exists for the target problem | SAT -> 3SAT (Cook-Levin) |
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
*This file provides mathematical references and historical context for the algorithmic-thinking skill, covering core results from ancient Greece to modern computational theory.*
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: axiomatization
|
|
3
|
+
description: |
|
|
4
|
+
Trigger when examining the reasonableness of a theory's assumptions, constructing an axiom system, discovering internal contradictions, verifying consistency/independence/completeness; or defining axioms and invariants for an algorithm/operator/structure and checking their computability.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 📐 Axiomatization
|
|
8
|
+
|
|
9
|
+
> "Starting from minimal assumptions, building through rigorous logic — examining premises matters more than checking conclusions"
|
|
10
|
+
>
|
|
11
|
+
> — Euclid's *Elements*, Hilbert's *Foundations of Geometry*, Axiomatic Set Theory
|
|
12
|
+
|
|
13
|
+
## Core Principle
|
|
14
|
+
|
|
15
|
+
**Any theoretical system can (and should) be reduced to a set of fundamental axioms, from which all theorems in that domain can be derived through rigorous logical inference. Examining premises matters more than checking conclusions — if premises are wrong, no amount of elegant reasoning can save the conclusion.**
|
|
16
|
+
|
|
17
|
+
> **Mathematical Formalization**
|
|
18
|
+
>
|
|
19
|
+
> The quality of an axiom system is judged by the following core criteria:
|
|
20
|
+
>
|
|
21
|
+
> - **Consistency**: The axioms must not contradict one another. If the axiom set is contradictory, then by the principle of explosion (*ex falso quodlibet*) any proposition can be derived, and the system collapses.
|
|
22
|
+
> - **Independence**: No axiom should be derivable from the others.
|
|
23
|
+
> - **Completeness**: All true propositions in the domain should be provable from the axioms (note: completeness varies with the order of the logical system; see Method).
|
|
24
|
+
>
|
|
25
|
+
> **Categoricity**: An axiom system is categorical if all its models are isomorphic to one another. A categorical system uniquely determines the structure of its subject — for example, the second-order Peano axioms are categorical (the unique model is the natural number structure ℕ), whereas the first-order Peano axioms are not (non-standard models exist).
|
|
26
|
+
>
|
|
27
|
+
> **Relative Consistency**: If all axioms of system A can be embedded as true propositions in system B, and system B is known to be consistent, then system A is consistent. This is the standard method for proving consistency — for example, the consistency of PA can be proved within ZFC (the axioms of PA are all true in ZFC), but the consistency of ZFC itself can only be relatively proved in a stronger system (e.g., ZFC + the existence of an inaccessible cardinal).
|
|
28
|
+
>
|
|
29
|
+
> See `original-texts.md` for detailed mathematical foundations.
|
|
30
|
+
|
|
31
|
+
## GPU-Friendliness (Cross-Cutting Check)
|
|
32
|
+
|
|
33
|
+
When axiomatization is used to **define axioms and invariants for an algorithm/operator/structure**, the defined structures must pass the eight-dimension gate of `../../references/gpu-friendly-math.md` — "axiomatically self-consistent" does not mean "computable":
|
|
34
|
+
|
|
35
|
+
- **Friendly**: The axiom system naturally reduces to linear algebra — group action axioms → equivariant layers = GEMM (weight sharing along orbits); ring axioms relaxed to semirings → generalized GEMM (min-plus / tropical). Passes dimensions 1/2/3.
|
|
36
|
+
- **Adaptable**: Essentially discrete/symbolic axioms (hard Top-K, exact finite-field arithmetic, symbolic proof search) block gradients → relax the axioms: tropical semiring piecewise-linear gating, Gumbel-softmax, differentiable surrogates.
|
|
37
|
+
- **Anti-pattern**: Invariants requiring global symbolic reasoning or exact discrete satisfaction (e.g., exact Čech cohomology, exact orbit-equality testing) → "beautiful but not computable"; switch to local/continuous approximations.
|
|
38
|
+
|
|
39
|
+
Eight-dimension minimum assessment (formal terminology): **Tensorization** — whether axiom instances can be batch-checked; **GEMM-Mappability** — whether operational axioms can reduce to linear/semiring matrix multiplication; **Complexity** — whether consistency/independence checking degenerates to undecidable or exponential search; **Memory & KV-Cache** — whether invariants require a global state table; **Low-Precision Stability** — whether axioms tolerate approximate equalities; **Parallelism & Communication** — whether local axioms can be verified in blocks; **Sparsity Structure** — whether the constraint graph is structured; **Operator Fusion** — whether axiom checks can be compiled into lightweight loss/guard kernels.
|
|
40
|
+
|
|
41
|
+
> In conjunction with `../../references/books/abstract-algebra.md` (group/ring/field axioms, ring→semiring relaxation) and `../../references/books/algebraic-geometry-rising-sea.md` (sheaf/category/cohomology axioms).
|
|
42
|
+
|
|
43
|
+
## When NOT to Use
|
|
44
|
+
|
|
45
|
+
- **Pure factual queries** (e.g., "what is this formula") — no theoretical system needs examination.
|
|
46
|
+
- **The user has already accepted a theoretical framework and only needs to apply it** — the axioms are already chosen.
|
|
47
|
+
- **Empirical questions** (requiring experimental data rather than logical reasoning) — axiomatization cannot substitute for empirical evidence.
|
|
48
|
+
- **Defaulting to classical tools in a constructive context** — if the user requires constructive proofs, the law of excluded middle or the axiom of choice should not be assumed by default.
|
|
49
|
+
|
|
50
|
+
## When to Use
|
|
51
|
+
|
|
52
|
+
- When reading a paper, examining whether its theoretical assumptions are reasonable and self-consistent.
|
|
53
|
+
- When building a theoretical framework, starting from the minimal axiom set.
|
|
54
|
+
- When discovering contradictions or inconsistencies within a theoretical system.
|
|
55
|
+
- When determining whether a formal system is decidable or complete.
|
|
56
|
+
- When comparing the consequences of different axiom choices (constructive vs. classical, first-order vs. second-order).
|
|
57
|
+
- **Defining axioms and invariants for an operator/structure** and checking their computability on GPU.
|
|
58
|
+
|
|
59
|
+
## Method
|
|
60
|
+
|
|
61
|
+
### Step 1: Identify the Axioms
|
|
62
|
+
Find all fundamental assumptions (axioms) of the theoretical system, distinguishing: **explicit axioms** (clearly stated by the author), **implicit axioms** (unstated but actually used in the argument), **background axioms** (default assumptions of the larger framework, e.g., defaulting to ZFC).
|
|
63
|
+
|
|
64
|
+
> "Every science truly matures only after it has been axiomatized." — Hilbert
|
|
65
|
+
|
|
66
|
+
### Step 2: Specify the Formal Language
|
|
67
|
+
The expressive power of an axiom system depends on the chosen formal language; before axiomatizing, one must specify:
|
|
68
|
+
|
|
69
|
+
- **First-order Logic**: Quantifiers range only over individual elements. Expressive power is limited, but it admits a complete proof theory (Gödel's Completeness Theorem: the provable coincides with the valid). Models of a first-order theory are not unique (non-categoricity), but the proof system is sound and complete.
|
|
70
|
+
- **Second-order Logic**: Quantifiers may range over subsets and functions. Greater expressive power (can express categoricity, e.g., second-order Peano uniquely characterizes ℕ), but no complete proof system exists — its semantics cannot be fully captured by any recursive axiom set.
|
|
71
|
+
- **Constructive / Intuitionistic Logic**: Rejects the law of excluded middle (∀P, P∨¬P). Existential proofs must provide an explicit witness: proving ∃x.φ(x) requires constructing a specific x₀ such that φ(x₀) holds. Inference rules are stricter, but all proofs are guaranteed to be computable.
|
|
72
|
+
|
|
73
|
+
> Choosing a language is not merely a technical detail but a fundamental philosophical decision: first-order logic commits to an exhaustible proof system, second-order logic commits to structural uniqueness, constructive logic commits to computability.
|
|
74
|
+
|
|
75
|
+
### Step 3: Check Consistency
|
|
76
|
+
Check whether the axioms contradict one another. If the axiom set is contradictory, then by the principle of explosion any proposition can be derived, and the system collapses. Methods:
|
|
77
|
+
|
|
78
|
+
- Look for two axioms P and ¬P that hold simultaneously.
|
|
79
|
+
- Attempt to construct a model in which all axioms are simultaneously true (model existence ⇒ consistency).
|
|
80
|
+
- **Relative consistency proof**: Embed the axioms of system A as true propositions in system B; if B is known consistent, then A is consistent. For example, PA is consistent (the PA axioms are all true in the von Neumann natural number model within ZFC).
|
|
81
|
+
- **Finite model method**: For weaker formal systems (propositional logic, certain finitely axiomatized weak arithmetics), construct a finite model to directly verify consistency.
|
|
82
|
+
|
|
83
|
+
### Step 4: Check Independence
|
|
84
|
+
Check whether any axiom can be derived from the others. If so, it is not a true axiom but a theorem. Methods:
|
|
85
|
+
|
|
86
|
+
- For each axiom A, construct a model in which A fails but all other axioms hold.
|
|
87
|
+
- If such a model exists, then A is independent of the other axioms.
|
|
88
|
+
- Classical examples: the parallel postulate is independent of the remaining axioms of Euclidean geometry (non-Euclidean geometry models); the Axiom of Choice is independent of ZF (Cohen's forcing method).
|
|
89
|
+
|
|
90
|
+
### Step 5: Assess Completeness
|
|
91
|
+
Check whether the axiom system is strong enough to derive all important results in the domain. Completeness properties vary with the logical order and the content of the theory:
|
|
92
|
+
|
|
93
|
+
- **First-order theories can be complete**: Dense Linear Order (DLO), Algebraically Closed Fields of fixed characteristic (ACF_p), and other first-order theories are complete and decidable. Completeness ≠ absence of open problems; completeness means that for every sentence φ, either φ or ¬φ is provable from the axioms.
|
|
94
|
+
- **Scope of Gödel's Incompleteness Theorems**: Incompleteness specifically applies to first-order recursively enumerable theories containing sufficient arithmetic (PA, ZFC, etc.), in which there necessarily exist undecidable propositions (e.g., the Gödel sentence in PA, CH in ZFC).
|
|
95
|
+
- **Decidability is an independent question**: A complete first-order theory is typically decidable (there exists an algorithm to determine whether any formula is a theorem), but an incomplete theory is not necessarily undecidable — decidability depends on whether an algorithm for deciding theorems exists, not on whether all propositions have proofs.
|
|
96
|
+
|
|
97
|
+
### Step 6: Analyze the Impact of Axiom Choice
|
|
98
|
+
What happens to the theory if an axiom is changed or relaxed? Many branches of mathematics developed precisely through altering axioms:
|
|
99
|
+
|
|
100
|
+
- Changing the parallel postulate → non-Euclidean geometries (hyperbolic geometry, elliptic geometry).
|
|
101
|
+
- **Constructive vs. Classical**: Removing the law of excluded middle → constructive mathematics (Brouwer, Heyting), where existence proofs must provide explicit constructions; adding the Axiom of Choice → stronger classical mathematics, but yielding non-constructive proofs (e.g., the Banach-Tarski paradox).
|
|
102
|
+
- **Zorn's Lemma, the Well-Ordering Theorem, and the Axiom of Choice**: These three are equivalent within ZF — accepting any one means accepting all; this equivalence itself is non-constructive.
|
|
103
|
+
- Changing the induction axiom → non-standard analysis.
|
|
104
|
+
|
|
105
|
+
### Step 7: Apply and Conclude
|
|
106
|
+
Synthesize the above analysis and give an overall assessment of the axiom system: Is it suitable for its intended domain of application? Are there axioms that need to be supplemented or revised? What are the limitations of the system (undecidable propositions, non-categoricity, lack of constructivity, etc.)?
|
|
107
|
+
|
|
108
|
+
## Common Errors
|
|
109
|
+
|
|
110
|
+
| Error | Critique | Correct Approach |
|
|
111
|
+
|---|---|---|
|
|
112
|
+
| Confusing axioms with theorems | Treating a proposition that needs proof as a self-evident axiom | Clearly distinguish: axioms are the starting point, theorems are the endpoint |
|
|
113
|
+
| Overlooking implicit assumptions | Using unstated assumptions in the argument, making the reasoning imprecise | Scrutinize every step of reasoning, exposing all hidden assumptions |
|
|
114
|
+
| Accepting a contradictory axiom set | From contradictory axioms, any conclusion can be derived (principle of explosion) | Verify the consistency of the axiom set |
|
|
115
|
+
| Treating axioms as truths | Axioms are merely conventions about starting points, not absolute truths | The value of axioms lies in the usefulness of their consequences |
|
|
116
|
+
| Ignoring the possibility of axiom change | Assuming axioms are the only possible choice | Consider what new theories arise from changing axioms |
|
|
117
|
+
| Confusing first-order and second-order completeness | First-order logic has a complete proof system (Gödel completeness); second-order does not; "completeness" has different meanings in each | Distinguish proof-theoretic completeness from model-theoretic completeness; specify the logical order |
|
|
118
|
+
| Neglecting constructive obligations | Using the law of excluded middle in a constructive context, or proving only ¬¬∃x.φ(x) without providing a witness | Constructive proofs of ∃x.φ(x) must provide an explicit witness x₀; the law of excluded middle is prohibited in constructive contexts |
|
|
119
|
+
| Assuming all incomplete theories are equally incomplete | Different incomplete theories vary enormously in the number and nature of their undecidable propositions | Analyze the specific theory: which propositions are undecidable, and what are their structural properties |
|
|
120
|
+
| Forcing discrete/symbolic axioms into training | Essentially discrete/symbolic axiom systems are non-differentiable and non-computable | Pass the eight-dimension gate; relax to differentiable/approximate forms when necessary (tropical semiring, Gumbel-softmax) |
|
|
121
|
+
|
|
122
|
+
## Operating Procedure
|
|
123
|
+
|
|
124
|
+
When this skill is triggered, the output must contain:
|
|
125
|
+
|
|
126
|
+
1. **Axiom Inventory**: `[Axiom N]: [content] (source: explicit / implicit / background)`
|
|
127
|
+
2. **Formal Language Specification**: `[Language type]: [first-order / second-order / constructive] (rationale: ...)`
|
|
128
|
+
3. **Consistency Check**: `✅ Consistent` or `❌ Contradiction found: [specific contradiction]`; if using relative consistency, note the target system of the embedding
|
|
129
|
+
4. **Independence Analysis**: Flag any redundant axioms `⚠️ [Axiom N] may be derivable from [Axiom M]`
|
|
130
|
+
5. **Completeness Assessment**: `✅ Complete` / `⚠️ Incomplete: missing [X]`; note whether Gödel's incompleteness theorems apply, and indicate decidability
|
|
131
|
+
6. **Axiom Change Analysis**: If a particular axiom is changed (removing excluded middle, adding/removing the Axiom of Choice), how does the theory change?
|
|
132
|
+
7. **Conclusion**: Overall assessment of the system's consistency, independence, completeness, categoricity, and decidability
|
|
133
|
+
8. **[GPU Feasibility]** (if used for algorithm/operator/structure design) — structures derived from the defined axioms and invariants pass the eight-dimension gate of `../../references/gpu-friendly-math.md`, rated friendly / retrofittable / unfriendly + adaptation recommendations
|
|
134
|
+
|
|
135
|
+
**Output must never provide analysis alone without a conclusion. Every item must receive a definitive verdict — no hedging.**
|
|
136
|
+
|
|
137
|
+
## Relations to Other Skills
|
|
138
|
+
|
|
139
|
+
- **Logic Deduction**: Axiomatization requires logical deduction as its inference tool; formal inference rules are the proof mechanism of the axiom system.
|
|
140
|
+
- **Abstraction**: Axiomatization is abstraction at the highest level — reducing everything to minimal assumptions.
|
|
141
|
+
- **Modeling**: An axiom system is itself a kind of model, whose applicability to reality must be verified; model theory directly serves consistency and independence checks.
|
|
142
|
+
- **Induction and Analogy**: The choice of axioms is often inspired through induction and analogy.
|
|
143
|
+
- **Algorithmic Thinking**: Formal systems and decidability are directly linked — decidable theories admit algorithmic theorem-decision procedures; undecidable theories do not.
|
|
144
|
+
- **Modern Math Activation**: `../../references/books/abstract-algebra.md` (axiom systems / groups, rings, fields; ring→semiring relaxation), `../../references/books/algebraic-geometry-rising-sea.md` (sheaf/category/cohomology foundations).
|
|
@@ -5,6 +5,8 @@ description: |
|
|
|
5
5
|
English: Trigger when examining the reasonableness of a theory's assumptions, constructing an axiom system, discovering internal contradictions, verifying consistency/independence/completeness; or defining axioms and invariants for an algorithm/operator/structure and checking their computability.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
> **语言路由**:若用户消息为英文,请读取并遵循同目录下的 `SKILL.en.md`,按其操作规程以英文输出;中文消息则继续使用本文件。
|
|
9
|
+
|
|
8
10
|
# 📐 公理化思想 / Axiomatization
|
|
9
11
|
|
|
10
12
|
> "从最少假设出发,用严格逻辑构建——审查前提比检查结论更重要"
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Mathematical Sources and Classic Texts
|
|
2
|
+
|
|
3
|
+
## Euclid's *Elements* (~300 BC)
|
|
4
|
+
|
|
5
|
+
**The Axiomatic System (Five Postulates)**:
|
|
6
|
+
|
|
7
|
+
> 1. A straight line segment can be drawn joining any two points.
|
|
8
|
+
> 2. Any straight line segment can be extended indefinitely in a straight line.
|
|
9
|
+
> 3. Given any straight line segment, a circle can be drawn having the segment as radius and one endpoint as center.
|
|
10
|
+
> 4. All right angles are congruent.
|
|
11
|
+
> 5. (Parallel Postulate) If two lines are drawn which intersect a third in such a way that the sum of the inner angles on one side is less than two right angles, then the two lines inevitably must intersect on that side if extended far enough.
|
|
12
|
+
|
|
13
|
+
1. A straight line segment can be drawn joining any two points.
|
|
14
|
+
2. Any straight line segment can be extended indefinitely in a straight line.
|
|
15
|
+
3. Given any straight line segment, a circle can be drawn having the segment as radius and one endpoint as center.
|
|
16
|
+
4. All right angles are congruent.
|
|
17
|
+
5. (Parallel Postulate) If two lines are drawn which intersect a third in such a way that the sum of the inner angles on one side is less than two right angles, then the two lines inevitably must intersect on that side if extended far enough.
|
|
18
|
+
|
|
19
|
+
**Significance**: The first axiomatic system in human history, demonstrating that 465 propositions can be rigorously derived from 5 postulates and 5 common notions through strict logical deduction.
|
|
20
|
+
|
|
21
|
+
## The Parallel Postulate Controversy (~300 BC – 1820s)
|
|
22
|
+
|
|
23
|
+
Euclid's fifth postulate was disquieting from the very beginning: its formulation is far more complex than the first four, resembling a theorem rather than an axiom. For two millennia, countless mathematicians attempted to derive it from the first four postulates, all to no avail.
|
|
24
|
+
|
|
25
|
+
Key figures and developments:
|
|
26
|
+
- **Saccheri** (1733): Attempted to derive a contradiction by assuming the parallel postulate false; though unsuccessful, he was the first to systematically explore the properties of non-Euclidean geometry.
|
|
27
|
+
- **Lambert** (1766): Pursued a similar approach, investigating more deeply the geometric consequences under the hypothesis of the obtuse angle and the hypothesis of the acute angle.
|
|
28
|
+
- **Gauss** (~1820): Privately recognized the logical consistency of non-Euclidean geometry but refrained from publishing for fear of controversy.
|
|
29
|
+
- **Bolyai** (1832) & **Lobachevsky** (1829): Independently published hyperbolic geometry — a geometry in which the parallel postulate is false yet the system is entirely self-consistent.
|
|
30
|
+
|
|
31
|
+
> "I have created a new universe from nothing." — Bolyai
|
|
32
|
+
|
|
33
|
+
**Significance**: The parallel postulate is independent of the other four — it can neither be proved nor refuted from them. This is the earliest instance of axiom independence, revealing the profound fact that "axioms cannot be forced to be true" a full century before Gödel's incompleteness theorems. The birth of non-Euclidean geometry directly gave rise to Riemannian geometry, which later became the mathematical foundation of general relativity.
|
|
34
|
+
|
|
35
|
+
## Hilbert's *Foundations of Geometry* (1899)
|
|
36
|
+
|
|
37
|
+
> "We must be able to replace 'points, lines, planes' with 'tables, chairs, beer mugs' — as long as they satisfy the relations between the axioms."
|
|
38
|
+
|
|
39
|
+
Hilbert proposed more rigorous requirements for axiomatic systems:
|
|
40
|
+
- **Consistency**: The axioms must not contradict one another
|
|
41
|
+
- **Independence**: No axiom can be derived from the others
|
|
42
|
+
- **Completeness**: All geometric propositions must be decidable within the system
|
|
43
|
+
|
|
44
|
+
## Peano Axioms for Arithmetic (1889)
|
|
45
|
+
|
|
46
|
+
Peano formulated five axioms for the natural numbers, constituting the most classical form of the axiomatization of arithmetic:
|
|
47
|
+
|
|
48
|
+
> P1. 0 is a natural number.
|
|
49
|
+
> P2. Every natural number n has a unique successor S(n).
|
|
50
|
+
> P3. 0 is not the successor of any natural number.
|
|
51
|
+
> P4. Different natural numbers have different successors.
|
|
52
|
+
> P5. (Induction) If P(0) and P(n) → P(S(n)), then P holds for all natural numbers.
|
|
53
|
+
|
|
54
|
+
**Significance**: First-order Peano Arithmetic (PA) is the standard object of study in Gödel's incompleteness theorems — PA is consistent but incomplete. Second-order Peano Arithmetic is categorical (see below), uniquely characterizing the structure of the natural numbers.
|
|
55
|
+
|
|
56
|
+
## Zermelo-Fraenkel Set Theory with Choice (ZFC, 1908–1922)
|
|
57
|
+
|
|
58
|
+
ZFC is the standard axiomatic foundation of contemporary mathematics, consisting of 9 axioms:
|
|
59
|
+
|
|
60
|
+
> Z1. Extensionality: Sets with the same elements are equal.
|
|
61
|
+
> Z2. Empty Set: ∅ exists.
|
|
62
|
+
> Z3. Pairing: {a, b} exists.
|
|
63
|
+
> Z4. Union: The union of any family of sets exists.
|
|
64
|
+
> Z5. Power Set: P(A) exists.
|
|
65
|
+
> Z6. Infinity: An infinite set exists.
|
|
66
|
+
> Z7. Replacement (Fraenkel's addition): Images of functions on sets are sets.
|
|
67
|
+
> Z8. Foundation: Every nonempty set has a minimal element; no set contains itself.
|
|
68
|
+
> Z9. Axiom of Choice (AC): For any family of nonempty sets, a choice function exists.
|
|
69
|
+
|
|
70
|
+
**The Axiom of Choice Controversy**: AC seems intuitive yet leads to counterintuitive conclusions — most famously the **Banach-Tarski Paradox** (1924): a ball can be cut into five pieces which, after rotation and reassembly, form two balls each identical in size to the original. Zermelo used AC to prove that every set can be well-ordered (1904), a result that is itself deeply puzzling.
|
|
71
|
+
|
|
72
|
+
> "The Axiom of Choice is obviously true, the Well-Ordering Theorem obviously false, and who can tell the difference?" — Jerry Bona
|
|
73
|
+
|
|
74
|
+
**Significance**: ZFC's 9 axioms suffice to derive virtually all of modern mathematics. Yet ZFC itself is subject to Gödel's incompleteness theorems — ZFC is consistent but cannot prove its own consistency from within.
|
|
75
|
+
|
|
76
|
+
## Continuum Hypothesis (Cantor 1878, Gödel 1940, Cohen 1963)
|
|
77
|
+
|
|
78
|
+
Cantor proposed in 1878 that the cardinality of the real numbers (the continuum) is exactly ℵ₁ — that is, there exists no infinite cardinal strictly between the cardinality of the natural numbers ℵ₀ and the cardinality of the reals.
|
|
79
|
+
|
|
80
|
+
> CH: 2^ℵ₀ = ℵ₁. There is no cardinal between ℵ₀ and 2^ℵ₀.
|
|
81
|
+
|
|
82
|
+
- **Gödel** (1940): Proved that CH is consistent with ZFC — CH cannot be refuted within ZFC. He constructed the constructible universe L, in which CH holds.
|
|
83
|
+
- **Cohen** (1963): Using the forcing method, proved that ¬CH is also consistent with ZFC — CH cannot be proved within ZFC. This marked the birth of forcing.
|
|
84
|
+
|
|
85
|
+
**Significance**: CH is the most concrete instance of Gödel's incompleteness theorems — a natural proposition about the size of infinity that is neither provable nor refutable within the standard axiomatic system of mathematics. This profoundly reveals the limitations of axiomatic systems: even the most fundamental mathematical questions may exceed the power of the axioms.
|
|
86
|
+
|
|
87
|
+
## Gödel's Incompleteness Theorems (1931)
|
|
88
|
+
|
|
89
|
+
> **First Incompleteness Theorem**: In any consistent axiomatic system that includes arithmetic, there exist propositions that can neither be proved nor refuted.
|
|
90
|
+
> **Second Incompleteness Theorem**: A consistent axiomatic system cannot prove its own consistency from within.
|
|
91
|
+
|
|
92
|
+
**Implications for the axiomatic program**: A perfect axiomatization is impossible. But this does not mean axiomatization is without value — it helps us understand the boundaries of a theory.
|
|
93
|
+
|
|
94
|
+
## Whitehead & Russell, *Principia Mathematica* (1910–1913)
|
|
95
|
+
|
|
96
|
+
An attempt to reduce all of mathematics to logic and set-theoretic axioms — the pinnacle of the axiomatization program. Although Gödel later proved the impossibility of such a complete reduction, *Principia* demonstrated the enormous power of the axiomatic method.
|
|
97
|
+
|
|
98
|
+
## Categoricity (Veblen 1904)
|
|
99
|
+
|
|
100
|
+
Veblen introduced the concept of categoricity in 1904: an axiomatic system is called *categorical* if all of its models are isomorphic — that is, the axioms uniquely characterize the object of study.
|
|
101
|
+
|
|
102
|
+
> Categoricity = all models of the axiom system are isomorphic.
|
|
103
|
+
|
|
104
|
+
**Key examples**:
|
|
105
|
+
- **Second-order Peano Arithmetic** is categorical — all models satisfying second-order PA are the standard natural number structure ℕ, unique up to isomorphism.
|
|
106
|
+
- **First-order Peano Arithmetic** is not categorical — there exist non-standard models containing "infinitely large" natural numbers (Skolem 1934).
|
|
107
|
+
- **First-order theory of real closed fields** is categorical (Tarski) — it uniquely characterizes ℝ.
|
|
108
|
+
|
|
109
|
+
**Significance**: Categoricity is the ideal property of an axiomatic system — the axioms truly "pin down" a unique mathematical object. However, the Löwenheim-Skolem theorem shows that any first-order axiomatic system with an infinite model also has infinite models of arbitrary cardinality, and therefore a first-order system can never be categorical (unless it has only finite models). Second-order systems can be categorical, but second-order logic lacks a complete proof system. This is the fundamental tension between first-order and second-order approaches in the axiomatic method.
|
|
110
|
+
|
|
111
|
+
## Tarski's Axiomatization of Geometry (1926–1959)
|
|
112
|
+
|
|
113
|
+
Tarski axiomatized Euclidean plane geometry in first-order logic, using only points together with two primitive relations: betweenness and equidistance.
|
|
114
|
+
|
|
115
|
+
> Tarski's geometry = first-order logic + points + betweenness + equidistance, ~10 axioms (7 in the short version).
|
|
116
|
+
|
|
117
|
+
**Decidability and Completeness**: Tarski proved in 1959 that this axiomatic system is **complete and decidable** — every geometric proposition can be decided within the system, and an algorithm exists to perform this decision automatically.
|
|
118
|
+
|
|
119
|
+
**Contrast with Gödel**: This may seem to contradict Gödel's incompleteness theorems. The crucial point is that Tarski's geometry does not contain arithmetic — it cannot encode the natural numbers, so the condition "includes arithmetic" required by Gödel's theorem is not satisfied. This profoundly illustrates that the completeness or incompleteness of an axiomatic system depends on whether it can express sufficient arithmetic.
|
|
120
|
+
|
|
121
|
+
**Significance**: Tarski's result is a marvel of axiomatic methodology — there exist first-order axiomatic systems that are both complete and decidable. The price is that one must sacrifice the ability to express arithmetic.
|
|
122
|
+
|
|
123
|
+
## Bourbaki (1935–)
|
|
124
|
+
|
|
125
|
+
Bourbaki is the collective pseudonym of a group of French mathematicians dedicated to systematically reconstructing all of mathematics using the axiomatic method. Their monumental work, *Éléments de mathématique*, is grounded in set theory and builds up, layer by layer, the branches of algebra, analysis, topology, differential geometry, and more.
|
|
126
|
+
|
|
127
|
+
> "Mathematics is not about numbers, but about structures." — The Bourbaki spirit
|
|
128
|
+
|
|
129
|
+
**Three Mother Structures**:
|
|
130
|
+
- **Algebraic Structures**: Groups, rings, fields — characterizing the laws of operation and composition.
|
|
131
|
+
- **Order Structures**: Partial orders, total orders, lattices — characterizing the laws of comparison and ordering.
|
|
132
|
+
- **Topological Structures**: Topological spaces, metric spaces — characterizing the laws of continuity and proximity.
|
|
133
|
+
|
|
134
|
+
Bourbaki held that all mathematical structures can be generated through the combination of these three mother structures. This program profoundly influenced the classification and pedagogy of modern mathematics.
|
|
135
|
+
|
|
136
|
+
**Significance**: Bourbaki elevated axiomatization from "laying foundations for a single discipline" to "building a unified architecture for all of mathematics." Although category theory later provided a more flexible perspective, Bourbaki's structuralism remains one of the core legacies of mathematical axiomatic thought.
|
|
137
|
+
|
|
138
|
+
## Constructive Mathematics (Brouwer 1908, Heyting 1930, Bishop 1967)
|
|
139
|
+
|
|
140
|
+
Constructive mathematics rejects the Law of Excluded Middle and the Axiom of Choice in classical logic, requiring that every existence proof must provide a concrete construction method — that is, "there exists x" must be accompanied by "how to find x."
|
|
141
|
+
|
|
142
|
+
> "To exist is to construct." — Core credo of constructive mathematics
|
|
143
|
+
|
|
144
|
+
**Key figures and systems**:
|
|
145
|
+
- **Brouwer** (1908–): Founder of intuitionism, held that mathematics is a free creation of the mind, and opposed treating the Law of Excluded Middle as universally valid.
|
|
146
|
+
- **Heyting** (1930): Established a formal axiomatic system for intuitionistic logic — intuitionistic logic (Heyting arithmetic).
|
|
147
|
+
- **Bishop** (1967): In *Foundations of Constructive Analysis*, demonstrated that constructive methods can reconstruct much of classical analysis without the Law of Excluded Middle and without the Axiom of Choice.
|
|
148
|
+
|
|
149
|
+
**Key differences between constructive logic and classical logic**:
|
|
150
|
+
- Excluded middle ¬¬P → P is not valid in constructive logic.
|
|
151
|
+
- AC is nearly unacceptable in constructive frameworks.
|
|
152
|
+
- Proving ¬P means constructing a function from P to contradiction; proving P ∨ Q means providing a proof of P or a proof of Q.
|
|
153
|
+
|
|
154
|
+
**Significance**: Constructive mathematics is not merely a philosophical stance but a practical necessity — computer-executable proofs must provide algorithms (i.e., constructions). This also has profound connections to Gödel's incompleteness theorems: if the Law of Excluded Middle is rejected, many classical "proofs" no longer hold, and the "incompleteness" profile of an axiomatic system changes accordingly.
|