src/HOL/AxClasses/Semigroups.thy
author paulson
Mon, 05 Mar 2001 15:25:11 +0100
changeset 11193 851c90b23a9e
parent 10681 ec76e17f73c5
child 12338 de0f4a63baa5
permissions -rw-r--r--
reorganization of HOL/UNITY, moving examples to subdirectories Simple and Comp
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10134
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     1
(*  Title:      HOL/AxClasses/Semigroups.thy
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     2
    ID:         $Id$
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     3
    Author:     Markus Wenzel, TU Muenchen
10681
wenzelm
parents: 10134
diff changeset
     4
    License:    GPL (GNU GENERAL PUBLIC LICENSE)
10134
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     5
*)
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     6
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     7
theory Semigroups = Main:
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     8
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
     9
consts
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    10
  times :: "'a => 'a => 'a"    (infixl "[*]" 70)
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    11
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    12
axclass semigroup < "term"
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    13
  assoc: "(x [*] y) [*] z = x [*] (y [*] z)"
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    14
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    15
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    16
consts
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    17
  plus :: "'a => 'a => 'a"    (infixl "[+]" 70)
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    18
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    19
axclass plus_semigroup < "term"
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    20
  assoc: "(x [+] y) [+] z = x [+] (y [+] z)"
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    21
537206cc738f moved axclass tutorial examples to top dir;
wenzelm
parents:
diff changeset
    22
end