proposition: Lemma monad_mor_bind {C₁ C₂ : univalent_category} {F : C₁ ⟶ C₂} {M₁ : monad bicat_of_univ_cats C₁} {M₂ : monad bicat_of_univ_cats C₂} (FF : M₁ -->[F] M₂) {A B : C₁} (f : A --> (monad_endo M₁ : _ ⟶ _) B) : #F (monad_bind M₁ f) · monad_mor_z_iso FF B = monad_mor_z_iso FF A · monad_bind M₂ (# F f · pr1 (monad_mor_z_iso FF B)).
proof: Proof. unfold monad_bind, monad_mor_z_iso. simpl. etrans. 2: { rewrite assoc. apply maponpaths_2. rewrite (functor_comp (monad_endo M₂ : _ ⟶ _)). rewrite assoc. apply maponpaths_2. apply (nat_trans_ax (pr1 (monad_mor_natural FF)) _ _ f). } simpl. rewrite functor_comp. do 3 rewrite assoc'. apply maponpaths. etrans. { pose (nat_trans_eq_pointwise (monad_mor_mu FF) B) as H. simpl in H. rewrite id_left in H. do 2 rewrite id_right in H. apply H. } rewrite assoc'. apply idpath. Qed.
imports: UniMath.Foundations.All UniMath.MoreFoundations.All UniMath.CategoryTheory.Core.Categories UniMath.CategoryTheory.Core.Functors UniMath.CategoryTheory.Core.Univalence UniMath.CategoryTheory.Core.NaturalTransformations UniMath.CategoryTheory.Core.Isos UniMath.CategoryTheory.PrecategoryBinProduct UniMath.Bicategories.Core.Bicat UniMath.Bicategories.Core.BicategoryLaws UniMath.Bicategories.Core.Invertible_2cells UniMath.Bicategories.PseudoFunctors.Display.PseudoFunctorBicat UniMath.Bicategories.PseudoFunctors.PseudoFunctor UniMath.Bicategories.PseudoFunctors.Examples.Identity UniMath.Bicategories.PseudoFunctors.Examples.Composition UniMath.Bicategories.PseudoFunctors.Examples.Projection UniMath.Bicategories.Transformations.PseudoTransformation UniMath.Bicategories.Transformations.Examples.AlgebraMap UniMath.CategoryTheory.DisplayedCats.Core UniMath.Bicategories.DisplayedBicats.DispBicat UniMath.Bicategories.Core.Unitors UniMath.Bicategories.Morphisms.Adjunctions UniMath.Bicategories.Core.Univalence UniMath.Bicategories.DisplayedBicats.DispAdjunctions UniMath.Bicategories.DisplayedBicats.DispUnivalence UniMath.Bicategories.DisplayedBicats.Examples.Algebras UniMath.Bicategories.DisplayedBicats.Examples.Add2Cell UniMath.Bicategories.DisplayedBicats.Examples.Prod UniMath.Bicategories.DisplayedBicats.Examples.FullSub UniMath.Bicategories.DisplayedBicats.Examples.Sigma UniMath.Bicategories.Core.Examples.BicatOfUnivCats UniMath.CategoryTheory.Equivalences.CompositesAndInverses