module Sets.Mutual where

open import Sets.Enumerated using (Bool; true; false)
open import Syntax.Decimal_Naturals using (; zero; suc)

Mutual definitions

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?

Exercise

Exercise

Define a small grammar!*


*highly underspecified exercise