proposition: Lemma isaprop_in_same_right_coset (x1 x2 : X) : isaprop (in_same_right_coset Y x1 x2).
proof: Proof. apply invproofirrelevance. intros p q. apply subtypePath; [intros x; apply setproperty|]. apply subtypePath; [intros x; apply propproperty|]. pose (p' := (pr11 p,, pr2 p) : ∑ y : X, y * x1 = x2). pose (q' := (pr11 q,, pr2 q) : ∑ y : X, y * x1 = x2). apply (maponpaths pr1 (iscontrpr1 (isaprop_mult_eq_l _ _ p' q'))). Defined.
imports: UniMath.MoreFoundations.Orders UniMath.MoreFoundations.Tactics UniMath.MoreFoundations.Subtypes UniMath.Algebra.BinaryOperations UniMath.Algebra.Monoids