Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 15 additions & 0 deletions .github/workflows/dogfood-proofs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion docs/PROOF-STATUS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions verification/proofs/idris2/NatLte.idr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading