Skip to content

Prove exact trailing sizes, padding and capacity - #3752

Open
joshlf wants to merge 1 commit into
Glbefkopwxutlxlg5qgtbtb3p6a5o73owfrom
Gsnkt6couze5saom2wzruz5yjl6gkrcsg
Open

joshlf wants to merge 1 commit into
Glbefkopwxutlxlg5qgtbtb3p6a5o73owfrom
Gsnkt6couze5saom2wzruz5yjl6gkrcsg

Conversation

@joshlf

@joshlf joshlf commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Connect conditional trailing-layout contracts to independent unbounded formulas
for size, capacity, wrapping padding and checked overflow. Preserve the broad
Raw arithmetic lemmas used by composition proofs.

Express trailing-size specifications through the existing mathematical
formula and optional decoded size. Prove that the compact contract still
implies the independently authored exact representation obligations.

Compare complete optional trailing sizes and capacities with independent
checked Rust arithmetic. Visible alignment/phase witnesses cover every nonzero
encoding without restricting physical offsets or imposing extra size bounds.

Validation: fresh pinned extraction and complete-model golden comparison;
independent golden/live Lean builds, required-contract checks, and the
transitive axiom audit.

Agent-authored-by: AI agent acting on joshlf's behalf


Latest Update: v26 — Compare vs v25

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/Gsnkt6couze5saom2wzruz5yjl6gkrcsg && git checkout -b pr-Gsnkt6couze5saom2wzruz5yjl6gkrcsg FETCH_HEAD

Checkout

git fetch origin refs/heads/Gsnkt6couze5saom2wzruz5yjl6gkrcsg && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/Gsnkt6couze5saom2wzruz5yjl6gkrcsg && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/Gsnkt6couze5saom2wzruz5yjl6gkrcsg

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T15:29:23.859459Z fe68755 PR opened
🔒 Security Review ✅ Completed 2026-10-02T15:32:19.752465Z fe68755 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov-commenter

codecov-commenter commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.41%. Comparing base (0f679b9) to head (fc39dac).

Files with missing lines Patch % Lines
zerocopy/src/layout/tail_checks.rs 0.00% 59 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                          @@
##           Glbefkopwxutlxlg5qgtbtb3p6a5o73ow    #3752      +/-   ##
=====================================================================
- Coverage                              59.30%   58.41%   -0.90%     
=====================================================================
  Files                                     23       24       +1     
  Lines                                   3853     3912      +59     
=====================================================================
  Hits                                    2285     2285              
- Misses                                  1568     1627      +59     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from fe68755 to c35cd54 Compare October 2, 2026 15:39
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch 2 times, most recently from 5b1b61e to cb6ca5a Compare October 2, 2026 19:39
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from c35cd54 to 657e05b Compare October 2, 2026 19:39
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 657e05b to 9542042 Compare October 2, 2026 21:06
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from cb6ca5a to 1aa345d Compare October 2, 2026 21:06
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 9542042 to e1bee78 Compare October 3, 2026 16:09
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 1aa345d to 2753b1b Compare October 3, 2026 16:09
@joshlf joshlf changed the title Prove exact trailing sizes, padding, and capacity Prove exact trailing sizes, padding and capacity Oct 3, 2026
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 2753b1b to 500ee0e Compare October 4, 2026 02:57
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 6e23a28 to 0fea328 Compare October 5, 2026 13:03
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from ec1f50b to 738e6cc Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 0fea328 to 40ec1d7 Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 738e6cc to c215a36 Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 40ec1d7 to 8351f15 Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 8351f15 to 984e4fa Compare October 5, 2026 21:44
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch 2 times, most recently from 93a8437 to fcab386 Compare October 5, 2026 22:08
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 984e4fa to c562dfa Compare October 5, 2026 22:08
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from fcab386 to 629db99 Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from c562dfa to 0b2a91f Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 629db99 to 4f5bd34 Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch 2 times, most recently from 28ab520 to fc39dac Compare October 7, 2026 11:10
Connect conditional trailing-layout contracts to independent unbounded formulas
for size, capacity, wrapping padding and checked overflow. Preserve the broad
Raw arithmetic lemmas used by composition proofs.

Express trailing-size specifications through the existing mathematical
formula and optional decoded size. Prove that the compact contract still
implies the independently authored exact representation obligations.

Compare complete optional trailing sizes and capacities with independent
checked Rust arithmetic. Visible alignment/phase witnesses cover every nonzero
encoding without restricting physical offsets or imposing extra size bounds.

Validation: fresh pinned extraction and complete-model golden comparison;
independent golden/live Lean builds, required-contract checks, and the
transitive axiom audit.

gherrit-pr-id: Gsnkt6couze5saom2wzruz5yjl6gkrcsg
Agent-authored-by: AI agent acting on joshlf's behalf
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 0f679b9 to 7be8c70 Compare October 13, 2026 16:33
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from fc39dac to 777bc82 Compare October 13, 2026 16:33

This branch has not been deployed

No deployments
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.

2 participants