theformalera mcp starts an MCP server with the spec and verification tools.
theformalera.toml and a lock. For example, to register it with Claude Code:
Tools
verify.quick and verify.full verify the source in a scratch copy of the project, against the project’s locked specs, with the local engine.
The loop
- Call
spec.getfor the node you are implementing. Implement that definition, not the reference modeling file. The Lean definition is unambiguous: Qwen3.8’s(1 + w)RMSNorm weight is spelled out. - Call
lemma.searchwith the same key. When performance is comparable, prefer the patterns existing lemmas cover: verification is faster and UNKNOWN is rarer. - Write the kernel and its
@tfe.implementsannotation together. - Call
verify.quick. On a counterexample, fix the kernel using the witness,holds_whenandsuspect, then call it again. - When it passes, call
verify.full, then tune performance. Performance work must keepverify.fullpassing. - Open the PR. CI is the final gate.
AGENTS.md
theformalera init writes an AGENTS.md with these rules, so any agent working in the repository follows them:
AGENTS.md
