boolean-expr: shorten some code
parent
f0f2214448
commit
68ddc03e22
|
@ -67,7 +67,7 @@ METHOD: satisfiable? { ⊥ } drop f ;
|
|||
|
||||
! See if there is a term along with its negation in the conjunction seq.
|
||||
: (satisfiable?) ( seq -- ? )
|
||||
[ \ ¬ instance? ] partition swap [ x>> ] map intersect empty? ;
|
||||
[ ¬? ] partition swap [ x>> ] map intersect empty? ;
|
||||
|
||||
METHOD: satisfiable? { □ }
|
||||
dnf [ (satisfiable?) ] any? ;
|
||||
|
|
Loading…
Reference in New Issue