Skip to content

Prove normalized layout padding and field extension - #3753

Open
joshlf wants to merge 1 commit into
Gqanep4aohi35clvmyhwhdq53ebumyrsffrom
Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku
Open

joshlf wants to merge 1 commit into
Gqanep4aohi35clvmyhwhdq53ebumyrsffrom
Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku

Conversation

@joshlf

@joshlf joshlf commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Prove normalized padding and field placement while preserving complete inner
sizes, including packed-field padding. Derive canonical decoding contracts from
Raw operation lemmas and retain explicit fit conditions.

Express padding and field extension through mathematical layout views.
Reuse the retained-provider decoder bridge for the compact specs.
Arbitrary-outcome comparisons recover every existing exact alignment,
payload, flag and physical field guarantee.

Add total Rust harnesses comparing extension and both padding branches with
independent remainder/checked arithmetic. Compare every layout field, including
physical offset, normalized size encoding, and shallow-padding flags. Avoid
proof dependence on the generator-selected name of a shared matcher.

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: v25 — Compare vs v24

📚 Full Patch History

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

Version 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/Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku && git checkout -b pr-Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku FETCH_HEAD

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku

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:27.527266Z e0d7fc5 PR opened
🔒 Security Review ✅ Completed 2026-10-02T15:31:12.824460Z e0d7fc5 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 119 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.29%. Comparing base (38bb108) to head (575ee20).

Files with missing lines Patch % Lines
zerocopy/src/layout/composition_checks.rs 0.00% 119 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                          @@
##           Gqanep4aohi35clvmyhwhdq53ebumyrsf    #3753      +/-   ##
=====================================================================
- Coverage                              58.09%   56.29%   -1.81%     
=====================================================================
  Files                                     24       25       +1     
  Lines                                   3933     4052     +119     
=====================================================================
- Hits                                    2285     2281       -4     
- Misses                                  1648     1771     +123     

☔ 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 Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch 2 times, most recently from 19976d2 to e9b1b2d 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 Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch from e9b1b2d to 123283e 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 Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch 2 times, most recently from cc7732c to a8aebab Compare October 4, 2026 02:57
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from e1bee78 to 2977404 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 Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch from 5d112df to 2df78b1 Compare October 5, 2026 13:03
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 0fea328 to 40ec1d7 Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch from 2df78b1 to 11f28bb Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gsnkt6couze5saom2wzruz5yjl6gkrcsg branch from 40ec1d7 to 8351f15 Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch from 11f28bb to 3069a3b 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 Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch 2 times, most recently from 782a902 to ec1f022 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 Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch from ec1f022 to e093f62 Compare October 6, 2026 00:32
@joshlf
joshlf changed the base branch from Gsnkt6couze5saom2wzruz5yjl6gkrcsg to Gqanep4aohi35clvmyhwhdq53ebumyrsf October 6, 2026 00:32
@joshlf
joshlf force-pushed the Gqanep4aohi35clvmyhwhdq53ebumyrsf branch from c52d3fd to d2e0414 Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku branch from e093f62 to 06080ee Compare October 6, 2026 15:45
Prove normalized padding and field placement while preserving complete inner
sizes, including packed-field padding. Derive canonical decoding contracts from
Raw operation lemmas and retain explicit fit conditions.

Express padding and field extension through mathematical layout views.
Reuse the retained-provider decoder bridge for the compact specs.
Arbitrary-outcome comparisons recover every existing exact alignment,
payload, flag and physical field guarantee.

Add total Rust harnesses comparing extension and both padding branches with
independent remainder/checked arithmetic. Compare every layout field, including
physical offset, normalized size encoding, and shallow-padding flags. Avoid
proof dependence on the generator-selected name of a shared matcher.

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: Gzv73p3q2jm6ohnisvlbsd62wdsi6mjku
Agent-authored-by: AI agent acting on joshlf's behalf

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