Skip to the content.

0010: The strength of a row’s conclusion in coverage.yaml

Status: implemented. Author: drafted by the AI operations agent at Le Chen’s request. Created: 2026-11-05. Decided: 2026-11-05, accepted by Le Chen (maintainer of record). Implemented in: 0.26.0 (doi:10.5281/zenodo.24025862), by #419 (reviewed as #420).

Summary

Add two optional keys to the paper rows of coverage/1: conclusion (full, weaker or special-case) and conclusion_scope (one line saying what the Lean proves relative to the paper’s result). Today a row’s class says how the Lean statement’s hypotheses relate to the paper’s; nothing says how its conclusion does. With the keys, lean-pkg page never calls a result whose Lean conclusion is weaker than the paper’s, or a special case of it, plainly “Verified.”, and says what was proved instead. For package authors and the readers of their verification pages.

Motivation

A field report from a public paper companion’s generated page. A paper result, a proposition on the linear exponential stability or instability of a PDE, renders as:

Each line is true. The hypotheses line is right: the Lean statement assumes nothing the paper does not. But the Lean statement concludes much less than the proposition, and the page says so only in the note, after the status word, the paper’s statement, the Lean statement and the hypotheses. A reader who stops at “Verified” leaves believing the proposition was formalized.

The cause is in the format. A coverage class (same-assumptions, inputs-supplied, outside; src/lean_pkg/coverage.py) describes the hypotheses only. There is no way to say that the conclusion is weaker than the paper’s, so the author’s only outlet is free text in note, which the page renders last and no tool reads.

Design

The keys

Paper rows of coverage/1 (rows with paper and class, not the rows of a kind: library file) gain two optional keys:

rows:
  - paper: {number: "Proposition 3.2", title: "Linear stability"}
    class: same-assumptions
    conclusion: weaker
    conclusion_scope: "the modewise algebraic inequality only; the semigroup and nonlinear stability conclusions are not formalized"
    claims: [demo/modewise-sign]

Rules, enforced by coverage check (both the registered and the offline form) and therefore by page, verify’s preflight and receipt check’s coverage item, which all validate through it:

  1. conclusion_scope is required when conclusion is weaker or special-case, and refused when conclusion is absent or full.
  2. Both keys are refused on a row of class outside, which proves nothing.
  3. conclusion names the conclusion, independently of class, which names the hypotheses. A row can be same-assumptions with conclusion: weaker (the report’s case) or inputs-supplied with conclusion: special-case.
  4. A library row refuses both keys, by name, like the other paper-row keys (paper, class, inputs): a library row is exactly its Lean statement.
  5. A value outside the enum, or a scope that is not one line, is refused.

The schema string stays coverage/1: the keys are optional, as paper.statement was in proposal 0001.

lean-pkg page

For a row with conclusion: weaker or special-case:

--json

Additive only:

No exit code changes. No command or flag is added.

Compatibility and migration

Trust model

No receipt, gate or trust level changes: the claims ledger still decides the word verified from the receipts, exactly as before. The keys are the authors’ description, like class and note, and nothing checks that a scope matches the Lean statement; the page already tells the reader that comparing the statements is theirs to do.

What changes is what the page claims. Before, an author could leave a weakened conclusion unmarked and the page said “Verified.” with the caveat last; that is still possible (the keys are optional), so a dishonest or careless author is not stopped. A careful author can now make the page say the truth first. A mistaken author who sets conclusion: weaker on a row that is in fact full only makes the page more modest. The tests pin the refusals (the enum, the scope rule, outside, library rows) and that a weaker or special-case row never shows the bare Verified.

Alternatives

Open questions

AI assistance

Drafted by Claude (Anthropic) at Le Chen’s request, from a field report on a public paper companion’s page; the design follows the request and the precedent of proposal 0001.