Skip to main content

formal-methods

Verify proofs, check theorem correctness, and solve satisfiability problems using Lean 4, Coq, and Z3 SMT solver. Use when the user asks to prove theorems, verify mathematical proofs, check logical satisfiability, or work with proof assistants.

Jump to install

Source facts

Repository
Prismer-AI/Prismer
Last source activity
March 19, 2026 at 07:49
Detected SKILL.md language
English
Stars
794
Forks
38

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
3 files

Showing SKILL.md

SKILL.md
Source instructions ยท Read-only preview
name
formal-methods
description
Verify proofs, check theorem correctness, and solve satisfiability problems using Lean 4, Coq, and Z3 SMT solver. Use when the user asks to prove theorems, verify mathematical proofs, check logical satisfiability, or work with proof assistants.
_source
Canonical source at /skills/formal-methods/SKILL.md
# formal-methods Formal verification tools for the academic workspace. Type-check Lean 4 proofs, verify Coq theories, and solve SMT satisfiability problems with Z3. ## Process 1. **Check availability** โ€” Use `prover_status` to see which provers are installed 2. **Write proof** โ€” Draft your Lean/Coq code or SMT formula 3. **Verify** โ€” Use `lean_check`, `coq_check`, or `z3_solve` to verify 4. **Iterate** โ€” Fix errors based on output and re-check ## Tools - `lean_check` โ€” Type-check Lean 4 code. Params: `code` (required), `filename` - `coq_check` โ€” Check a Coq proof. Params: `code` (required), `filename` - `coq_compile` โ€” Compile Coq to `.vo` object file. Params: `code` (required), `filename` - `z3_solve` โ€” Solve SMT-LIB2 formula. Params: `formula` (required) - `prover_status` โ€” Check available provers and versions. No params. **Example:** ```json { "code": "theorem add_comm (a b : Nat) : a + b = b + a := Nat.add_comm a b" } ``` See [canonical skill](/skills/formal-methods/SKILL.md) for full tool documentation and parameter details.
View on GitHub