-
Notifications
You must be signed in to change notification settings - Fork 55
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
Idiomatic negation / set difference #805
Comments
@nasser , thank you for the question. Simple manual way of doing it is nesting
Thus in general |
|
The examples I provided are
|
Very helpful -- thank you! |
JIC, @nasser , do you prefer pure |
what's the most idiomatic way to approach negation in metta? I am particularly interested it in the context of composite queries where i have a sense of how to construct a logical AND with nested matches
but it is less clear how to express negation, i.e. "friends of bob AND-NOT carpenter" which i would expect to produce
[mike]
given the above assertions.relatedly I have a sense of how to model the set-theoretic intersection of two nondeterministic results
but it is not clear how to model set-theoretic difference, e.g. "all mammals that ARE-NOT" pets.
what's the best practice here?
The text was updated successfully, but these errors were encountered: