Skip to content

Prove trailing sizes, padding and capacity including overflow - #3836

Open
joshlf wants to merge 1 commit into
Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tucfrom
Gqu6avyeazw6fkdvao6pa77ywfvvmqw5z
Open

joshlf wants to merge 1 commit into
Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tucfrom
Gqu6avyeazw6fkdvao6pa77ywfvvmqw5z

Conversation

@joshlf

@joshlf joshlf commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Connect the extracted trailing-layout methods to independent unbounded
formulas for complete size, byte capacity and wrapping padding. Express
size_for_elems through the mathematical view and preserve exact raw
guarantees through independently checked contract implications.

Add Rust assertion harnesses comparing complete optional sizes and
capacities with remainder-based checked arithmetic. Explicit alignment and
phase witnesses identify every nonzero encoding without imposing new
physical-offset or object-size restrictions. Keep broad arithmetic lemmas
available for later composition proofs.

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


Latest Update: v8 — Compare vs v7

📚 Full Patch History

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

Version v7 v6 v5 v4 v3 v2 v1 Base
v8 vs v7 vs v6 vs v5 vs v4 vs v3 vs v2 vs v1 vs Base
v7 vs v6 vs v5 vs v4 vs v3 vs v2 vs v1 vs Base
v6 vs v5 vs v4 vs v3 vs v2 vs v1 vs Base
v5 vs v4 vs v3 vs v2 vs v1 vs Base
v4 vs v3 vs v2 vs v1 vs Base
v3 vs v2 vs v1 vs Base
v2 vs v1 vs Base
v1 vs Base
⬇️ Download this PR

Branch

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

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Gqu6avyeazw6fkdvao6pa77ywfvvmqw5z

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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-08T10:25:02.032242Z 63387dc PR opened
🔒 Security Review ✅ Completed 2026-10-08T10:24:55.480009Z 63387dc 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.

This was referenced Oct 8, 2026
@codecov-commenter

codecov-commenter commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 59 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc@5bc522c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
zerocopy/src/layout/tail_checks.rs 0.00% 59 Missing ⚠️
Additional details and impacted files
@@                         Coverage Diff                          @@
##             Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc    #3836   +/-   ##
====================================================================
  Coverage                                     ?   58.03%           
====================================================================
  Files                                        ?       25           
  Lines                                        ?     3937           
  Branches                                     ?        0           
====================================================================
  Hits                                         ?     2285           
  Misses                                       ?     1652           
  Partials                                     ?        0           

☔ 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.

Connect the extracted trailing-layout methods to independent unbounded
formulas for complete size, byte capacity and wrapping padding. Express
size_for_elems through the mathematical view and preserve exact raw
guarantees through independently checked contract implications.

Add Rust assertion harnesses comparing complete optional sizes and
capacities with remainder-based checked arithmetic. Explicit alignment and
phase witnesses identify every nonzero encoding without imposing new
physical-offset or object-size restrictions. Keep broad arithmetic lemmas
available for later composition proofs.

gherrit-pr-id: Gqu6avyeazw6fkdvao6pa77ywfvvmqw5z
Agent-authored-by: AI agent acting on joshlf's behalf
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from 5bc522c to 2bf1e63 Compare October 9, 2026 02:21
@joshlf
joshlf force-pushed the Gqu6avyeazw6fkdvao6pa77ywfvvmqw5z branch from 65ac256 to 1903237 Compare October 9, 2026 02:21
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from 2bf1e63 to c849eb2 Compare October 10, 2026 00:00
@joshlf
joshlf force-pushed the Gqu6avyeazw6fkdvao6pa77ywfvvmqw5z branch from 1903237 to 68fb8bd Compare October 10, 2026 00:00
@joshlf joshlf changed the title Prove exact trailing sizes, padding and capacity Prove trailing sizes, padding and capacity including overflow Oct 10, 2026

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