We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 generates tons of error messages on a simple backward chainer variation.
Run the following metta code
;; Knowledge base !(bind! &kb (new-space)) !(add-atom &kb (: AND (-> Boolean Boolean Boolean))) !(add-atom &kb (: X Boolean)) ;; Backward chainer ;; Base case (= (bc $kb $_ (: $prg $type)) (match $kb (: $prg $type) (: $prg $type))) ;; Recursive steps ;; Unary operators (= (bc $kb (S $k) (: ($fun $arg) $type)) (let* (((: $fun (-> $prms $type)) (bc $kb $k (: $fun (-> $prms $type)))) ((: $arg $prms) (bc $kb $k (: $arg $prms)))) (: ($fun $arg) $type))) ;; Binary operators (= (bc $kb (S $k) (: ($fun $arg1 $arg2) $type)) (let* (((: $fun (-> $prms1 $prms2 $type)) (bc $kb $k (: $fun (-> $prms1 $prms2 $type)))) ((: $arg1 $prms1) (bc $kb $k (: $arg1 $prms1))) ((: $arg2 $prms2) (bc $kb $k (: $arg2 $prms2)))) (: ($fun $arg1 $arg2) $type))) ;; Test bc !(bc &kb (S (S Z)) (: $prg Boolean))
At some point the MeTTaLog interpreter outputs
#(failed #( : user once ) #( : user #(if_or_else #(eval = $10000 494 &self (return X) $10001) #(call eval (return X) $10001)) )) #(on_mettalog_error #(failed #( : user once ) #( : user #(if_or_else #(eval = $10000 494 &self (return X) $10001) #(call eval (return X) $10001)) ))) ^ Call: (283) [user] call(user:once, user:if_or_else(eval(=, _954712, 494, '&self', [return, 'X'], _955146), call(eval, [return, 'X'], _955146))) ...
[(: X Boolean), (: (AND X X) Boolean), (: (AND X (AND X X)) Boolean), (: (AND (AND X X) X) Boolean), (: (AND (AND X X) (AND X X)) Boolean)]
Tested on revision 5241cf1.
The text was updated successfully, but these errors were encountered:
a workarround related to the bug trueagi-io/metta-wam#219
8b127d0
TeamSPoon
No branches or pull requests
What is your problem?
MeTTaLog generates tons of error messages on a simple backward chainer variation.
How to reproduce your problem?
Run the following metta code
What do you get?
At some point the MeTTaLog interpreter outputs
What should you expect instead?
What else do you have to say?
Tested on revision 5241cf1.
The text was updated successfully, but these errors were encountered: