Created
November 22, 2019 02:58
-
-
Save aljce/b8981c618fb020fce048ec5fdd1d90d1 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
{-# OPTIONS --prop --type-in-type #-} | |
open import Relation.Binary.PropositionalEquality using (_≡_; refl) | |
module False (extensionality : ∀ (A B : Prop) → A ≡ B) where | |
⊥ : Prop | |
⊥ = ∀ (p : Prop) → p | |
⊤ : Prop | |
⊤ = ⊥ → ⊥ | |
cast : ∀ (A B : Prop) → A ≡ B → A → B | |
cast _ _ refl x = x | |
false : ⊥ | |
false P = cast ⊤ P (extensionality ⊤ P) (λ z → z ⊤ z) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment