Created
April 5, 2018 05:01
-
-
Save comex/0da167c272a63f90f8a0400949487b24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prove that | |
// ∀p. ∀q. (p ∨ q) | |
// implies | |
// ∀p. ∀q. ¬(¬p ∧ ¬q) | |
pub fn foo(fa1: ForAll<ForAll<Or<DB2, DB3>>>) -> ForAll<ForAll<Not<And<Not<DB4>, Not<DB5>>>>> { | |
map!(fa1, |fa2: ForAll<_>| { | |
map!(fa2, |or: Or<_, _>| { | |
or.de_morgan() | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment