Created
February 9, 2023 15:13
-
-
Save Lysxia/c5edf02b2ac4698ee617709fe1ccc745 to your computer and use it in GitHub Desktop.
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 I where | |
open import Data.Unit | |
open import Relation.Binary.PropositionalEquality | |
private variable | |
A : Set | |
to : (⊤ → A) → A | |
to f = f tt | |
from : A → ⊤ → A | |
from x _ = x | |
to∘from : ∀ {A} (x : A) → to (from x) ≡ x | |
to∘from _ = refl | |
from∘to : ∀ {A} (x : ⊤ → A) → from (to x) ≡ x | |
from∘to _ = refl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment