Debian Codegraph @

src/Relation/Unary/Closure/StrictPartialOrder.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Closures of a unary relation with respect to a strict partial order
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 open import Relation.Binary.Bundles using (StrictPartialOrder)
10
11 module Relation.Unary.Closure.StrictPartialOrder
12 {a r e} (P : StrictPartialOrder a e r) where
13
14 open import Relation.Unary using (Pred)
15
16 open StrictPartialOrder P renaming (_<_ to _∼_)
17
18 -- Specialising the results proven generically in `Base`.
19 import Relation.Unary.Closure.Base _∼_ as Base
20 open Base public
21 using (□; ◇; Closed; curry; uncurry)
22 hiding (module □; module ◇)
23
24 module □ {t} {T : Pred Carrier t} where
25
26 reindex : ∀ {x y} → x ∼ y → □ T x → □ T y
27 reindex = Base.□.reindex trans
28
29 duplicate : ∀ {x} → □ T x → □ (□ T) x
30 duplicate = Base.□.duplicate trans
31
32 closed : ∀ {t} {T : Pred Carrier t} → Closed (□ T)
33 closed = Base.□.closed trans
34
35 open Base.□ public using (map)
36
37 module ◇ {t} {T : Pred Carrier t} where
38
39 reindex : ∀ {x y} → x ∼ y → ◇ T x → ◇ T y
40 reindex = Base.◇.reindex trans
41
42 join : ∀ {x} → ◇ (◇ T) x → ◇ T x
43 join = Base.◇.join trans
44
45 closed : Closed (◇ T)
46 closed = Base.◇.closed trans
47
48 open Base.◇ public using (map; run)