Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guide to the math cognitive stack - what tools exist and when to use each
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 222% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 722% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 189% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 511% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 471% | 0% |
Cognitive prosthetics for exact mathematical computation. This guide helps you choose the right tool for your math task.
| I want to... | Use this | Example | |--------------|----------|---------| | Solve equations | sympy_compute.py solve | solve "x**2 - 4 = 0" --var x | | Integrate/differentiate | sympy_compute.py | integrate "sin(x)" --var x | | Compute limits | sympy_compute.py limit | limit "sin(x)/x" --var x --to 0 | | Matrix operations | sympy_compute.py / numpy_compute.py | det "[[1,2],[3,4]]" | | Verify a reasoning step | math_scratchpad.py verify | verify "x = 2 implies x^2 = 4" | | Check a proof chain | math_scratchpad.py chain | chain --steps '[...]' | | Get progressive hints | math_tutor.py hint | hint "Solve x^2 - 4 = 0" --level 2 | | Generate practice problems | math_tutor.py generate | generate --topic algebra --difficulty 2 | | Prove a theorem (constraints) | z3_solve.py prove | prove "x + y == y + x" --vars x y | | Check satisfiability | z3_solve.py sat | sat "x > 0, x < 10, x*x == 49" | | Optimize with constraints | z3_solve.py optimize | optimize "x + y" --constraints "..." | | Plot 2D/3D functions | math_plot.py | plot2d "sin(x)" --range -10 10 | | Arbitrary precision | mpmath_compute.py | pi --dps 100 | | Numerical optimization | scipy_compute.py | minimize "x**2 + 2*x" "5" | | Formal machine proof | Lean 4 (lean4 skill) | /lean4 |
When: Exact algebraic computation - solving, calculus, simplification, matrix algebra.
Key Commands:
bash# Solve equation uv run python -m runtime.harness scripts/sympy_compute.py \ solve "x**2 - 5*x + 6 = 0" --var x --domain real # Integrate uv run python -m runtime.harness scripts/sympy_compute.py \ integrate "sin(x)" --var x # Definite integral uv run python -m runtime.harness scripts/sympy_compute.py \ integrate "x**2" --var x --bounds 0 1 # Differentiate (2nd order) uv run python -m runtime.harness scripts/sympy_compute.py \ diff "x**3" --var x --order 2 # Simplify (trig strategy) uv run python -m runtime.harness scripts/sympy_compute.py \ simplify "sin(x)**2 + cos(x)**2" --strategy trig # Limit uv run python -m runtime.harness scripts/sympy_compute.py \ limit "sin(x)/x" --var x --to 0 # Matrix eigenvalues uv run python -m runtime.harness scripts/sympy_compute.py \ eigenvalues "[[1,2],[3,4]]"
Best For: Closed-form solutions, calculus, exact algebra.
When: Proving theorems, checking satisfiability, constraint optimization.
Key Commands:
bash# Prove commutativity uv run python -m runtime.harness scripts/cc_math/z3_solve.py \ prove "x + y == y + x" --vars x y --type int # Check satisfiability uv run python -m runtime.harness scripts/cc_math/z3_solve.py \ sat "x > 0, x < 10, x*x == 49" --type int # Optimize uv run python -m runtime.harness scripts/cc_math/z3_solve.py \ optimize "x + y" --constraints "x >= 0, y >= 0, x + y <= 100" \ --direction maximize --type real
Best For: Logical proofs, constraint satisfaction, optimization with constraints.
When: Verifying step-by-step reasoning, checking derivation chains.
Key Commands:
bash# Verify single step uv run python -m runtime.harness scripts/cc_math/math_scratchpad.py \ verify "x = 2 implies x^2 = 4" # Verify with context uv run python -m runtime.harness scripts/cc_math/math_scratchpad.py \ verify "x^2 = 4" --context '{"x": 2}' # Verify chain of reasoning uv run python -m runtime.harness scripts/cc_math/math_scratchpad.py \ chain --steps '["x^2 - 4 = 0", "(x-2)(x+2) = 0", "x = 2 or x = -2"]' # Explain a step uv run python -m runtime.harness scripts/cc_math/math_scratchpad.py \ explain "d/dx(x^3) = 3*x^2"
Best For: Checking your work, validating derivations, step-by-step verification.
When: Learning, getting hints, generating practice problems.
Key Commands:
bash# Step-by-step solution uv run python scripts/cc_math/math_tutor.py steps "x**2 - 5*x + 6 = 0" --operation solve # Progressive hint (level 1-5) uv run python scripts/cc_math/math_tutor.py hint "Solve x**2 - 4 = 0" --level 2 # Generate practice problem uv run python scripts/cc_math/math_tutor.py generate --topic algebra --difficulty 2
Best For: Learning, tutoring, practice.
When: Rigorous machine-verified mathematical proofs, category theory, type theory.
Access: Use /lean4 skill for full documentation.
Best For: Publication-grade proofs, dependent types, category theory.
For numerical (not symbolic) computation:
bash# Matrix operations uv run python scripts/cc_math/numpy_compute.py det "[[1,2],[3,4]]" uv run python scripts/cc_math/numpy_compute.py inv "[[1,2],[3,4]]" uv run python scripts/cc_math/numpy_compute.py eig "[[1,2],[3,4]]" uv run python scripts/cc_math/numpy_compute.py svd "[[1,2,3],[4,5,6]]" # Solve linear system uv run python scripts/cc_math/numpy_compute.py solve "[[3,1],[1,2]]" "[9,8]"
bash# Minimize function uv run python scripts/cc_math/scipy_compute.py minimize "x**2 + 2*x" "5" # Find root uv run python scripts/cc_math/scipy_compute.py root "x**3 - x - 2" "1.5" # Curve fitting uv run python scripts/cc_math/scipy_compute.py curve_fit "a*exp(-b*x)" "0,1,2,3" "1,0.6,0.4,0.2" "1,0.5"
bash# Pi to 100 decimal places uv run python scripts/cc_math/mpmath_compute.py pi --dps 100 # Arbitrary precision sqrt uv run python -m scripts.mpmath_compute mp_sqrt "2" --dps 100
bash# 2D plot uv run python scripts/cc_math/math_plot.py plot2d "sin(x)" \ --var x --range -10 10 --output plot.png # 3D surface uv run python scripts/cc_math/math_plot.py plot3d "x**2 + y**2" \ --xvar x --yvar y --range 5 --output surface.html # Multiple functions uv run python scripts/cc_math/math_plot.py plot2d-multi "sin(x),cos(x)" \ --var x --range -6.28 6.28 --output multi.png # LaTeX rendering uv run python scripts/cc_math/math_plot.py latex "\\int e^{-x^2} dx" --output equation.png
| Level | Category | What You Get | |-------|----------|--------------| | 1 | Conceptual | General direction, topic identification | | 2 | Strategic | Approach to use, technique selection | | 3 | Tactical | Specific steps, intermediate goals | | 4 | Computational | Intermediate results, partial solutions | | 5 | Answer | Full solution with explanation |
Usage:
bash# Start with conceptual hint uv run python scripts/cc_math/math_tutor.py hint "integrate x*sin(x)" --level 1 # Get more specific guidance uv run python scripts/cc_math/math_tutor.py hint "integrate x*sin(x)" --level 3
bashuv run python scripts/cc_math/math_tutor.py steps "x**2 - 5*x + 6 = 0" --operation solve
Returns structured steps with:
bash# Solve uv run python -m runtime.harness scripts/sympy_compute.py \ solve "x**2 - 4 = 0" --var x # Verify the solutions work uv run python -m runtime.harness scripts/cc_math/math_scratchpad.py \ verify "x = 2 implies x^2 - 4 = 0"
bash# Generate problem uv run python scripts/cc_math/math_tutor.py generate --topic calculus --difficulty 2 # Get hints progressively uv run python scripts/cc_math/math_tutor.py hint "..." --level 1 uv run python scripts/cc_math/math_tutor.py hint "..." --level 2 # Full solution uv run python scripts/cc_math/math_tutor.py steps "..." --operation integrate
bash# Quick check with Z3 uv run python -m runtime.harness scripts/cc_math/z3_solve.py \ prove "x*y == y*x" --vars x y --type int # For formal proof, use /lean4 skill
Is it SYMBOLIC (exact answers)?
└─ Yes → Use SymPy
├─ Equations → sympy_compute.py solve
├─ Calculus → sympy_compute.py integrate/diff/limit
└─ Simplify → sympy_compute.py simplify
Is it a PROOF or CONSTRAINT problem?
└─ Yes → Use Z3
├─ True/False theorem → z3_solve.py prove
├─ Find values → z3_solve.py sat
└─ Optimize → z3_solve.py optimize
Is it NUMERICAL (approximate answers)?
└─ Yes → Use NumPy/SciPy
├─ Linear algebra → numpy_compute.py
├─ Optimization → scipy_compute.py minimize
└─ High precision → mpmath_compute.py
Need to VERIFY reasoning?
└─ Yes → Use Math Scratchpad
├─ Single step → math_scratchpad.py verify
└─ Chain → math_scratchpad.py chain
Want to LEARN/PRACTICE?
└─ Yes → Use Math Tutor
├─ Hints → math_tutor.py hint
└─ Practice → math_tutor.py generate
Need MACHINE-VERIFIED formal proof?
└─ Yes → Use Lean 4 (see /lean4 skill)/math or /math-mode - Quick access to the orchestration skill/lean4 - Formal theorem proving with Lean 4/lean4-functors - Category theory functors/lean4-nat-trans - Natural transformations/lean4-limits - Limits and colimitsAll math scripts are installed via:
bashuv sync
Dependencies: sympy, z3-solver, numpy, scipy, mpmath, matplotlib, plotly
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 6,266 | 5,657 | -10% | 1 | 1 | 0% | 1,111 | 4,310 | +288% | 0 | 0 | — |
case-02 | fail→fail | 8,408 | 11,729 | +39% | 1 | 1 | 0% | 1,821 | 4,972 | +173% | 0 | 0 | — |
case-03 | fail→fail | 6,930 | 5,186 | -25% | 1 | 1 | 0% | 1,626 | 3,464 | +113% | 0 | 0 | — |
case-04 | fail→fail | 7,510 | 7,105 | -5% | 1 | 1 | 0% | 1,650 | 4,741 | +187% | 0 | 0 | — |
case-05 | fail→pass | 6,016 | 3,927 | -35% | 1 | 1 | 0% | 1,229 | 3,958 | +222% | 0 | 0 | — |
case-06 | fail→pass | 2,368 | 2,472 | +4% | 1 | 1 | 0% | 418 | 3,434 | +722% | 0 | 0 | — |
case-07 | fail→pass | 6,317 | 4,860 | -23% | 1 | 1 | 0% | 1,177 | 3,396 | +189% | 0 | 0 | — |
case-08 | fail→fail | 6,857 | 8,141 | +19% | 1 | 1 | 0% | 1,172 | 4,778 | +308% | 0 | 0 | — |
case-09 | fail→fail | 13,140 | 11,499 | -12% | 1 | 1 | 0% | 2,446 | 4,685 | +92% | 0 | 0 | — |
case-10 | fail→pass | 3,617 | 5,308 | +47% | 1 | 1 | 0% | 699 | 4,272 | +511% | 0 | 0 | — |
case-11 | fail→pass | 4,880 | 5,774 | +18% | 1 | 1 | 0% | 771 | 4,403 | +471% | 0 | 0 | — |
case-12 | fail→pass | 4,982 | 6,184 | +24% | 1 | 1 | 0% | 895 | 4,440 | +396% | 0 | 0 | — |
case-13 | pass→pass | 12,526 | 15,963 | +27% | 1 | 1 | 0% | 2,722 | 6,807 | +150% | 0 | 0 | — |
case-14 | fail→fail | 4,522 | 5,989 | +32% | 1 | 1 | 0% | 824 | 3,408 | +314% | 0 | 0 | — |
case-15 | fail→pass | 13,544 | 10,306 | -24% | 1 | 1 | 0% | 3,337 | 5,589 | +67% | 0 | 0 | — |
case-16 | fail→pass | 9,175 | 4,641 | -49% | 1 | 1 | 0% | 1,532 | 4,044 | +164% | 0 | 0 | — |
case-17 | fail→pass | 10,590 | 12,121 | +14% | 1 | 1 | 0% | 2,355 | 6,001 | +155% | 0 | 0 | — |
case-18 | fail→pass | 5,394 | 7,601 | +41% | 1 | 1 | 0% | 1,292 | 4,089 | +216% | 0 | 0 | — |
case-19 | fail→pass | 1,964 | 3,189 | +62% | 1 | 1 | 0% | 355 | 3,742 | +954% | 0 | 0 | — |
case-20 | fail→fail | 6,959 | 6,264 | -10% | 1 | 1 | 0% | 1,520 | 3,597 | +137% | 0 | 0 | — |
case-21 | fail→pass | 26,977 | 2,439 | -91% | 1 | 1 | 0% | 6,162 | 3,643 | -41% | 0 | 0 | — |
case-22 | pass→pass | 14,251 | 14,146 | -1% | 1 | 1 | 0% | 3,025 | 6,192 | +105% | 0 | 0 | — |
case-23 | pass→pass | 8,391 | 7,122 | -15% | 1 | 1 | 0% | 1,771 | 4,380 | +147% | 0 | 0 | — |
case-24 | pass→pass | 12,885 | 10,229 | -21% | 1 | 1 | 0% | 2,487 | 5,024 | +102% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted, and 21 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +50 percentage points is the difference between those two pass rates over the 21 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/29/2026 | +82% |
Other measured skills in the registry, with their headline benchmark lift.