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
Draft
hyperpolymath
wants to merge
10
commits into
main
Choose a base branch
from
claude/laughing-hawking-pibzji
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,616
−620
Draft
Changes from all commits
Commits
Show all changes
10 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 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,95 @@ | ||
| # 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' | ||
| pull_request: | ||
| paths: | ||
| - 'proofs/agda/**' | ||
| - '.github/workflows/agda.yml' | ||
|
|
||
| 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" | ||
| 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` (below) | ||
| # rejects `postulate`, TERMINATING, NO_POSITIVITY_CHECK and the rest. | ||
| - name: Every module is imported by All.agda | ||
| working-directory: proofs/agda | ||
| run: | | ||
| set -euo pipefail | ||
| missing=0 | ||
| while IFS= read -r f; do | ||
| m="${f#./}"; m="${m%.agda}"; m="${m//\//.}" | ||
| [ "$m" = "All" ] && continue | ||
| grep -Eq "^[[:space:]]*(open[[:space:]]+)?import[[:space:]]+${m//./\\.}([[:space:]]|\$)" All.agda \ | ||
| || { echo "::error::${m} is not imported by All.agda"; missing=1; } | ||
| done < <(find . -name '*.agda' -not -path './_build/*' | sort) | ||
| exit "$missing" | ||
|
|
||
| - name: Check All.agda under the estate invocation | ||
| working-directory: proofs/agda | ||
| run: agda --safe --without-K --cubical-compatible All.agda | ||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.