Skip to content

Verify doc-owned specifications over recursive mathematical models - #3738

Open
joshlf wants to merge 1 commit into
Gysrrwrr4oyfrqso6dw7gdmpjocmskwtxfrom
Gf75ukj4vvtufg6dwjpfa3bx5a457sw74
Open

joshlf wants to merge 1 commit into
Gysrrwrr4oyfrqso6dw7gdmpjocmskwtxfrom
Gf75ukj4vvtufg6dwjpfa3bx5a457sw74

Conversation

@joshlf

@joshlf joshlf commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Associate spec-only Rust doc fences with their syntax owners and derive
original binders from verified signatures. Recursively decode fields into
nominal mathematical carriers; inline type models may refine those fields
with a fallible decoder. Plain clauses and dependent ghosts use decoded
values, while explicit raw clauses retain extracted representations.
Freeze native providers and thread every original type parameter's
dictionary explicitly. Successful execution must produce a decodable
result shared by all postconditions.

Check ordinary canonical proofs and independent expectations against both
complete models. The initial scope covers four arithmetic helpers; broad
Raw lemmas retain their representation domains. Preserve nominal tuple
structs using a reproducible patch exposing the existing upstream option.
Audit source snapshots, exact annotation ownership and axioms; retain source maps and a stable Lean development project.

Define generic shapes solely over mathematical carrier types. Generate
structural decoder decomposition with retained child witnesses. Complete
only omitted proposition proofs at decoder construction sites, bounded
by the caller heartbeat budget, and preserve native module exports.
Protect edited Lean projections and inspect compiled effective specs.

Add native Lean edit regions and guarded copy-back into owned Rust doc
fences. Preserve unrelated edits and bytes, reject stale source or generated
scaffolding changes, and recover interrupted source/baseline replacements.
Validate native editor/copy/regeneration round trips at the first and final
stack stages and preserve byte-identical CI assembly throughout the stack.

Compare every inline contract with its independent expectation for arbitrary
execution outcomes, then specialize to the canonical implementation proof.
Record the complete design and deferred decisions in DESIGN.md.

Derive fixed registration names from their owner and share nominal case
assembly. Normalize source ownership once, retain generated lines with their
locations, and reuse checked editing regions. Share file rosters while keeping
independent source ownership and contract adequacy checks separate. Explain
the pipeline and the purpose of its guards for readers new to the integration.

Derive extraction roots solely from present annotations. Every discovered
specification is mandatory in both builds; removing a specification and its
proof deliberately removes that claim. No method roster or root marker is
required. Preserve Unit decoding through reduction so total assertion
harnesses use the same contract path as ordinary value-returning functions.

Validation: fresh pinned extraction, complete golden comparison, separate
golden/live builds, independent required contracts and axiom audits.

Agent-authored-by: 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/Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 && git checkout -b pr-Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 FETCH_HEAD

Checkout

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

Cherry Pick

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

Pull

git pull origin refs/heads/Gf75ukj4vvtufg6dwjpfa3bx5a457sw74

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-01T23:42:49.809375Z 455f8d4 PR opened
🔒 Security Review ✅ Completed 2026-10-01T23:43:10.608094Z 455f8d4 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.

@google-cla

google-cla Bot commented Oct 1, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from 455f8d4 to fbc3eb3 Compare October 1, 2026 23:39
@codecov-commenter

codecov-commenter commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.62%. Comparing base (67d287f) to head (7409730).

Additional details and impacted files
@@                          Coverage Diff                          @@
##           Gysrrwrr4oyfrqso6dw7gdmpjocmskwtx    #3738      +/-   ##
=====================================================================
+ Coverage                              61.51%   61.62%   +0.10%     
=====================================================================
  Files                                     20       20              
  Lines                                   3716     3716              
=====================================================================
+ Hits                                    2286     2290       +4     
+ Misses                                  1430     1426       -4     

