Skip to content

Commit

Permalink
Merge pull request #667 from bvssvni/main
Browse files Browse the repository at this point in the history
Removed `tauto_hooo_rev_imply`
  • Loading branch information
bvssvni committed Dec 19, 2022
2 parents 3225cc8 + 49f86ca commit a17e36f
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/hooo.rs
Expand Up @@ -127,8 +127,9 @@ pub fn pow_refl<A: Prop>(x: A) -> A {x}

/// `a^b => (¬b)^(¬a)`.
pub fn pow_modus_tollens<A: Prop, B: Prop>(x: Pow<A, B>) -> Pow<Not<B>, Not<A>> {
pow_transitivity(pow_transitivity(pow_to_imply, imply::modus_tollens),
tauto_imply_to_pow(tauto_hooo_rev_imply(pow_to_imply_lift(tauto_pow_imply))))(x)
// pow_transitivity(pow_transitivity(pow_to_imply, imply::modus_tollens),
// tauto_imply_to_pow(tauto_hooo_rev_imply(pow_to_imply_lift(tauto_pow_imply))))(x)
unimplemented!()
}

/// `a^b ⋀ (a == c)^true => c^b`.
Expand Down Expand Up @@ -267,10 +268,11 @@ fn pow<A: Prop, B: Prop>() -> Pow<A, B>

/// `(¬(a^b))^true => (¬a)^b`.
pub fn tauto_hooo_rev_not<A: Prop, B: Prop>(x: Tauto<Not<Pow<A, B>>>) -> Pow<Not<A>, B> {
fn f<A: Prop, B: Prop>(x: Not<Pow<A, B>>) -> Imply<Pow<A, B>, Para<B>> {
imply::transitivity(x, imply::absurd())
}
tauto_hooo_rev_imply(pow_transitivity(x, f))
// fn f<A: Prop, B: Prop>(x: Not<Pow<A, B>>) -> Imply<Pow<A, B>, Para<B>> {
// imply::transitivity(x, imply::absurd())
// }
// tauto_hooo_rev_imply(pow_transitivity(x, f))
unimplemented!()
}

/// `¬(a^b) => (¬a)^b`.
Expand Down Expand Up @@ -482,13 +484,6 @@ pub fn tauto_hooo_imply<A: Prop, B: Prop, C: Prop>(
unimplemented!()
}

/// `(a^c => b^c)^true => (a => b)^c`.
pub fn tauto_hooo_rev_imply<A: Prop, B: Prop, C: Prop>(
x: Tauto<Imply<Pow<A, C>, Pow<B, C>>>
) -> Pow<Imply<A, B>, C> {
unimplemented!()
}

/// `(a => b)^c => (a^c => b^c)`.
pub fn hooo_imply<A: Prop, B: Prop, C: Prop>(
x: Pow<Imply<A, B>, C>
Expand Down

0 comments on commit a17e36f

Please sign in to comment.