LemmaField

Search verified Lean theorems, retrieve proofs and dependencies, and submit new results for review.

Should I use this

Quality & Safety

A
Description quality
95%
Schema completeness
95%
Naming quality
100%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~2,299Tokens (tool definitions)
~2.6 KBTypical response size
Moderate attention impact (1.80% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "lemmafield": {
      "url": "https://lemma-field.moistswan1.chatgpt.site/api/mcp"
    }
  }
}

Remote endpoints

https://lemma-field.moistswan1.chatgpt.site/api/mcpstreamable-http

What it can do

Tool inventory

Tools (8)

🟒 Read-only🟑 WriteπŸ”΄ Deleteβšͺ Unknown
🟒search_theorems(q, name, field, cursor, limit)

Search verified theorem records and verified declarations within published papers, including theorem aliases. Each paper declaration has its own page. Use q for keywords or name for an exact Lean declaration.

Input Schema

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 0,
      "maxLength": 200,
      "description": "Keywords, record ID or qualified declaration."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Exact qualified Lean declaration name.",
      "pattern": "^[A-Za-z_][A-Za-z_0-9']*(?:\\.[A-Za-z_][A-Za-z_0-9']*)*$"
    },
    "field": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Research field."
    },
    "cursor": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,11}$",
      "description": "Opaque nextCursor from the previous search page."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 60,
      "description": "Published records per page."
    }
  },
  "required": [],
  "additionalProperties": false
}
🟒find_equivalent_theorems(id, candidate, after, limit)

Look up a published record’s certified structural class with its signatures and witness link. Alternatively supply a fingerprint to retrieve unverified candidates.

Input Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
      "description": "Immutable public Lemmafield record ID."
    },
    "candidate": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "enum": [
            "lf-struct-v2",
            "lf-struct-v1"
          ],
          "description": "Normalization algorithm that produced the fingerprint."
        },
        "hash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "64 lowercase hexadecimal SHA-256 digits."
        },
        "canonical": {
          "type": "string",
          "minLength": 1,
          "maxLength": 48000,
          "description": "Optional complete canonical serialization."
        }
      },
      "required": [
        "version",
        "hash"
      ],
      "additionalProperties": false,
      "description": "Structural fingerprint for finding candidate matches. Certification is available via a published record ID."
    },
    "after": {
      "type": "integer",
      "minimum": 0,
      "maximum": 999999999999,
      "description": "Last consumed sequence number."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Certified class page size."
    }
  },
  "required": [],
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "id"
      ]
    },
    {
      "required": [
        "candidate"
      ],
      "not": {
        "anyOf": [
          {
            "required": [
              "after"
            ]
          },
          {
            "required": [
              "limit"
            ]
          }
        ]
      }
    }
  ]
}
🟒get_formal_proof(id)

Read the exact published Lean source and verify its SHA-256 against the accepted record. Available for verified theorems and papers.

Input Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
      "description": "Immutable public Lemmafield record ID."
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
🟒get_dependencies(id, mode)

Retrieve the prerequisite closure. Each edge distinguishes checked kernel use, an immutable import, an editorial prerequisite or research context.

Input Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
      "description": "Immutable public Lemmafield record ID."
    },
    "mode": {
      "type": "string",
      "enum": [
        "proof",
        "research"
      ],
      "default": "proof",
      "description": "Use proof for reusable prerequisite artifacts, or research for broader relationships and context."
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
🟒get_verification_receipt(id)

Read the recorded comparator outcome, pinned toolchain, source hashes, axiom audit and available kernel dependency evidence.

Input Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
      "description": "Immutable public Lemmafield record ID."
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
🟒find_open_problems(field, limit)

List unresolved conjectures on the research frontier, including lease availability.

Input Schema

{
  "type": "object",
  "properties": {
    "field": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Research field."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 60,
      "description": "Number of open problems."
    }
  },
  "required": [],
  "additionalProperties": false
}
🟑submit_theorem(title, field, author, abstract, statement, ...)

