src/HOL/AxClasses/Tutorial/ProdGroupInsts.thy
author wenzelm
Tue, 01 Dec 1998 14:47:26 +0100
changeset 6002 c1f28f8ec72c
parent 4091 771b1f6422a8
permissions -rw-r--r--
excursion: ERROR_MESSAGE; exn_message: ERROR;

(*  Title:      HOL/AxClasses/Tutorial/ProdGroupInsts.thy
    ID:         $Id$
    Author:     Markus Wenzel, TU Muenchen

Lift constant "<*>" to cartesian products, then prove that the
'functor' "*" maps semigroups into semigroups.
*)

ProdGroupInsts = Prod + Group +

(* direct products of semigroups *)

defs
  prod_prod_def "p <*> q == (fst p <*> fst q, snd p <*> snd q)"

instance
  "*" :: (semigroup, semigroup) semigroup
    {| SIMPSET' (fn ss => simp_tac (ss addsimps [assoc])) 1 |}

end