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

Improve adding theories #643

Open
RobinWebbers opened this issue Jan 31, 2023 · 0 comments
Open

Improve adding theories #643

RobinWebbers opened this issue Jan 31, 2023 · 0 comments

Comments

@RobinWebbers
Copy link
Contributor

Problem

Currently, a lot of code effort is required to add new theories to Liquid Fixpoint. It would be nicer if we could leverage most of the system to do this for us. This would remove clutter from having 50 names in the code base for the functions, as well as their accompanying types.

Proposed solution

Have a directive in Liquid Fixpoint syntax to bind a LF function to an underlying SMTLIB2 function. Something like the rust #[...]

#[smt="smt_set_emp"]
constant Set_empty : func(1, [int; Set_Set @(0)])

Then just prepend a file containing all these definitions when solving a liquid fixpoint file (to avert having to do actual package managing). Of course the syntax of the annotation may be different, but this is also extendible without parser changes for other purposes.

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

No branches or pull requests

1 participant