Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ agentic-physics prove thm.lean -d "…" --mode interactive # ask me before pr
agentic-physics prove thm.lean -d "…" --mode automated # the decomposing prover
```

- **Default.** The prover writes whole proofs, with the kernel's feedback, while a tactic search races it. When the writer needs an intermediate lemma, it proves that lemma as a sub-run on its own.
- **Default (recommended starting point).** The prover writes whole proofs, with the kernel's feedback, while a tactic search races it. It handles multi-step statements too: when the writer needs an intermediate lemma, it proves that lemma as a sub-run on its own.
- **`--mode interactive`.** Like the default, but before proving such a lemma the run pauses and asks you. `status` shows the question; answer it with one of:
```bash
agentic-physics answer run_… accept # prove the lemma first, then go on
agentic-physics answer run_… steer "use the work–energy theorem instead"
agentic-physics answer run_… stop
```
- **`--mode automated`.** The decomposing prover: a blueprint of subgoals, proved one by one, revised when one fails, for up to 16 minutes. Use it for statements that need several steps.
- **`--mode automated`.** An alternative prover that builds a blueprint of subgoals, proves them one by one, and revises the blueprint when one fails. Production allows up to 60 minutes. Choose it when you want this decomposition workflow; after a failure, inspect the reason and the statement before retrying or switching modes.

Your runs, from every place you prove (the console, VS Code, the desktop app, this CLI):

Expand Down
2 changes: 1 addition & 1 deletion skill/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ EOF
- **5 — still running.** `agentic-physics status <run_id> --wait 540`.
- **6 — the run asks a question** (only with `--mode interactive`). Show the user the question and the options. Answer with `agentic-physics answer <run_id> accept`, `stop`, or `steer "<words>"` once they decide, or when they told you to decide.
- **3** — not signed in (see above). **1** — an error; the message says which.
4. **After a failure, think before retrying.** A statement can be false as written, miss a hypothesis, or need a simpler lemma proved first. `--mode automated` runs the decomposing prover (subgoals, revisions, up to 16 minutes) for statements that need several steps.
4. **After a failure, think before retrying.** A statement can be false as written, miss a hypothesis, or need a simpler lemma proved first. Start with the default mode: it can prove multi-step statements and proves needed lemmas as sub-runs. Use `--mode automated` when you specifically want the alternative blueprint-and-subgoal prover; production allows it up to 60 minutes. A failure alone is not a reason to switch modes.

## Talking to the agent

Expand Down
7 changes: 4 additions & 3 deletions src/commands/prove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ Options:
--mode M interactive: when the prover needs an intermediate
lemma it pauses and asks you (see \`answer\`).
automated: the decomposing prover — a blueprint of
subgoals, retried and revised, up to 16 minutes.
Default: neither; needed lemmas are proved on their
own as sub-runs, nothing is asked.
subgoals, retried and revised, up to 60 minutes
in production. An alternative to the default.
Default (recommended): whole proofs and tactic
search; needed lemmas are proved as sub-runs.
${WAIT_HELP.replace("WAIT", String(DEFAULT_WAIT))}
-o, --output F Write the proof to F, a new .lean file, if the kernel
accepts one. An existing file is never overwritten.
Expand Down
Loading