| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Properties, related to reflexive transitive closures, that rely on |
| 5 |
-- the K rule |
| 6 |
------------------------------------------------------------------------ |
| 7 |
|
| 8 |
{-# OPTIONS --with-K --safe #-} |
| 9 |
|
| 10 |
module |
| 11 |
Relation.Binary.Construct.Closure.ReflexiveTransitive.Properties.WithK |
| 12 |
where |
| 13 |
|
| 14 |
open import Function.Base using (_∋_) |
| 15 |
open import Relation.Binary.Core using (Rel) |
| 16 |
open import Relation.Binary.Construct.Closure.ReflexiveTransitive using (Star; _◅_) |
| 17 |
open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl) |
| 18 |
|
| 19 |
------------------------------------------------------------------------ |
| 20 |
-- Equality |
| 21 |
|
| 22 |
module _ {i t} {I : Set i} {T : Rel I t} {i j k} {x y : T i j} {xs ys} |
| 23 |
where |
| 24 |
|
| 25 |
◅-injectiveˡ : (Star T i k ∋ x ◅ xs) ≡ y ◅ ys → x ≡ y |
| 26 |
◅-injectiveˡ refl = refl |
| 27 |
|
| 28 |
◅-injectiveʳ : (Star T i k ∋ x ◅ xs) ≡ y ◅ ys → xs ≡ ys |
| 29 |
◅-injectiveʳ refl = refl |