Skip to content

Extract record byte folds and prove streaming Adler-32 - #24

Open
franchb wants to merge 1 commit into
mainfrom
codex/record-folds-adler32
Open

franchb wants to merge 1 commit into
mainfrom
codex/record-folds-adler32

Conversation

@franchb

@franchb franchb commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Accept a named List UInt8 fold step over a Lean structure with two direct UInt32 fields. The producer checks the kernel application, source constructor and compiled recurrence on both supported Lean pins.
  • Generate an immutable record and a []byte entrypoint in IR v22/v23. The entrypoint checks the record and logical list against the input limits and runs the existing bounded executor. Scalar folds retain v20/v21.
  • Add a standalone Adler-32 example with a natural-number reference for RFC 1950. Lean checks the one-byte recurrence for reduced states and proves chunk equivalence from the standard seed. The Go example checks packed output with hash/adler32.
  • Include the new example in installed-wheel checks and both compiler lanes. Refresh manifests and evidence with generator v17.

Verification

  • CGO_ENABLED=0 go test -count=1 ./... and go vet ./...
  • Python 3.15 via uv, including fresh-source admission and rejection tests
  • Raw and typed calls compared at the boundaries of all seven limits
  • Both installed wheel paths on Lean 4.36.0 regenerated all eight demos, checked their proofs and the two frame claims, and passed 177 Go-only consumer cases per wheel.
  • Lean 4.36.0-rc2 passed the same 58 distinct source claims. The separate 22-case compatibility corpus reported zero differences, including matching canonical IR and Go behavior for the record fold.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 65d509f5-cff7-4d90-8ddc-aeacb30b38de
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant