excyst/Why

A checker is only worth what it doesn't share.

Coding agents now write a large share of the metrics, losses and statistics in new code. This page sets out what goes wrong, what exists already, why asking the same model to check its work does not close the gap, and where excyst stops. Every claim links to its source.

The failure: numbers that look right

Maths code rarely crashes when it is wrong. It returns a number of the right size, and the number is off by a convention: a log base, a denominator of nn or n−1n-1, a 12\tfrac{1}{2} that went missing. The research is consistent about this.

  • Silent failures in generated scientific code. A 2026 benchmark of LLM-written pharmacokinetic simulation code found that most runs matched a validated reference, and that the failures that did occur were silent, including 60-fold clearance errors and duplicated doses. medRxiv, 2026 (preprint)
  • Errors that only show on some inputs. Differential testing of LLM-translated HPC code found semantic errors that compile and produce wrong scientific results only under specific input conditions, which is why excyst draws fresh inputs instead of trusting one example. Kaizen, arXiv 2607.04058
  • Even libraries disagree. Identically named evaluation metrics give different results across Python, R and Matlab implementations. arXiv 2411.12032 In recommender systems, only precision and recall were computed the same way everywhere they were tested. RecSys 2021 Benchmarks now recommend pinning one standard implementation. arXiv 2606.19624
  • Calibration is a moving target. Expected calibration error changes with the binning scheme and the number of bins, so “ECE” without its definition is not a number you can compare. Nixon et al., 2019

Why the model cannot check itself

The obvious fix is to have the agent write tests too. The evidence says those tests inherit the code's mistakes.

  • Tests written from buggy code assert the bug. Tests generated for incorrect code detected 47% fewer bugs in real-world cases; they inherit the flawed logic or assumptions of the code they were written from. arXiv 2409.09464 A 2026 study calls this the misguidance effect: given buggy code, models write more tests that assert the wrong behaviour and fewer that would find it. arXiv 2607.22883
  • Self-correction without an outside signal is unreliable. Without external feedback, models asked to review their own reasoning often fail to improve it, and sometimes make it worse. Huang et al., ICLR 2024
  • A verifier must fail independently. An oracle only helps when the thing that would break it is different from the thing that broke the code. If one wrong assumption defeats both, the check adds nothing. This is the design rule behind every part of excyst.

What exists, and the gap

What it doesChecks your code?Names the mistake?Local and free?
Wolfram MCPEvaluates Wolfram Language and curated data for agents. wolfram.comNo, it computes its own answerNoNeeds a Wolfram key or install
Calculator and SymPy MCP serversEvaluate expressions, simplify, differentiate. exampleNoNoYes
Mathematica MCPStep-by-step derivation checks in a live Mathematica session. githubDerivations, not PythonPartlyNeeds Mathematica
Agent-written unit testsWhatever the agent thinks the answer isYesNoYes, but share the agent's assumptions
Property-based testingRandom inputs against properties you write. HypothesisYesNoYes, but you supply the oracle
scicode-lintFinds methodology bugs (leakage, seeds) in scientific Python. arXiv 2603.17893Patterns, not valuesYes, for its patternsYes
excyst1,038 verified formulas; runs your function against the reference on the worked example and fresh inputs from the formula's domainYesYes: factor, convention, input, counterexampleYes: it runs on your computer and needs only Python and numpy (what that means)

These are complements more than rivals: Wolfram answers questions, scicode-lint finds methodology errors, Hypothesis checks the properties you know. excyst supplies the missing piece, an independent value to compare against, already written for a thousand formulas.

Why it is hard to reproduce

The formulas themselves are public; anyone can copy an equation. What is not quick to copy is the layer that makes each one checkable.

  1. 01

    Two independent computations per formula

    Each of the 1,038 formulas has a reference computation and a separately computed expected value, and the test suite proves every worked example fails when its expected value is altered. Generating that corpus with a model would reproduce exactly the shared-mistake problem it exists to prevent.

  2. 02

    Domains, not just values

    To draw fresh inputs, excyst knows what each input is: a distribution on the simplex, a positive-definite covariance, labels that must stay integers, sizes that other inputs depend on. Measured on the whole library, each reference proves itself (except four textbook forms that overflow on purpose, which the overflow probe flags), and a 1% error is caught in 97.4% of formulas.

  3. 03

    A catalogue of mistakes

    The diagnosis tests each mismatch against the ways maths code actually goes wrong, including size-dependent ones such as n/(n−1)n/(n-1), and separates conventions from bugs. On the library, deliberately inserted ×2 and log-base errors are named correctly 99.7% of the time.

  4. 04

    Built for the loop agents run in

    An MCP server with five tools and instructions written for agents, exit codes and JSON for CI, a two-millisecond median proof so it can run on every edit, and no account, key or network so it works in sandboxes.

What it brings

For people building with agents: one less class of bug you have to catch by eye, and a reason to trust a metric before it reaches a paper, a dashboard or a decision. For agents: a ground truth they can consult before writing and an outside signal after, which is the ingredient self-correction is missing. For research: a shared, executable definition of each formula, so “ECE” or “KL divergence” in two codebases means the same thing.

What excyst cannot do

  • “Prove” is not a formal proof. It means agreement with an independent reference on the worked example and 24 fresh inputs, plus an overflow probe. That is strong evidence, and it can miss a bug that only appears outside the sampled domain.
  • It checks formulas it knows. Code that matches no formula in the library is listed as unmatched, not passed. You can add your own formulas as TOML; they are searchable, but only built-in ones carry reference computations today.
  • It checks values, not intent. If you meant bits and wrote bits, excyst will say the formula is in nats and label it a convention. Deciding which one you wanted is still yours.
  • It runs your code. That is the point, and it means you should only prove code you are willing to run. The MCP server runs each proof in a separate process with a time limit.