satask() is the search over facts that ask() uses once the handlers
of the predicates give no answer: it collects the facts known about every
expression in the proposition and the assumptions, such as
Q$nonnegative(Abs(x)), and asks whether the proposition, or its
negation, can hold together with them.
Usage
satask(
proposition,
assumptions = TRUE,
use_known_facts = TRUE,
iterations = Inf,
early_return = FALSE
)Arguments
- proposition
A boolean expression of predicates.
- assumptions
Assumptions, or
TRUEfor none.- use_known_facts
Whether the facts between the predicates are used.
- iterations
How many times facts are collected from the expressions found;
Infuntil no new expression appears.- early_return
Whether to answer from unit propagation alone when it decides the proposition, trusting the assumptions to be consistent.