Skip to content

Instantly share code, notes, and snippets.

@mietek
Created March 6, 2017 15:20
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 mietek/65f9d88492f0495965f34d6dcd9a54b4 to your computer and use it in GitHub Desktop.
Save mietek/65f9d88492f0495965f34d6dcd9a54b4 to your computer and use it in GitHub Desktop.
open import Data.Maybe using (Maybe ; just)
open import Relation.Binary.PropositionalEquality using (_≡_ ; refl)
bad₁ : {A : Set} {x y : A} → (just x) ≡ (just y) → x ≡ y
bad₁ p = {!!}
bad₂ : ∀ {a} {A : Set a} {x y : A} → (just x) ≡ (just y) → x ≡ y
bad₂ p = {!!}
good₁ : {A : Set} {x y : A} → (Maybe.just x) ≡ (Maybe.just y) → x ≡ y
good₁ refl = refl
good₂ : ∀ {a} {A : Set a} {x y : A} → (Maybe.just x) ≡ (Maybe.just y) → x ≡ y
good₂ refl = refl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment