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 UnionLink, etc. to the Atom Types. See #2816. #2843

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

linas
Copy link
Member

@linas linas commented Sep 9, 2021

Issue #2816 discusses this, its a continuation of #2814

@linas linas mentioned this pull request Sep 9, 2021
@linas linas merged commit ea37674 into opencog:master Sep 9, 2021
@linas linas deleted the union-link branch September 9, 2021 17:21
// See issue opencog/atomspace#2814 for a discussion.
UNION_LINK <- OR_LINK
INTERSECTION_LINK <- AND_LINK
COMPLEMENT_LINK <- NOT_LINK
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! I'm not actually sure they should inherit OrLink, etc. But I guess we can revisit that later on.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are absolutely right... this was a rush job, I didn't give it any thought. The reason they should not is because ... the checkers.cc will notice that these inherit evaluatability, and thus will prevent you from saying (Union (Set (Concept "foo"))) Dohhh! So this needs to be patched! Which is what #2814 was all about...

It's past bedtime for me; you have any ideas of the correct inheritance for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like UnorderedLink is the most they should inherit from...!?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2844 fixes this. Review and merge if it looks right.

linas added a commit to linas/atomspace that referenced this pull request Sep 10, 2021
@ngeiswei
Copy link
Member

@linas, I've added the following wiki pages

https://wiki.opencog.org/w/UnionLink
https://wiki.opencog.org/w/IntersectionLink
https://wiki.opencog.org/w/ComplementLink

I don't know if you agree with the equivalence definitions with OrLink, AndLink and NotLink respectively. If you don't, hold on just a bit cause I have a proposal I'm ready to write as soon as I have time for it (probably next week, cause I'm busy today with other matters, and writing this is probably gonna take a day) that might change your mind.

@linas
Copy link
Member Author

linas commented Sep 10, 2021 via email

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 this pull request may close these issues.

2 participants