Repository navigation
proofs(agda): Kernel group in Agda, reconciled with Lean (PWG-2i for 4 theorems) - #63
Merged
Merged
Conversation
The estate proof policy makes Agda the source of truth for theory. This adds the Agda source for the Kernel group: proofs/agda/Marches/Basic.agda and Kernel.agda, with a small local Prelude. There is no standard library, so the import cone is this repository plus Agda.Primitive and two Agda.Builtin modules. scripts/check-agda.sh checks proofs/agda/All.agda cold, under the §2.1 canonical invocation. It scans the import cone for postulates with januskey's reference scanner, ported verbatim. Two fixtures must be refused, and a runtime control checks that --safe on the command line refuses a postulate. The script prints the receipt fields. scripts/setup-agda.sh installs Agda 2.7.0.1 at echo-types' checksum. A new `agda` job in ci.yml runs both. It uses only actions/checkout@v7.0.1, which the lock already records for this workflow. Agda-source session (estate proof policy), Kernel group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VTeVWDEJgdYKsUNr4uhnXX
…theorems docs/agda-lean-correspondence.adoc is the PROOF-POLICY §2.2 comparison for the Kernel group. It was made by reading: definitions field by field, theorems binder by binder. Three residual assumptions are listed: Agda's Set against Lean's Prop, equality without K, and the two trusted kernels. PROOF-STATUS.adoc records: - the Agda leg receipt at 660e1c6: Agda 2.7.0.1 at its checksum, the canonical invocation, the import cone, the inputs manifest and digest 4f589df…, and no axioms; - a Lean re-check of the four theorems at the same commit, which reports no axioms; - the Kernel group as RECONCILED, so its four theorems move to PWG-2i. The census is now PWG-2i 4 and ungraded 207, of 211. The machine-readable receipt (§8.5.1) and the Rocq leg stay OPEN. README, ROADMAP and STATE are updated to match. Agda-source session (estate proof policy), Kernel group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VTeVWDEJgdYKsUNr4uhnXX
hyperpolymath
marked this pull request as ready for review
November 16, 2026 19:35
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
First group of the Agda port: ROADMAP "Agda source of truth", owner decision 2026-11-09.
What changes
proofs/agda/Marches/:Basic.agda(PathAlgebra,StrictlyInflationary,Inflationary,run,strict-implies-inflationary) andKernel.agda(run-le,run-worsens,no-return).Preludereplaces the standard library. The import cone is the four files here plusAgda.Primitive,Agda.Builtin.EqualityandAgda.Builtin.List.scripts/check-agda.shchecksproofs/agda/All.agdacold under the PROOF-POLICY §2.1 invocation (--safe --without-K --cubical-compatible).b503488.Agda.Primitive's four level primitives, each bound by its BUILTIN pragma.--safecontrol and two fixtures intests/reject-agda.FreewheelReturnsshows the strictness hypothesis is load-bearing, as falsifier F2 does on the Lean side.UsesKshows--without-Kis in force on the command line.scripts/setup-agda.shinstalls Agda 2.7.0.1, accepted only at echo-types' archive checksum.agdajob inci.yml. It uses onlyactions/checkout@v7.0.1, which the lock already records for this workflow, soactions.lockis unchanged.docs/agda-lean-correspondence.adoc, the §2.2 record. It was made by reading, with three residual assumptions: Agda'sSetagainst Lean'sProp, equality without K, and the two trusted kernels.RECONCILED, so its four theorems arePWG-2i;PWG-2i4 andungraded207, of 211.Evidence (local, at
660e1c6)scripts/check-agda.sh:[check-agda] OK, inputs-sha2564f589dfe…1567. The policy's shell line reproduces the digest.lake buildcompleted (19 jobs);sorry;#print axiomsreports "does not depend on any axioms" for all four theorems.Still open
PWG-2ii).PWG-1.Compose.Generated by Claude Code