| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Indexed binary relations |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
-- The contents of this module should be accessed via |
| 8 |
-- `Relation.Binary.Indexed.Heterogeneous`. |
| 9 |
|
| 10 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 11 |
|
| 12 |
module Relation.Binary.Indexed.Heterogeneous.Definitions where |
| 13 |
|
| 14 |
open import Level using (Level) |
| 15 |
import Relation.Binary.Definitions as B |
| 16 |
using (Reflexive; Symmetric; Transitive; Sym; Trans) |
| 17 |
open import Relation.Binary.Indexed.Heterogeneous.Core using (IRel) |
| 18 |
|
| 19 |
private |
| 20 |
variable |
| 21 |
i a ℓ : Level |
| 22 |
I : Set i |
| 23 |
|
| 24 |
------------------------------------------------------------------------ |
| 25 |
-- Simple properties of indexed binary relations |
| 26 |
|
| 27 |
Reflexive : (A : I → Set a) → IRel A ℓ → Set _ |
| 28 |
Reflexive _ _∼_ = ∀ {i} → B.Reflexive (_∼_ {i}) |
| 29 |
|
| 30 |
Symmetric : (A : I → Set a) → IRel A ℓ → Set _ |
| 31 |
Symmetric _ _∼_ = ∀ {i j} → B.Sym (_∼_ {i} {j}) _∼_ |
| 32 |
|
| 33 |
Transitive : (A : I → Set a) → IRel A ℓ → Set _ |
| 34 |
Transitive _ _∼_ = ∀ {i j k} → B.Trans _∼_ (_∼_ {j}) (_∼_ {i} {k}) |