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

[Simplification request] Top-level existential elimination #3193

Closed
PetarMax opened this issue Aug 10, 2022 · 2 comments · Fixed by #3202
Closed

[Simplification request] Top-level existential elimination #3193

PetarMax opened this issue Aug 10, 2022 · 2 comments · Fixed by #3202
Assignees

Comments

@PetarMax
Copy link
Contributor

PetarMax commented Aug 10, 2022

Simplification

Existential quantification in top-level positive constraints can be eliminated and the bound variables can be replaced with some fresh variables.

Example: #Exists X. { P(X) } => P(X0), for some X0 fresh.

I am assuming that this is a sound simplification when doing matching-logic proofs since it is sound when doing first-order logic proofs, and matching logic captures first-order logic.

This simplification cannot be applied under negation.

@ana-pantilie
Copy link
Contributor

This could be part of

simplifyPredicates sideCondition original = do
. For each top level predicate, check if it has (multiple) exists at the top, remove the exists and refresh the bound variables.

@ana-pantilie
Copy link
Contributor

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 a pull request may close this issue.

3 participants