proposition: Lemma comonoid_disp_lunitor_inv (m : comonoid M) : comonoid_mor_struct M m (tensor_of_comonoids comonoid_disp_unit m) (mon_linvunitor m).
proof: Proof. use make_is_comonoid_mor. - cbn. use (z_iso_inv_to_right _ _ _ _ (_ ,, _)). { set (i := monoidal_leftunitorisolaw M m). use (is_z_iso_bifunctor_z_iso M) ; apply (_ ,, pr2 i ,, pr1 i). } cbn. etrans. 2: { apply maponpaths. apply (precompose_inner_swap_with_lunitors_on_right M). } apply pathsinv0. etrans. { rewrite ! assoc'. do 2 apply maponpaths. rewrite assoc. apply maponpaths_2. apply inner_swap_inv. } rewrite id_left. rewrite <- (when_bifunctor_becomes_rightwhiskering M). etrans. { apply maponpaths. rewrite assoc. apply maponpaths_2. apply pathsinv0, tensor_comp_mor. } etrans. { apply maponpaths. do 2 apply maponpaths_2. apply monoidal_leftunitorisolaw. } rewrite id_right. etrans. { apply maponpaths. refine (_ @ monoidal_leftunitornat M _ _ δ_{m}). apply maponpaths_2. apply (when_bifunctor_becomes_leftwhiskering M). } rewrite assoc. refine (_ @ id_left _). apply maponpaths_2. apply monoidal_leftunitorisolaw. - cbn. rewrite assoc. apply pathsinv0. etrans. { apply maponpaths_2. refine (_ @ monoidal_leftunitorinvnat M _ _ ε_{m}). now rewrite <- (when_bifunctor_becomes_leftwhiskering M). } rewrite assoc'. apply maponpaths. apply monoidal_leftunitorisolaw. Qed.
imports: UniMath.Foundations.All UniMath.MoreFoundations.All UniMath.CategoryTheory.Core.Categories UniMath.CategoryTheory.Core.Functors UniMath.CategoryTheory.Core.NaturalTransformations UniMath.CategoryTheory.Core.Isos UniMath.CategoryTheory.Limits.BinProducts UniMath.CategoryTheory.DisplayedCats.Core UniMath.CategoryTheory.DisplayedCats.Total UniMath.CategoryTheory.DisplayedCats.Constructions UniMath.CategoryTheory.PrecategoryBinProduct UniMath.CategoryTheory.Monoidal.WhiskeredBifunctors UniMath.CategoryTheory.Monoidal.Categories UniMath.CategoryTheory.Monoidal.Functors UniMath.CategoryTheory.Monoidal.Displayed.WhiskeredDisplayedBifunctors UniMath.CategoryTheory.Monoidal.Displayed.Monoidal UniMath.CategoryTheory.Monoidal.Displayed.TotalMonoidal UniMath.CategoryTheory.Monoidal.Examples.Fullsub UniMath.CategoryTheory.Monoidal.Examples.Sigma UniMath.CategoryTheory.Monoidal.Structure.Cartesian UniMath.CategoryTheory.Monoidal.Structure.Symmetric UniMath.CategoryTheory.Monoidal.Structure.SymmetricDiagonal UniMath.CategoryTheory.Monoidal.Displayed.Symmetric UniMath.CategoryTheory.Monoidal.Comonoids.Category