Skip to content

Add specifications for vstd::vec - #2842

Open
q5438722 wants to merge 1 commit into
verus-lang:mainfrom
q5438722:spec-vec-core
Open

q5438722 wants to merge 1 commit into
verus-lang:mainfrom
q5438722:spec-vec-core

Conversation

@q5438722

@q5438722 q5438722 commented Aug 22, 2026 •

Copy link
Copy Markdown

Summary

Add specifications for these five stable APIs:

  • Vec::as_mut_ptr, Vec::as_ptr
  • Vec::into_boxed_slice, Vec::resize_with
  • Vec::set_len

Their corresponding proofs are available on spec-slice-vec-proof.

These specifications also passed completeness checking: for every valid input, only one output satisfies the specification.

@Chris-Hawblitzel Could you take a look on this?

Testing

  • vargo fmt -- --check: pass
  • full vstd verification: 2043 verified, 0 errors

Assisted-by: GitHub Copilot: GPT-5.6-Sol

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 37c58501-5f9f-4a00-b559-69d47c22f399

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.

1 participant