(* This program is free software; you can redistribute it and/or      *)
(* modify it under the terms of the GNU Lesser General Public License *)
(* as published by the Free Software Foundation; either version 2.1   *)
(* of the License, or (at your option) any later version.             *)
(*                                                                    *)
(* This program is distributed in the hope that it will be useful,    *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of     *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      *)
(* GNU General Public License for more details.                       *)
(*                                                                    *)
(* You should have received a copy of the GNU Lesser General Public   *)
(* License along with this program; if not, write to the Free         *)
(* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *)
(* 02110-1301 USA                                                     *)


Set Implicit Arguments.
Unset Strict Implicit.
Require Export Group_util.
Require Export Abelian_group_facts.
(** Title "The abelian group of morphisms from a group to an abelian group." *)
Section Def.
Variable G : GROUP.
Variable G' : ABELIAN_GROUP.

Definition group_hom_law : forall f g : Hom G G', Hom G G'.
(* Goal: forall (_ : Carrier (@Hom GROUP G (abelian_group_group G'))) (_ : Carrier (@Hom GROUP G (abelian_group_group G'))), Carrier (@Hom GROUP G (abelian_group_group G')) *)
intros f0 g.
apply
 (BUILD_HOM_GROUP (G:=G) (G':=G')
    (ff:=fun x : G => sgroup_law G' (f0 x) (g x))).
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x y; try assumption.
apply
 Trans
  with
    (sgroup_law G'
       (sgroup_law G' (Ap (sgroup_map (monoid_sgroup_hom f0)) x)
          (Ap (sgroup_map (monoid_sgroup_hom f0)) y))
       (sgroup_law G' (Ap (sgroup_map (monoid_sgroup_hom g)) x)
          (Ap (sgroup_map (monoid_sgroup_hom g)) y))); 
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.

apply Trans with (sgroup_law G' (monoid_unit G') (monoid_unit G'));
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.
Defined.

Definition group_hom_unit : Hom G G'.
(* Goal: Carrier (@Hom GROUP G (abelian_group_group G')) *)
apply (BUILD_HOM_GROUP (G:=G) (G':=G') (ff:=fun x : G => monoid_unit G')).
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
Defined.

Definition group_hom_inv : forall f : Hom G G', Hom G G'.
(* Goal: forall _ : Carrier (@Hom GROUP G (abelian_group_group G')), Carrier (@Hom GROUP G (abelian_group_group G')) *)
intros f0.
apply
 (BUILD_HOM_GROUP (G:=G) (G':=G') (ff:=fun x : G => group_inverse G' (f0 x))).
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x y; try assumption.
apply
 Trans
  with
    (Ap (sgroup_map (monoid_sgroup_hom f0))
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
       (group_inverse G (sgroup_law G x y))); auto with algebra.
apply
 Trans
  with
    (Ap (sgroup_map (monoid_sgroup_hom f0))
       (sgroup_law G (group_inverse G y) (group_inverse G x)));
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.
apply
 Trans
  with
    (sgroup_law G'
       (Ap (sgroup_map (monoid_sgroup_hom f0)) (group_inverse G y))
       (Ap (sgroup_map (monoid_sgroup_hom f0)) (group_inverse G x)));
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.
apply
 Trans
  with
    (sgroup_law G'
       (Ap (sgroup_map (monoid_sgroup_hom f0)) (group_inverse G x))
       (Ap (sgroup_map (monoid_sgroup_hom f0)) (group_inverse G y)));
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.
apply
 Trans
  with
    (Ap (sgroup_map (monoid_sgroup_hom f0)) (group_inverse G (monoid_unit G)));
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.
apply Trans with (Ap (sgroup_map (monoid_sgroup_hom f0)) (monoid_unit G));
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
 auto with algebra.
Defined.

Definition group_hom : ABELIAN_GROUP.
apply
 (BUILD_ABELIAN_GROUP (E:=Hom G G') (genlaw:=group_hom_law)
    (e:=group_hom_unit) (geninv:=group_hom_inv)).
(* Goal: forall (x x' y y' : Carrier (@Hom GROUP G (abelian_group_group G'))) (_ : @Equal (@Hom GROUP G (abelian_group_group G')) x x') (_ : @Equal (@Hom GROUP G (abelian_group_group G')) y y'), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law x' y') *)
(* Goal: forall x y z : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law (group_hom_law x y) z) (group_hom_law x (group_hom_law y z)) *)
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x group_hom_unit) x *)
(* Goal: forall (x y : Carrier (@Hom GROUP G (abelian_group_group G'))) (_ : @Equal (@Hom GROUP G (abelian_group_group G')) x y), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_inv x) (group_hom_inv y) *)
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x (group_hom_inv x)) group_hom_unit *)
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x x' y y' H' H'0; try assumption.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: @Map_eq (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) *)
red in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x y z : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law (group_hom_law x y) z) (group_hom_law x (group_hom_law y z)) *)
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x group_hom_unit) x *)
(* Goal: forall (x y : Carrier (@Hom GROUP G (abelian_group_group G'))) (_ : @Equal (@Hom GROUP G (abelian_group_group G')) x y), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_inv x) (group_hom_inv y) *)
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x (group_hom_inv x)) group_hom_unit *)
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x y z; try assumption.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: @Map_eq (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) *)
red in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x (group_hom_inv x)) group_hom_unit *)
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x; try assumption.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: @Map_eq (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) *)
red in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall (x y : Carrier (@Hom GROUP G (abelian_group_group G'))) (_ : @Equal (@Hom GROUP G (abelian_group_group G')) x y), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_inv x) (group_hom_inv y) *)
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x (group_hom_inv x)) group_hom_unit *)
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x y H'; try assumption.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: @Map_eq (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) *)
red in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x (group_hom_inv x)) group_hom_unit *)
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x; try assumption.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: @Map_eq (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) *)
red in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
(* Goal: forall x y : Carrier (@Hom GROUP G (abelian_group_group G')), @Equal (@Hom GROUP G (abelian_group_group G')) (group_hom_law x y) (group_hom_law y x) *)
intros x y; try assumption.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: @Map_eq (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) (@f2 G (abelian_group_group G') (fun x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) (fun (x0 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x0 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) *)
red in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))))) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@f2 G (abelian_group_group G') (fun x1 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))) => sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1)) (fun (x1 y0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G)))) (H : @Equal (sgroup_set (monoid_sgroup (group_monoid G))) x1 y0) => @SGROUP_comp (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) y0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) y0) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)))) (@Ap_comp (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x1 y0 H (@Refl (MAP (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G'))))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)))))) x0) *)
simpl in |- *.
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
auto with algebra.
Defined.

