src/HOL/AxClasses/Semigroups.thy
author wenzelm
Tue, 31 May 2005 11:53:14 +0200
changeset 16123 1381e90c2694
parent 14981 e73f8140af78
child 16417 9bc16273c2d4
permissions -rw-r--r--
Theory.restore_naming;

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

theory Semigroups = Main:

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

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


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

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

end