Created
March 6, 2017 15:20
-
-
Save mietek/65f9d88492f0495965f34d6dcd9a54b4 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
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