math-reasoning
Formal mathematical reasoning for research papers — derive equations, write proofs, formalize problem settings, select statistical tests, and generate LaTeX math notation. Use when the user needs mathematical derivations, theorem proofs, notation tables, or statistical analysis formalization.
Security Assessment
About math-reasoning
math-reasoning is a skill for performing rigorous formal mathematical reasoning and producing publication-quality LaTeX output for research papers. It addresses the common need in ML/AI research writing to derive equations carefully, write formal proofs, formalize problem settings, choose appropriate statistical tests, and generate consistent notation — all while keeping notation and assumptions explicit and reproducible.
The skill is organized around task types passed as arguments: `derive` (step-by-step equation derivation with justified intermediate steps and boxed results), `prove` (formal theorem proofs using direct, contradiction, induction, construction, or cases techniques), `formalize` (converting informal descriptions into formal frameworks with variables, domains, assumptions, and objectives), `stats` (statistical test selection via a decision tree, reporting p-values, effect sizes, and confidence intervals), `notation` (generating a symbol table), and `verify` (checking dimensional consistency, boundary cases, gradients, and notation consistency). It bundles two reference files: a standard ML/AI notation guide with LaTeX for sets, probability, optimization, linear algebra, and common operations plus a statistical-tests decision tree, and a set of proof templates covering theorem environments, proof techniques, convergence and generalization bounds, and complexity analysis.
It targets ML/AI researchers, graduate students, and technical writers preparing papers who want mathematically sound derivations and proofs expressed in idiomatic LaTeX. Use cases include writing a proofs section, building a paper's notation table, formalizing an experimental setup, and selecting and reporting the right statistical test for an evaluation.
FAQ
What task types does the skill support?
Six: derive (equation derivation), prove (theorem proofs), formalize (problem setting), stats (statistical test selection), notation (symbol table generation), and verify (correctness checking such as dimensional consistency and gradient checks).
What output format does it produce?
Publication-quality LaTeX. It boxes final results with \boxed{}, numbers referenced equations with \label, uses \tag for key derivation steps, and generates notation tables and theorem/proof environments from bundled templates.
How does it help choose a statistical test?
It uses a decision tree in the notation guide covering two-group comparisons (t-test vs Wilcoxon/Mann-Whitney), multi-group (ANOVA/Tukey vs Kruskal-Wallis/Dunn), correlation (Pearson vs Spearman), and categorical data (Fisher/chi-square), plus multiple-comparison corrections like Bonferroni and Benjamini-Hochberg.
Are there prerequisites?
It assumes a LaTeX workflow and familiarity with standard ML notation. The reference files are expected under the skill's references directory and provide the notation and proof templates it relies on.
What are its limitations?
It is a reasoning-and-formatting aid, not a symbolic computer algebra or automated theorem prover; it produces human-verifiable derivations and proof scaffolds but does not machine-verify proofs. It also emphasizes consistent notation and explicit assumptions, which the author must maintain across the paper.
Install math-reasoning
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
lingzhi227/agent-research-skills