Lemma group_hom_law_prop :
 forall (f g : group_hom) (x : G),
 Equal (sgroup_law _ f g x) (sgroup_law _ (f x) (g x)).
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
simpl in |- *; auto with algebra.
Qed.

Lemma group_hom_unit_prop :
 forall x : G, Equal (monoid_unit group_hom x) (monoid_unit G').
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
simpl in |- *; auto with algebra.
Qed.

Lemma group_hom_inv_prop :
 forall (f : group_hom) (x : G),
 Equal (group_inverse group_hom f x) (group_inverse G' (f x)).
(* Goal: forall x0 : Carrier (sgroup_set (monoid_sgroup (group_monoid G))), @Equal (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0)) (sgroup_law (monoid_sgroup (group_monoid (abelian_group_group G'))) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) y)) x0) (@Ap (sgroup_set (monoid_sgroup (group_monoid G))) (sgroup_set (monoid_sgroup (group_monoid (abelian_group_group G')))) (@sgroup_map (monoid_sgroup (group_monoid G)) (monoid_sgroup (group_monoid (abelian_group_group G'))) (@monoid_sgroup_hom (group_monoid G) (group_monoid (abelian_group_group G')) x)) x0)) *)
simpl in |- *; auto with algebra.
Qed.
End Def.
Hint Resolve group_hom_law_prop group_hom_unit_prop group_hom_inv_prop:
  algebra.