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 ]
Table 1: Terms used throughout the report, and whose definition each is.
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
Table 2: Isabelle connectors: how a client reaches each, how each reaches Isabelle (the first two questions of this section), and what each keeps between calls. Only PIDE MCP at Ag dd46315 and IPS were measured.
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
Table 3: Each scenario’s questions, the metric that answers each, and how it is measured. The last group checks two properties of the implementation rather than measuring a scenario.
Figure 1: IPS as a system. A training harness or an agent reaches the server through the Python client, one of the two bundled MCP servers or plain HTTP. The server leases sessions, admits new ones by memory, keeps project heaps and runs batch builds; a gateway JVM drives one headless PIDE session for each session of the pool, each with an Isabelle/ML process started from a heap. Arrows show who calls whom; every call returns its result along the same path. The dashed arrow from the heaps shows where a prover is loaded from.
Figure 2: How a request for a session is resolved, after Kimina’s dispatch figure [ 5 ] . A request that finds no warm session needs a heap that covers the imports, memory for one more session once idle ones are reclaimed, and a free slot or an idle session to evict; the first that is missing is the reason it is refused.
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
Table 4: The verification modes.
Figure 3: Verified chunks per minute against the number of workers. The dotted line is linear scaling from the single-worker rate. The verify-only line is the rate once sessions are up; it falls below the dotted line as calls slow, from 0.41 to 0.52 s at the median. The line with session starts also counts the start of each theory’s session; the gap between the two is the share of a worker’s time spent acquiring a session, 10–14 % up to 8 workers and 64 % at 32. Lines are the medians of three repeats; the small points are the repeats. Eight theories per worker.
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
Table 5: Scripted rollout loops at W workers, two repeats each. A path is one step-level rollout: a theorem’s proof walked command by command. Rates are end to end: session acquisition, entering the theory and replaying up to each problem included. “s per rollout” is a worker’s loop time per rollout on the theories every cell shares, the like-for-like comparison across W . Setup is the share of a worker’s time in acquisition, entering and replaying to the problems; idle the share of the workers’ time outside any call, mostly workers already finished. No rollout ended in a memory, prover-death or session error; the candidates’ timeout share was 0.5–2 %.
Figure 4: Time to go back to a proof state, against the number of commands before it, for 200 states: by a restore call, by a rollback, and by replaying the prefix in a new theory node of the same session or in a new session. At this scale the branch cost, the restore call plus its settling delay, cannot be told from the restore call alone; Table 6 gives it.
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
Table 6: The cost of going back to a proof state, over 200 states. The replay rows pool the three positions; Figure 4 shows them against the prefix length.
Figure 5: Memory of the tool’s processes (summed PSS) against the number of sessions k , one column per heap, three repeats per point as small marks with the line through their median. Top: after every session has loaded and checked its theory. Bottom: at the concurrent re-check of all k theories (the re-check peak, Appendix C ). IPS: one pool. PIDE MCP A: one process holding k sessions. PIDE MCP B: k processes, one session each.
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
Table 7: Capacity and latency from the capacity runs (E1 in Appendix C ), on the processes’ summed PSS. Settled MB per session: the least-squares marginal cost over k = 1…32 (18 cells per row) after the theories are loaded; peak: the same at the concurrent re-check; sessions in a 100 GB budget (102 400 MB) after the fit’s fixed cost, rounded down; the cold-start latency. The fixed cost is the fit’s intercept: 3.7–4.2 GB for IPS (the server and the gateway JVM) and 2.4–3.2 GB for PIDE MCP A (its JVM); PIDE MCP B has no fixed process and its intercepts lie within 0.5 GB of zero.
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
Table 8: Acquisition latency under IPS, by case. Warm hits: 4 sessions, 3 rounds, every acquisition reused the session its client had released. Cold starts: the session starts of the capacity runs. Heap builds: the base heaps on this host. † HOL was already built by the Isabelle installation; the figure is the check, not a build.
Figure 6: Empirical cumulative distribution F(t)=Pr[T≤t]=n1∣{i:Ti≤t}∣ of the latency T of one call at one worker, over the same n=2966 chunks under both tools, Ti being the latency of chunk i under the tool, the median over the repeats that ran it; each curve passes through every 0.5 % quantile (Appendix C ). The vertical runs are the 0.1 s step of both tools, the interval at which IPS re-reads the node and at which our harness polls PIDE MCP; the dotted line is F(t)=0.5 , the median, at 0.41 s under IPS and 0.37 s under PIDE MCP.
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
Appendix
Table 9: T1 at every W : the median of three repeats, with the repeats’ range of the verify-only rate (no call timed out, no theory skipped). Census work rate: the census time of the cell’s theories over the cell’s wall time, the number of single-worker replays the cell is worth; speedup and efficiency in the body are on it. Slowdown: the cell’s replay time over the census time of the same theories, acquisition included.
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
Appendix
Table 10: Each verdict flag against the failure it is meant to catch, with a batch build of the same text as the reference. A flag that fires rejects the proof in-session. The mutations change the proof text only; statements and axioms are as in the library. Three blocks have no fact name to replace.
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
Appendix
Table 11: Looping steps under a budget, one worker. Rollback is the wall time past the budget until the call returned with the step rolled back. Memory left is the prover’s resident set after the attempt minus before it. Twelve of the 50 rewriting steps did not loop and are left out.
Reusable Web-agent verification requires a rule to follow changing requirements and support subsequent execution. We introduce AgentProofBench, which connects paired tests of a frozen acceptance rule to execution from identical saved openings. The resource spans 97 tasks, 79 families, and four Web services. Experiments with DeepSeek Flash/Pro establish two linked measurements. Across 48 families, complete-panel and decision-replay tests retain 82/96 Flash and 79/96 Pro source programs; paired reuse-rebuild BA intervals are [-5.47, 1.57] and [-10.16, 0.00] percentage points. Across 22 execution families, deployment-state panel correctness separates program assignments whose two saved openings are both delivered correctly: 32/33 assignments with error-free panels, versus 1/11 with panel errors. All reference-defined program-gate regressions and withheld deliveries occur in the latter group. Neutral continuation attains the highest correct delivery under the tested generic feedback, providing a concrete baseline for measuring the value added by a gate. Released instructions, states, programs, reference rules, and trajectories connect each test failure to its execution consequences. AgentProofBench makes reusable verification assessable at both the requirement and policy levels.
Recent achievements in AI-assisted mathematics require intensive interaction of agents with proof assistants to generate machine-checked proof certificates. Agents interact with proof assistants such as Rocq or Lean through an interface that controls what the agent receives from the prover and the cost of these interactions. Today, these interfaces are adapted from tools designed for humans and not optimized for agents. We propose an evolutionary method where a frontier model incrementally proposes new features and only keeps the ones that improve the overall performance of smaller models. We demonstrate the effectiveness of our method by growing, on a curated set of mathematical problems, ROCQ-MCP-EVOLVE, a new MCP server for the Rocq prover. On the held-out test split of miniF2F-Rocq, an agent equipped with ROCQ-MCP-EVOLVE outperforms both the baseline that only exposes the Rocq compiler and an established MCP server, across four models from two families, in success rate, cost per solve, and time per solve. Although evolved for Rocq, the resulting server transfers to Lean, improving cost and time per solve on a subset of PutnamBench. We release ROCQ-MCP-EVOLVE and its port to Lean.
Jules Viennot, Guillaume Baudart, Marc Lelarge
IRIF, Universit´e Paris Cit´e, Inria, CNRS · DI ENS, PSL University, Inria
Advances in Artificial Intelligence (AI) have led AI for Theorem Proving to become a promising means of formally verifying computer systems. Whilst formal verification is traditionally reserved for safety-critical systems due to the required amount of expertise and effort, AI can help to automate a large amount of this workload and make it far more accessible. Blockchain-based systems are becoming increasingly popular and are frequently targeted by malicious actors, often resulting in huge financial losses, highlighting the need to better verify these systems and mitigate vulnerabilities. Arguably the most important component of these systems is the consensus protocol, which allows nodes to agree on decisions in a potentially adversarial environment. In this paper, we improve upon IsabeLLM, the automated theorem proving tool in Isabelle. Namely, we implement a Retrieval-Augmented Generation framework, Error tracing and counterexample generation for improved context supplied to the Large Language Model. Compatibility with the latest version of Isabelle and Sledgehammer is also implemented for improved efficiency. We compare the performance of the two versions of IsabeLLM in their ability to complete the verification of Bitcoin's Proof of Work consensus.