Debian Codegraph @

src/Relation/Binary/PropositionalEquality/WithK.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Some code related to propositional equality that relies on the K
5 -- rule
6 ------------------------------------------------------------------------
7
8 {-# OPTIONS --with-K --safe #-}
9
10 module Relation.Binary.PropositionalEquality.WithK where
11
12 open import Axiom.UniquenessOfIdentityProofs.WithK using (uip)
13 open import Relation.Binary.Definitions using (Irrelevant)
14 open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl)
15
16 ------------------------------------------------------------------------
17 -- Re-exporting safe erasure function
18
19 -- ≡-erase ignores its `x ≡ y` argument and reduces to refl whenever
20 -- x and y are judgmentally equal. This is useful when the computation
21 -- producing the proof `x ≡ y` is expensive.
22
23 open import Agda.Builtin.Equality.Erase
24 using ()
25 renaming ( primEraseEquality to ≡-erase )
26 public
27
28 ------------------------------------------------------------------------
29 -- Proof irrelevance
30
31 ≡-irrelevant : ∀ {a} {A : Set a} → Irrelevant {A = A} _≡_
32 ≡-irrelevant = uip