Isabelle Pool Server: a pooled verification service for prover training and multi-agent proving
Organizations: School of Informatics, University of Edinburgh, UK.
Abstract
Isabelle Pool Server (IPS), a verification service with a pool of warm headless Isabelle sessions behind an HTTP API, with session leasing and reclamation, memory-aware admission control, and a time budget on every call. Its verification interface spans single-step execution, block-level proof checking and whole-theory builds, with checkpoints for cheap branching and backtracking, and a build from scratch as the final arbiter. The service runs as a single container with monitoring and is accessible via a Python client, two MCP servers and a raw HTTP API. In our measurements IPS is level with PIDE MCP, a PIDE frontend for agents, at one worker and ahead of it at eight, at its commit of October 2026 (the tool is now PIDE AI). Once its sessions are up it scales to 32 concurrent workers on one host at 24 times the single-worker rate, and under memory pressure it refuses new sessions rather than losing existing ones. IPS is free software and publicly available at https://github.com/Deep-LCF/Isabelle-Pool-Server
Figures & tables
| Term | Meaning | Source |
|---|---|---|
| heap | the persistent heap image of a logic session, which captures the state of its theories; built once by Ag isabelle build and loaded by every session that starts on it | Wenzel [ 19 ] , §2 |
| session | an Isabelle/PIDE session with its underlying Isabelle/ML process, started on a heap, as Ag isabelle server ’s Ag session_start does | Wenzel [ 19 ] , §4.4 |
| settled | every command of the node has finished or failed, the node status under which Ag use_theories returns | Wenzel [ 19 ] , §4.3 |
| batch build | Ag isabelle build of the theory on its heap: the whole-file check, and the final verdict | Wenzel [ 19 ] , §2 |
| perspective, overlay | the visible range of a node, which decides where PIDE runs its print functions; a query attached to a command without an edit | Wenzel [ 18 ] , §3.1 |
| node | a unit of the PIDE document: a theory, or an auxiliary file such as an ML file; the preprint’s “document” | Wenzel [ 17 ] |
| Connector (version read) | Client reaches it by | It reaches Isabelle by | What it keeps between calls |
|---|---|---|---|
| PISA, qIsabelle | REPL protocol | Isabelle/ML | one prover process per worker, named states |
| I/R (AutoCorrode) | command line, TCP, MCP wrapper | Isabelle/ML | a set of REPLs that can be forked |
| Ag isabelle build | command line | a batch process | nothing |
| Ag isabelle server (Isabelle2026) | TCP line protocol | PIDE, direct | several sessions |
| Isabelle-MCP 0.7.0 | MCP | the language server (a fork of Ag vscode_server ) | one session, one agent per process |
| I/Q (AutoCorrode) | MCP | PIDE, indirect, through Isabelle/jEdit | the editor’s session |
| Question | Metric | Measured as |
| Training scenario (Section 5 ) | ||
| How many verified chunks per minute? | throughput | Ag verify_chunk calls per minute against worker count, with and without session starts |
| How many rollouts per hour? | rollout rate | scripted whole-proof and step-level loops, rollouts and verified steps per hour against worker count |
| Can I branch and backtrack cheaply? | branch cost | restore time against replaying to the same proof state |
| Multi-agent serving scenario (Section 6 ) | ||
| How many sessions fit in a host? | capacity | memory per session at steady state, by heap; sessions per 100 GB |
| Mode | Use it when | Returns | Rolled back on failure | Parallel checking |
|---|---|---|---|---|
| One command | the loop wants the proof state after each step | status and messages of that command | yes | no |
| Chunk ( Ag verify_chunk ) | a candidate step or proof is one block | per-command status; Ag success , Ag proof_open , Ag used_sorry , Ag timed_out | yes, the whole block | within the block |
| Whole file | a verdict must be final | the build’s result; cached by content | stateless | the build’s |
| Batch (MCP Ag verify_batch ) | many independent chunks from one agent | one chunk verdict per item | a clean session per item, closed after | across the pool, client-side |
| Whole-proof loop | Step-level loop | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| W | rollouts/h | proved/h | s per rollout | setup | idle | paths/h | verified steps/h | s per path | setup | idle |
| 1 | 6 436 | 954 | 0.60 | 0.22 | 0.00 | 596 | 2 343 | 3.67 | 0.36 | 0.00 |
| 8 | 20 778 | 2 839 | 0.60 | 0.30 | 0.39 | 1 613 | 15 243 | 3.65 | 0.36 | 0.19 |
| 32 | 34 518 | 4 798 | 0.60 | 0.68 | 0.21 | 2 071 | 20 042 | 3.67 | 0.62 | 0.23 |
| Operation | p50 | p95 |
|---|---|---|
| Save a checkpoint | 3 ms | 4 ms |
| Restore a checkpoint (the call) | 4 ms | 5 ms |
| Branch cost: restore call plus settling delay | 4 ms | 200 ms |
| Roll back the last submission (settled) | 110 ms | 216 ms |
| Replay the prefix in a new node, same session | 30 s | 165 s |
| Replay the prefix in a new session | 35 s | 169 s |
| Tool | Heap | Settled MB per session | Re-check peak MB per session | Sessions per 100 GB | Cold start p50/p95 s |
|---|---|---|---|---|---|
| IPS | HOL | 886 | 887 | 111 | 2.3 / 3.9 |
| IPS | HOL-Library | 1077 | 1092 | 91 | 3.4 / 5.1 |
| IPS | HOL-Analysis | 1263 | 1267 | 77 | 6.0 / 8.2 |
| PIDE MCP A | HOL | 1266 | 1320 | 78 | 2.0 / 3.2 |
| PIDE MCP A | HOL-Library | 1495 | 1915 | 66 | 3.0 / 4.3 |
| PIDE MCP A | HOL-Analysis | 1461 | 1602 | 67 | 5.8 / 7.1 |
| HOL | HOL-Library | HOL-Analysis | |
|---|---|---|---|
| Warm hit (a released session acquired again), p50 | 0.002 s | 0.002 s | 0.002 s |
| Cold start on a built heap, p50 / p95 | 2.3 / 3.9 s | 3.4 / 5.1 s | 6.0 / 8.2 s |
| Heap build from sources (once) | 4 s † | 114 s | 360 s |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| W | chunks/min verify only | repeats min–max | commands per min | chunks/min with session starts | acquisition share | census work rate | slowdown vs census | p50 s | p95 s | PSS peak GB |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 132 | 108–132 | 1 607 | 113 | 0.10 | 0.97 | 1.02 | 0.41 | 0.92 | 6.5 |
| 2 | 281 | 230–286 | 3 713 | 183 | 0.12 | 1.44 | 1.04 | 0.41 | 0.92 | 7.5 |
| 4 | 474 | 469–503 | 6 576 | 297 | 0.12 | 2.58 | 1.08 | 0.41 | 1.06 | 11.3 |
| 8 | 927 | 902–975 | 12 501 | 497 | 0.14 | 4.45 | 1.17 | 0.42 | 1.22 | 16.0 |
| 16 | 1 677 | 1 558–1 718 | 22 353 | 789 | 0.30 | 7.07 | 1.62 | 0.47 | 1.41 | 26.5 |
| 32 | 3 181 | 3 162–3 214 | 44 877 | 899 | 0.64 | 8.33 | 3.13 | 0.52 | 1.50 | 28.3 |
| Proof as submitted | flag it targets | n | in-session | batch build |
|---|---|---|---|---|
| Proof replaced by Ag sorry | Ag used_sorry | 200 | Ag used_sorry fired in 200 | rejected 200 |
| Last closing step removed | Ag proof_open | 200 | Ag proof_open fired in 200 | rejected 200 |
| A fact name undefined | Ag success | 197 | Ag success false in 197, 13 of them at the budget | rejected 197 |
| Block unchanged | none | 200 | no flag fired in 200 | accepted 200 |
| Theory as written | none | 93 | no flag fired in 93 | accepted 93 |
| Looping step | Budget | Attempts | Returned at budget | Rollback p50 / p95 | Memory left, p50 | |
|---|---|---|---|---|---|---|
| Ag metis , up to 56 facts | 5 s | 50 | 50 | 0.07 s | 0.45 s | 4 MB |
| 30 s | 10 | 10 | 0.30 s | 0.60 s | 127 MB | |
| 120 s | 3 | 3 | 0.28 s | 0.35 s | 1 MB | |
| Ag subst rewrite loop | 5 s | 38 | 38 | 0.05 s | 0.52 s | 4 MB |
| 30 s | 8 | 8 | 0.54 s | 4.21 s | 1 181 MB | |
| 120 s | 1 | 1 | 0.35 s | 0.35 s | 7 116 MB | |