added Mutual

This commit is contained in:
wadler 2018-01-11 13:27:33 -02:00
parent 390816ea97
commit 64dc1651c3

24
src/extra/Mutual.agda Normal file
View file

@ -0,0 +1,24 @@
open import Data.Nat using (; zero; suc)
open import Data.Bool using (Bool; true; false)
data even : Set
data odd : Set
data even where
zero : even zero
suc : {n : } odd n even (suc n)
data odd where
suc : {n : } even n odd (suc n)
mutual
data even : Set where
zero : even zero
suc : {n : } odd n even (suc n)
data odd : Set where
suc : {n : } even n odd (suc n)
{-
/Users/wadler/sf/src/extra/Mutual.agda:3,6-10
Missing definition for even
-}