arXiv:2611.24788cs.LONov 2026

Manuscript Offprint

arXiv:2611.24788

Isabelle Pool Server: a pooled verification service for prover training and multi-agent proving

Xuanwei Ren, Wenda Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Figure

Isabelle Pool Server: a pooled verification service for prover training and multi-agent proving

Xuanwei Ren Wenda Li

Abstract

Isabelle is now driven by machines as well as by people. Training loops verify thousands of candidate proof steps per hour, and autonomous agents reach the prover over the Model Context Protocol, several at a time on one host. Isabelle’s own interfaces assume other clients. Its editors each serve one person; its batch build and its server check whole theories for other tools. What both training loops and autonomous agents now need is the prover as a service: calls that return within a known time, a failed attempt that costs nothing to undo, and a verdict that says separately whether anything failed and whether the proof is complete.

To provide this, we introduce 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.

1 Introduction

Proof assistants are now driven by machines as well as by people, in two ways. In the training scenario, a loop that builds or evaluates an LLM prover verifies thousands of candidate proof steps per hour. Isabelle provers since LISA have done this through PISA-style read-eval-print loops (REPLs), one Isabelle process per worker [7, 8, 9, 12], and two of them name the cost of attempts as the limiting factor [9, 12]. In the multi-agent serving scenario, many coding agents reach the prover over the Model Context Protocol (MCP) [2] and share one host, on which memory decides how many Isabelle sessions can run. Lean has infrastructure for both: Kimina Lean Server pools REPL workers for reinforcement learning [5, 22], and AXLE hosts isolated, strictly checked verification for agents and training alike [23]. Isabelle’s own interfaces assume other clients. Its editors each serve one person, and Agisabelle server checks whole theories for other tools; both are built on PIDE, the document model of the system [17]. Agisabelle build checks whole sessions in batch. The interfaces that training loops and agents use come from outside the distribution. The loops use the REPLs above. Agents use one of several MCP servers, which differ in how they reach Isabelle: AutoCorrode’s Isabelle/Q [3] runs inside a person’s Isabelle/jEdit session; PIDE MCP [10], since renamed PIDE AI, drives sessions of its own without an editor; and Isabelle-MCP [25] goes through the language server. Each meets some of the needs below. None, as far as we know, manages the resources of the host that its clients share.

The two scenarios need the same things of a prover service. A call must return within a known time: a training loop bounds every step so that no attempt stalls a worker, and an agent’s harness abandons a tool call that outlasts its timeout. A failed attempt must cost nothing to undo: a loop that branches at a proof state discards most of what it tries, and an agent whose step fails has to get back to where it was. And the answer to whether a proof is complete must be reliable, because a verifier that accepts an unfinished proof corrupts a reward [14, 23] and tells an agent that it has finished when it has not. Where many clients share one host, two more things are needed: each client’s work kept apart from the others’, and a component that decides who gets a session, when it is taken back, and what happens when memory runs out.

IPS is a service of this kind. Like PIDE MCP, it is a direct PIDE frontend: it drives headless sessions through Isabelle/Scala, with no editor between. What it adds is a resource-management layer, which makes those decisions. It keeps a pool of warm sessions, leases them to clients over HTTP, reclaims idle and abandoned leases, and gates admission on memory, with a wall-clock budget on every wait. Because a PIDE session is a document and not a command stream [16], IPS’s tools can roll back a failed attempt, restore a checkpoint exactly and check a chunk’s proofs in parallel; a batch build gives the final verdict. Training harnesses use a Python client; agents use one of two bundled MCP servers, one that verifies submitted proof chunks and one that follows a theory file the agent edits on disk.

IPS is built for these two scenarios. We state what each needs from the service as metrics before reporting on them (Section 3). Our contributions are:

  1. A resource-management layer on a direct PIDE frontend. A pool of leased sessions with memory-gated admission, and on it the tools of a verification service: budgets, rollback of a failed chunk as a unit, checkpoints, a batch build as arbiter, a Python client and two MCP servers (Section 4).
  2. Measurements for both scenarios. For the training scenario: throughput, rollout rate and branch cost on the HOL-Analysis library, with two checks of the implementation, the verdict flags and the bounded step. For the multi-agent serving scenario: memory per session, acquisition latency, behaviour under a memory limit and crash containment. All were taken on one 128 GB host, and PIDE MCP, at commit Agdd46315, was measured under the same conditions for memory, throughput, latency and crash containment (Sections 5, 6 and 7).
  3. A comparison with PIDE MCP at one commit. Where the two direct PIDE frontends differed at the commit we measured, which of the differences are tooling that would transfer, and a feature inventory (Section 7; the full table is in the repository).
  4. An open implementation and a benchmark. The service and the harness that drove both tools through one procedure are public, and so are the raw results, in a results repository (Appendix C).

Three things here are useful to readers who will never run IPS. The sizing numbers of Section 6 apply to any shared Isabelle2026 host. The memory cost of treating a whole theory as visible to PIDE, found in PIDE MCP at the measured commit and reproduced on IPS (Section 7), is a finding for any PIDE frontend. And the harness is a benchmark a third connector can plug into; its verdict-flag result, an interactive PIDE verdict matching Agisabelle build on all 890 checks, is evidence for any frontend that reads its verdict from PIDE, not for IPS alone. Section 2 first places IPS among Isabelle connectors; Section 8 lists the limits.