Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
42 changes: 33 additions & 9 deletions .github/workflows/proofs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,8 @@ jobs:
run: bash scripts/fetch-siblings.sh
- name: Proof gate
run: bash scripts/check.sh
# The receipt names the gate, its flags, the claim PWGs and the hashed
# import cone (PROOF-POLICY §8). A committed receipt that no longer
# matches the tree fails here.
- name: Verification receipt matches the tree and the claim list
run: bash scripts/grade-receipt.sh --check
- name: Emit the receipt for this commit
run: |
bash scripts/grade-receipt.sh --write --commit "$(git rev-parse --short=12 HEAD)"
sed -n '1,40p' verification/receipts/agda-pwg_praxis.deed
- name: Receipt claims and legs match README.adoc and the legs record
run: bash scripts/grade-receipt.sh --cross-check
# The Rocq and Lean recheck legs (PROOF-POLICY §2), re-proved by hand on top
# of secret-types' own legs at the sibling pin (verification/legs/README.adoc
# gives the route and the statement correspondence). Both provers are pinned:
Expand Down Expand Up @@ -96,3 +89,34 @@ jobs:
run: bash scripts/fetch-siblings.sh
- name: Both legs check, with no axioms
run: bash scripts/check-legs.sh
# The proof receipt (PROOF-POLICY §8.5): the pinned reader of the standard
# derives each grade, the shared git checker does the checks of §8.5.3, and
# every current receipt must still describe this commit. The git checks read
# the history, so the checkout is full. Bun is the release zip, pinned by
# sha256 (the digest oven-sh publishes in SHASUMS256.txt for v1.4.2).
receipt:
name: Proof receipt (reader, git checks, currency)
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Install the pinned Bun (release zip, sha256-checked)
env:
BUN_URL: https://github.com/oven-sh/bun/releases/download/bun-v1.4.2/bun-linux-x64.zip
BUN_SHA256: 36368faef7527875d5ffa52e53cd48021741f2a83eb6208a8dd64068d422a913
run: |
set -euo pipefail
curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL "$BUN_URL" -o "$RUNNER_TEMP/bun.zip"
echo "$BUN_SHA256 $RUNNER_TEMP/bun.zip" | sha256sum --check --strict
unzip -q "$RUNNER_TEMP/bun.zip" -d "$RUNNER_TEMP/bun"
echo "$RUNNER_TEMP/bun/bun-linux-x64" >> "$GITHUB_PATH"
- name: Checkout (full history)
uses: actions/checkout@v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Fetch siblings at their pinned commits
run: bash scripts/fetch-siblings.sh
- name: Fetch the pinned tools of the standard
run: bash scripts/grade-receipt.sh --fetch-standards
- name: The receipt holds
run: bash scripts/grade-receipt.sh --check
14 changes: 9 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,21 @@ the canonical `--safe --without-K --cubical-compatible` (`PROOF-POLICY.adoc`
secret-types pinned at `45046c2`.

*Grade.* The PROVEN claims (L-1 to L-4, L-6, L-7) are at Proof Witness Grade
**`PWG-2ii`** (`PROOF-POLICY.adoc` §8) and no higher. Each is also re-proved by
**`PWG-1`** (`PROOF-POLICY.adoc` §8), as the reader of the standard derives it
from the receipt. Each is also re-proved by
hand in Rocq (Coq 8.18.0) and in Lean (4.24.0, no Mathlib), on top of
secret-types' own legs at the same pin, with no axioms in either. The statements
are compared in link:verification/legs/README.adoc[`verification/legs/README.adoc`];
Claude Code wrote that comparison, and it is provisional until the owner reviews
it. `bash scripts/check-legs.sh` checks both legs. Not `PWG-1`: no per-commit
receipt captures each checker's observed result yet.
it: the two recheck legs, and so the grade, rest on it. `bash scripts/check-legs.sh`
checks both legs. Each of the three witnesses has a receipt of a pinned CI run on
`89ceac3`, a commit of `main`, with the manifest of every file the run read.
L-5 is a set of checked refusals and A-1 an assumption; neither is a theorem, so
neither is graded. The machine record is
link:verification/receipts/agda-pwg_praxis.deed[`verification/receipts/agda-pwg_praxis.deed`],
generated by `scripts/grade-receipt.sh` and checked in CI, and the per-claim
link:verification/receipts/agda-pwg_praxis.deed[`verification/receipts/agda-pwg_praxis.deed`]
(PROOF-POLICY §8.5.1), written from
link:verification/receipts/proof-receipt.toml[its source] by the standard's shared
writer and checked in CI by `scripts/grade-receipt.sh --check`; the per-claim
record is link:docs/status/PROOF-STATUS.adoc[`docs/status/PROOF-STATUS.adoc`].

== Licence
Expand Down
6 changes: 3 additions & 3 deletions docs/status/PROOF-NEEDS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ rechecked in Rocq and in Lean, with no Mathlib (`standards/3-practice/PROOF-POLI
|===
| # | Proof Needed | Category | Prover | Priority | File(s)

| L-1 to L-4 | The reader-set lattice: laws, reverse inclusion, the link's confinement | DOM | Agda, Rocq, Lean (done, `PWG-2ii`) | — | `src/Lintel/Lattice.agda`
| L-6 | TINI at this lattice, per role and per coalition | SEC | Agda, Rocq, Lean (done, `PWG-2ii`) | — | `src/Lintel/Instance.agda`
| L-7 | Self-defeating compositions cannot be built as programs | SEC | Agda, Rocq, Lean (done, `PWG-2ii`) | — | `src/Lintel/Composition.agda`
| L-1 to L-4 | The reader-set lattice: laws, reverse inclusion, the link's confinement | DOM | Agda, Rocq, Lean (done, `PWG-1`) | — | `src/Lintel/Lattice.agda`
| L-6 | TINI at this lattice, per role and per coalition | SEC | Agda, Rocq, Lean (done, `PWG-1`) | — | `src/Lintel/Instance.agda`
| L-7 | Self-defeating compositions cannot be built as programs | SEC | Agda, Rocq, Lean (done, `PWG-1`) | — | `src/Lintel/Composition.agda`
| R-1 | Rocq leg for L-1 to L-4, L-6, L-7 (§2) | DOM/SEC | Rocq | done | `verification/legs/rocq/Lintel.v`
| R-2 | Lean leg for L-1 to L-4, L-6, L-7 (§2), no Mathlib | DOM/SEC | Lean | done | `verification/legs/lean/`
|===
Expand Down
44 changes: 27 additions & 17 deletions docs/status/PROOF-STATUS.adoc
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Proof Status — Lintel
:revdate: 2026-11-09
:revdate: 2026-11-16

This is Lintel's proof-status file in the sense of
`standards/3-practice/PROOF-POLICY.adoc` §8.5: the per-claim record of status
tokens, Proof Witness Grades (PWG) and recheck legs. The claims themselves, with
their statements and artefacts, are the table in link:../../README.adoc[README]
(L-1 to L-7, A-1). The machine copy is
link:../../verification/receipts/agda-pwg_praxis.deed[`verification/receipts/agda-pwg_praxis.deed`],
generated by `scripts/grade-receipt.sh`; CI fails if it drifts from the tree, the
import cone or the README's claim IDs.
a §8.5.1 proof receipt. The standard's shared writer (`scripts/proof-receipt.js`)
writes it from link:../../verification/receipts/proof-receipt.toml[its source],
deriving every manifest, digest, import and grade from git.
`scripts/grade-receipt.sh --check` (the `receipt` job of the `Agda proofs`
workflow) runs the pinned reader, the git checks of §8.5.3 and a currency
check, and fails if the receipt's claims or legs drift from the README or the
legs record.

Until 2026-11-09 this file was the RSR template's placeholder ("0% proven", Idris
ABI rows). That never described this repository. The README's claim table was
Expand All @@ -34,8 +39,9 @@ flags. `scripts/check.sh` checks, in order:
. a negative control: the rejection check, pointed at each positive control,
reports it accepted, so step 5 cannot pass vacuously.

Trust base: no postulates, no escape hatches, no library, no axioms (`--safe`, and
the counts in the receipt). A-1 is a hypothesis of the threat model, not an axiom
Trust base: no postulates, no escape hatches, no library, no axioms (`--safe`).
The receipt's `(trusted-base …)` lists the prover's own postulates in the cone:
`Level`, `lzero`, `lsuc` and `_⊔_` of `Agda.Primitive`, each BUILTIN-bound (§8.4). A-1 is a hypothesis of the threat model, not an axiom
of any proof: no proof assumes it, and `Lintel.Instance.collusion-gap` proves
what happens without it.

Expand All @@ -45,13 +51,13 @@ what happens without it.
|===
| Claim | Token | PWG | Rocq leg | Lean leg | Note

| L-1 | proven | `PWG-2ii` | re-proved | re-proved | `Lintel.Lattice`
| L-2 | proven | `PWG-2ii` | re-proved | re-proved | `Lintel.Lattice`
| L-3 | proven | `PWG-2ii` | re-proved | re-proved | `Lintel.Lattice`, packed as `Lintel.Instance.reader-sets`
| L-4 | proven | `PWG-2ii` | re-proved | re-proved | `Lintel.Lattice`
| L-1 | proven | `PWG-1` | re-proved | re-proved | `Lintel.Lattice`
| L-2 | proven | `PWG-1` | re-proved | re-proved | `Lintel.Lattice`
| L-3 | proven | `PWG-1` | re-proved | re-proved | `Lintel.Lattice`, packed as `Lintel.Instance.reader-sets`
| L-4 | proven | `PWG-1` | re-proved | re-proved | `Lintel.Lattice`
| L-5 | tested-only | n/a | n/a | n/a | Checked refusals and acceptances; not a theorem (§8.1)
| L-6 | proven | `PWG-2ii` | re-proved | re-proved | `Lintel.Instance`; rests on secret-types N-7, itself `PWG-2ii` at the pin
| L-7 | proven | `PWG-2ii` | re-proved | re-proved | `Lintel.Composition`
| L-6 | proven | `PWG-1` | re-proved | re-proved | `Lintel.Instance`; rests on secret-types N-7, whose files at the pin each run checks (the receipt's imports)
| L-7 | proven | `PWG-1` | re-proved | re-proved | `Lintel.Composition`
| A-1 | argued | n/a | n/a | n/a | An assumption; its gap is proved (`collusion-gap`)
|===

Expand All @@ -73,12 +79,16 @@ link:../../verification/legs/README.adoc[`verification/legs/README.adoc`]. Every
row is `RECONCILED`. Claude Code wrote the comparison, and it is provisional
until the owner reviews it (estate doctrine 4).

*Why not higher.* `PWG-1` needs a receipt per witness and per commit that
records each checker's observed result (§8.2). The receipt records each leg's
pinned checker, invocation and input digests, the sibling's leg files
included, but not the result. The verification claim is CI-backed until
per-leg, per-commit receipts record the observed results. The `legs` job log
is execution evidence, not a substitute for those receipts.
*The receipts.* `PWG-1` needs a current receipt of a pinned, headless checker
run for every witness, describing the receipt's `:source-commit` (§8.2,
§8.5.2). Each leg has one: run
https://github.com/metadatastician/lintel/actions/runs/42740256887[42740256887]
of the `Agda proofs` workflow, on `89ceac3` on `main`. Its proof gate and its
`legs` job passed; only the old-shape receipt check of that run failed, and
this receipt replaces it. Each receipt lists every file its run read, the
secret-types files at the pin as an `(import …)`, and the git checks confirm
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
each one at its commit. A change to any of them fails the currency check until
a new run is recorded.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

*The template skeletons are not the legs.* `verification/proofs/{agda,coq,lean4,idris2,tlaplus}`
are RSR template boilerplate. They prove nothing about Lintel, and no workflow
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-legs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# * every `#print axioms` line must read "does not depend on any axioms".
#
# Pins: COQ_VERSION and LEAN_VERSION below, fixed (no environment override);
# scripts/grade-receipt.sh reads them from here into the receipt.
# the receipt's [[run]] rows (verification/receipts/proof-receipt.toml) name them.
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
export LC_ALL="${LC_ALL:-C.UTF-8}"
Expand Down
Loading
Loading