Skip to content

Commit 9d23e0e

Browse files
authored
Merge pull request #1742 from bvssvni/main
Added `imply::rev_double_neg_left`
2 parents f356261 + 169ec0b commit 9d23e0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/imply.rs

+6
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ pub fn rev_double_neg_imply_excm<A: Prop, B: Prop>(
150150
})
151151
}
152152

153+
/// `(a => ¬b) => (¬¬a => ¬b)`.
154+
pub fn rev_double_neg_left<A: Prop, B: Prop>(f: Imply<A, Not<B>>) -> Imply<Not<Not<A>>, Not<B>> {
155+
Rc::new(move |nna|
156+
not::rev_triple(imply::modus_tollens(imply::modus_tollens(f.clone()))(nna)))
157+
}
158+
153159
/// `(a => b) => (¬a ∨ b)`.
154160
pub fn to_or_da<A: DProp, B: Prop>(f: Imply<A, B>) -> Or<Not<A>, B> {
155161
to_or_excm_a(f, A::decide())

0 commit comments

Comments
 (0)