Writing Isabelle proofs
SkillAI & modelsUse when a proof needs Isabelle/HOL, its Sledgehammer automation, or an AFP session. Not for Lean 4: use writing-lean-proofs.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Writing Isabelle proofs skill
What this skill tells your AI
The instructions your AI receives, as published by outlinedriven/odin-claude-plugin in plugins/odin-formal/skills/writing-isabelle-proofs/SKILL.md and read by ahel’s review.
Contract
| Field | Bound contract |
|---|---|
| Trigger | The task is to write, review, or maintain Isabelle/HOL proofs, to drive Sledgehammer against a goal, or to build on an AFP entry. Methodology stays with proof-driven. |
| Authority | Reversible local: writes only theory files, session ROOT files, and Isabelle configuration inside the target project; rollback is version control. No remote mutation. |
| Side effect | Local writes to .thy sources, ROOT session definitions, and the AFP checkout already on disk. No remote mutation. |
| Done | isabelle build of the session succeeds, no sorry remains, and no axiomatization enters the delivered diff. |
Inputs
- Isabelle2025-2, made available January 2026. Install the platform bundle from isabelle.in.tum.de:
Isabelle2025-2_linux.tar.gz,Isabelle2025-2_linux_arm.tar.gz,Isabelle2025-2.exefor Windows, orIsabelle2025-2_macos.tar.gz. There is no LTS, so pin the bundle version. - The theory sources (
.thy), the sessionROOTfile, and for AFP work, the AFP release matching the Isabelle version. - Sledgehammer provers ship with the official package: CVC4, cvc5, E, SPASS, Vampire, veriT, Z3, and Zipperposition.
Procedure
- Open the session in the Prover IDE. Run
isabelle jedit FILESto edit theories in the bundled jEdit Prover IDE, where the prover checks continuously. Define the session in aROOTfile (session Name = HOLwith its theories), and extend the session search with-d DIRor aROOTScatalog when sessions span directories. Done when: the theory holds a checked state in the IDE andisabelle build -D .finds the session. - State the skeleton before proving. Write the target lemma and every helper lemma with
sorryin place of a proof, then have the IDE check the skeleton:sorryis accepted in the IDE and by the batch build alike, and the build only warns, so the IDE is for iterating and the log scan is the completion check. Eachsorrymarks an independent work unit. Done when: everysorryis an identified work unit and the IDE checks the skeleton. - Fill goals: automation first, then structure. Close routine goals with
by simporby auto. For a nontrivial goal, runsledgehammer: it drives the bundled external provers and returns a one-line proof such asby (metis ...), which is pasted into the theory.try0runs a basket of standard methods;nitpickandquickchecksearch for counterexamples. Structure what automation cannot close as Isar:proof ... qedwithfix,assume, andshow(thusexpands tothen show), with theinductionandcasesmethods for recursive and case goals. Keepapplychains short; the manual definesapply mas backwards refinement, and long chains hide the proof state. Done when: everysorryis replaced and the build is green. - Gate the result. The batch build does not fail on
sorry: with the defaultquick_and_dirty = falseit only emits a warning (the theorem is recorded as an oracle), andquick_and_dirtymerely relaxes proof checking rather than gatingsorry. Scan the build log forsorryand the delivered diff forsorryandaxiomatization, and rebuild the session rather than trusting the IDE's incremental state. Done when:isabelle buildsucceeds at the defaults and the build log and delivered diff contain nosorryand no newaxiomatization. - Build on AFP entries. Register the extracted AFP with
isabelle components -u <path-to-afp>/thys, then import an entry by its own session name, for exampleimports "ABC.Some_ABC_Theory". AFP sessions carry no extra namespace prefix. Done when: the AFP import resolves and the session builds.
Failure and recovery
Sledgehammer finds nothing: run nitpick for a countermodel; if none appears, split the lemma or add the missing intermediate lemma, because the statement may be true but unprovable as stated. A pasted hammer one-liner fails on rebuild: it depended on facts visible only in the IDE state, so supply them with using or write the Isar proof by hand. Build error: fix the theory at the reported line; the build names the session. Timeout: split the proof into intermediate have steps instead of raising any time budget. Session drift: rebuild the session from the ROOT definition. Scope creep: stop and roll back to the last verified state.
Output
Theory files and a ROOT session that build green under isabelle build at the defaults, delivered lemmas with no sorry, Sledgehammer one-liners confirmed by the batch build, and, where AFP is used, imports that resolve by AFP entry session name.
Signals
- GitHub stars
- 35
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
writing-isabelle-proofs- Source
- github.com/outlinedriven/odin-claude-plugin