Skip to content

Prove primitive DstLayout constructors - #3835

Open
joshlf wants to merge 1 commit into
Gdb6nhuavogydrpjnu6lnfrefglg42v4cfrom
Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc
Open

joshlf wants to merge 1 commit into
Gdb6nhuavogydrpjnu6lnfrefglg42v4cfrom
Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc

Conversation

@joshlf

@joshlf joshlf commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Connect the primitive, unpadded, slice and empty constructors to the
recursive mathematical models. Prove capacity and nonzero-element
conversion contracts while retaining useful broader raw statements.

Add total Rust assertion harnesses that compare every constructor field
with size_of and align_of observations. Keep the alignment guards and
modeled ABI inputs explicit, and document the premise connecting those
inputs to Rust's actual layouts. Decoding an arbitrary layout does not
establish that it describes a realizable Rust type.

Authored by an AI agent acting on joshlf's behalf.


Latest Update: v31 — Compare vs v30

📚 Full Patch History

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

Version v30 v29 v28 v27 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
v31 v30 v29 v28 v27 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
v30 v29 v28 v27 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
v29 v28 v27 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
v28 v27 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
v27 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
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/Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc && git checkout -b pr-Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc FETCH_HEAD

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc

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:24:48.469948Z b8689b9 PR opened
🔒 Security Review ✅ Completed 2026-10-08T10:26:58.171764Z b8689b9 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
@joshlf
joshlf force-pushed the Gdb6nhuavogydrpjnu6lnfrefglg42v4c branch from 96c6b27 to 7a515c4 Compare October 9, 2026 00:08
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from b8689b9 to 5bc522c Compare October 9, 2026 00:08
@joshlf
joshlf force-pushed the Gdb6nhuavogydrpjnu6lnfrefglg42v4c branch from 7a515c4 to 9e713f7 Compare October 9, 2026 02:21
@joshlf
joshlf force-pushed the Gdb6nhuavogydrpjnu6lnfrefglg42v4c branch from f2c6958 to b1c2827 Compare October 15, 2026 00:40
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from 005f10a to 33b6c98 Compare October 15, 2026 00:40
@joshlf
joshlf force-pushed the Gdb6nhuavogydrpjnu6lnfrefglg42v4c branch from b1c2827 to b47286f Compare October 15, 2026 01:19
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from 33b6c98 to 9546189 Compare October 15, 2026 01:19
@joshlf
joshlf force-pushed the Gdb6nhuavogydrpjnu6lnfrefglg42v4c branch from b47286f to 83e8f48 Compare October 15, 2026 04:53
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from 9546189 to 791f048 Compare October 15, 2026 04:53
@joshlf
joshlf force-pushed the Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc branch from 791f048 to c6fd600 Compare October 15, 2026 14:22
@joshlf
joshlf force-pushed the Gdb6nhuavogydrpjnu6lnfrefglg42v4c branch from 83e8f48 to b8e50bf Compare October 15, 2026 14:22
Connect the primitive, unpadded, slice and empty constructors to the
recursive mathematical models. Prove capacity and nonzero-element
conversion contracts while retaining useful broader raw statements.

Add total Rust assertion harnesses that compare every constructor field
with size_of and align_of observations. Keep the alignment guards and
modeled ABI inputs explicit, and document the premise connecting those
inputs to Rust's actual layouts. Decoding an arbitrary layout does not
establish that it describes a realizable Rust type.

gherrit-pr-id: Gi4f4vhkj7z3stqqcu5unrzfoqwqp3tuc
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