Definition monoid_to_category_ob_data : precategory_data. Proof. use make_precategory_data. - use make_precategory_ob_mor. + exact unit. + intros t t'. exact M. - intro c. exact 1. - intros a b c m m'. exact (m' * m). Defined.
Require Import UniMath.Foundations.All. Require Import UniMath.MoreFoundations.All. Require Import UniMath.Algebra.Monoids. Require Import UniMath.CategoryTheory.Categories.HSET.Univalence. Require Import UniMath.CategoryTheory.Categories.Monoid. Require Import UniMath.CategoryTheory.Categories.CategoryOfSetCategories. Require Import UniMath.CategoryTheory.Core.Prelude. Require Import UniMath.CategoryTheory.Core.Setcategories. Require Import UniMath.CategoryTheory.Equivalences.Core. Require Import UniMath.CategoryTheory.FunctorCategory. Require Import UniMath.CategoryTheory.Presheaf. Require Import UniMath.AlgebraicTheories.FundamentalTheorem.CommonUtilities.MonoidActions.