diff --git a/.github/workflows/dogfood-proofs-ci.yml b/.github/workflows/dogfood-proofs-ci.yml index 9191997e..2b3057b9 100644 --- a/.github/workflows/dogfood-proofs-ci.yml +++ b/.github/workflows/dogfood-proofs-ci.yml @@ -223,6 +223,21 @@ jobs: tar xzf /tmp/just.tar.gz -C "$HOME/.local/bin" just echo "$HOME/.local/bin" >> "$GITHUB_PATH" + - name: Every verification module declares %default total + run: | + # The package build cannot show that a definition is total unless the + # module asks for it, and PROOF-STATUS cites totality as evidence. So + # each module must carry the directive. + set -euo pipefail + missing=0 + for f in verification/proofs/idris2/*.idr; do + if ! grep -qE '^%default[[:space:]]+total' "$f"; then + echo "::error file=$f::module lacks %default total" + missing=$((missing + 1)) + fi + done + [ "$missing" -eq 0 ] + - name: Type-check Idris2 verification corpus run: just proofs-verif-idris diff --git a/docs/PROOF-STATUS.adoc b/docs/PROOF-STATUS.adoc index 9cf5dfc5..4131f7a1 100644 --- a/docs/PROOF-STATUS.adoc +++ b/docs/PROOF-STATUS.adoc @@ -229,7 +229,10 @@ https://github.com/hyperpolymath/echidna/actions/runs/42624461538/job/1291845356 builds `+verification/proofs/idris2/echidna-verif-proofs.ipkg+` and https://github.com/hyperpolymath/echidna/actions/runs/42624461712/job/129184533713[Type-check Idris2 ABI definitions] builds `+src/abi/echidnaabi.ipkg+`, both on Idris 2 0.8.0, both success. -`+%default total+`. A 2026-11-09 audit of both packages found no `+believe_me+`, +At that receipt `+NatLte.idr+` lacked `+%default total+`, so its totality was +not checked. It now declares the directive, and the `+verif-idris+` job fails +if any module in `+verification/proofs/idris2/+` does not. A fresh receipt is +needed before totality is cited for `+NatLte+`. A 2026-11-09 audit of both packages found no `+believe_me+`, `+assert_total+` or `+postulate+` declarations (the only textual hits are a doc comment and the pattern strings in `+AxiomCompleteness.idr+`). That is a receipt-time audit, not an enforced property: `+idris2-abi-ci.yml+` greps diff --git a/verification/proofs/idris2/NatLte.idr b/verification/proofs/idris2/NatLte.idr index 395e7c0c..d4ddf31e 100644 --- a/verification/proofs/idris2/NatLte.idr +++ b/verification/proofs/idris2/NatLte.idr @@ -14,6 +14,8 @@ module NatLte import Data.Nat +%default total + ||| Inhabited exactly when a decision landed in the `Yes` branch. public export 0 IsYes : Dec p -> Type