Created
January 16, 2019 19:04
-
-
Save MarcelineVQ/e0ef697f0cc395a757c379199b0389e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| combine_odd_even' : (podd, peven : Nat -> Type) -> (Nat -> Type) | |
| combine_odd_even' podd peven n with (evenb n) | |
| combine_odd_even' podd peven n | False = podd n | |
| combine_odd_even' podd peven n | True = peven n | |
| combine_odd_even_intro : (n : Nat) -> | |
| (oddb n = True -> podd n) -> | |
| (oddb n = False -> peven n) -> | |
| combine_odd_even' podd peven n | |
| combine_odd_even_intro k f g with (evenb k) | |
| combine_odd_even_intro k f g | False = f Refl | |
| combine_odd_even_intro k f g | True = g Refl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment