Skip to main content
Glama

Lean4 formal proof — Atom

Lean4 formal proof

lean4_formal_proof
Read-onlyIdempotent

Submit a declared Lean 4 proof-artifact manifest (project setup, statement integrity, definitions, proof integrity, theorem declarations, build attestation, model alignment); get a deterministic VERIFIED / NOT_VERIFIED / INSUFFICIENT_EVIDENCE verdict across seven sections, including computed zero-sorry, standard-axioms-only and kernel-checked theorem checks, with per-check evidence. Audits declared evidence; it does not run Lean or prove theorems.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lean4_formal_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
proofNoProof-integrity evidence (structured, cheating items tracked, none smuggled).
setupNoProject-setup evidence (toolchain pinned, CI lake build, build green).
projectNoProject the proof artifact covers.
theoremsNoDeclared theorems: {name, sorry_count, axioms, native_decide, kernel_checked}.
alignmentNoModel-alignment evidence (mapping documented, model/implementation in sync).
statementsNoStatement-integrity evidence (stated before proving, not weakened silently).
attestationNoBuild-attestation evidence (build log, axiom audit, reproduction recipe).
definitionsNoDefinitions-and-model evidence (total, executable, specs separate).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: the output is a three-valued deterministic verdict, computed checks include zero-sorry, standard-axioms-only and kernel-checked, and per-check evidence is returned. The most valuable disclosure is the trust boundary — it audits declared evidence rather than executing Lean — which prevents an agent from over-trusting the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and the return contract come first, followed by the important limitation, so it is well front-loaded. The dense parenthetical enumeration is efficient but heavy for a single sentence; nothing, however, is genuinely redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, eight optional nested parameters and complex semantics, the description does the necessary work by explaining the verdict vocabulary, the computed checks, and per-check evidence. The one gap is behavior when the manifest is empty or partial (zero required fields) — an agent must infer that this yields INSUFFICIENT_EVIDENCE rather than an error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and every nested object is documented inline, so the schema carries the semantics. The description's list of the seven evidence areas mirrors the parameter names (setup, statements, definitions, proof, theorems, attestation, alignment) almost one-to-one, adding organization but little new meaning. Baseline 3 is appropriate given the high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Submit a declared Lean 4 proof-artifact manifest") and states the concrete output ("deterministic VERIFIED / NOT_VERIFIED / INSUFFICIENT_EVIDENCE verdict across seven sections"). It also scopes what the tool is not ("does not run Lean or prove theorems"), so an agent can identify the function without opening the schema. It stops short of naming a sibling alternative, but no siblings are supplied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Guidance is present in the form of an explicit boundary: it audits declared evidence and neither runs Lean nor proves theorems, which tells an agent when this tool is the wrong choice. The parenthetical enumeration of the seven evidence sections implies when a manifest is applicable. What is missing is a positive trigger (e.g. "use after a build produces an attestation") or any named alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.