proposition: Proposition monad_to_hset_struct_laws : hset_struct_laws monad_to_hset_struct_data.
proof: Proof. repeat split. - intro X. use isaset_total2. + apply homset_property. + intro f. apply isasetaprop. apply isapropdirprod ; apply homset_property. - intros X Y f g h. apply homset_property. - intros X f ; cbn. rewrite (functor_id M). apply idpath. - intros X Y Z fX fY fZ h₁ h₂ Mh₁ Mh₂ ; cbn -[Monad] in *. use funextsec. intro x. rewrite (eqtohomot Mh₁). rewrite (eqtohomot Mh₂). rewrite (eqtohomot (functor_comp M h₁ h₂)). apply idpath. - intros X fX fX' p q. use subtypePath. { intro. apply isapropdirprod ; apply homset_property. } cbn -[Monad] in *. use funextsec. intro x. refine (eqtohomot p x @ _). apply maponpaths. exact (eqtohomot (functor_id M X) x). 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