Skip to content

feat(lean): Add support for #[hax_lib::opaque]#1846

Merged
abentkamp merged 1 commit intomainfrom
lean-opaque
Jan 5, 2026
Merged

feat(lean): Add support for #[hax_lib::opaque]#1846
abentkamp merged 1 commit intomainfrom
lean-opaque

Conversation

@abentkamp
Copy link
Copy Markdown
Contributor

@abentkamp abentkamp commented Jan 5, 2026

This PR adds support for marking functions as opaque.

Open question: What happens to ensures and requires when they are on an opaque item? Should they be axiomatized?

Fixes #1825

@abentkamp abentkamp added this to the Lean backend v1.0 milestone Jan 5, 2026
@abentkamp abentkamp added backend Issue in one of the backends (i.e. F*, Coq, EC...) lean Related to the Lean backend or library labels Jan 5, 2026
@abentkamp abentkamp changed the title feat(lean): opaque functions feat(lean): Add support for #[hax_lib::opaque] Jan 5, 2026
@abentkamp abentkamp force-pushed the lean-opaque branch 2 times, most recently from 006cc6f to c0933fe Compare January 5, 2026 13:19
@abentkamp abentkamp requested a review from maximebuyse January 5, 2026 13:22
@abentkamp abentkamp marked this pull request as ready for review January 5, 2026 13:22
@abentkamp abentkamp requested a review from a team as a code owner January 5, 2026 13:22
@abentkamp abentkamp enabled auto-merge January 5, 2026 13:46
@abentkamp abentkamp added this pull request to the merge queue Jan 5, 2026
Merged via the queue into main with commit 54976a4 Jan 5, 2026
17 of 18 checks passed
@abentkamp abentkamp deleted the lean-opaque branch January 5, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Issue in one of the backends (i.e. F*, Coq, EC...) lean Related to the Lean backend or library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lean] Lean backend renders functions with hax_lib::opaque as Rust_primitives.Hax.dropped_body

2 participants