Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mechanism to associate "laws" to a type/identifier/etc #1182

Open
Armael opened this issue Oct 21, 2024 · 0 comments
Open

Mechanism to associate "laws" to a type/identifier/etc #1182

Armael opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Armael
Copy link
Contributor

Armael commented Oct 21, 2024

Feature request: a mechanism to declare lemmas associated with a type/... to automatically load in the proof context.
Example of usecase: if I define a Seq::map function, then a number of natural compatibility lemmas follows (wrt cons, snoc, concat, etc). It would be convenient for these lemmas to be loaded in the proof context automatically.

An idea from @xldenis is to allow specifying #[law] on a type, but allow refining it with #[law(for = identifier)], in which case the law is only loaded if the given identifier is actually used in the proof.

@Armael Armael added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant