fn resolved_ground_domain_of_for_partial_eval(expr: &Expr) -> Option<Moo<GroundDomain>> {
Expr::Flatten(_, _, _) => Err(RuleNotApplicable), // TODO: check if anything can be done here
/// Checks for tautologies involving pairs of terms inside an or, returning true if one is found.