module Cat.Diagram.Pushout.Properties where

Epimorphisms🔗

is an epimorphism iff. the square below is a pushout

  module _ {a b} {f : Hom a b} where
    is-epic→is-pushout : is-epic f  is-pushout C f id f id
    is-epic→is-pushout epi .square = refl
    is-epic→is-pushout epi .universal {i₁' = i₁'} p = i₁'
    is-epic→is-pushout epi .universal∘i₁ = idr _
    is-epic→is-pushout epi .universal∘i₂ {p = p} = idr _  epi _ _ p
    is-epic→is-pushout epi .unique p q = intror refl  p
  
    is-pushout→is-epic : is-pushout C f id f id  is-epic f
    is-pushout→is-epic pb g h p = sym (pb .universal∘i₁ {p = p})  pb .universal∘i₂

Pushout additionally preserve epimorphisms, as shown below:

  is-epic→pushout-is-epic
    :  {x y z} {f : Hom x y} {g : Hom x z} {p} {i₁ : Hom y p} {i₂ : Hom z p}
     is-epic f
     is-pushout C f i₁ g i₂
     is-epic i₂
  is-epic→pushout-is-epic {f = f} {g} {i₁ = i₁} {i₂} epi pb h j p = eq
    where
      module pb = is-pushout pb
  
      q : (h  i₁)  f   (j  i₁)  f
      q =
        (h  i₁)  f ≡⟨ extendr pb.square 
        (h  i₂)  g ≡⟨ ap (_∘ g) p 
        (j  i₂)  g ≡˘⟨ extendr pb.square ≡˘
        (j  i₁)  f 
  
      r : h  i₁  j  i₁
      r = epi _ _ q
  
      eq : h  j
      eq = pb.unique₂ {p = extendr pb.square} r p refl refl