Created
March 11, 2011 21:18
-
-
Save ikedaisuke/866600 to your computer and use it in GitHub Desktop.
How to use agda2-make-case
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
module Agdacase where | |
data Nat : Set where | |
zero : Nat | |
succ : (n : Nat) -> Nat | |
-- an example : n += 2 | |
succsucc : Nat -> Nat | |
succsucc n = {! !} -- try to type C-c C-c `in the goal' | |
-- then you should type the variable `n' in the minibuffer | |
-- finally you must get the following instead! | |
-- succsucc : Nat -> Nat | |
-- succsucc zero = {!!} | |
-- succsucc (succ n) = {!!} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment