Created
January 26, 2015 20:33
-
-
Save timjb/58ac47d9ef439a6f191c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 IrrelevantTest where | |
| open import Relation.Nullary.Core | |
| open import Data.Empty | |
| ⊥-elim′ : ∀ {w} {Whatever : Set w} → .⊥ → Whatever | |
| ⊥-elim′ () | |
| test : {A : Set} → .A → Dec A → A | |
| test a (yes p) = p | |
| test a (no ¬p) = ⊥-elim′ (¬p a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment