Skip to content

v0.51.0

Choose a tag to compare

@gmpassos gmpassos released this 01 Dec 21:03
· 24 commits to main since this release
b15ac38

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, else unbuilt; edited (with the
      previous verdict) when the source changed since, the id hashing the
      goal alone.

    --format json is 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's proof block, 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.

    • --apply writes 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.toml and its
      generated/ caches; with Lean, the project's Mathlib is passed on
      (--lean-packages too). A candidate that stops the build (one that
      does not parse) is refused with its diagnostics.
  • Native records: build --native and verify --offline now save
    their records too, in .prooflang/verification-native.json, beside
    Lean's, which they never replace.