Formal Methods
Testing & Qualityformal-methodsFormal Methods is an Agent Skill for testing & quality published in the Prismer-AI/Prismer repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Prismer-AI/Prismer/blob/HEAD/docker/plugin/prismer-workspace/skills/formal-methods/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/formal-methods, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
- Check availability — Use
prover_statusto see which provers are installed - Write proof — Draft your Lean/Coq code or SMT formula
- Verify — Use
lean_check,coq_check, orz3_solveto verify - Iterate — Fix errors based on output and re-check
Tools
lean_check— Type-check Lean 4 code. Params:code(required),filenamecoq_check— Check a Coq proof. Params:code(required),filenamecoq_compile— Compile Coq to.voobject file. Params:code(required),filenamez3_solve— Solve SMT-LIB2 formula. Params:formula(required)prover_status— Check available provers and versions. No params.
Example:
{ "code": "theorem add_comm (a b : Nat) : a + b = b + a := Nat.add_comm a b" }
See canonical skill for full tool documentation and parameter details.