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,204 @@
|
|
|
1
|
+
# Mathematical Sources and Classic Texts
|
|
2
|
+
|
|
3
|
+
## Fourier Transform (1822)
|
|
4
|
+
|
|
5
|
+
> "Any periodic function can be expressed as an infinite series of sine and cosine functions."
|
|
6
|
+
|
|
7
|
+
Fourier series: f(x) = a₀/2 + Σ[aₙcos(nx) + bₙsin(nx)]
|
|
8
|
+
|
|
9
|
+
Fourier transform: F(ω) = ∫f(t)e^(-iωt)dt
|
|
10
|
+
|
|
11
|
+
**Core idea**: A complex signal in the time domain may be simple in the frequency domain. The power of the transform lies in changing the representation of the problem.
|
|
12
|
+
|
|
13
|
+
**The magic of the transform**:
|
|
14
|
+
- Convolution in the time domain = multiplication in the frequency domain
|
|
15
|
+
- Differentiation in the time domain = multiplication (by iω) in the frequency domain
|
|
16
|
+
- This allows differential equations to be converted into algebraic equations
|
|
17
|
+
|
|
18
|
+
**Source**: Joseph Fourier, *Théorie analytique de la chaleur* (1822) — originally developed for heat conduction problems, its influence extends far beyond thermodynamics.
|
|
19
|
+
|
|
20
|
+
## Fast Fourier Transform — Cooley-Tukey Algorithm (1965)
|
|
21
|
+
|
|
22
|
+
> O(n log n) vs O(n²): Fourier transform went from theoretical tool to engineering reality.
|
|
23
|
+
|
|
24
|
+
**Core idea**: Exploiting a divide-and-conquer strategy, the complexity of the discrete Fourier transform (DFT) is reduced from O(n²) to O(n log n). For n = 10⁶ data points, this yields a speedup of approximately 10⁶/log(10⁶) ≈ 50,000×.
|
|
25
|
+
|
|
26
|
+
**Historical background**: Cooley & Tukey (1965) popularized the FFT, although the same idea can be traced back to Gauss (1805). It is widely regarded as the most important numerical algorithm of the 20th century.
|
|
27
|
+
|
|
28
|
+
**Applications**: Signal processing, image compression (JPEG), spectral analysis, large-integer multiplication, numerical solution of partial differential equations.
|
|
29
|
+
|
|
30
|
+
## Laplace Transform (1780s)
|
|
31
|
+
|
|
32
|
+
> L{f(t)} = ∫₀^∞ f(t)e^(-st)dt
|
|
33
|
+
|
|
34
|
+
**Core idea**: Convert differential equations into algebraic equations, solve them, and then apply the inverse transform to recover the solution. Compared with the Fourier transform, the Laplace transform can handle functions that do not converge (by introducing the convergence factor e^(-st)).
|
|
35
|
+
|
|
36
|
+
**Source**: Laplace developed this transform in the 1780s for probability theory; it was later systematically applied to circuit analysis by Heaviside.
|
|
37
|
+
|
|
38
|
+
## Wavelet Transform — Morlet (1980s), Daubechies (1988)
|
|
39
|
+
|
|
40
|
+
> Fourier tells you "what frequencies exist"; wavelets also tell you "when they exist."
|
|
41
|
+
|
|
42
|
+
**Core idea**: The Fourier transform has frequency resolution but no time resolution; the wavelet transform achieves time-frequency localization through scalable and translatable basis functions.
|
|
43
|
+
|
|
44
|
+
**History**: Morlet (1982) introduced the continuous wavelet transform in seismic signal analysis; Daubechies (1988) constructed compactly supported orthogonal wavelet bases, making the discrete wavelet transform a practical reality.
|
|
45
|
+
|
|
46
|
+
**Mathematical significance**: Wavelet bases are not a single family of trigonometric functions but are generated from a single mother wavelet ψ through scaling and translation: ψ_{a,b}(t) = |a|^(-1/2) ψ((t-b)/a). Multiresolution analysis (MRA) provides the unifying mathematical framework.
|
|
47
|
+
|
|
48
|
+
## Legendre Transform
|
|
49
|
+
|
|
50
|
+
> The duality transform in convex analysis: describes a convex function by its slopes instead of its values.
|
|
51
|
+
|
|
52
|
+
f*(p) = sup_x [px - f(x)]
|
|
53
|
+
|
|
54
|
+
**Core idea**: For a convex function, "function values" and "derivatives (slopes)" carry the same information — they are dual descriptions. This is a central instance of **duality** in mathematics.
|
|
55
|
+
|
|
56
|
+
**Dual roles in physics**:
|
|
57
|
+
- **Thermodynamics**: Entropy S ↔ Free energy F (dual via temperature T); Internal energy ↔ Gibbs energy
|
|
58
|
+
- **Mechanics**: Lagrangian L(v,q) ↔ Hamiltonian H(p,q) (dual via v ↔ p)
|
|
59
|
+
- **Optimization**: Primal problem ↔ Dual problem (Lagrangian duality)
|
|
60
|
+
|
|
61
|
+
**Source**: Legendre (1787) introduced it in the context of minimal surface problems; it has since become a cornerstone of convex analysis and the calculus of variations.
|
|
62
|
+
|
|
63
|
+
## Generating Functions — Euler (1748), Laplace
|
|
64
|
+
|
|
65
|
+
> Encode a sequence as coefficients of a power series; convolution becomes multiplication.
|
|
66
|
+
|
|
67
|
+
G(x) = Σ aₙxⁿ
|
|
68
|
+
|
|
69
|
+
**Core idea**: An infinite sequence {a₀, a₁, a₂, ...} is compressed into a single function G(x). Recurrence relations of the sequence become differential equations of the function; the convolution of two sequences becomes the product of two functions.
|
|
70
|
+
|
|
71
|
+
**Classical applications**:
|
|
72
|
+
- **Combinatorial counting**: Euler used generating functions to solve the integer partition problem
|
|
73
|
+
- **Probability theory**: Moment generating function M(t) = E[e^(tX)], characteristic function φ(t) = E[e^(itX)]
|
|
74
|
+
- **Number theory**: The Riemann ζ function is essentially the generating function of the prime distribution
|
|
75
|
+
- **Solving recurrences**: Fibonacci recurrence → generating function → closed-form solution
|
|
76
|
+
|
|
77
|
+
**Source**: Euler, *Introductio in analysin infinitorum* (1748); Laplace made systematic use of generating functions in probability theory.
|
|
78
|
+
|
|
79
|
+
## Conformal Mapping — Riemann Mapping Theorem (1851)
|
|
80
|
+
|
|
81
|
+
> Any simply connected domain can be conformally mapped onto the unit disk.
|
|
82
|
+
|
|
83
|
+
**Core idea**: Conformal mappings preserve angles and local shapes but may distort sizes and global shapes. Under a complex analytic function f(z), infinitesimal circles remain circles, merely scaled and rotated.
|
|
84
|
+
|
|
85
|
+
**Mathematical foundation**: The Riemann mapping theorem (1851) — one of the most profound results in complex analysis — guarantees the existence of such a mapping.
|
|
86
|
+
|
|
87
|
+
**Applications**:
|
|
88
|
+
- **2D boundary value problems**: Map a complex boundary region to a simple region (disk / half-plane), solve there, and map back
|
|
89
|
+
- **Fluid mechanics**: Classical solution method for potential flow problems
|
|
90
|
+
- **Aerodynamics**: Airfoil design (Joukowski transform z → z + 1/z)
|
|
91
|
+
- **Electrostatics**: Potential computation in complex geometries
|
|
92
|
+
|
|
93
|
+
## Z-Transform — Discrete Counterpart of Laplace
|
|
94
|
+
|
|
95
|
+
> X(z) = Σ x[n]z^(-n) — the Laplace transform for the sampled world.
|
|
96
|
+
|
|
97
|
+
**Core idea**: The Laplace transform handles continuous-time signals s = σ + iω; the Z-transform handles discrete-time signals z = re^(iω). The two are related by setting z = e^(sT).
|
|
98
|
+
|
|
99
|
+
**Central role in digital signal processing**:
|
|
100
|
+
- System stability analysis: the unit circle |z| = 1 corresponds to the frequency axis; poles inside the circle = stable
|
|
101
|
+
- Digital filter design: transfer functions of FIR / IIR filters are expressed directly in terms of the Z-transform
|
|
102
|
+
- Difference equations → algebraic equations (exactly analogous to how the Laplace transform converts differential equations → algebraic equations)
|
|
103
|
+
|
|
104
|
+
**History**: Introduced in 1947 by Hurewicz et al. in the context of sampled-data control systems; the name "Z-transform" was coined by Ragazzini & Zadeh (1952).
|
|
105
|
+
|
|
106
|
+
## Plancherel Theorem / Parseval's Theorem — Transforms Preserve Information
|
|
107
|
+
|
|
108
|
+
> ∫|f(t)|²dt = ∫|F(ω)|²dω — energy is conserved between time domain and frequency domain.
|
|
109
|
+
|
|
110
|
+
**Core idea**: A good transform does not lose information — the total energy (the square of the L² norm) is exactly the same before and after the transform. This means the transform is an **isometry**.
|
|
111
|
+
|
|
112
|
+
**Parseval's theorem** (1799): Fourier series form — Σ|aₙ|² + Σ|bₙ|² = (1/π)∫|f(x)|²dx
|
|
113
|
+
|
|
114
|
+
**Plancherel theorem** (1910): Fourier transform form — ∫|f|² = ∫|F|², establishing the unitarity of the transform on L² space.
|
|
115
|
+
|
|
116
|
+
**Philosophical implication**: Invertible transforms guarantee conservation of information — we can freely switch perspectives without losing anything. This is the mathematical foundation of "reversibility" in the theory of transforms.
|
|
117
|
+
|
|
118
|
+
## Mellin Transform — Scaling Analysis
|
|
119
|
+
|
|
120
|
+
> M{f}(s) = ∫₀^∞ f(t)t^(s-1)dt — the Fourier transform under scaling changes.
|
|
121
|
+
|
|
122
|
+
**Core idea**: Substituting t = e^(-x), the Mellin transform becomes a Fourier transform. It is naturally dual to the **scaling** operation — scaling f(at) merely multiplies by a^(-s) in the Mellin domain.
|
|
123
|
+
|
|
124
|
+
**Key applications**:
|
|
125
|
+
- **Analytic number theory**: The Mellin transform representation of the Riemann ζ function is the bridge to the prime counting function
|
|
126
|
+
- **Asymptotic analysis**: Mellin transform techniques can extract asymptotic expansions of functions (leading term + correction terms)
|
|
127
|
+
- **Fractals and self-similarity**: Self-similar functions have particularly simple representations in Mellin space
|
|
128
|
+
|
|
129
|
+
**Source**: Hjalmar Mellin (1904) developed it systematically; earlier roots can be traced to Euler's work on the ζ function.
|
|
130
|
+
|
|
131
|
+
## Radon Transform (1917) — Mathematical Basis of CT Scanning
|
|
132
|
+
|
|
133
|
+
> Integrate a function along lines to get "projections"; inverse transform reconstructs the original from projections.
|
|
134
|
+
|
|
135
|
+
R{f}(θ, s) = ∫ f(x·nθ + tnθ⊥)dt (line integral along direction θ)
|
|
136
|
+
|
|
137
|
+
**Core idea**: Projections of an object in all directions contain sufficient information to completely reconstruct the object. This is the mathematical foundation of **tomography**.
|
|
138
|
+
|
|
139
|
+
**History and applications**:
|
|
140
|
+
- **Radon** (1917): A pure mathematics paper proving the existence and uniqueness of the inverse transform
|
|
141
|
+
- **Cormack** (1963-64): Independently rediscovered the result and applied it to medical imaging
|
|
142
|
+
- **Hounsfield** (1971): Invented the CT scanner; Cormack and Hounsfield shared the 1979 Nobel Prize in Medicine
|
|
143
|
+
- **Seismology**: Velocity reconstruction from reflection seismic data
|
|
144
|
+
|
|
145
|
+
## Coordinate Transformation
|
|
146
|
+
|
|
147
|
+
**Polar coordinates**: (x, y) → (r, θ), suited to problems with rotational symmetry
|
|
148
|
+
**Spherical coordinates**: (x, y, z) → (r, θ, φ), suited to problems with spherical symmetry
|
|
149
|
+
**Fourier space**: Time signal → frequency representation
|
|
150
|
+
|
|
151
|
+
**Core idea**: Choosing the right coordinate system can turn a complex problem into a simple one.
|
|
152
|
+
|
|
153
|
+
## Diagonalization (Linear Algebra)
|
|
154
|
+
|
|
155
|
+
> For a diagonalizable matrix A, there exists an invertible matrix P such that P⁻¹AP = D (a diagonal matrix).
|
|
156
|
+
|
|
157
|
+
**Core idea**: In the eigenvector basis, a linear transformation becomes as simple as possible — each coordinate direction is scaled independently.
|
|
158
|
+
|
|
159
|
+
## Jordan Normal Form — Non-Diagonalizable Matrices
|
|
160
|
+
|
|
161
|
+
> What if a matrix cannot be diagonalized? Jordan form is the closest thing to diagonal.
|
|
162
|
+
|
|
163
|
+
A = PJP⁻¹, J = diag(J₁, J₂, ...), Jₖ = λₖI + Nₖ (λₖ is an eigenvalue, Nₖ is a nilpotent matrix)
|
|
164
|
+
|
|
165
|
+
**Core idea**: When a matrix does not have enough independent eigenvectors (geometric multiplicity < algebraic multiplicity), Jordan blocks introduce "approximate eigenvectors" — chains of generalized eigenvectors. The nilpotent part Nₖ allows the behavior of iterates Aⁿ to be computed exactly.
|
|
166
|
+
|
|
167
|
+
**Source**: Camille Jordan (1870), *Traité des substitutions et des équations algébriques*.
|
|
168
|
+
|
|
169
|
+
**Applications**: Solutions of linear ODE systems (especially with repeated roots), computation of the matrix exponential e^(At), explicit solutions of linear recurrences.
|
|
170
|
+
|
|
171
|
+
## Eigenvalue Theory & Spectral Theory — Mathematical Heart of Transformation
|
|
172
|
+
|
|
173
|
+
> Eigenvalues are the "DNA" of a transformation — they determine its essential behavior.
|
|
174
|
+
|
|
175
|
+
Av = λv
|
|
176
|
+
|
|
177
|
+
**Spectral theorem** (Hilbert, 1909-1912): Self-adjoint operators have real spectra and can be spectrally decomposed — "diagonalization" in continuous dimensions.
|
|
178
|
+
|
|
179
|
+
**Core ideas**:
|
|
180
|
+
- **Finite dimensions**: The eigenvalues of a matrix determine stability (|λ|<1 implies convergence), oscillatory behavior (imaginary part of λ), and growth rate (real part of λ)
|
|
181
|
+
- **Infinite dimensions**: Spectral theory generalizes eigenvalues to self-adjoint operators on Hilbert spaces; in quantum mechanics, observables = self-adjoint operators, and their spectra = possible measurement outcomes
|
|
182
|
+
- **Stability analysis**: The stability of any dynamical system reduces to the location of its spectrum
|
|
183
|
+
|
|
184
|
+
**Key theorems**:
|
|
185
|
+
- **Gershgorin circle theorem** (1931): Geometric localization of eigenvalues
|
|
186
|
+
- **Courant-Fischer min-max theorem**: Variational characterization of eigenvalues
|
|
187
|
+
- **Weyl inequalities**: Continuity of the spectrum under matrix perturbations
|
|
188
|
+
|
|
189
|
+
## Philosophical Implications of Transforms
|
|
190
|
+
|
|
191
|
+
> "Look at a problem from a different angle, and it may already be solved."
|
|
192
|
+
|
|
193
|
+
The deeper meaning of the transform idea:
|
|
194
|
+
- **Relativity of representation**: The same object has different appearances under different representations
|
|
195
|
+
- **Invariance under transformation**: Some properties remain unchanged under transformation (this is symmetry)
|
|
196
|
+
- **Choice of representation**: A good representation simplifies the problem; a poor one complicates it
|
|
197
|
+
- **Reversibility**: Ideally, a transform loses no information — we can freely switch perspectives (the guarantee of the Plancherel theorem)
|
|
198
|
+
|
|
199
|
+
## "Transforms" in Everyday Life
|
|
200
|
+
|
|
201
|
+
- **Time-scale transform**: Current difficulties may be negligible when viewed on a 10-year timescale
|
|
202
|
+
- **Perspective transform**: Seeing a problem from the other person's point of view (essentially a coordinate transformation)
|
|
203
|
+
- **Scale transform**: Macro and micro perspectives may reveal different patterns (the intuition behind the Mellin transform)
|
|
204
|
+
- **Domain transform**: A problem that is unsolvable in one domain may have a ready-made solution in another (Fourier: differential → algebraic; Legendre: mechanics → dual mechanics)
|