avalog icon indicating copy to clipboard operation
avalog copied to clipboard

Add support for `;` (or) in rules

Open bvssvni opened this issue 5 years ago • 1 comments

Currently, the only logical connectivity supported is , (and).

The way the inference rule should work, is that variables are bound and substituted as usual, but branches with OR reduces when any sub-expression is constant.

bvssvni avatar Oct 02 '20 22:10 bvssvni

One idea is to support it in left-side expressions.

(a, b); (b, a) :- (a, prod), (b, prod).

Alternatively, this could be using commas:

(a, b), (b, a) :- (a, prod), (b, prod).

bvssvni avatar Oct 28 '20 17:10 bvssvni