lean4

Automate Lean4 proof development with LSP-powered editing and mathlib lemma search.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/Wenbobobo/AutoArchon --skill lean4-wenbobobo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean4
Source: https://github.com/Wenbobobo/AutoArchon/tree/main/.archon-src/skills/lean4/skills/lean4
Command: npx skills add https://github.com/Wenbobobo/AutoArchon --skill lean4-wenbobobo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lean developers often struggle with editing Lean files, debugging Lean builds, and locating relevant mathlib lemmas. This Skill provides an interactive, LSP-powered assistant to streamline Lean4 proof development, search, and formalization workflows.

Core Features & Use Cases

  • LSP-based real-time feedback for goals, diagnostics, and lemma search while editing Lean files.
  • Guided proof cycles: plan → work → checkpoint → review → replan → continue for both interactive proving and autonomous proof repair.
  • Extensive reference material and learning aids to navigate mathlib, tactics, and documentation.

Quick Start

Open a Lean file and start /lean4:prove to begin an interactive proof session.

Frequently Asked Questions about lean4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug Lean4 type errors when editing Lean files?

To debug Lean4 type errors when editing Lean files, use an interactive, LSP-powered assistant that provides real-time feedback on goals and diagnostics to streamline proof development.

What is the best way to search mathlib for relevant lemmas during formalization?

The best way to search mathlib for lemmas during formalization is using an LSP-powered assistant that queries mathlib directly while editing Lean files to locate relevant proofs.

How do I start an interactive proof session in Lean4?

To start an interactive proof session in Lean4, open a Lean file and invoke the prove command to enter a guided cycle of planning, working, checkpointing, and reviewing.

Can I automate proof repair cycles for Lean4 formalization workflows?

Yes, you can automate proof repair cycles for Lean4 formalization workflows using a structured cycle-engine that iteratively plans, checks, and replans to ensure safe incremental progress.

Does LSP tooling support autonomous proving in Lean4?

LSP tooling supports autonomous proving in Lean4 by powering an assistant that delivers real-time diagnostics and guides formalization workflows through interactive and autoprove cycles.