Debian Codegraph @

src/Relation/Binary/HeterogeneousEquality/Core.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Heterogeneous equality
5 ------------------------------------------------------------------------
6
7 -- This file contains some core definitions which are reexported by
8 -- Relation.Binary.HeterogeneousEquality.
9
10 {-# OPTIONS --with-K --safe #-}
11
12 module Relation.Binary.HeterogeneousEquality.Core where
13
14 open import Level using (Level)
15 open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl)
16
17 private
18 variable
19 a b : Level
20 A : Set a
21
22 ------------------------------------------------------------------------
23 -- Heterogeneous equality
24
25 infix 4 _≅_
26
27 data _≅_ {A : Set a} (x : A) : {B : Set b} → B → Set a where
28 refl : x ≅ x
29
30 ------------------------------------------------------------------------
31 -- Conversion
32
33 ≅-to-≡ : ∀ {x y : A} → x ≅ y → x ≡ y
34 ≅-to-≡ refl = refl
35
36 ≡-to-≅ : ∀ {x y : A} → x ≡ y → x ≅ y
37 ≡-to-≅ refl = refl