Lean theorems verified by QED: exact statements, kernel verdicts, axioms and the signed log.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Has this been proved already? Give a Lean statement, or the SHA-256 of a statement or of its exported type. exact holds only theorems with that hash. For text, QED offers candidates and says nothing about your statement itself: similar lists verified theorems with a similar statement (match same_shape when the text is the same once the theorem name, the names of bound variables and notation such as Nat for ℕ are set aside, binder types included; similar_statement with a score), and negations lists verified theorems whose statement reads as the negation of yours (match negated_shape). QED does not elaborate the text, so a candidate can state something else: read its statement and check it in Lean before you report it. An item with polarity: disproof is a verified disproof of the statement its name refers to. No match does not mean unproved. Call this before spending compute on a statement.
Similar statements to return: 1 to 50, 10 by default.
A Lean statement, such as "theorem t (n : ℕ) : n + 0 = n", or just its type.
SHA-256 of the exported type, 64 hexadecimal digits, as get_theorem gives it.
SHA-256 of the statement: its type and every definition it uses, as get_theorem gives it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http qed https://qedsquare.com/mcp
Has this been proved already? Give a Lean statement, or the SHA-256 of a statement or of its exported type. exact holds only theorems with that hash. For text, QED offers candidates and says nothing about your statement itself: similar lists verified theorems with a similar statement (match same_shape when the text is the same once the theorem name, the names of bound variables and notation such as Nat for ℕ are set aside, binder types included; similar_statement with a score), and negations lists verified theorems whose statement reads as the negation of yours (match negated_shape). QED does not elaborate the text, so a candidate can state something else: read its statement and check it in Lean before you report it. An item with polarity: disproof is a verified disproof of the statement its name refers to. No match does not mean unproved. Call this before spending compute on a statement.
| Argument | Type | Description |
|---|---|---|
| limit | integer | null | Similar statements to return: 1 to 50, 10 by default. |
| statement | string | null | A Lean statement, such as "theorem t (n : ℕ) : n + 0 = n", or just its type. |
| type_sha256 | string | null | SHA-256 of the exported type, 64 hexadecimal digits, as get_theorem gives it. |
| statement_sha256 | string | null | SHA-256 of the statement: its type and every definition it uses, as get_theorem gives it. |
{
"type": "object",
"properties": {
"limit": {
"type": [
"integer",
"null"
],
"format": "int64",
"maximum": 50,
"minimum": 1,
"description": "Similar statements to return: 1 to 50, 10 by default."
},
"statement": {
"type": [
"string",
"null"
],
"maxLength": 20000,
"description": "A Lean statement, such as \"theorem t (n : ℕ) : n + 0 = n\", or just its type."
},
"type_sha256": {
"type": [
"string",
"null"
],
"description": "SHA-256 of the exported type, 64 hexadecimal digits, as get_theorem gives it."
},
"statement_sha256": {
"type": [
"string",
"null"
],
"description": "SHA-256 of the statement: its type and every definition it uses, as get_theorem gives it."
}
},
"additionalProperties": false
}Read a public collection release by account, name and version, with the current verification status of its pinned revisions.
| Argument | Type | Description |
|---|---|---|
| slug* | string | |
| account* | string | |
| version* | string |
{
"type": "object",
"required": [
"account",
"slug",
"version"
],
"properties": {
"slug": {
"type": "string"
},
"account": {
"type": "string"
},
"version": {
"type": "string"
}
},
"additionalProperties": false
}Entries of QED's attestation log, oldest first, to walk the hash chain. Each entry's entry_sha256 is the SHA-256 of {"attestation_sha256","prev","seq"} as JSON with sorted keys and no whitespace, and its prev is the entry_sha256 of the entry before it. Start with after 0 and pass next_after for the next page; get_log_head gives the signed position to stop at.
| Argument | Type | Description |
|---|---|---|
| after | integer | null | Return entries after this position: 0 for the first page, then next_after. |
| limit | integer | null | Entries to return: 1 to 1000, 100 by default. |
{
"type": "object",
"properties": {
"after": {
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0,
"description": "Return entries after this position: 0 for the first page, then next_after."
},
"limit": {
"type": [
"integer",
"null"
],
"format": "int64",
"maximum": 1000,
"minimum": 1,
"description": "Entries to return: 1 to 1000, 100 by default."
}
},
"additionalProperties": false
}The newest signed head of QED's attestation log: position, hash, Ed25519 signature, whether it checks out against QED's published key, and its Sigstore Rekor entry when there is one.
No arguments.
{
"type": "object",
"additionalProperties": false
}Get the current state and verification of a draft owned by the account in the HTTP Authorization header.
| Argument | Type | Description |
|---|---|---|
| id* | string |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}Read the exact Lean theorem, proof connections in its published revision, and withdrawal status.
| Argument | Type | Description |
|---|---|---|
| name* | string | |
| release_id* | string |
{
"type": "object",
"required": [
"release_id",
"name"
],
"properties": {
"name": {
"type": "string"
},
"release_id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}Read a public QED release by id, including its source, exact theorem results and attestation.
| Argument | Type | Description |
|---|---|---|
| id* | string |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}Read the steps and verdict of an exact verification run for a draft you own. Requires a QED access token in the HTTP Authorization header.
| Argument | Type | Description |
|---|---|---|
| run_id* | string | |
| draft_id* | string |
{
"type": "object",
"required": [
"draft_id",
"run_id"
],
"properties": {
"run_id": {
"type": "string",
"format": "uuid"
},
"draft_id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}One project: its repository, licence, source, latest verified commit and toolchain, and how many of its theorems are listed.
| Argument | Type | Description |
|---|---|---|
| project* | string | Project slug, such as mathlib, in any letter case. |
{
"type": "object",
"required": [
"project"
],
"properties": {
"project": {
"type": "string",
"description": "Project slug, such as mathlib, in any letter case."
}
},
"additionalProperties": false
}A file of a verification run: spec.json (what the run checked) and environment.json (the toolchain, packages and kernels it used), which a witness needs to repeat the run, or a submitted pair's sources.
| Argument | Type | Description |
|---|---|---|
| id* | string | Verification id (UUID). |
| name* | string | A name from the run's files, as get_verification lists them: spec.json, environment.json, or a submitted pair's Challenge.lean and Solution.lean. |
{
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"description": "Verification id (UUID)."
},
"name": {
"type": "string",
"description": "A name from the run's files, as get_verification lists them: spec.json, environment.json, or a submitted pair's Challenge.lean and Solution.lean."
}
},
"additionalProperties": false
}The output of one step of a verification run, as plain text with line numbers counted from 1. Returns at most max_lines lines from start_line; more says whether lines follow.
| Argument | Type | Description |
|---|---|---|
| id* | string | Verification id (UUID). |
| step* | integer | Step number, as get_verification lists them. |
| max_lines | integer | null | Lines to return: 1 to 2000, 400 by default. |
| start_line | integer | null | The first line to return, from 1. |
{
"type": "object",
"required": [
"id",
"step"
],
"properties": {
"id": {
"type": "string",
"description": "Verification id (UUID)."
},
"step": {
"type": "integer",
"format": "uint64",
"minimum": 1,
"description": "Step number, as get_verification lists them."
},
"max_lines": {
"type": [
"integer",
"null"
],
"format": "uint64",
"maximum": 2000,
"minimum": 1,
"description": "Lines to return: 1 to 2000, 400 by default."
},
"start_line": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 1,
"description": "The first line to return, from 1."
}
},
"additionalProperties": false
}Where an earlier repository submission stands: its state, its place in the queue, its runs, the run under way (running, which get_verification and get_step_log read as it happens), the theorems it got listed, and the theorems a run checked but did not list, each with the reason. When finished is false, call again after poll_after_seconds.
| Argument | Type | Description |
|---|---|---|
| id* | string | The id QED gave out: a UUID. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The id QED gave out: a UUID."
}
},
"additionalProperties": false
}One theorem: the fields search_theorems returns, and the exact Lean statement QED checked, each kernel's verdict and whether it counted, the axioms, the environment, its runs, the constants it uses and the listed theorems that use it. Every reference carries project and name. For polarity: disproof, statement is the negation of the named statement, and the record is a disproof of it. QED checked the Lean statement only.
| Argument | Type | Description |
|---|---|---|
| name* | string | Full Lean name, such as Nat.Prime.two_le. |
| project* | string | Project slug, such as mathlib, in any letter case. |
{
"type": "object",
"required": [
"project",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Full Lean name, such as Nat.Prime.two_le."
},
"project": {
"type": "string",
"description": "Project slug, such as mathlib, in any letter case."
}
},
"additionalProperties": false
}One verification run: result, each step with its status, exit code and duration, the kernels' verdicts, the sealed attestation, its log entry, the signed head that covers it, witness runs, and the files a witness needs to repeat it. get_step_log returns a step's output and get_run_file a file. A run under way (get_submission's running.id) answers with result running, sealed false and its steps so far.
| Argument | Type | Description |
|---|---|---|
| id* | string | The id QED gave out: a UUID. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The id QED gave out: a UUID."
}
},
"additionalProperties": false
}The fields and areas QED files theorems under, with their ids and counts. search_theorems takes a field id.
No arguments.
{
"type": "object",
"additionalProperties": false
}A project's verified theorems by date: new results first, or latest runs first. Use first_verified_after for what a project proved since a day.
| Argument | Type | Description |
|---|---|---|
| sort | string | null | New results first (the default) or latest runs first. |
| limit | integer | null | Results per page: 1 to 100, 20 by default. |
| cursor | string | null | next_cursor from a previous call with the same arguments. |
| status | string | null | |
| project* | string | Project slug, such as mathlib, in any letter case. list_projects names them. |
| verified_after | string | null | A day, 2026-12-01, or a time in RFC 3339 |
| first_verified_after | string | null | A day, 2026-12-01, or a time in RFC 3339 |
{
"type": "object",
"required": [
"project"
],
"properties": {
"sort": {
"enum": [
"first_verified",
"last_verified"
],
"type": [
"string",
"null"
],
"description": "New results first (the default) or latest runs first."
},
"limit": {
"type": [
"integer",
"null"
],
"format": "int64",
"maximum": 100,
"minimum": 1,
"description": "Results per page: 1 to 100, 20 by default."
},
"cursor": {
"type": [
"string",
"null"
],
"description": "next_cursor from a previous call with the same arguments."
},
"status": {
"enum": [
"verified",
"conditional"
],
"type": [
"string",
"null"
]
},
"project": {
"type": "string",
"description": "Project slug, such as mathlib, in any letter case. list_projects names them."
},
"verified_after": {
"type": [
"string",
"null"
],
"description": "A day, 2026-12-01, or a time in RFC 3339"
},
"first_verified_after": {
"type": [
"string",
"null"
],
"description": "A day, 2026-12-01, or a time in RFC 3339"
}
},
"additionalProperties": false
}Every project with verified theorems: its slug, repository, licence, latest verified commit and toolchain, and its counts.
No arguments.
{
"type": "object",
"additionalProperties": false
}Every source QED reads candidates from (libraries, repositories, direct submissions), with its verified theorems, its number of projects and its candidates by state. list_projects names the projects.
No arguments.
{
"type": "object",
"additionalProperties": false
}Publish a named version of an ordered collection of exact public revisions. Requires a QED access token in the HTTP Authorization header.
| Argument | Type | Description |
|---|---|---|
| slug* | string | |
| notes | string | |
| title* | string | |
| version* | string | |
| releases* | array |
{
"type": "object",
"required": [
"slug",
"version",
"title",
"releases"
],
"properties": {
"slug": {
"type": "string"
},
"notes": {
"type": "string",
"default": ""
},
"title": {
"type": "string"
},
"version": {
"type": "string"
},
"releases": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
}
},
"additionalProperties": false
}Publish the source and theorem results of a selected passing verification of your draft. This creates a public release. Requires a QED access token in the HTTP Authorization header.
| Argument | Type | Description |
|---|---|---|
| draft_id* | string | |
| verification_id* | string |
{
"type": "object",
"required": [
"draft_id",
"verification_id"
],
"properties": {
"draft_id": {
"type": "string",
"format": "uuid"
},
"verification_id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}Queue a private verification of a QED source revision. Requires a QED access token in the HTTP Authorization header. Repeating the same upload returns its draft id.
| Argument | Type | Description |
|---|---|---|
| project* | string | |
| revision* | object | A standalone Lean file and the inputs needed to identify and reproduce it. The revision is the SHA-256 of the compact JSON encoding of `source`, with the fields in schema order. It includes the exact source bytes and the citation. |
{
"type": "object",
"required": [
"project",
"revision"
],
"properties": {
"project": {
"type": "string"
},
"revision": {
"type": "object",
"required": [
"revision",
"source"
],
"properties": {
"source": {
"type": "object",
"required": [
"schema",
"toolchain",
"lean"
],
"properties": {
"lean": {
"type": "string"
},
"schema": {
"type": "string"
},
"citation": {
"type": [
"object",
"null"
],
"required": [
"url",
"locator"
],
"properties": {
"url": {
"type": "string"
},
"locator": {
"type": "string"
}
},
"additionalProperties": false
},
"toolchain": {
"type": "string"
}
},
"additionalProperties": false
},
"revision": {
"type": "string"
}
},
"description": "A standalone Lean file and the inputs needed to identify and reproduce it.\nThe revision is the SHA-256 of the compact JSON encoding of `source`, with the\nfields in schema order. It includes the exact source bytes and the citation.",
"additionalProperties": false
}
},
"additionalProperties": false
}Search theorems in published QED releases by Lean name or words in the statement, account or project. Each result links to the exact release and includes the theorem's verification status and date. When capped is true, narrow the query to find other matches.
| Argument | Type | Description |
|---|---|---|
| q* | string | A Lean name or words from the statement, account or project. |
| limit | integer | null | |
| cursor | string | null | The cursor from the previous page, with the same query and status. |
| status | string | null |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"maxLength": 300,
"minLength": 1,
"description": "A Lean name or words from the statement, account or project."
},
"limit": {
"type": [
"integer",
"null"
],
"format": "int64",
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": [
"string",
"null"
],
"description": "The cursor from the previous page, with the same query and status."
},
"status": {
"enum": [
"verified",
"conditional"
],
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}Search Lean theorems that QED verified, by a Lean name (whole, its start or its last part) or by words in names, statements and docstrings. Without a query, theorems come newest first. Each result has its statement, status, polarity, dates, non-standard axioms, the verification behind it, and summary: one sentence to report. polarity: disproof means QED verified that the statement the name refers to does not hold; report it as a disproof of that name, never as the name verified. QED ranks at most 2,000 matches by words; total_is_lower_bound says when more match, and next_cursor gives the next page.
| Argument | Type | Description |
|---|---|---|
| sort | string | null | Only without a query: new results first (the default) or latest runs first. |
| field | string | null | A field id, such as mathematics/number-theory. list_fields names them. |
| limit | integer | null | Results per page: 1 to 50, 10 by default. |
| query | string | null | Words, a Lean name or part of one, such as "Nat.Prime.two_le" or "infinitely many primes". |
| cursor | string | null | next_cursor from a previous call with the same arguments. |
| status | string | null | |
| project | string | null |
We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 6, 2026.
| A project slug, such as mathlib. list_projects names them. |
| verified_after | string | null | A day, 2026-12-01, or a time in RFC 3339 |
| first_verified_after | string | null | A day, 2026-12-01, or a time in RFC 3339 |
{
"type": "object",
"properties": {
"sort": {
"enum": [
"first_verified",
"last_verified"
],
"type": [
"string",
"null"
],
"description": "Only without a query: new results first (the default) or latest runs first."
},
"field": {
"type": [
"string",
"null"
],
"description": "A field id, such as mathematics/number-theory. list_fields names them."
},
"limit": {
"type": [
"integer",
"null"
],
"format": "int64",
"maximum": 50,
"minimum": 1,
"description": "Results per page: 1 to 50, 10 by default."
},
"query": {
"type": [
"string",
"null"
],
"description": "Words, a Lean name or part of one, such as \"Nat.Prime.two_le\" or \"infinitely many primes\"."
},
"cursor": {
"type": [
"string",
"null"
],
"description": "next_cursor from a previous call with the same arguments."
},
"status": {
"enum": [
"verified",
"conditional"
],
"type": [
"string",
"null"
]
},
"project": {
"type": [
"string",
"null"
],
"description": "A project slug, such as mathlib. list_projects names them."
},
"verified_after": {
"type": [
"string",
"null"
],
"description": "A day, 2026-12-01, or a time in RFC 3339"
},
"first_verified_after": {
"type": [
"string",
"null"
],
"description": "A day, 2026-12-01, or a time in RFC 3339"
}
},
"additionalProperties": false
}