Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOLDIRNoPath to the HOL4 installation; defaults to ~/HOL.~/HOL

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

HOL4 theorem prover - proof development workflow:

  1. hol_state_at: Check proof state at cursor position (pass file= to auto-init)

  2. Edit file directly, then hol_state_at to see new goals

  3. Repeat until proof complete

  4. holmake: Only at the end to verify the build

Do NOT:

  • Call hol_restart after file edits (state_at auto-detects changes)

  • Use hol_send for proof navigation (use hol_state_at instead)

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
hol_startA

Start a HOL4 REPL session.

Idempotent - returns existing session if already running. Usually called automatically by hol_state_at (via file= parameter).

hol_sessionsA

List all active HOL sessions with their workdir, age, status, cursor.

hol_sendA

Send raw SML command to HOL session.

WARNING: Do NOT use for proof navigation - use hol_state_at instead. hol_state_at handles file changes, checkpoints, and tactic replay automatically.

hol_interruptB

Send SIGINT to abort runaway tactic.

hol_stopC

Terminate HOL session.

hol_restartA

Restart HOL session (stop + start, preserves workdir).

Only needed when:

  • HOL state is corrupted (rare)

  • Upstream dependencies changed (edited other .sml files that need Holmake)

NOT needed for edits to current proof file - state_at auto-detects changes.

hol_setenvA

Set environment variables for a HOL session and auto-restart to apply.

These are passed to the HOL process and affect Holmakefile INCLUDES expansion.

Example: hol_setenv({"VFMDIR": "/home/user/verifereum"})

holmakeC

Run Holmake --qof in directory.

hol_logA

Read build log for a specific theory.

Use after holmake to inspect warnings or errors in detail.

hol_logsC

List available build logs.

hol_state_atA

Get proof state at a file position.

Replays tactics from theorem start up to (but not including) the tactic at the given position, then shows current goals. Auto-enters theorem if needed.

By default only the top goal is shown (with total count). Set all_goals=True to see every goal on the stack.

If replay fails before reaching the requested position, the default behavior is to refuse to show goals (they would be from the wrong proof state). Set show_partial=True to see the best-effort goals anyway.

hol_check_proofA

Check if a theorem's proof completes after editing.

Use this after editing a proof to see if it works now. More reliable than hol_state_at with line numbers which may be stale after edits.

hol_file_statusC

Get current cursor position and file status.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 13 tools

Disambiguation4/5

The tools mostly target clearly distinct areas: session lifecycle, build/log inspection, and proof navigation. The only mild overlap is among hol_state_at, hol_check_proof, and hol_file_status, but their descriptions give enough guidance to choose correctly.

Naming Consistency4/5

Almost all tools use the hol_ prefix with snake_case naming, making the set predictable. Minor deviations such as holmake (no underscore) and hol_setenv (compressed set-env) keep it from being perfectly consistent.

Tool Count5/5

With 13 tools, the set is well-scoped for HOL4 session management, build/log handling, and proof inspection. Each tool appears to earn its place without obvious redundancy.

Completeness4/5

The surface covers session lifecycle, raw SML commands, environment setup, Holmake builds, build logs, and proof-state inspection/checking. Some lower-level operations are only reachable via hol_send raw SML, but core HOL4 workflows are covered.

Maintenance

ActivityInactive
ResponsivenessOutdated data