lean-check

Formalize mathematical statements in Lean 4 and verify them with lake build.

127|22|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/flonat/flonat-research --skill lean-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-check
Source: https://github.com/flonat/flonat-research/tree/main/skills/lean-check
Command: npx skills add https://github.com/flonat/flonat-research --skill lean-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lean, mathlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a rigorous method for machine-verifying mathematical lemmas and theorems by formalizing them in Lean 4 + mathlib and running lake build.

Core Features & Use Cases

  • Machine Verification: Automatically verify the correctness of mathematical statements.
  • Lean 4 + mathlib: Works with the Lean 4 theorem prover and the mathlib library.
  • Use Case: When you have a lemma or theorem you want to be absolutely certain is correct, you can use this Skill to formalize it in Lean and run lake build to machine-check it.

Quick Start

Use the lean-check skill to formalize and machine-check the statement "If a number is even, its square is even."

Frequently Asked Questions about lean-check

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

FAQPage Schema
How do I machine-verify a mathematical theorem using Lean 4?

To machine-verify a theorem, formalize the mathematical statement in Lean 4 and mathlib, then run `lake build` to execute the strict proof check. This verifies correctness for academic research and software development.

What is formal verification of mathematical lemmas in Lean?

Formal verification in Lean is the process of translating lemmas into a formal language to mechanically check validity. This provides absolute certainty of correctness for mathematical proofs.

Do I need Lean 4 and mathlib installed to use formal verification?

Yes, formal verification requires both Lean 4 and mathlib installed on your system. These dependencies are necessary to formalize statements and execute `lake build` for machine checking.

How do I formalize and check a self-authored lemma in Lean?

To check a self-authored lemma, translate the mathematical statement into Lean 4 syntax using mathlib definitions, then execute `lake build` to run the automated machine verification process.

Can I use this approach for theorem proving in software development?

Yes, you can use theorem proving in software development to rigorously verify mathematical statements. Formalizing logic in Lean 4 and running `lake build` ensures critical algorithms are mathematically correct.