Send one Lean theorem to the private intake queue for independent review. Requires explicit author consent, publication license acceptance and a private retry key. Keep the returned receipt secret.

Input Schema

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 180,
      "description": "Title."
    },
    "field": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Research field."
    },
    "author": {
      "type": "string",
      "minLength": 1,
      "maxLength": 90,
      "description": "Author attribution."
    },
    "abstract": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2400,
      "description": "Summary."
    },
    "statement": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16000,
      "description": "Mathematical statement."
    },
    "significance": {
      "type": "string",
      "minLength": 1,
      "maxLength": 3000,
      "description": "Why the result matters."
    },
    "proof": {
      "type": "string",
      "minLength": 1,
      "maxLength": 90000,
      "description": "Lean source using the registry toolchain."
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200,
        "description": "Exact qualified Lean declaration name.",
        "pattern": "^[A-Za-z_][A-Za-z_0-9']*(?:\\.[A-Za-z_][A-Za-z_0-9']*)*$"
      },
      "minItems": 1,
      "maxItems": 1,
      "description": "The single fully qualified Lean theorem name to verify in this submission."
    },
    "licenseAccepted": {
      "type": "boolean",
      "const": true,
      "description": "The author accepts Apache-2.0 for Lean and CC BY 4.0 for text."
    },
    "authorConsent": {
      "type": "boolean",
      "const": true,
      "description": "Set true only when the author explicitly authorized sending this submission."
    },
    "idempotencyKey": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Private retry key. Generate 32 random bytes and reuse this key only for this exact submission."
    },
    "parents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
            "description": "Immutable public Lemmafield record ID."
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "Published generation."
          },
          "proofHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "64 lowercase hexadecimal SHA-256 digits."
          },
          "challengeHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "64 lowercase hexadecimal SHA-256 digits."
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 8,
      "description": "Verified modules to import. Pin each direct parent with its record version and source hashes."
    },
    "extends": {
      "type": "string",
      "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
      "description": "Single-file parent for legacy source extension. Use parents for modular imports."
    },
    "supersedes": {
      "type": "string",
      "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
      "description": "Previously published record that this revision updates."
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "depends_on",
              "builds_on",
              "cites",
              "addresses",
              "resolves"
            ],
            "description": "How the submitted work relates to the published target. Editors review the proposed relation."
          },
          "target": {
            "type": "string",
            "pattern": "^lf-[tcp]-(?:[a-f0-9]{4}|[a-f0-9]{20})$",
            "description": "Immutable public Lemmafield record ID."
          }
        },
        "required": [
          "type",
          "target"
        ],
        "additionalProperties": false
      },
      "minItems": 0,
      "maxItems": 24,
      "description": "Proposed links from this submission to published records."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 48,
        "description": "Subject tag."
      },
      "minItems": 0,
      "maxItems": 10,
      "description": "Short subject terms for catalog discovery."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180,
            "description": "Source title."
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200,
            "description": "HTTPS reference, stored as citation data.",
            "pattern": "^https://"
          }
        },
        "required": [
          "title",
          "url"
        ],
        "additionalProperties": false
      },
      "minItems": 0,
      "maxItems": 8,
      "description": "External citations supporting the submission, each with a title and HTTPS URL."
    }
  },
  "required": [
    "title",
    "field",
    "author",
    "abstract",
    "statement",
    "significance",
    "proof",
    "claims",
    "licenseAccepted",
    "authorConsent",
    "idempotencyKey"
  ],
  "additionalProperties": false
}
🟒get_research_updates(after, limit)

Read ordered public changes after a durable cursor. Persist the returned cursor and continue while hasMore is true.

Input Schema

{
  "type": "object",
  "properties": {
    "after": {
      "type": "integer",
      "minimum": 0,
      "maximum": 999999999999,
      "description": "Last consumed sequence number."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 256,
      "description": "Maximum events in this page."
    }
  },
  "required": [],
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded8 tools