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 Lecture-2 where | |
data ⊤ : Set where --\top | |
tt : ⊤ | |
data ⊥ : Set where --\bot | |
⊥-elim : {A : Set} → ⊥ → A | |
⊥-elim = λ () |
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 Bool where | |
data 𝔹 : Set where --\bB | |
true : 𝔹 | |
false : 𝔹 | |
if_then_else_ : {A : Set} → 𝔹 → A → A → A --\to | |
if true then a else b = a | |
if false then a else b = b |