module Sets.Mutual where open import Sets.Enumerated using (Bool; true; false) open import Syntax.Decimal_Naturals using (ℕ; zero; suc)
To allow mutual definitions one should declare any set before using it:
data L : Set data M : Set data L where nil : L _∷_ : ℕ → M → L data M where _∷_ : Bool → L → M
Note that : Set
is missing in the definitions of sets declared before.
Exercise: What are the elements of L
and M
?
Define a small grammar!*
*highly underspecified exercise