Debian Codegraph @

src/Relation/Binary/Properties/StrictPartialOrder.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Properties satisfied by strict partial orders
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 open import Relation.Binary.Bundles using (StrictPartialOrder; Poset)
10
11 module Relation.Binary.Properties.StrictPartialOrder
12 {s₁ s₂ s₃} (SPO : StrictPartialOrder s₁ s₂ s₃) where
13
14 import Relation.Binary.Construct.Flip.EqAndOrd as EqAndOrd
15 using (strictPartialOrder)
16 import Relation.Binary.Construct.StrictToNonStrict using (isPartialOrder)
17
18 open StrictPartialOrder SPO
19
20 ------------------------------------------------------------------------
21 -- The converse relation is also a strict partial order.
22
23 >-strictPartialOrder : StrictPartialOrder s₁ s₂ s₃
24 >-strictPartialOrder = EqAndOrd.strictPartialOrder SPO
25
26 open StrictPartialOrder >-strictPartialOrder public
27 using ()
28 renaming
29 ( _<_ to _>_
30 ; irrefl to >-irrefl
31 ; trans to >-trans
32 ; <-resp-≈ to >-resp-≈
33 ; isStrictPartialOrder to >-isStrictPartialOrder
34 )
35
36 ------------------------------------------------------------------------
37 -- Strict partial orders can be converted to posets
38
39 open Relation.Binary.Construct.StrictToNonStrict _≈_ _<_
40
41 poset : Poset _ _ _
42 poset = record
43 { isPartialOrder = isPartialOrder isStrictPartialOrder
44 }
45
46 open Poset poset public