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

dif/2 redundant #443

Open
UWN opened this issue Dec 19, 2023 · 3 comments
Open

dif/2 redundant #443

UWN opened this issue Dec 19, 2023 · 3 comments

Comments

@UWN
Copy link

UWN commented Dec 19, 2023

?- A=A*B*[],B=C*C*a,dif(A,B).
   A = ... * ... * ( ... * ...)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[],
   B = C*C*a.
?- dif(A,B),A=A*B*[],B=C*C*a.
   A = ... * ... * ( ... * ...)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[], B = C*C*a,
   dif:dif( ... * ... * ( ... * ...)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[],C*C*a),
   unexpected.
@UWN
Copy link
Author

UWN commented Jan 9, 2024

unfixed (and I thus stopped searching for further counterexamples)

@UWN
Copy link
Author

UWN commented Feb 9, 2024

Now:

?- dif(A,B),A=A*B*[],B=C*C*a.
   A = A*(C*C*a)*[], B = C*C*a, .
                            ^^^^^^^^^^

@UWN
Copy link
Author

UWN commented Jun 4, 2024

Back to:

?- A=A*B*[],B=C*C*a,dif(A,B).
   A = A*(C*C*a)*[], B = C*C*a.
?- dif(A,B),A=A*B*[],B=C*C*a.
   A = A*(C*C*a)*[], B = C*C*a, dif:dif(A*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[]*(C*C*a)*[],C*C*a), unexpected.

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