diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-24 12:59:59 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-24 12:59:59 -0500 |
commit | dc3b799d6f9cdd4fb0b2b32f323b7128ccc14a80 (patch) | |
tree | 142676656f8d57ac8680611d026209806c65d313 /Nat/Properties.agda | |
parent | 4df023f2f98b5105dbd3164f74fe7b431dd628bc (diff) |
Generalize coequalizer result to arbitrary category
Diffstat (limited to 'Nat/Properties.agda')
-rw-r--r-- | Nat/Properties.agda | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Nat/Properties.agda b/Nat/Properties.agda index a6fb060..6e04346 100644 --- a/Nat/Properties.agda +++ b/Nat/Properties.agda @@ -16,7 +16,7 @@ open import Categories.Diagram.Pushout Nat using (Pushout) open import Categories.Diagram.Pushout.Properties Nat using (Coproduct×Coequalizer⇒Pushout) open import Categories.Object.Coproduct Nat using (Coproduct; IsCoproduct; IsCoproduct⇒Coproduct) -open import Coeq using (coequalizer-on-coproduct) +open import Coeq Nat using (coequalizer-on-coproduct) open import FinMerge using (glue-iter; glue-unglue-once) open import FinMerge.Properties using (lemma₂; merge-unmerge; unmerge-merge) open import Util using (compare; less; equal; greater; _<_<_) @@ -107,17 +107,10 @@ Coeq : {A B : ℕ} (f g : A ⇒ B) → Coequalizer f g Coeq {ℕ.zero} _ _ = makeZeroCoequalizer Coeq {ℕ.suc A} f g = record { arr = Q₂.arr ∘ Q₁.arr - ; isCoequalizer = - coequalizer-on-coproduct - (λ _ → Fin.zero) - Fin.suc - f - g - Q₁.arr - Q₂.arr - split - Q₁.isCoequalizer - Q₂.isCoequalizer + ; isCoequalizer = coequalizer-on-coproduct + split + Q₁.isCoequalizer + Q₂.isCoequalizer } where simpleCoeq : Coequalizer (λ _ → f (# 0)) (λ _ → g (# 0)) |