Library UniMath.Bicategories.Modifications.Examples.ModificationIntoCat

1. Indexed transformations to modifications
Definition indexed_nat_trans_to_modification
           {C : category}
           {Φ Ψ : indexed_cat C}
           {τ θ : indexed_functor Φ Ψ}
           (m : indexed_nat_trans τ θ)
  : modification
      (indexed_functor_to_pstrans τ)
      (indexed_functor_to_pstrans θ).
Show proof.
  use make_modification.
  - exact (λ x, m x).
  - abstract
      (intros x y f ; cbn in x, y, f ;
       use nat_trans_eq ; [ apply homset_property | ] ;
       intro xx ;
       exact (indexed_nat_trans_natural m f xx)).

2. Modifications to indexed transformations
Definition modification_to_indexed_nat_trans
           {C : category}
           {F G : psfunctor (cat_to_bicat C) bicat_of_univ_cats}
           {τ θ : pstrans F G}
           (m : modification τ θ)
  : indexed_nat_trans
      (pstrans_to_indexed_functor τ)
      (pstrans_to_indexed_functor θ).
Show proof.
  use make_indexed_nat_trans.
  - exact (λ x, m x).
  - abstract
      (intros x y f xx ;
       exact (nat_trans_eq_pointwise (modnaturality_of m x y f) xx)).