Last active
June 19, 2020 21:08
-
-
Save kmill/8650f23482a60baa39299ab9ec9ee765 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
inductive binary_tree : Type | |
| root : binary_tree | |
| tree : binary_tree → binary_tree → binary_tree | |
namespace binary_tree | |
def mirror : binary_tree → binary_tree | |
| root := root | |
| (tree a b) := tree (mirror b) (mirror a) | |
end binary_tree |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment