Closed robblanco closed 5 years ago
I am not sure hnorm
needs to be exposed by Term
, actually, so maybe observe
can take over the function.
What about Term.norm
?
As far as I can tell, that function isn't used anywhere in Abella.
On this note, I was using norm
in one of my experiments, but I don't think the code is even composable. In particular, it returns terms with Var
s unprotected by Ptr
.
I think everything relevant to this issue has already been addressed long ago.
Does it make sense to extend the Term interface with a method that performs a "canonical inspection" of terms, conflating head normalization and
observe
? We have spoken before about how this is a sort of standard, and it makes sense to me if the interface encourages this, and makes it explicit (and more compact).