-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(proofs): establish semantic evidence and require continuity checks #22
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
3 commits
Select commit
Hold shift + click to select a range
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,28 @@ | ||
| # This file is machine-generated by `gh actions-lock`. | ||
| # Do not edit by hand; run `gh actions-lock` to update. | ||
| # Docs: https://gh.io/actions-lockfile | ||
| version: 'v0.0.2' | ||
| workflows: | ||
| '.github/workflows/agda.yml': | ||
| - 'actions/checkout@v6.0.3' | ||
| '.github/workflows/codeql.yml': | ||
| - 'actions/checkout@v6.0.3' | ||
| - 'github/codeql-action@v4.36.2' | ||
| '.github/workflows/push-email-notify.yml': | ||
| - 'hyperpolymath/smtp-notify-action@v0.2.0' | ||
| dependencies: | ||
| 'actions/checkout@v6.0.3': | ||
| ref: 'v6.0.3' | ||
| commit: 'sha1-df4cb1c069e1874edd31b4311f1884172cec0e10' | ||
| owner_id: 44036562 | ||
| repo_id: 197814629 | ||
| 'github/codeql-action@v4.36.2': | ||
| ref: 'v4.36.2' | ||
| commit: 'sha1-8aad20d150bbac5944a9f9d289da16a4b0d87c1e' | ||
| owner_id: 9919 | ||
| repo_id: 259445878 | ||
| 'hyperpolymath/smtp-notify-action@v0.2.0': | ||
| ref: 'v0.2.0' | ||
| commit: 'sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7' | ||
| owner_id: 6759885 | ||
| repo_id: 1352485172 |
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 |
|---|---|---|
| @@ -1,54 +1,72 @@ | ||
| # This workflow is managed by gh actions-lock. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # SPDX-FileCopyrightText: 2025-2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> | ||
| # Agda — typecheck the epistemic-types proof suite. | ||
| # | ||
| # The repo is deliberately stdlib-free (built with --no-libraries; only | ||
| # Agda.Primitive / Agda.Builtin.*), so no standard-library setup is needed | ||
| # and the apt-packaged Agda suffices. The canonical aggregator is | ||
| # src/EpistemicTypes/All.agda, which transitively imports every module and | ||
| # carries {-# OPTIONS --safe --without-K #-} per module. This is the proof | ||
| # verification the repo previously lacked entirely. | ||
| name: Agda | ||
| # This workflow is managed by gh actions-lock. | ||
|
|
||
| name: Proof Safety | ||
|
|
||
| on: | ||
| # Direct pushes only on integration branches; PRs cover feature branches. | ||
| push: | ||
| branches: [main, master] | ||
| branches: [main] | ||
| pull_request: | ||
| merge_group: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| LANG: C.UTF-8 | ||
| LC_ALL: C.UTF-8 | ||
|
|
||
| # Estate guardrail: cancel superseded runs. Safe — read-only typecheck, | ||
| # no publish or mutation. | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| core: | ||
| name: Proof core and rejection controls | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 15 | ||
| container: debian:13-slim@sha256:d7e12182ce18b85b93007c1dedf31f2d29e01ccf3182cc4017c709b6259bc132 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
|
|
||
| - name: Install Agda | ||
| - name: Install authenticated Debian toolchain packages | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y agda | ||
|
|
||
| - name: Toolchain provenance | ||
| run: agda --version | head -n1 | ||
|
|
||
| - name: Typecheck canonical target (stdlib-free) | ||
| apt-get update | ||
| apt-get install --no-install-recommends -y ca-certificates git ripgrep agda-bin=2.6.4.3-1+b2 | ||
| - uses: actions/checkout@v6.0.3 | ||
|
hyperpolymath marked this conversation as resolved.
|
||
| with: | ||
| persist-credentials: false | ||
| - name: Verify toolchain and proof constructions | ||
| run: | | ||
| set -e | ||
| agda --no-libraries -i src src/EpistemicTypes/All.agda | ||
| echo "epistemic-types: src/EpistemicTypes/All.agda typechecks (exit 0)." | ||
| test "$(agda --version)" = 'Agda version 2.6.4.3' | ||
| bash tests/check-proofs.sh | ||
| bash tests/check-rejections.sh | ||
|
|
||
| - name: Re-check with warnings promoted to errors (no unsolved metas) | ||
| echo: | ||
| name: Canonical Echo correspondence | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 15 | ||
| container: debian:13-slim@sha256:d7e12182ce18b85b93007c1dedf31f2d29e01ccf3182cc4017c709b6259bc132 | ||
| steps: | ||
| - name: Install authenticated Debian toolchain packages | ||
| run: | | ||
| apt-get update | ||
| apt-get install --no-install-recommends -y ca-certificates git agda-bin=2.6.4.3-1+b2 agda-stdlib=2.1-4 | ||
| - uses: actions/checkout@v6.0.3 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Checkout reviewed canonical Echo source | ||
| uses: actions/checkout@v6.0.3 | ||
| with: | ||
| repository: hyperpolymath/echo-types | ||
| ref: 46cd1a32d4dcf1020f01dd1aab41f816742da10e | ||
| path: .ci-deps/echo-types | ||
| persist-credentials: false | ||
| - name: Prove representation round trips and lowering agreement | ||
| run: | | ||
| set -e | ||
| agda --no-libraries -i src -W error src/EpistemicTypes/All.agda | ||
| echo "epistemic-types: clean under -W error (no unsolved metas/constraints/termination issues)." | ||
| test "$(agda --version)" = 'Agda version 2.6.4.3' | ||
| agda --no-libraries --safe --without-K --double-check --ignore-interfaces \ | ||
| -W error -W noUnsupportedIndexedMatch -i src -i tests/integration \ | ||
| -i .ci-deps/echo-types/proofs/agda -i /usr/share/agda-stdlib/src \ | ||
| tests/integration/CanonicalEcho.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # This workflow is managed by gh actions-lock. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| name: Label Triage | ||
|
|
||
|
|
||
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # This workflow is managed by gh actions-lock. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| name: Labels | ||
|
|
||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,6 @@ | |
| _build/ | ||
| *~ | ||
| .DS_Store | ||
|
|
||
| # Ephemeral canonical-integration checkout | ||
| /.ci-deps/ | ||
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.
Uh oh!
There was an error while loading. Please reload this page.