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
39 changes: 39 additions & 0 deletions .github/workflows/coq-proof-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,42 @@ jobs:
exit 1
fi
echo "OK: all proofs mechanised; no axioms."

# Agda theory sources (formal/agda/, PROOF-POLICY §1). FAIL-CLOSED like the
# Coq job: the recipe fails if `agda` is absent, and every `*.agda` under
# formal/agda/ is checked without being listed.
#
# NOT the estate's pinned Agda. The proof lanes pin Agda 2.7.0.1 (mathesis
# `agda-proof-policy.yml`); this job runs Ubuntu 24.04's `agda-bin`, 2.6.3,
# and asserts that version so a silent package change fails the job. A run
# here is a real check under the canonical flags but is not receipt-grade.
# Provisioning 2.7.0.1 is an open owner decision (formal/agda/README.adoc).
agda-proofs:
runs-on: ubuntu-24.04
timeout-minutes: 15
defaults:
run:
shell: bash
env:
AGDA_CI_VERSION: "2.6.3"
steps:
- uses: actions/checkout@v7.0.1

- name: Install Agda and just (Ubuntu packages)
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y -qq agda-bin just

- name: Record and assert the prover version
run: |
set -euo pipefail
agda --version
just --version
agda --version | head -1 | grep -qxF "Agda version ${AGDA_CI_VERSION}"

- name: Check every Agda module under the canonical flags
run: just -f formal/justfile check-agda

- name: Planted controls — each must fail the gate
run: just -f formal/justfile check-agda-controls
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ target/
*.install
# Idris2 build artifacts (nested, e.g. under formal-verification dirs)
**/solo-core/build/
# Agda interface files (formal/agda)
*.agdai

# Dependencies
/node_modules/
Expand Down
6 changes: 4 additions & 2 deletions docs/EXPLAINME.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ rows are not listed here.
| `proven`
| coqc 8.18.0
| `formal/QttSemiring.v`
| Theory: no Agda source, so PROOF-POLICY gives it no proof witness grade (it is `ungraded`). The tables match `lib/quantity.ml` `q_add`/`q_mul` by inspection only. The CI gate does not cover 16 of the 21 laws.
| Theory. An Agda source now exists (`formal/agda/QttSemiring.agda`, all 21 statements, compared with this file in `formal/agda/README.adoc`), checked under the canonical flags on Agda 2.6.3 only. It is still `ungraded`: not checked on the pinned Agda 2.7.0.1, no Lean leg, no receipt, comparison not yet reviewed. The tables match `lib/quantity.ml` `q_add`/`q_mul` by inspection only. The CI gate does not cover 16 of the 21 laws.

| P-4. QTT typing soundness for the real quantity checker
| `open`
Expand Down Expand Up @@ -238,7 +238,9 @@ row is a statement about a model, not about the shipped OCaml code, as each
row's trust boundary says.

*Proof Witness Grades.* Of the theory theorems above, 0 are at `PWG-3` or
better. All are `ungraded`, because none has an Agda source (PROOF-POLICY §8.1).
better. All are `ungraded` (PROOF-POLICY §8.1). `QttSemiring` alone has an Agda
source (`formal/agda/`); it has no receipt and no Lean leg yet. The others have
no Agda source.

*Policy position.* PROOF-POLICY §1 puts theory proofs in Agda, rechecked in
Rocq and Lean, and engineering properties of one system in Idris2. This
Expand Down
2 changes: 2 additions & 0 deletions formal/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ lift above (`RealWasm.v` / `RealCompile.v`, R0→R2) and the plan in
[source,sh]
----
just -f formal/justfile check
just -f formal/justfile check-agda # Agda theory sources (formal/agda/)
just -f formal/justfile check-agda-controls # planted failures: each must fail the gate
# or, by hand (F-1 Requires K-1, so compile K-1 first):
cd formal
for f in K1_CodegenPreservation K1Let_CodegenPreservation \
Expand Down
Loading
Loading