src/HOL/AxClasses/Tutorial/ProdGroupInsts.thy
author nipkow
Fri, 04 Apr 1997 16:03:44 +0200
changeset 2907 0e272e4c7cb2
parent 1266 3ae9fe3c0f68
child 4091 771b1f6422a8
permissions -rw-r--r--
inv -> inverse

(*  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
    {| simp_tac (!simpset addsimps [assoc]) 1 |}

end