[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NV7MM7CXXQDM4XJN8BBM7S":3,"skill-same:01M6NV7MM7CXXQDM4XJN8BBM7S":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6NV7MM7CXXQDM4XJN8BBM7S","math-help",null,"Guide to the math cognitive stack - what tools exist and when to use each","rubicanjr\u002FFinCognis","rubicanjr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234912519?v=4","01M6NT156NND8J474G34SB3923","Rubi","01M6NT15B70RWXE1N3YV0BZY8A",0,"MIT","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fmath-help\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"help","math","math help","Tools","how","stack","tool","guide","tutorial","use","do","math tools","false","which","when to use","2026-11-10 10:12:30",false,"---\nname: math-help\ndescription: Guide to the math cognitive stack - what tools exist and when to use each\ntriggers: [\"help\", \"guide\", \"how do I\", \"what math\", \"math help\", \"math tools\", \"which tool\", \"math tutorial\"]\nuser-invocable: false\n---\n\n# Math Cognitive Stack Guide\n\nCognitive prosthetics for exact mathematical computation. This guide helps you choose the right tool for your math task.\n\n## Quick Reference\n\n| I want to... | Use this | Example |\n|--------------|----------|---------|\n| Solve equations | sympy_compute.py solve | `solve \"x**2 - 4 = 0\" --var x` |\n| Integrate\u002Fdifferentiate | sympy_compute.py | `integrate \"sin(x)\" --var x` |\n| Compute limits | sympy_compute.py limit | `limit \"sin(x)\u002Fx\" --var x --to 0` |\n| Matrix operations | sympy_compute.py \u002F numpy_compute.py | `det \"[[1,2],[3,4]]\"` |\n| Verify a reasoning step | math_scratchpad.py verify | `verify \"x = 2 implies x^2 = 4\"` |\n| Check a proof chain | math_scratchpad.py chain | `chain --steps '[...]'` |\n| Get progressive hints | math_tutor.py hint | `hint \"Solve x^2 - 4 = 0\" --level 2` |\n| Generate practice problems | math_tutor.py generate | `generate --topic algebra --difficulty 2` |\n| Prove a theorem (constraints) | z3_solve.py prove | `prove \"x + y == y + x\" --vars x y` |\n| Check satisfiability | z3_solve.py sat | `sat \"x > 0, x \u003C 10, x*x == 49\"` |\n| Optimize with constraints | z3_solve.py optimize | `optimize \"x + y\" --constraints \"...\"` |\n| Plot 2D\u002F3D functions | math_plot.py | `plot2d \"sin(x)\" --range -10 10` |\n| Arbitrary precision | mpmath_compute.py | `pi --dps 100` |\n| Numerical optimization | scipy_compute.py | `minimize \"x**2 + 2*x\" \"5\"` |\n| Formal machine proof | Lean 4 (lean4 skill) | `\u002Flean4` |\n\n## The Five Layers\n\n### Layer 1: SymPy (Symbolic Algebra)\n\n**When:** Exact algebraic computation - solving, calculus, simplification, matrix algebra.\n\n**Key Commands:**\n```bash\n# Solve equation\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    solve \"x**2 - 5*x + 6 = 0\" --var x --domain real\n\n# Integrate\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    integrate \"sin(x)\" --var x\n\n# Definite integral\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    integrate \"x**2\" --var x --bounds 0 1\n\n# Differentiate (2nd order)\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    diff \"x**3\" --var x --order 2\n\n# Simplify (trig strategy)\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    simplify \"sin(x)**2 + cos(x)**2\" --strategy trig\n\n# Limit\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    limit \"sin(x)\u002Fx\" --var x --to 0\n\n# Matrix eigenvalues\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    eigenvalues \"[[1,2],[3,4]]\"\n```\n\n**Best For:** Closed-form solutions, calculus, exact algebra.\n\n### Layer 2: Z3 (Constraint Solving & Theorem Proving)\n\n**When:** Proving theorems, checking satisfiability, constraint optimization.\n\n**Key Commands:**\n```bash\n# Prove commutativity\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    prove \"x + y == y + x\" --vars x y --type int\n\n# Check satisfiability\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    sat \"x > 0, x \u003C 10, x*x == 49\" --type int\n\n# Optimize\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    optimize \"x + y\" --constraints \"x >= 0, y >= 0, x + y \u003C= 100\" \\\n    --direction maximize --type real\n```\n\n**Best For:** Logical proofs, constraint satisfaction, optimization with constraints.\n\n### Layer 3: Math Scratchpad (Reasoning Verification)\n\n**When:** Verifying step-by-step reasoning, checking derivation chains.\n\n**Key Commands:**\n```bash\n# Verify single step\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    verify \"x = 2 implies x^2 = 4\"\n\n# Verify with context\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    verify \"x^2 = 4\" --context '{\"x\": 2}'\n\n# Verify chain of reasoning\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    chain --steps '[\"x^2 - 4 = 0\", \"(x-2)(x+2) = 0\", \"x = 2 or x = -2\"]'\n\n# Explain a step\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    explain \"d\u002Fdx(x^3) = 3*x^2\"\n```\n\n**Best For:** Checking your work, validating derivations, step-by-step verification.\n\n### Layer 4: Math Tutor (Educational)\n\n**When:** Learning, getting hints, generating practice problems.\n\n**Key Commands:**\n```bash\n# Step-by-step solution\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py steps \"x**2 - 5*x + 6 = 0\" --operation solve\n\n# Progressive hint (level 1-5)\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"Solve x**2 - 4 = 0\" --level 2\n\n# Generate practice problem\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py generate --topic algebra --difficulty 2\n```\n\n**Best For:** Learning, tutoring, practice.\n\n### Layer 5: Lean 4 (Formal Proofs)\n\n**When:** Rigorous machine-verified mathematical proofs, category theory, type theory.\n\n**Access:** Use `\u002Flean4` skill for full documentation.\n\n**Best For:** Publication-grade proofs, dependent types, category theory.\n\n## Numerical Tools\n\nFor numerical (not symbolic) computation:\n\n### NumPy (160 functions)\n```bash\n# Matrix operations\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py det \"[[1,2],[3,4]]\"\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py inv \"[[1,2],[3,4]]\"\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py eig \"[[1,2],[3,4]]\"\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py svd \"[[1,2,3],[4,5,6]]\"\n\n# Solve linear system\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py solve \"[[3,1],[1,2]]\" \"[9,8]\"\n```\n\n### SciPy (289 functions)\n```bash\n# Minimize function\nuv run python scripts\u002Fcc_math\u002Fscipy_compute.py minimize \"x**2 + 2*x\" \"5\"\n\n# Find root\nuv run python scripts\u002Fcc_math\u002Fscipy_compute.py root \"x**3 - x - 2\" \"1.5\"\n\n# Curve fitting\nuv run python scripts\u002Fcc_math\u002Fscipy_compute.py curve_fit \"a*exp(-b*x)\" \"0,1,2,3\" \"1,0.6,0.4,0.2\" \"1,0.5\"\n```\n\n### mpmath (153 functions, arbitrary precision)\n```bash\n# Pi to 100 decimal places\nuv run python scripts\u002Fcc_math\u002Fmpmath_compute.py pi --dps 100\n\n# Arbitrary precision sqrt\nuv run python -m scripts.mpmath_compute mp_sqrt \"2\" --dps 100\n```\n\n## Visualization\n\n### math_plot.py\n```bash\n# 2D plot\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py plot2d \"sin(x)\" \\\n    --var x --range -10 10 --output plot.png\n\n# 3D surface\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py plot3d \"x**2 + y**2\" \\\n    --xvar x --yvar y --range 5 --output surface.html\n\n# Multiple functions\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py plot2d-multi \"sin(x),cos(x)\" \\\n    --var x --range -6.28 6.28 --output multi.png\n\n# LaTeX rendering\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py latex \"\\\\int e^{-x^2} dx\" --output equation.png\n```\n\n## Educational Features\n\n### 5-Level Hint System\n\n| Level | Category | What You Get |\n|-------|----------|--------------|\n| 1 | Conceptual | General direction, topic identification |\n| 2 | Strategic | Approach to use, technique selection |\n| 3 | Tactical | Specific steps, intermediate goals |\n| 4 | Computational | Intermediate results, partial solutions |\n| 5 | Answer | Full solution with explanation |\n\n**Usage:**\n```bash\n# Start with conceptual hint\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"integrate x*sin(x)\" --level 1\n\n# Get more specific guidance\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"integrate x*sin(x)\" --level 3\n```\n\n### Step-by-Step Solutions\n\n```bash\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py steps \"x**2 - 5*x + 6 = 0\" --operation solve\n```\n\nReturns structured steps with:\n- Step number and type\n- From\u002Fto expressions\n- Rule applied\n- Justification\n\n## Common Workflows\n\n### Workflow 1: Solve and Verify\n1. Solve with sympy_compute.py\n2. Verify solution with math_scratchpad.py\n3. Plot to visualize (optional)\n\n```bash\n# Solve\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    solve \"x**2 - 4 = 0\" --var x\n\n# Verify the solutions work\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    verify \"x = 2 implies x^2 - 4 = 0\"\n```\n\n### Workflow 2: Learn a Concept\n1. Generate practice problem with math_tutor.py\n2. Use progressive hints (level 1, then 2, etc.)\n3. Get full solution if stuck\n\n```bash\n# Generate problem\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py generate --topic calculus --difficulty 2\n\n# Get hints progressively\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"...\" --level 1\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"...\" --level 2\n\n# Full solution\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py steps \"...\" --operation integrate\n```\n\n### Workflow 3: Prove and Formalize\n1. Check theorem with z3_solve.py (constraint-level proof)\n2. If rigorous proof needed, use Lean 4\n\n```bash\n# Quick check with Z3\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    prove \"x*y == y*x\" --vars x y --type int\n\n# For formal proof, use \u002Flean4 skill\n```\n\n## Choosing the Right Tool\n\n```\nIs it SYMBOLIC (exact answers)?\n  └─ Yes → Use SymPy\n      ├─ Equations → sympy_compute.py solve\n      ├─ Calculus → sympy_compute.py integrate\u002Fdiff\u002Flimit\n      └─ Simplify → sympy_compute.py simplify\n\nIs it a PROOF or CONSTRAINT problem?\n  └─ Yes → Use Z3\n      ├─ True\u002FFalse theorem → z3_solve.py prove\n      ├─ Find values → z3_solve.py sat\n      └─ Optimize → z3_solve.py optimize\n\nIs it NUMERICAL (approximate answers)?\n  └─ Yes → Use NumPy\u002FSciPy\n      ├─ Linear algebra → numpy_compute.py\n      ├─ Optimization → scipy_compute.py minimize\n      └─ High precision → mpmath_compute.py\n\nNeed to VERIFY reasoning?\n  └─ Yes → Use Math Scratchpad\n      ├─ Single step → math_scratchpad.py verify\n      └─ Chain → math_scratchpad.py chain\n\nWant to LEARN\u002FPRACTICE?\n  └─ Yes → Use Math Tutor\n      ├─ Hints → math_tutor.py hint\n      └─ Practice → math_tutor.py generate\n\nNeed MACHINE-VERIFIED formal proof?\n  └─ Yes → Use Lean 4 (see \u002Flean4 skill)\n```\n\n## Related Skills\n\n- `\u002Fmath` or `\u002Fmath-mode` - Quick access to the orchestration skill\n- `\u002Flean4` - Formal theorem proving with Lean 4\n- `\u002Flean4-functors` - Category theory functors\n- `\u002Flean4-nat-trans` - Natural transformations\n- `\u002Flean4-limits` - Limits and colimits\n\n## Requirements\n\nAll math scripts are installed via:\n```bash\nuv sync\n```\n\nDependencies: sympy, z3-solver, numpy, scipy, mpmath, matplotlib, plotly\n","# Math Cognitive Stack Guide\n\nCognitive prosthetics for exact mathematical computation. This guide helps you choose the right tool for your math task.\n\n## Quick Reference\n\n| I want to... | Use this | Example |\n|--------------|----------|---------|\n| Solve equations | sympy_compute.py solve | `solve \"x**2 - 4 = 0\" --var x` |\n| Integrate\u002Fdifferentiate | sympy_compute.py | `integrate \"sin(x)\" --var x` |\n| Compute limits | sympy_compute.py limit | `limit \"sin(x)\u002Fx\" --var x --to 0` |\n| Matrix operations | sympy_compute.py \u002F numpy_compute.py | `det \"[[1,2],[3,4]]\"` |\n| Verify a reasoning step | math_scratchpad.py verify | `verify \"x = 2 implies x^2 = 4\"` |\n| Check a proof chain | math_scratchpad.py chain | `chain --steps '[...]'` |\n| Get progressive hints | math_tutor.py hint | `hint \"Solve x^2 - 4 = 0\" --level 2` |\n| Generate practice problems | math_tutor.py generate | `generate --topic algebra --difficulty 2` |\n| Prove a theorem (constraints) | z3_solve.py prove | `prove \"x + y == y + x\" --vars x y` |\n| Check satisfiability | z3_solve.py sat | `sat \"x > 0, x \u003C 10, x*x == 49\"` |\n| Optimize with constraints | z3_solve.py optimize | `optimize \"x + y\" --constraints \"...\"` |\n| Plot 2D\u002F3D functions | math_plot.py | `plot2d \"sin(x)\" --range -10 10` |\n| Arbitrary precision | mpmath_compute.py | `pi --dps 100` |\n| Numerical optimization | scipy_compute.py | `minimize \"x**2 + 2*x\" \"5\"` |\n| Formal machine proof | Lean 4 (lean4 skill) | `\u002Flean4` |\n\n## The Five Layers\n\n### Layer 1: SymPy (Symbolic Algebra)\n\n**When:** Exact algebraic computation - solving, calculus, simplification, matrix algebra.\n\n**Key Commands:**\n```bash\n# Solve equation\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    solve \"x**2 - 5*x + 6 = 0\" --var x --domain real\n\n# Integrate\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    integrate \"sin(x)\" --var x\n\n# Definite integral\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    integrate \"x**2\" --var x --bounds 0 1\n\n# Differentiate (2nd order)\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    diff \"x**3\" --var x --order 2\n\n# Simplify (trig strategy)\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    simplify \"sin(x)**2 + cos(x)**2\" --strategy trig\n\n# Limit\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    limit \"sin(x)\u002Fx\" --var x --to 0\n\n# Matrix eigenvalues\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    eigenvalues \"[[1,2],[3,4]]\"\n```\n\n**Best For:** Closed-form solutions, calculus, exact algebra.\n\n### Layer 2: Z3 (Constraint Solving & Theorem Proving)\n\n**When:** Proving theorems, checking satisfiability, constraint optimization.\n\n**Key Commands:**\n```bash\n# Prove commutativity\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    prove \"x + y == y + x\" --vars x y --type int\n\n# Check satisfiability\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    sat \"x > 0, x \u003C 10, x*x == 49\" --type int\n\n# Optimize\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    optimize \"x + y\" --constraints \"x >= 0, y >= 0, x + y \u003C= 100\" \\\n    --direction maximize --type real\n```\n\n**Best For:** Logical proofs, constraint satisfaction, optimization with constraints.\n\n### Layer 3: Math Scratchpad (Reasoning Verification)\n\n**When:** Verifying step-by-step reasoning, checking derivation chains.\n\n**Key Commands:**\n```bash\n# Verify single step\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    verify \"x = 2 implies x^2 = 4\"\n\n# Verify with context\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    verify \"x^2 = 4\" --context '{\"x\": 2}'\n\n# Verify chain of reasoning\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    chain --steps '[\"x^2 - 4 = 0\", \"(x-2)(x+2) = 0\", \"x = 2 or x = -2\"]'\n\n# Explain a step\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    explain \"d\u002Fdx(x^3) = 3*x^2\"\n```\n\n**Best For:** Checking your work, validating derivations, step-by-step verification.\n\n### Layer 4: Math Tutor (Educational)\n\n**When:** Learning, getting hints, generating practice problems.\n\n**Key Commands:**\n```bash\n# Step-by-step solution\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py steps \"x**2 - 5*x + 6 = 0\" --operation solve\n\n# Progressive hint (level 1-5)\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"Solve x**2 - 4 = 0\" --level 2\n\n# Generate practice problem\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py generate --topic algebra --difficulty 2\n```\n\n**Best For:** Learning, tutoring, practice.\n\n### Layer 5: Lean 4 (Formal Proofs)\n\n**When:** Rigorous machine-verified mathematical proofs, category theory, type theory.\n\n**Access:** Use `\u002Flean4` skill for full documentation.\n\n**Best For:** Publication-grade proofs, dependent types, category theory.\n\n## Numerical Tools\n\nFor numerical (not symbolic) computation:\n\n### NumPy (160 functions)\n```bash\n# Matrix operations\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py det \"[[1,2],[3,4]]\"\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py inv \"[[1,2],[3,4]]\"\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py eig \"[[1,2],[3,4]]\"\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py svd \"[[1,2,3],[4,5,6]]\"\n\n# Solve linear system\nuv run python scripts\u002Fcc_math\u002Fnumpy_compute.py solve \"[[3,1],[1,2]]\" \"[9,8]\"\n```\n\n### SciPy (289 functions)\n```bash\n# Minimize function\nuv run python scripts\u002Fcc_math\u002Fscipy_compute.py minimize \"x**2 + 2*x\" \"5\"\n\n# Find root\nuv run python scripts\u002Fcc_math\u002Fscipy_compute.py root \"x**3 - x - 2\" \"1.5\"\n\n# Curve fitting\nuv run python scripts\u002Fcc_math\u002Fscipy_compute.py curve_fit \"a*exp(-b*x)\" \"0,1,2,3\" \"1,0.6,0.4,0.2\" \"1,0.5\"\n```\n\n### mpmath (153 functions, arbitrary precision)\n```bash\n# Pi to 100 decimal places\nuv run python scripts\u002Fcc_math\u002Fmpmath_compute.py pi --dps 100\n\n# Arbitrary precision sqrt\nuv run python -m scripts.mpmath_compute mp_sqrt \"2\" --dps 100\n```\n\n## Visualization\n\n### math_plot.py\n```bash\n# 2D plot\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py plot2d \"sin(x)\" \\\n    --var x --range -10 10 --output plot.png\n\n# 3D surface\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py plot3d \"x**2 + y**2\" \\\n    --xvar x --yvar y --range 5 --output surface.html\n\n# Multiple functions\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py plot2d-multi \"sin(x),cos(x)\" \\\n    --var x --range -6.28 6.28 --output multi.png\n\n# LaTeX rendering\nuv run python scripts\u002Fcc_math\u002Fmath_plot.py latex \"\\\\int e^{-x^2} dx\" --output equation.png\n```\n\n## Educational Features\n\n### 5-Level Hint System\n\n| Level | Category | What You Get |\n|-------|----------|--------------|\n| 1 | Conceptual | General direction, topic identification |\n| 2 | Strategic | Approach to use, technique selection |\n| 3 | Tactical | Specific steps, intermediate goals |\n| 4 | Computational | Intermediate results, partial solutions |\n| 5 | Answer | Full solution with explanation |\n\n**Usage:**\n```bash\n# Start with conceptual hint\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"integrate x*sin(x)\" --level 1\n\n# Get more specific guidance\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"integrate x*sin(x)\" --level 3\n```\n\n### Step-by-Step Solutions\n\n```bash\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py steps \"x**2 - 5*x + 6 = 0\" --operation solve\n```\n\nReturns structured steps with:\n- Step number and type\n- From\u002Fto expressions\n- Rule applied\n- Justification\n\n## Common Workflows\n\n### Workflow 1: Solve and Verify\n1. Solve with sympy_compute.py\n2. Verify solution with math_scratchpad.py\n3. Plot to visualize (optional)\n\n```bash\n# Solve\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py \\\n    solve \"x**2 - 4 = 0\" --var x\n\n# Verify the solutions work\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fmath_scratchpad.py \\\n    verify \"x = 2 implies x^2 - 4 = 0\"\n```\n\n### Workflow 2: Learn a Concept\n1. Generate practice problem with math_tutor.py\n2. Use progressive hints (level 1, then 2, etc.)\n3. Get full solution if stuck\n\n```bash\n# Generate problem\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py generate --topic calculus --difficulty 2\n\n# Get hints progressively\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"...\" --level 1\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py hint \"...\" --level 2\n\n# Full solution\nuv run python scripts\u002Fcc_math\u002Fmath_tutor.py steps \"...\" --operation integrate\n```\n\n### Workflow 3: Prove and Formalize\n1. Check theorem with z3_solve.py (constraint-level proof)\n2. If rigorous proof needed, use Lean 4\n\n```bash\n# Quick check with Z3\nuv run python -m runtime.harness scripts\u002Fcc_math\u002Fz3_solve.py \\\n    prove \"x*y == y*x\" --vars x y --type int\n\n# For formal proof, use \u002Flean4 skill\n```\n\n## Choosing the Right Tool\n\n```\nIs it SYMBOLIC (exact answers)?\n  └─ Yes → Use SymPy\n      ├─ Equations → sympy_compute.py solve\n      ├─ Calculus → sympy_compute.py integrate\u002Fdiff\u002Flimit\n      └─ Simplify → sympy_compute.py simplify\n\nIs it a PROOF or CONSTRAINT problem?\n  └─ Yes → Use Z3\n      ├─ True\u002FFalse theorem → z3_solve.py prove\n      ├─ Find values → z3_solve.py sat\n      └─ Optimize → z3_solve.py optimize\n\nIs it NUMERICAL (approximate answers)?\n  └─ Yes → Use NumPy\u002FSciPy\n      ├─ Linear algebra → numpy_compute.py\n      ├─ Optimization → scipy_compute.py minimize\n      └─ High precision → mpmath_compute.py\n\nNeed to VERIFY reasoning?\n  └─ Yes → Use Math Scratchpad\n      ├─ Single step → math_scratchpad.py verify\n      └─ Chain → math_scratchpad.py chain\n\nWant to LEARN\u002FPRACTICE?\n  └─ Yes → Use Math Tutor\n      ├─ Hints → math_tutor.py hint\n      └─ Practice → math_tutor.py generate\n\nNeed MACHINE-VERIFIED formal proof?\n  └─ Yes → Use Lean 4 (see \u002Flean4 skill)\n```\n\n## Related Skills\n\n- `\u002Fmath` or `\u002Fmath-mode` - Quick access to the orchestration skill\n- `\u002Flean4` - Formal theorem proving with Lean 4\n- `\u002Flean4-functors` - Category theory functors\n- `\u002Flean4-nat-trans` - Natural transformations\n- `\u002Flean4-limits` - Limits and colimits\n\n## Requirements\n\nAll math scripts are installed via:\n```bash\nuv sync\n```\n\nDependencies: sympy, z3-solver, numpy, scipy, mpmath, matplotlib, plotly\n",{"name":5,"triggers":39,"description":7,"user-invocable":35},[19,26,40,41,21,30,42,43],"how do I","what math","which tool","math tutorial","main","70e1c350500ee750987420bbae48837afa906b7e","skills\u002Fmath-help","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis","https:\u002F\u002Fgithub.com\u002Frubicanjr","linktr.ee\u002Ffinanskodu","Industrial Engineer & CIO @FinansKodu. Architecting AI-driven financial agents and autonomous workflows. 🏗️ Building systems, not just prompts.","2026-06-09 13:50:15",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add rubicanjr\u002FFinCognis --skill math-help",{"tool":58,"command":59},"bunx","bunx skills add rubicanjr\u002FFinCognis --skill math-help",{"tool":61,"command":62},"pnpm","pnpm dlx skills add rubicanjr\u002FFinCognis --skill math-help","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fmath-help\u002FSKILL.md",true,[],[67,83,91,108,133,152],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":34},"01M6NWS9DAXJTADT4T5MB49X8W","workflow-router","Goal-based workflow orchestration - routes tasks to specialist agents based on user goals","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-router\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82],"workflow router","workflow","router","orchestration","goals","goal","user","workflow orchestration","tasks",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":34},"01M6NWS3RETSC0SHP16HP66E14","wiring","Wiring Verification","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwiring\u002FSKILL.md",[],[85,90,31],"verification",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":34},"01M6NWS0XW9CVQZBDA1EGW0TWC","websocket-patterns","Connection management, room patterns, reconnection strategies, message buffering, and binary protocol design.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwebsocket-patterns\u002Fskill.md",[],[98,99,100,101,102,103,104,105,106,107],"websocket","patterns","websocket patterns","design","protocol","management","message","strategies","binary","connection",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":34},"01M6NWRDQDX9ZNETAWRRMQWV52","visual-verdict","Screenshot comparison QA for frontend development. Takes a screenshot of the current implementation, scores it across multiple visual dimensions, and returns a structured PASS\u002FREVISE\u002FFAIL verdict with concrete fixes. Use when implementing UI from a design reference or verifying visual correctness.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-verdict\u002FSKILL.md",[],[115,116,117,118,119,120,121,122,123,124,125,126,127,101,128,129,130,131,28,132],"visual","verdict","visual verdict","ui","across","revise","comparison","correctness","implementing","for","fixes","dimensions","frontend","development","qa","screenshot","returns","frontend development",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":34},"01M6NWR8HSNRS7MNDK2J02QYMN","verification-loop","Comprehensive verification system covering build, types, lint, tests, security, and diff review before a PR.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[140,141,90,142,143,144,145,146,147,148,149,150,151],"verification loop","loop","lint","review","security","pr","system","diff","build","tests","diff review","types",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":34},"01M6NWR4HHSFR0VR5EXFRWA747","vector-db-patterns","Embedding strategies, ANN algorithms, hybrid search, RAG chunking strategies, and reranking for semantic search and retrieval.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvector-db-patterns\u002Fskill.md",[],[159,160,161,162,99,163,164,165,166,105,167,168,169,170,171,124,172,173],"vector db patterns","vector db","db","vector","semantic search","search","embedding strategies","algorithms","chunking","semantic","retrieval","embedding","Hybrid Search","hybrid","rag"]