# Lean Mathlib 4 Documentation

> Use this tool when you need to quickly search and access mathematical constructs in Lean Mathlib 4, such as theorems and definitions, to aid in formal verification and mathematical formalization. It solves problems of information overload and slow lookup times by providing regex-based search functionality and returning formatted results with documentation links and type information. Ideal for mathematicians and formal verification practitioners working with Lean who require efficient access to Mathlib's extensive library.

Canonical page: https://skillsregistry.net/skills/criticalline-lean-mathlib-docs  
JSON: https://api.skillsregistry.net/v1/skills/criticalline-lean-mathlib-docs

## Description

Enables searching through Lean Mathlib 4 documentation by downloading and parsing declaration data from the official Lean community documentation site. Provides regex-based search functionality to find theorems, definitions, and other mathematical constructs by name, returning formatted results with documentation links and type information. Designed for mathematicians and formal verification practitioners working with Lean who need quick access to Mathlib's extensive library of mathematical formalization.

## Trust

- **Trust score (0–1):** 0.97
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** search
- **Updated:** 2026-09-19

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/criticalline-lean-mathlib-docs)
- **Repository:** <https://github.com/criticalline/lean-mathlib-docs-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "criticalline-lean-mathlib-docs"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/criticalline-lean-mathlib-docs` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/criticalline-lean-mathlib-docs/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
