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

Semantics of Nondeterminism? #161

Open
vulecoff opened this issue Oct 17, 2024 · 1 comment
Open

Semantics of Nondeterminism? #161

vulecoff opened this issue Oct 17, 2024 · 1 comment
Milestone

Comments

@vulecoff
Copy link
Contributor

Take the following code:

!(== (match &self nonexistents ok) ok)

What should this return when we cannot find a match for a given atom? Currently Hyperon returns empty [], and MettaLog gives [False]. On Hyperon's interpretation, if we could not find any matches, then we cannot do any comparisons, thus empty. MettaLog's interpretation (if this is intended and not a bug), then the result is false b/c in all possible non-deterministic paths, there does not exist a value that equals ok.

I think Empty result is a more predictable behavior for non-determinism.

@TeamSPoon TeamSPoon added this to the Month 4 of 5 milestone Nov 11, 2024
@TeamSPoon
Copy link
Collaborator

Yes. I like their result better.. I am going to strive for that

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