Skip to content

Share Rust layout, storage and pointer models in anneal/lean - #3823

Open
joshlf wants to merge 1 commit into
Gkxoay4mfhudcnfy2cuk46iu6gnltvxg3from
Ggis7hb6l6jmnmnk4fjfb3w2lulssgynz
Open

joshlf wants to merge 1 commit into
Gkxoay4mfhudcnfy2cuk46iu6gnltvxg3from
Ggis7hb6l6jmnmnk4fjfb3w2lulssgynz

Conversation

@joshlf

@joshlf joshlf commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Anneal V1's embedded prelude mixes reusable Rust mathematics with frontend
classes and trusted ABI and pointer premises. Move its layout, allocation
and referent records into shared Lean packages, preserving the Anneal names
through compatibility aliases.

Keep unbounded alignment, layout, memory geometry and byte encodings in a
Std-only Rust package. An Aeneas companion supplies bounded machine
carriers, their proved conversions and byte-operation bridges using the
consumer's existing backend. Frontend-specific classes and Rust premises
remain in V1.

Distribute both packages through the existing exocrate omnibus archive.
Include sources, compiled artifacts and relative Lake manifests so V1 and
V2 can import them after relocation from read-only installations. Add
consumer tests and declaration audits that reject unapproved axioms.

Model abstract bytes as initialized eight-bit values or uninitialized
storage. Width- and endian-indexed integer decoders, validity filters,
and array composition prove initialization of complete representations.
Empty-storage decoding requires an explicit inhabitant: byte width zero
cannot construct an uninhabited type or discharge a stateful library
invariant. Rust correspondence remains a consumer premise.

Metadata-indexed storage decoders retain explicit slice counts, including
zero-sized elements, and check the returned metadata as well as byte width.
Initialization remains independent of mathematical admission. Prove that
source initialization and complete destination decoding admit an owned
byte cast at equal widths, without asserting Rust operation correspondence.

Keep pointer provenance as an opaque value independent of address and
metadata. Prove preservation through value casts and metadata operations;
non-nullness supplies no liveness or access permission. No pointer bytes or
memory accesses are modeled.

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

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Ggis7hb6l6jmnmnk4fjfb3w2lulssgynz

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:23:12.431075Z 92642e1 PR opened
🔒 Security Review ✅ Completed 2026-10-08T10:23:32.833733Z 92642e1 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 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.94%. Comparing base (dce2480) to head (a30eb5a).

Additional details and impacted files
@@                        Coverage Diff                         @@
##           Gkxoay4mfhudcnfy2cuk46iu6gnltvxg3    #3823   +/-   ##
==================================================================
  Coverage                              92.94%   92.94%           
==================================================================
  Files                                     16       16           
  Lines                                   2466     2466           
==================================================================
  Hits                                    2292     2292           
  Misses                                   174      174           

☔ 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 Gkxoay4mfhudcnfy2cuk46iu6gnltvxg3 branch from 7853cde to 3993d61 Compare October 14, 2026 18:32
@joshlf
joshlf force-pushed the Gkxoay4mfhudcnfy2cuk46iu6gnltvxg3 branch from 3993d61 to fe21a89 Compare October 14, 2026 21:43
@joshlf
joshlf force-pushed the Ggis7hb6l6jmnmnk4fjfb3w2lulssgynz branch from 3a699df to 3ad300b Compare October 14, 2026 21:43
@joshlf
joshlf force-pushed the Gkxoay4mfhudcnfy2cuk46iu6gnltvxg3 branch from fe21a89 to 52c70c4 Compare October 15, 2026 00:40
@joshlf joshlf changed the title Share Rust layout and byte models in anneal/lean Share Rust layout, storage and pointer models in anneal/lean Oct 15, 2026
@joshlf
joshlf force-pushed the Ggis7hb6l6jmnmnk4fjfb3w2lulssgynz branch from 3ad300b to 2d86981 Compare October 15, 2026 00:40
Anneal V1's embedded prelude mixes reusable Rust mathematics with frontend
classes and trusted ABI and pointer premises. Move its layout, allocation
and referent records into shared Lean packages, preserving the Anneal names
through compatibility aliases.

Keep unbounded alignment, layout, memory geometry and byte encodings in a
Std-only Rust package. An Aeneas companion supplies bounded machine
carriers, their proved conversions and byte-operation bridges using the
consumer's existing backend. Frontend-specific classes and Rust premises
remain in V1.

Distribute both packages through the existing exocrate omnibus archive.
Include sources, compiled artifacts and relative Lake manifests so V1 and
V2 can import them after relocation from read-only installations. Add
consumer tests and declaration audits that reject unapproved axioms.

Model abstract bytes as initialized eight-bit values or uninitialized
storage. Width- and endian-indexed integer decoders, validity filters,
and array composition prove initialization of complete representations.
Empty-storage decoding requires an explicit inhabitant: byte width zero
cannot construct an uninhabited type or discharge a stateful library
invariant. Rust correspondence remains a consumer premise.

Metadata-indexed storage decoders retain explicit slice counts, including
zero-sized elements, and check the returned metadata as well as byte width.
Initialization remains independent of mathematical admission. Prove that
source initialization and complete destination decoding admit an owned
byte cast at equal widths, without asserting Rust operation correspondence.

Keep pointer provenance as an opaque value independent of address and
metadata. Prove preservation through value casts and metadata operations;
non-nullness supplies no liveness or access permission. No pointer bytes or
memory accesses are modeled.

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