Skip to content

✨ 📝 Generate WASM Theorems#181

Open
yoshihiro503 wants to merge 2 commits intomainfrom
yoshihiro503@wasm_theorem_generator
Open

✨ 📝 Generate WASM Theorems#181
yoshihiro503 wants to merge 2 commits intomainfrom
yoshihiro503@wasm_theorem_generator

Conversation

@yoshihiro503
Copy link
Collaborator

In Rocq code generation, I have now configured the system to output the Rocq theorems that the user should prove.
This assumes that the yoshihiro503@wasm-verifier branch of WasmCertCoq-Essence is being used.

Since preparations on the wasm-verifier interfaces are not yet complete, this PR is a draft.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the WASM→Rocq (Coq) code generator to also emit a skeleton theorem stating module validity, and extends the generated Rocq imports accordingly (assuming the referenced WasmCertCoq-Essence branch provides the needed verifier definitions).

Changes:

  • Add verifier to the generated From Wasm Require Import ... line.
  • Append a generated ValidModule theorem stub (valid_{module_name}) after the module definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Georgii Plotnikov <accembler@gmail.com>
@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@0xGeorgii 0xGeorgii marked this pull request as ready for review March 24, 2026 06:29
@yoshihiro503
Copy link
Collaborator Author

I have introduced the ValidModule predicate to the wasm-verifier branch for module-level verification.
https://github.com/Inferara/WasmCert-Coq-Essence/tree/5467c9e795feb5f909bb1ae3a4f485ee595ab025

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.

3 participants