leanprover-community / leanprover-community/repl

[feature request] Built-in command timeout support

Open
#94 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
228
Forks
71
Avg merge
15m
Merged PRs (30d)
4

Description

Currently solutions like

have to kill the REPL processes whenever a verification command times out.

This leads to having to restart the REPL process which means re-importing mathlib (currently leading to ~100K I/O syscalls which can stall the server and can increase because of https://github.com/leanprover/lean4/issues/8092).

Would it be possible to natively add timeout option to the JSON commands? I only found a mention that native set_option timeout is not supported by Lean: https://leanprover-community.github.io/archive/stream/113488-general/topic/deterministic.20timeout.html#244454654

If REPL supports natively timeout control, REPL processes would need to be killed and restarted much fewer times

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the REPL's JSON command interface and the verification command flow described in the issue. Define how a command-level timeout should stop verification without requiring the REPL process to restart, then identify how that behavior can be tested.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.