☔ 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 Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from fbc3eb3 to 487f7a0 Compare October 2, 2026 19:39
@joshlf joshlf changed the title Add inline Aeneas verification, checked in CI Verify inline specifications against checked-in and live Aeneas models Oct 2, 2026
@joshlf
joshlf changed the base branch from main to G5hs7ombjwaxa43hlvraivt7tlmqscvmr October 2, 2026 19:39
@joshlf
joshlf force-pushed the G5hs7ombjwaxa43hlvraivt7tlmqscvmr branch from 7eb7f6d to 3be4429 Compare October 2, 2026 21:06
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from 487f7a0 to 164a5cb Compare October 2, 2026 21:06
Base automatically changed from G5hs7ombjwaxa43hlvraivt7tlmqscvmr to main October 2, 2026 21:45
@joshlf joshlf changed the title Verify inline specifications against checked-in and live Aeneas models Verify doc-owned specifications with conditional type validity Oct 3, 2026
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch 3 times, most recently from ac53b06 to e7c8ab5 Compare October 5, 2026 15:25
@joshlf
joshlf changed the base branch from main to Gysrrwrr4oyfrqso6dw7gdmpjocmskwtx October 5, 2026 15:25
@joshlf
joshlf force-pushed the Gysrrwrr4oyfrqso6dw7gdmpjocmskwtx branch from 44c82ce to c7bca95 Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from e7c8ab5 to cc93492 Compare October 5, 2026 21:12
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from cc93492 to e6dc0d4 Compare October 5, 2026 21:44
@joshlf
joshlf force-pushed the Gysrrwrr4oyfrqso6dw7gdmpjocmskwtx branch from c7bca95 to 1610146 Compare October 5, 2026 21:44
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from e6dc0d4 to 5b69c13 Compare October 5, 2026 22:08
@joshlf
joshlf force-pushed the Gysrrwrr4oyfrqso6dw7gdmpjocmskwtx branch 2 times, most recently from 50efe34 to 67d287f Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from 5b69c13 to 7409730 Compare October 6, 2026 00:32
@joshlf
joshlf force-pushed the Gysrrwrr4oyfrqso6dw7gdmpjocmskwtx branch from 67d287f to e6fe39b Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the Gf75ukj4vvtufg6dwjpfa3bx5a457sw74 branch from 7409730 to 60ae676 Compare October 6, 2026 15:45
Associate spec-only Rust doc fences with their syntax owners and derive
original binders from verified signatures. Recursively decode fields into
nominal mathematical carriers; inline type models may refine those fields
with a fallible decoder. Plain clauses and dependent ghosts use decoded
values, while explicit raw clauses retain extracted representations.
Freeze native providers and thread every original type parameter's
dictionary explicitly. Successful execution must produce a decodable
result shared by all postconditions.

Check ordinary canonical proofs and independent expectations against both
complete models. The initial scope covers four arithmetic helpers; broad
Raw lemmas retain their representation domains. Preserve nominal tuple
structs using a reproducible patch exposing the existing upstream option.
Audit source snapshots, exact annotation ownership and axioms; retain source maps and a stable Lean development project.

Define generic shapes solely over mathematical carrier types. Generate
structural decoder decomposition with retained child witnesses. Complete
only omitted proposition proofs at decoder construction sites, bounded
by the caller heartbeat budget, and preserve native module exports.
Protect edited Lean projections and inspect compiled effective specs.

Add native Lean edit regions and guarded copy-back into owned Rust doc
fences. Preserve unrelated edits and bytes, reject stale source or generated
scaffolding changes, and recover interrupted source/baseline replacements.
Validate native editor/copy/regeneration round trips at the first and final
stack stages and preserve byte-identical CI assembly throughout the stack.

Compare every inline contract with its independent expectation for arbitrary
execution outcomes, then specialize to the canonical implementation proof.
Record the complete design and deferred decisions in DESIGN.md.

Derive fixed registration names from their owner and share nominal case
assembly. Normalize source ownership once, retain generated lines with their
locations, and reuse checked editing regions. Share file rosters while keeping
independent source ownership and contract adequacy checks separate. Explain
the pipeline and the purpose of its guards for readers new to the integration.

Derive extraction roots solely from present annotations. Every discovered
specification is mandatory in both builds; removing a specification and its
proof deliberately removes that claim. No method roster or root marker is
required. Preserve Unit decoding through reduction so total assertion
harnesses use the same contract path as ordinary value-returning functions.

Validation: fresh pinned extraction, complete golden comparison, separate
golden/live builds, independent required contracts and axiom audits.

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