diff options
| author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2026-01-06 10:20:03 -0600 |
|---|---|---|
| committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2026-01-06 10:20:03 -0600 |
| commit | 2a2eeeedbe4d7208d511580f7fed0e30d7f16076 (patch) | |
| tree | e4a802387735e1c46a9b05cf5d0b571e28728371 /Preorder | |
| parent | 1c0a486856d80ad7d8cb6174c49ad990d5f36088 (diff) | |
Add functors from categories to preorders to setoids
Diffstat (limited to 'Preorder')
| -rw-r--r-- | Preorder/Primitive/MonotoneMap.agda | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Preorder/Primitive/MonotoneMap.agda b/Preorder/Primitive/MonotoneMap.agda index 6a2224b..aad8f0f 100644 --- a/Preorder/Primitive/MonotoneMap.agda +++ b/Preorder/Primitive/MonotoneMap.agda @@ -18,14 +18,22 @@ record MonotoneMap {c₁ c₂ ℓ₁ ℓ₂ : Level} (P : Preorder c₁ ℓ₁) map : P.Carrier → Q.Carrier mono : {x y : P.Carrier} → x P.≲ y → map x Q.≲ map y + private + module P′ = Isomorphism P + module Q′ = Isomorphism Q + + map-resp-≅ : {x y : P.Carrier} → x P′.≅ y → map x Q′.≅ map y + map-resp-≅ x≅y = let open P′._≅_ x≅y in record + { from = mono from + ; to = mono to + } + -- Pointwise isomorphism of monotone maps module _ {c₁ c₂ ℓ₁ ℓ₂ : Level} {P : Preorder c₁ ℓ₁} {Q : Preorder c₂ ℓ₂} where private - module P where - open Preorder P public - open Isomorphism P public + module P = Preorder P module Q = Isomorphism Q open MonotoneMap using (map) @@ -54,12 +62,3 @@ module _ {c₁ c₂ ℓ₁ ℓ₂ : Level} {P : Preorder c₁ ℓ₁} {Q : Preor } module ≃ = IsEquivalence ≃-isEquivalence - - map-resp-≅ : (f : MonotoneMap P Q) {x y : P.Carrier} → x P.≅ y → map f x Q.≅ map f y - map-resp-≅ f x≅y = record - { from = mono from - ; to = mono to - } - where - open P._≅_ x≅y - open MonotoneMap f |
