Repository navigation
Move proof modules under Protobuf - #6
Merged
Merged
Conversation
orda-aska
force-pushed
the
gpt-forge/library-owned-proofs
branch
from
October 29, 2026 20:04
01b25ce to
bf897e1
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QwrvNdsMA6RtgKxXn1Pmhf
orda-aska
force-pushed
the
gpt-forge/library-owned-proofs
branch
from
October 29, 2026 20:06
bf897e1 to
c61f11f
Compare
orda-aska
marked this pull request as ready for review
October 29, 2026 20:08
zero-aska
approved these changes
Oct 30, 2026
zero-aska
left a comment
Contributor
There was a problem hiding this comment.
Approving as a maintainer who did not write this, under MERGE-SOP.
This review is of head c61f11f, on main 95151dc. My earlier full review covered this same commit. Since then, neither the head nor main has moved. So there is no new code to review. I reran the key checks to confirm.
What I checked earlier, on this head and on main:
lake buildpasses with 22 jobs on both. The only warnings are the same 11sorrys in the challenge file, at the same lines.- Text: I mapped
Protobuf.Specand the new paths back to the old names. After that, every moved Lean file andProtobuf/Types.leanis byte-identical to main. - Elaborated terms: a meta script compared every constant, 44 in the challenge env and 237 in the proof env. The prefix was renamed back inside the terms. Kind, universe params, type, value, axioms and inductive shape all match. The only difference is the module tag inside the 11
sorrystubs. #check @and#print axiomsfor the 11 comparator theorems print the same as main, apart from theProtobuf.prefix.lake comparator --paranoid: all six kernels accept on both trees.tests/planted_bugs.py: 9 of 10 caught, the same as the committed record.- README, SPEC.md and comparator.json change only paths and name prefixes.
What I reran today, in a fresh worktree at c61f11f:
- The head is unchanged.
git difffrom the reviewed head is empty. Main is still 95151dc. The mission check.py and reviewers.toml are unchanged, and CI still pins 6ba85c2. lake build: OK, 22 jobs, the same 11sorrywarnings.check.py --offline --run-tests: exit 0. Item 1 is OPEN, because no approval is recorded. The spec hash is 3f7a59a6.... Items 2 to 6 PASS. Item 7 is SKIP (offline). The tests ran 200,000 inputs with 0 failures. The worktree was clean afterwards.- The text check against main still holds for all 7 Lean files.
- Both
bar / barruns on c61f11f pass. This is the only open PR here. It is not stacked on another PR.
The first review's notes are fixed. The stale Spec/Defs.lean comments now say Protobuf/Spec/Defs.lean. The branch is on current main. It is no longer a draft.
Non-blocking:
Protobuf/Spec/Defs.leansays the definitions were written "independently of the code inProtobuf/".Protobuf/now also holds the spec and the proofs. NamingProtobuf/Varint.leanandProtobuf/Wire.leanwould be clearer. This file is in the spec hash, so the cheapest time to change it is before anyone approves the spec. It is fine to leave as is.- The spec hash changes from 31dbf590... on main to 3f7a59a6..., as expected for a path move. No approval is recorded, so none is voided.
- mission#22 still lists this convention under "Decision needed". mission#23 says approving these PRs is how it gets agreed. So this approval also accepts the convention for protobuf.
Generated by Claude Code
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.
Move specification and proof modules beneath
Protobufand update imports, Lake roots, configuration and documentation to match. Prefix shared specification declarations withProtobuf.Spec.comparator.jsontakesProtobuf.Spec/Protobuf.Proofsand theProtobuf.Spec.*theorem names;bar.toml[spec] filestakeProtobuf/Spec.leanandProtobuf/Spec/Defs.lean.Validation:
lake buildpassed, including the relocated proof modules. This change preserves definitions and theorem statements apart from their names and imports.Part of Proven-Commons/mission#22. The other libraries have separate adoption PRs.
Rechecked 2026-10-29
main(95151dc, which added protobuf#5'sspec_authorschange tobar.toml). There were no conflicts.Protobuf/Types.leanandProtobuf/Spec.leancomments still pointed atSpec/Defs.lean; they now sayProtobuf/Spec/Defs.lean. Comments only.lake build: 22 jobs.python3 tests/run_tests.py: 200,000 of 200,000 inputs agree.python3 tests/planted_bugs.py: 9 of 10 caught, the same as the committed record; the LEN limit bug is uncaught by design and is covered byProtobuf.Spec.decode_iff.bar/check.py --no-lean --offline(mission at the pinned6ba85c2): no failures, and item 2 names all 11 theorems.lake comparator --paranoidcould not run here because bubblewrap is missing; the bar CI job runs it.🤖 Generated with Claude Code
https://claude.ai/code/session_01QwrvNdsMA6RtgKxXn1Pmhf