neurocore-skill-math
A math-proof toolchain for NeuroCore: one package exposing many small, composable skills that wrap computer-algebra systems, SMT solvers, automated theorem provers, and formal proof assistants. A supervisor agent / FlowEngine blueprint composes them into proof-search and proof-validation chains.
pip install neurocore-skill-math # pulls sympy, mpmath, z3-solver
pip install "neurocore-skill-math[cvc5]" # + cvc5 SMT backend (optional)
Most external engines (Lean, Vampire, Isabelle, Coq, SageMath, GAP, PARI/GP, …)
are not Python packages — install them with the provided script
(scripts/install_math_tools.sh, Ubuntu 24.04) and check what's available:
# Check using python module or the installed CLI script
python -m neurocore_skill_math.check
neurocore-skill-math-check
Every skill detects whether its backend is installed and degrades gracefully
(status tool_unavailable) rather than crashing a flow.
Skills
type |
Group | Backend | Reads → writes |
|---|---|---|---|
math_problem_parser |
prep | LLM | problem → math.parsed |
math_domain_classifier |
prep | LLM | math.parsed → math.domain |
math_statement_normalizer |
prep | LLM | math.parsed → math.normalized |
sympy_simplify / sympy_solve / sympy_calculus |
symbolic | SymPy | math.normalized → evidence.sympy |
mpmath_high_precision_check |
numeric | mpmath | math.normalized → evidence.numeric |
pari_gp_number_theory |
CAS | gp |
math.normalized → evidence.pari |
gap_group_theory |
CAS | gap |
math.normalized → evidence.gap |
sagemath_compute |
CAS | sage/Docker |
math.normalized → evidence.sage |
z3_smt_check |
SMT | z3 | math.normalized → counterexamples.z3 |
cvc5_smt_check |
SMT | cvc5 | math.normalized → counterexamples.cvc5 |
mace4_countermodel |
counterexample | mace4 |
math.normalized → counterexamples.mace4 |
vampire_prove_tptp / eprover_prove_tptp |
ATP | vampire/eprover |
math.normalized → proof.* |
prover9_prove |
ATP | prover9 |
math.normalized → proof.prover9 |
llm_proof_planner |
planning | LLM | evidence → proof.strategy |
theorem_retriever |
planning | LLM | proof.strategy → proof.premises |
lean4_formalize_statement |
formal | LLM | math.normalized → formal.lean_candidate |
lean4_check |
formal | lean/lake |
formal.lean_candidate → formal.lean_result |
lean4_repair |
formal | LLM | formal.lean_candidate + errors → formal.lean_candidate |
isabelle_check_theory |
formal | isabelle |
formal.isabelle_candidate → formal.isabelle_result |
coq_check |
formal | coqc |
formal.coq_candidate → formal.coq_result |
proof_report_builder |
report | — | all envelopes → validation_status / final_answer / proof_artifacts |
Result envelope & ports
Each skill writes a uniform envelope:
{status, tool, available, result, log, error, duration_ms} with
status ∈ {ok, proved, refuted, unknown, tool_unavailable, error, timeout}.
Skills set output ports so graph blueprints can route:
- SMT / Mace4:
counterexample_found/no_counterexample - ATP:
proof_found/no_proof - Lean/Isabelle/Coq check:
verified/repair_needed/failed - domain classifier:
number_theory/group_theory/ …
All skills take configurable input_key / output_key (the doc's dotted-key
contract, e.g. evidence.sympy), so the same skill can be wired into different
positions in a chain.
Blueprints
blueprints/ ships two reference proof workers from the design:
lean-first-math-worker.flow.yaml— a focused parse → explore → refute → formalize → verify → repair → report loop.math-proof-validation-worker.flow.yaml— the full fan-out across CAS/SMT/ATP then Lean/Isabelle/Coq validation.
Graph routing. These workers use edge ports, edge conditions, and a Lean repair loop. With
neurocore-ai>=0.4.0(onflowengine>=0.6.0), NeuroCore routes such graph flows through flowengine'sGraphExecutor, which honors port/condition gating and cyclicmax_iterations— so the conditional early-exits and the repair loop execute as drawn. Plain DAGs (no ports/conditions/cycles) still use the concurrent layer executor. On older NeuroCore the skills' ports are simply ignored (all reachable nodes run).
Convention
Standard NeuroCore skill package: entry-point group neurocore.skills, import
package neurocore_skill_math, kebab distribution neurocore-skill-math. See the
skill-authoring guide.
Metadata
Release files for neurocore-skill-math 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neurocore_skill_math-0.2.0.tar.gz | 31.5 kB | Without provenance | Details for neurocore_skill_math-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neurocore_skill_math-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for neurocore_skill_math-0.2.0-py3-none-any.whl |
Total release size: 63.5 kB
Release files / neurocore_skill_math-0.2.0.tar.gz
| Download URL | neurocore_skill_math-0.2.0.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33ff07e0f688717be4989d777c6a237e6ff00f2d57427dad3ba63c723dc4b83a
|
|
BLAKE2b-256 checksum How to use checksums |
8d134704200037536f86a81c4ec07ba8e1eeb1df72d0310f4c1be9ed038da801
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Release files / neurocore_skill_math-0.2.0-py3-none-any.whl
| Download URL | neurocore_skill_math-0.2.0-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44572fdffcdcfec641cbd418f3c850883be92fa6d2738d2a24c6b3ab70a1ef91
|
|
BLAKE2b-256 checksum How to use checksums |
c2158f6af10bc3471f059b0b90803005849fdcbb594de3c107db9a98e09255b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Security for neurocore-skill-math 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.