Skip to content

Instantly share code, notes, and snippets.

@Blaisorblade
Last active June 27, 2019 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blaisorblade/fd6dfb0228b6fa4e93e6d21bb619feb7 to your computer and use it in GitHub Desktop.
Save Blaisorblade/fd6dfb0228b6fa4e93e6d21bb619feb7 to your computer and use it in GitHub Desktop.
data _≡_ {i} {A : Set i} (x : A) : A -> Set i where
refl : x ≡ x
{-# BUILTIN EQUALITY _≡_ #-}
data Unit : Set where
unit : Unit
refl_unit : unit ≡ unit
refl_unit = refl
refl_unit2 : (u : Unit) -> u ≡ u
refl_unit2 unit = refl
refl_unit3 : (u1 u2 : Unit) -> u1 ≡ u2
refl_unit3 unit unit = refl
data Two : Set where
zero : Two
one : Two
g : one ≡ one
g = refl {x = one}
flip : Two → Two
flip zero = one
flip one = zero
f : ( x : Two ) -> x ≡ one -> flip x ≡ zero
f num p = {!!}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment