Repository navigation
v0.51.0
Obligations as data, and candidate proofs checked one at a time: what an
agent (or a person) needs to work on what a build left open, without
reading Lean.
-
prooflang obligations [paths]lists the obligations the last build
did not verify (--all: every one). Each entry has:- its declaration, module and file;
- its id (the semantic hash of the goal);
- its span;
- its context and goal, printed and as IR;
- its proof as given;
- its last verdict, with the reason: the newer of Lean's record and the
last native build's for this goal, elseunbuilt;edited(with the
previous verdict) when the source changed since, the id hashing the
goal alone.
--format jsonis one document, pinned by
test/golden/cli/obligations.json. -
prooflang submit <id|Module.theorem> (--strategy S | --by T)checks
one candidate for one theorem's obligation. The candidate replaces the
theorem'sproofblock, or is added after the theorem, in a copy of the
project's sources. The copy is built with Lean, or with--native
without it, and the obligation's verdict is reported (--format json
for agents). Nothing is trusted: only a kernel-checked verdict counts.--applywrites a verified candidate into the source file.- A
by:block checked natively is never applied: there, a block the
tactics do not run goes to the prover, which may prove the statement
though Lean rejects the block (the JSON says"tacticsChecked": false). - An id several theorems' goals share is refused, their names listed.
- The copy holds the project's modules, its
prooflang.tomland its
generated/caches; with Lean, the project's Mathlib is passed on
(--lean-packagestoo). A candidate that stops the build (one that
does not parse) is refused with its diagnostics.
-
Native records:
build --nativeandverify --offlinenow save
their records too, in.prooflang/verification-native.json, beside
Lean's, which they never replace.