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

Distinct domain constants with the same name. #478

Open
MichaelRawson opened this issue Aug 16, 2023 · 1 comment
Open

Distinct domain constants with the same name. #478

MichaelRawson opened this issue Aug 16, 2023 · 1 comment
Assignees

Comments

@MichaelRawson
Copy link
Contributor

Refer to GEG001+1. The finite model produced contains

12.46/2.27	tff(finite_domain,axiom,
12.46/2.27	      ! [X:$i] : (
12.46/2.27	         X = jupiter | X = planet | X = named | X = named | X = continent
12.46/2.27	      ) ).
12.46/2.27	
12.46/2.27	tff(distinct_domain,axiom,
12.46/2.27	         jupiter != planet & jupiter != named & jupiter != named & jupiter != continent & planet != named & 
12.46/2.27	         planet != named & planet != continent & named != named & named != continent & named != continent
12.46/2.27	).

which suggests that there are two things called named that are assumed distinct. @quickbeam123 says

So this is another issue for us to track and fix. I am guessing fmb starts internally working with two (formally) distinct "named"s, because, maybe, they end up in two different soft sorts. Then at printing time, the code does not bother to distinguish them (or use a fresh constant for at least one). This should be again easy to fix, once someone gets their hands dirty by delving into this part of the code.

@MichaelRawson
Copy link
Contributor Author

Digging deeper, looks like this assertion would have failed in a debug configuration with named. named is assigned to constants 1 and 3.

Leaving this for someone with FMB expertise.

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

2 participants