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

MeTTaLog fails to correctly evaluate a curried nested call #231

Open
ngeiswei opened this issue Jan 15, 2025 · 1 comment
Open

MeTTaLog fails to correctly evaluate a curried nested call #231

ngeiswei opened this issue Jan 15, 2025 · 1 comment
Labels
bug Issues that represent errors in the code Implemented-AwaitsTest

Comments

@ngeiswei
Copy link
Contributor

What is your problem?

MeTTaLog fails to correctly evaluate a simple curried nested call.

How to reproduce your problem?

Run the following MeTTa program with MeTTaLog

(= (foo A) A)
(= ((bar $x) $x) (== $x (foo $x)))
!((bar A) A)

What do you get?

[False]

What would you normally expect?

[True]

What else do you have to say?

If I flatten bar, i.e. replace

(= ((bar $x) $x) (== $x (foo $x)))
!((bar A) A)

by

(= (bar $x $x) (== $x (foo $x)))
!(bar A A)

then it works.

@ngeiswei ngeiswei added the bug Issues that represent errors in the code label Jan 15, 2025
TeamSPoon added a commit to logicmoo/metta-testsuite that referenced this issue Jan 24, 2025
@TeamSPoon
Copy link
Collaborator

Image

@TeamSPoon TeamSPoon added Implemented-AwaitsTest bug Issues that represent errors in the code and removed bug Issues that represent errors in the code labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that represent errors in the code Implemented-AwaitsTest
Projects
None yet
Development

No branches or pull requests

2 participants