Repository navigation
proofs: ground-truth audit, Lean vacuity fix, Agda under the estate invocation, archive Isabelle/Mizar, Z3 fixes #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
51dee07
fix(lean4): make RmdirPrecondition inhabited; record 2026-11-09 proof…
claude 5bd68d1
docs(audit): record Idris2 holes outside the ledger and the census be…
claude b8e4c7f
feat(agda): check the Agda tree under --safe --without-K --cubical-co…
claude 34e9235
chore(proofs): archive Isabelle and Mizar; make the Z3 checks non-cir…
claude 97db7f9
docs(plan): record owner rulings OD-30 to OD-34 (proof-policy conform…
claude 38b947f
fix: address SonarCloud and review findings on the proof-ground-truth PR
claude 0439301
docs(experiment): Dedukti transport of the Agda proofs to Rocq/Lean
claude 5b62887
docs: clear two Hypatia text-match alerts
claude 1f570a3
fix: address the second CodeRabbit review on the proof-ground-truth PR
claude dfae63c
test(proofs): negative Z3 check for non-empty rmdir; Agda sequence wi…
claude 5dab827
fix: point remaining Isabelle/Mizar consumers at archive/proofs/
claude 20b9234
fix: address the third CodeRabbit review on the proof-ground-truth PR
claude 2cd6a56
fix: drop the remaining six-system claims from the CLI and README
claude 1bd7897
style: use [[ ]] tests in check-agda.sh (SonarCloud S7688)
claude f86614b
docs: correct the remaining current-status six-system claims
claude b9a0c4e
docs(readme): qualify the 478-candidate feature bullet as the 2026-06…
claude a9dc341
proofs(agda): witness every precondition; build recipes match CI
claude 4768a7c
fix: drop six-system claims from the Zig and Elixir runtime output
claude e6c589b
docs: mark unbuilt Lean and axiomatic Z3 rows; fix SECURITY trust dia…
claude 9b277fd
docs(security): drop Isabelle/Mizar from the type-safety and toolchai…
claude 18e80c5
proof(lean4): Require an existing directory parent for rmdir and prov…
coderabbitai[bot] 519e13a
docs(cli): Clarify Rust and Zig command behavior, errors, and proof r…
coderabbitai[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # Agda is the theory source of truth (standards PROOF-POLICY §1). This lane | ||
| # checks every module through proofs/agda/All.agda under the canonical | ||
| # invocation (§2.1): --safe --without-K --cubical-compatible. | ||
| # | ||
| # PROOF-POLICY §6 deviation (state: open). The toolchain is not installed from | ||
| # the Guix manifest or a container, because this repository has neither for | ||
| # Agda yet. Leg: Agda theory source. Tool: Agda 2.7.0.1 upstream release | ||
| # archive, sha256 975b515a14877ab6bce5bfc641e16c4a3ee52ca5d7f846577dee80aa2145db8a; | ||
| # agda-stdlib tag v2.2 at commit 6cd04e46e5f8c740a5ec584a108bbb3380fa92d7. | ||
| # The run asserts both and fails on a mismatch. Also recorded in PROOF-NEEDS.adoc. | ||
| name: Agda proofs | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'proofs/agda/**' | ||
| - '.github/workflows/agda.yml' | ||
| - 'scripts/check-agda.sh' | ||
| pull_request: | ||
| paths: | ||
| - 'proofs/agda/**' | ||
| - '.github/workflows/agda.yml' | ||
| - 'scripts/check-agda.sh' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| name: Agda (--safe --without-K --cubical-compatible) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| env: | ||
| AGDA_VERSION: 2.7.0.1 | ||
| AGDA_SHA256: 975b515a14877ab6bce5bfc641e16c4a3ee52ca5d7f846577dee80aa2145db8a | ||
| STDLIB_TAG: v2.2 | ||
| STDLIB_COMMIT: 6cd04e46e5f8c740a5ec584a108bbb3380fa92d7 | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4 | ||
|
|
||
| - name: Install Agda (pinned release, digest-checked) | ||
| run: | | ||
| set -euo pipefail | ||
| curl --proto '=https' --tlsv1.2 -sSfL -o agda.tar.xz \ | ||
| "https://github.com/agda/agda/releases/download/v${AGDA_VERSION}/Agda-v${AGDA_VERSION}-linux.tar.xz" | ||
| echo "${AGDA_SHA256} agda.tar.xz" | sha256sum -c - | ||
| mkdir -p "$HOME/agda" | ||
| tar -xJf agda.tar.xz -C "$HOME/agda" | ||
| echo "$HOME/agda/Agda-v${AGDA_VERSION}/bin" >> "$GITHUB_PATH" | ||
| echo "Agda_datadir=$HOME/agda/Agda-v${AGDA_VERSION}/data" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Install agda-stdlib (pinned commit) | ||
| run: | | ||
| set -euo pipefail | ||
| git clone --depth 1 --branch "${STDLIB_TAG}" https://github.com/agda/agda-stdlib.git "$HOME/agda-stdlib" | ||
| got="$(git -C "$HOME/agda-stdlib" rev-parse HEAD)" | ||
| if [ "$got" != "${STDLIB_COMMIT}" ]; then | ||
| echo "::error::agda-stdlib ${STDLIB_TAG} is ${got}, expected ${STDLIB_COMMIT}"; exit 1 | ||
| fi | ||
| mkdir -p "$HOME/.agda" | ||
| echo "$HOME/agda-stdlib/standard-library.agda-lib" > "$HOME/.agda/libraries" | ||
|
|
||
| - name: Assert Agda version | ||
| run: | | ||
| set -euo pipefail | ||
| ver="$(agda --version | head -n1)" | ||
| echo "$ver" | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| case "$ver" in | ||
| *"version ${AGDA_VERSION}"*) : ;; | ||
| *) echo "::error::expected Agda ${AGDA_VERSION}, got: $ver"; exit 1 ;; | ||
| esac | ||
|
|
||
| # Postulates and escape pragmas need no separate grep: `--safe` rejects | ||
| # `postulate`, TERMINATING, NO_POSITIVITY_CHECK and the rest. The script | ||
| # checks All.agda under the estate invocation, then fails if any module | ||
| # is missing from the import graph Agda reports (--dependency-graph), so | ||
| # a commented-out import cannot pass. | ||
| - name: Check All.agda and module coverage | ||
| run: bash scripts/check-agda.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a fresh GitHub runner, this only registers the standard library but does not select it, while the later bare
agda ... All.agdainvocation imports modules such asData.StringandData.List; the new proof lane will therefore fail before type-checking the repository. Agda 2.7.0.1's official documentation says to useagda -l standard-library ..., or that a bare invocation works only after addingstandard-libraryto thedefaultsfile (Agda command-line examples), so create that file or pass the library explicitly.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one doesn't reproduce, so there's no change. Agda checks
All.agdainside a project library:proofs/agda/valence-shell.agda-libdeclaresdepend: standard-library. Agda resolves that dependency through~/.agda/libraries, which this step writes. Library dependencies declared in a project.agda-libare loaded without-lor adefaultsfile.defaultsonly applies to files outside any library.The same setup works locally: stdlib registered in
~/.agda/libraries, nodefaultsfile,bash scripts/check-agda.sh(the CI step since 20b9234), exit 0. The CI run on this head will confirm it on a fresh runner.Generated by Claude Code