Debian Codegraph @

src/Data/Vec/Relation/Binary/Equality/Propositional/WithK.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Code related to vector equality over propositional equality that
5 -- makes use of heterogeneous equality
6 ------------------------------------------------------------------------
7
8 {-# OPTIONS --with-K --safe #-}
9
10 module Data.Vec.Relation.Binary.Equality.Propositional.WithK
11 {a} {A : Set a} where
12
13 open import Data.Vec.Base using (Vec)
14 open import Data.Vec.Relation.Binary.Equality.Propositional {A = A}
15 open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl)
16 open import Relation.Binary.HeterogeneousEquality using (_≅_; ≡-to-≅)
17
18 ≋⇒≅ : ∀ {m n} {xs : Vec A m} {ys : Vec A n} →
19 xs ≋ ys → xs ≅ ys
20 ≋⇒≅ p with refl <- length-equal p = ≡-to-≅ (≋⇒≡ p)