Re:Recognizing when two arithmetic expressions are essential...
by zmonx on Tuesday August 22, 2017 @04:35PM
(#15076138)
This may get out of hand: The task asks not only for all parenthesizations, but also other equivalence classes. The rewrite rules and Prolog in general let you express the equivalence classes reasonably concisely and efficiently.
I'm still always interested also in other approaches, and greatly enjoy your SAT solutions!
I think you've gone for the more 'expressive' variant here. If I were writing SMTLIB directly or using an API, I'd prove the assertion that any possible parenthization is eqv by enumerating & checking them individually :)