Skip to content

conditional elaboration of theories for cvc5#734

Merged
nikivazou merged 16 commits into
ucsd-progsys:developfrom
clayrat:cvc5-theories
Feb 25, 2025
Merged

conditional elaboration of theories for cvc5#734
nikivazou merged 16 commits into
ucsd-progsys:developfrom
clayrat:cvc5-theories

Conversation

@clayrat

@clayrat clayrat commented Jan 22, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/Language/Fixpoint/Smt/Theories.hs Outdated
(mapSort (FVar 0) (FVar 1))

bagCountSort = FAbs 0 $ FFunc (bagSort $ FVar 0) $ FFunc (FVar 0) intSort
bagCountSort = FAbs 0 $ FFunc (FVar 0) $ FFunc (bagSort $ FVar 0) intSort

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is likely to cause wreckage in LH. The arguments needed to be already flipped in 9172c8f for #724.

At this point, it seems we need to test this for both cvc5 and z3.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is a breaking change, I will update the corresponding assume/define in LH when I'm done with this PR. On the flip side, the Set_add is as of now unused in LH, I'll add it as well.

The reason these have to flipped is that we don't do any elaboration at all for CVC5, mapping LF theories onto it directly. The alternative is to introduce a micro-elaboration step for CVC5 just to flip the arguments for Bag_count.

@clayrat clayrat changed the title [WIP] conditional elaboration of theories for cvc5 conditional elaboration of theories for cvc5 Feb 6, 2025
@nikivazou nikivazou merged commit 569889e into ucsd-progsys:develop Feb 25, 2025
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