Skip to content

Instantly share code, notes, and snippets.

@timjb
Created January 26, 2015 20:33
Show Gist options
  • Select an option

  • Save timjb/58ac47d9ef439a6f191c to your computer and use it in GitHub Desktop.

Select an option

Save timjb/58ac47d9ef439a6f191c to your computer and use it in GitHub Desktop.
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