proposition: Proposition monad_type_prod_laws : monad_algebra_laws monad_type_prod_map.
proof: Proof. split. - use (ProductArrow_eq _ _ _ prod). intro i. rewrite id_left. rewrite !assoc'. etrans. { apply maponpaths. apply ProductPrCommutes. } rewrite !assoc. rewrite <- (nat_trans_ax (η M)). rewrite !assoc'. rewrite (monad_algebra_unit (p i)). rewrite id_right. apply idpath. - use (ProductArrow_eq _ _ _ prod). intro i. rewrite !assoc'. etrans. { apply maponpaths. apply ProductPrCommutes. } refine (!_). etrans. { apply maponpaths. apply ProductPrCommutes. } rewrite !assoc. rewrite <- functor_comp. etrans. { apply maponpaths_2. apply maponpaths. apply ProductPrCommutes. } rewrite <- (nat_trans_ax (μ M)). rewrite functor_comp. rewrite !assoc'. rewrite (monad_algebra_mu (p i)). apply idpath. Qed.
imports: UniMath.MoreFoundations.All UniMath.CategoryTheory.Core.Categories UniMath.CategoryTheory.Core.Functors UniMath.CategoryTheory.Core.NaturalTransformations UniMath.CategoryTheory.Adjunctions.Core UniMath.CategoryTheory.Categories.HSET.All UniMath.CategoryTheory.Limits.BinProducts UniMath.CategoryTheory.Limits.BinCoproducts UniMath.CategoryTheory.Limits.Equalizers UniMath.CategoryTheory.Limits.Coequalizers UniMath.CategoryTheory.Limits.Products UniMath.CategoryTheory.Limits.Preservation UniMath.CategoryTheory.DisplayedCats.Core UniMath.CategoryTheory.DisplayedCats.Structures.CartesianStructure UniMath.CategoryTheory.DisplayedCats.Structures.StructureLimitsAndColimits UniMath.CategoryTheory.Monads.Monads