Definition preserves_hor_id_to_double_functor {C₁ C₂ : category} {D₁ : twosided_disp_cat C₁ C₁} {D₂ : twosided_disp_cat C₂ C₂} {I₁ : hor_id D₁} {I₂ : hor_id D₂} {F : C₁ ⟶ C₂} {FF : twosided_disp_functor F F D₁ D₂} (HFF : preserves_hor_id I₁ I₂ FF) : double_functor_hor_id FF I₁ I₂. Proof. use make_double_functor_hor_id. - exact (λ x, idtoiso_twosided_disp (idpath _) (idpath _) (!(HFF x))). - abstract (intros x y f ; cbn -[idtoiso_twosided_disp] ; refine (!_) ; refine (maponpaths (λ z, transportf_disp_mor2 _ _ z) (!(is_natural_preserves_hor_id_alt' HFF f)) @ _) ; unfold transportb_disp_mor2 ; rewrite transport_f_f_disp_mor2 ; apply transportf_disp_mor2_idpath). Defined.
Require Import UniMath.MoreFoundations.All. Require Import UniMath.CategoryTheory.Core.Prelude. Require Import UniMath.CategoryTheory.Core.Setcategories. Require Import UniMath.CategoryTheory.Categories.CategoryOfSetCategories. Require Import UniMath.CategoryTheory.whiskering. Require Import UniMath.CategoryTheory.DisplayedCats.Core. Require Import UniMath.CategoryTheory.DisplayedCats.Functors. Require Import UniMath.CategoryTheory.DisplayedCats.NaturalTransformations. Require Import UniMath.CategoryTheory.DisplayedCats.Isos. Require Import UniMath.CategoryTheory.DisplayedCats.Total. Require Import UniMath.CategoryTheory.DisplayedCats.Univalence. Require Import UniMath.CategoryTheory.DisplayedCats.Constructions. Require Import UniMath.CategoryTheory.DisplayedCats.Examples.StrictTwoSidedDispCat. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.TwoSidedDispCat. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.DisplayedFunctor. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.DisplayedNatTrans. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.Isos. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.Univalence. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.Strictness. Require Import UniMath.CategoryTheory.TwoSidedDisplayedCats.TransportLaws. Require Import UniMath.Bicategories.DoubleCategories.Basics.DoubleCategoryBasics. Require Import UniMath.Bicategories.DoubleCategories.Basics.StrictDoubleCatBasics. Require Import UniMath.Bicategories.DoubleCategories.Core.CatOfStrictDoubleCats. Require Import UniMath.Bicategories.DoubleCategories.Core.DoubleFunctor.