Skip to content

Commit 78603e0

Browse files
author
GBathie
committed
Implication is not monotone
1 parent bbd4fce commit 78603e0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ltl/trace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pub struct Operators {
2828

2929
impl Operators {
3030
pub(crate) fn filter_bool(mut self) -> Self {
31-
self.unary.retain(|op| op.is_boolean());
32-
self.binary.retain(|op| op.is_boolean());
31+
self.unary.retain(|op| op.is_boolean_monotone());
32+
self.binary.retain(|op| op.is_boolean_monotone());
3333
self
3434
}
3535

src/ops/binary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ impl LtlBinaryOp {
2929
}
3030

3131
/// Whether this LTL operator is boolean.
32-
pub(crate) fn is_boolean(&self) -> bool {
32+
pub(crate) fn is_boolean_monotone(&self) -> bool {
3333
matches!(
3434
self,
35-
LtlBinaryOp::Or | LtlBinaryOp::And | LtlBinaryOp::Implies | LtlBinaryOp::Equivalent
35+
LtlBinaryOp::Or | LtlBinaryOp::And | LtlBinaryOp::Equivalent
3636
)
3737
}
3838

src/ops/unary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl LtlUnaryOp {
2121
// vec![Not, WeakNext, StrongNext, Finally, Globally]
2222
}
2323

24-
pub(crate) fn is_boolean(&self) -> bool {
24+
pub(crate) fn is_boolean_monotone(&self) -> bool {
2525
match self {
2626
// LtlUnaryOp::Not => true,
2727
LtlUnaryOp::WeakNext

0 commit comments

Comments
 (0)