By analogy to the standard use case , I expected simple fail to both of the queries.
So I have consulted to manual by ?- help('ssu-consequences'), and read the section: 5.6.2 Consequences of => single sided unification rules. Unfortunately still I canât understand well the errors. What am I missing about
use of =>/2-clause ?
I thought => clauses could be used for as term rewriting
rules , but I noticed soon it does not work. So, now I
use explicitly subsumes_term/2 for one_sided head unification when applying rules without => rules, which works fine. (I am reviewing my old broken prolog codes for Montagueâs PTQ, whose rule is complicated and tedious for me.)
I tested that the advice works. Thanks. I simply looked only one-sided unification aspect of => clauses as an elegant form of one-sided head unification to apply rewriting rules with non-ground terms in head arguments, which would suppress uses of ânot willing to see useâ of nonvar/1 from codes, but
which is necessary to be sure that the rule is applicable to given terms without unexpected instantiation of the variables. I have to learn more about =>.