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

Add an option for reusing existing elements when possible #51

Open
salmans opened this issue May 12, 2019 · 0 comments
Open

Add an option for reusing existing elements when possible #51

salmans opened this issue May 12, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@salmans
Copy link
Owner

salmans commented May 12, 2019

The core idea is to avoid introducing new elements to the model when possible. Here is an example for the simple case:

P('a);
exists x. P(x);

Razor currently builds the following model for this theory:

Domain: e#0, e#1
Elements: 'a -> e#0, 'sk#0 -> e#1
Facts: P(e#0), P(e#1)

However, it could reuse e#0 (denoting 'a in place of e#1 (denoting the existential quantifier). This would introduce an unnecessary identification between e#0 and e#1, resulting in a model that is not homomorphically minimal:

Domain: e#0
Elements: 'a -> e#0, 'sk#0 -> e#0
Facts: P(e#0)

However, this kind of element reuse often helps avoid constructing infinite models as for the case for the grandpa example.

@salmans salmans added the enhancement New feature or request label May 12, 2019
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