← All engines

RUST ENGINE / scan_counterexample

Bounded counterexample scan

Bounded deterministic search for a counterexample to a declared arithmetic claim over a discrete parameter box.

An emerald mathematical surface over a bounded grid, crossed by a gold threshold plane and an illuminated candidate cell.
Concept illustration — not calculation evidence. Run the demonstration to inspect the returned data.
Open the scan_counterexample demonstration ↗Try the live calculation ↗Connect an AI assistant →

What does a real call return?

Testing x² ≤ 4 on a 7-cell grid from −3 to 3, the scan stopped at its first witness: x = -3 gives 9, a margin of 5. It evaluated 1 of 7 cells and returned counterexamples_found.

Recorded on 2 November 2026 through the public MCP endpoint, service release 0.17.1. Inputs and full responses, response SHA-256 d8f587005e7d…. Verdict values are the literal values the tool returns. Run the same inputs yourself to compare; elapsed times vary, and a new release may change the figures.

Checked against

Recorded on release 0.16.1. These checks cover the listed cases, not every input. Evidence cards.

How it works

A fixed lexicographic grid scan (last variable fastest) evaluates the claim expression <= bound or >= bound with an explicit tolerance, capped by an evaluation budget, and returns the first witnesses with their margins.

Inputs and units

Provide the expression, the relation (le or ge), the bound, optional tolerance, one to six variable domains (min, max, 2–64 steps) and optional evaluation and counterexample caps.

What the result contains

The scanned fraction, completeness, explicit stopping reason and numerical witnesses with values and margins. Undefined and near-boundary evaluations are counted separately and can leave the result inconclusive.

Example MCP call

{
  "name": "scan_counterexample",
  "arguments": {
    "expression": "x ^ 2",
    "relation": "le",
    "bound": 4,
    "variables": [
      {
        "name": "x",
        "min": -3,
        "max": 3,
        "steps": 7
      }
    ]
  }
}

Send this tool name and arguments through a connected MCP client. Discover the authoritative input schema with tools/list.

Call this engine in one command

Node.js 20+ and npm. This downloads a small remote MCP client; it does not install the engine locally.

npx --yes --package https://scorecompute.com/downloads/scorecompute-call-0.14.2.tgz scorecompute-call scan_counterexample --arguments '{"expression":"x ^ 2","relation":"le","bound":4,"variables":[{"name":"x","min":-3,"max":3,"steps":7}]}'

Client download, PowerShell input and verification →

Direct MCP access

scan_counterexample is independently callable. It is deliberately not connected to the automatic planner, so nothing passes its results to another engine for you. Two tools returning similar JSON fields does not mean their results are compatible.

Cite this engine

Version 0.2.0, source SHA-256 2df9bab83183…. Evidence recorded on release 0.16.1; the public service currently runs 0.17.1. Replace the access date when you cite it.

ScoreCompute. Bounded counterexample scan (scan_counterexample), version 0.2.0, source SHA-256 2df9bab83183ee8cf3f14cb995eaf60928279b792d8847a116959c28bfefcdf0. Evidence release 0.16.1, service release 0.17.1. https://scorecompute.com/engines/scan-counterexample/ (accessed YYYY-MM-DD).

All engine citations · Evidence card

Execution and availability

ScoreCompute exposes this tool through MCP Streamable HTTP. Rust computation runs on a connected worker; the public website and MCP gateway run separately. Among these 22 scientific tools, CUDA is implemented for simulate_pi; the other scientific engines run on CPU. The separate contributor network runs two compiled public workloads: a π estimate and fixed synthetic schedule probes. Requests are bounded and concurrent work may be refused when capacity is occupied.

Record inputs, assumptions and returned provenance when sharing a result. The public observatory displays software client names and tool activity, without publishing calculation arguments or results.

Explore another engine →Agent-readable overview ↗

First published 5 October 2026 · Last updated 2 November 2026