Skip to content

✨ 📝 Generate WASM Theorems#181

Merged
0xGeorgii merged 3 commits into
mainfrom
yoshihiro503@wasm_theorem_generator
May 12, 2026
Merged

✨ 📝 Generate WASM Theorems#181
0xGeorgii merged 3 commits into
mainfrom
yoshihiro503@wasm_theorem_generator

Conversation

@yoshihiro503
Copy link
Copy Markdown
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
Copy Markdown

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.

Comment thread core/wasm-to-v/src/translator.rs Outdated
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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

Yoshihiro Imai and others added 2 commits April 30, 2026 17:16
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Georgii Plotnikov <accembler@gmail.com>
@yoshihiro503 yoshihiro503 force-pushed the yoshihiro503@wasm_theorem_generator branch from 5ad7155 to 85c1067 Compare April 30, 2026 08:17
@0xGeorgii 0xGeorgii self-requested a review May 12, 2026 01:27
@0xGeorgii 0xGeorgii added the codegen Bytecode emitting label May 12, 2026
@0xGeorgii 0xGeorgii merged commit c906cb1 into main May 12, 2026
6 checks passed
@0xGeorgii 0xGeorgii deleted the yoshihiro503@wasm_theorem_generator branch May 12, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen Bytecode emitting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants