Skip to content

Prove primitive layout constructors with recursive mathematical models - #3751

Open
joshlf wants to merge 1 commit into
Guzdt7nfgmmi7y3e4taezg43ssexn4hrffrom
Glbefkopwxutlxlg5qgtbtb3p6a5o73ow
Open

joshlf wants to merge 1 commit into
Guzdt7nfgmmi7y3e4taezg43ssexn4hrffrom
Glbefkopwxutlxlg5qgtbtb3p6a5o73ow

Conversation

@joshlf

@joshlf joshlf commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Prove primitive constructor, zero-stride and capacity contracts over
recursively valid fields while preserving useful broader Raw statements. Keep
operation-specific alignment, fit and ABI interpretation premises explicit;
independent expectations check the generated contracts.

Add total Rust assertion harnesses for primitive, unpadded, slice, and empty
layout constructors. Compare every stored field with Rust size/alignment reads
and retain the broader original mathematical constructor contracts.

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

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Glbefkopwxutlxlg5qgtbtb3p6a5o73ow

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:30:07.452104Z d077917 PR opened
🔒 Security Review ✅ Completed 2026-10-02T15:32:49.467005Z d077917 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 36 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (Guzdt7nfgmmi7y3e4taezg43ssexn4hrf@c91e32b). Learn more about missing BASE report.

Files with missing lines Patch % Lines
zerocopy/src/layout/primitive_checks.rs 0.00% 36 Missing ⚠️
Additional details and impacted files
@@                         Coverage Diff                          @@
##             Guzdt7nfgmmi7y3e4taezg43ssexn4hrf    #3751   +/-   ##
====================================================================
  Coverage                                     ?   59.30%           
====================================================================
  Files                                        ?       23           
  Lines                                        ?     3853           
  Branches                                     ?        0           
====================================================================
  Hits                                         ?     2285           
  Misses                                       ?     1568           
  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.

@joshlf
joshlf force-pushed the Gcf7sazu56b7hwm5kb56l7lndntqb7aw2 branch from fff8043 to dcb0073 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 Gcf7sazu56b7hwm5kb56l7lndntqb7aw2 branch 2 times, most recently from 60bf368 to ec7f378 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 Gcf7sazu56b7hwm5kb56l7lndntqb7aw2 branch from ec7f378 to 73a229c 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 primitive layout constructors and representation views Prove primitive layout constructors with conditional validity 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 Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 1239cf5 to d8f3bf3 Compare October 5, 2026 12:26
@joshlf
joshlf force-pushed the Gcf7sazu56b7hwm5kb56l7lndntqb7aw2 branch from e2c12ae to 9234d89 Compare October 5, 2026 13:03
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch 2 times, most recently from ec1f50b to 738e6cc Compare October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gcf7sazu56b7hwm5kb56l7lndntqb7aw2 branch from 9234d89 to 381343b 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 changed the base branch from Gcf7sazu56b7hwm5kb56l7lndntqb7aw2 to Guzdt7nfgmmi7y3e4taezg43ssexn4hrf October 5, 2026 21:12
@joshlf
joshlf force-pushed the Guzdt7nfgmmi7y3e4taezg43ssexn4hrf branch from e63e932 to 96c40d2 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 Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from fcab386 to 629db99 Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Guzdt7nfgmmi7y3e4taezg43ssexn4hrf branch from 5dd3068 to 19392df Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Guzdt7nfgmmi7y3e4taezg43ssexn4hrf branch from 19392df to d31057e Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the Glbefkopwxutlxlg5qgtbtb3p6a5o73ow branch from 629db99 to 4f5bd34 Compare October 6, 2026 15:45
Prove primitive constructor, zero-stride and capacity contracts over
recursively valid fields while preserving useful broader Raw statements. Keep
operation-specific alignment, fit and ABI interpretation premises explicit;
independent expectations check the generated contracts.

Add total Rust assertion harnesses for primitive, unpadded, slice, and empty
layout constructors. Compare every stored field with Rust size/alignment reads
and retain the broader original mathematical constructor contracts.

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: Glbefkopwxutlxlg5qgtbtb3p6a5o73ow
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