| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- This module is DEPRECATED. Please use `Relation.Binary.Morphism` |
| 5 |
-- instead. |
| 6 |
------------------------------------------------------------------------ |
| 7 |
|
| 8 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 9 |
|
| 10 |
module Relation.Binary.OrderMorphism where |
| 11 |
|
| 12 |
{-# WARNING_ON_IMPORT |
| 13 |
"Relation.Binary.OrderMorphism was deprecated in v1.5. |
| 14 |
Use Relation.Binary.Morphism.Bundles instead." |
| 15 |
#-} |
| 16 |
|
| 17 |
open import Relation.Binary.Core using (_=[_]⇒_) |
| 18 |
open import Relation.Binary.Bundles using (Poset; DecTotalOrder) |
| 19 |
open Poset |
| 20 |
import Function.Base as F |
| 21 |
open import Level |
| 22 |
|
| 23 |
record _⇒-Poset_ {p₁ p₂ p₃ p₄ p₅ p₆} |
| 24 |
(P₁ : Poset p₁ p₂ p₃) |
| 25 |
(P₂ : Poset p₄ p₅ p₆) : Set (p₁ ⊔ p₃ ⊔ p₄ ⊔ p₆) where |
| 26 |
field |
| 27 |
fun : Carrier P₁ → Carrier P₂ |
| 28 |
monotone : _≤_ P₁ =[ fun ]⇒ _≤_ P₂ |
| 29 |
|
| 30 |
|
| 31 |
_⇒-DTO_ : ∀ {p₁ p₂ p₃ p₄ p₅ p₆} → |
| 32 |
DecTotalOrder p₁ p₂ p₃ → |
| 33 |
DecTotalOrder p₄ p₅ p₆ → Set _ |
| 34 |
DTO₁ ⇒-DTO DTO₂ = poset DTO₁ ⇒-Poset poset DTO₂ |
| 35 |
where open DecTotalOrder |
| 36 |
|
| 37 |
open _⇒-Poset_ |
| 38 |
|
| 39 |
id : ∀ {p₁ p₂ p₃} {P : Poset p₁ p₂ p₃} → P ⇒-Poset P |
| 40 |
id = record |
| 41 |
{ fun = F.id |
| 42 |
; monotone = F.id |
| 43 |
} |
| 44 |
|
| 45 |
_∘_ : ∀ {p₁ p₂ p₃ p₄ p₅ p₆ p₇ p₈ p₉} |
| 46 |
{P₁ : Poset p₁ p₂ p₃} |
| 47 |
{P₂ : Poset p₄ p₅ p₆} |
| 48 |
{P₃ : Poset p₇ p₈ p₉} → |
| 49 |
P₂ ⇒-Poset P₃ → P₁ ⇒-Poset P₂ → P₁ ⇒-Poset P₃ |
| 50 |
f ∘ g = record |
| 51 |
{ fun = F._∘_ (fun f) (fun g) |
| 52 |
; monotone = F._∘_ (monotone f) (monotone g) |
| 53 |
} |
| 54 |
|
| 55 |
const : ∀ {p₁ p₂ p₃ p₄ p₅ p₆} |
| 56 |
{P₁ : Poset p₁ p₂ p₃} |
| 57 |
{P₂ : Poset p₄ p₅ p₆} → |
| 58 |
Carrier P₂ → P₁ ⇒-Poset P₂ |
| 59 |
const {P₂ = P₂} x = record |
| 60 |
{ fun = F.const x |
| 61 |
; monotone = F.const (refl P₂) |
| 62 |
} |
| 63 |
|
| 64 |
{-# WARNING_ON_USAGE _⇒-Poset_ |
| 65 |
"Warning: _⇒-Poset_ was deprecated in v1.5. |
| 66 |
Please use `IsOrderHomomorphism` from `Relation.Binary.Morphism.Structures` instead." |
| 67 |
#-} |
| 68 |
{-# WARNING_ON_USAGE _⇒-DTO_ |
| 69 |
"Warning: _⇒-DTO_ was deprecated in v1.5. |
| 70 |
Please use `IsOrderHomomorphism` from `Relation.Binary.Morphism.Structures` instead." |
| 71 |
#-} |
| 72 |
{-# WARNING_ON_USAGE id |
| 73 |
"Warning: id was deprecated in v1.5. |
| 74 |
Please use `issOrderHomomorphism` from `Relation.Binary.Morphism.Construct.Constant` instead." |
| 75 |
#-} |
| 76 |
{-# WARNING_ON_USAGE _∘_ |
| 77 |
"Warning: _∘_ was deprecated in v1.5. |
| 78 |
Please use `isOrderHomomorphism` from `Relation.Binary.Morphism.Construct.Composition` instead." |
| 79 |
#-} |
| 80 |
{-# WARNING_ON_USAGE const |
| 81 |
"Warning: const was deprecated in v1.5. |
| 82 |
Please use `isOrderHomomorphism` from `Relation.Binary.Morphism.Construct.Constant` instead." |
| 83 |
#-} |