src/HOL/AxClasses/Semigroups.thy
author wenzelm
Tue, 03 Oct 2000 18:30:56 +0200
changeset 10134 537206cc738f
child 10681 ec76e17f73c5
permissions -rw-r--r--
moved axclass tutorial examples to top dir;

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

theory Semigroups = Main:

consts
  times :: "'a => 'a => 'a"    (infixl "[*]" 70)

axclass semigroup < "term"
  assoc: "(x [*] y) [*] z = x [*] (y [*] z)"


consts
  plus :: "'a => 'a => 'a"    (infixl "[+]" 70)

axclass plus_semigroup < "term"
  assoc: "(x [+] y) [+] z = x [+] (y [+] z)"

end