1247
|
1 |
(* Title: GroupInsts.thy
|
|
2 |
ID: $Id$
|
|
3 |
Author: Markus Wenzel, TU Muenchen
|
|
4 |
|
|
5 |
Some concrete instantiations: 'structures' and 'functors'.
|
|
6 |
*)
|
|
7 |
|
|
8 |
GroupInsts = GroupDefs +
|
|
9 |
|
|
10 |
|
|
11 |
(* bool *)
|
|
12 |
|
|
13 |
instance
|
2907
|
14 |
bool :: semigroup (bool_assoc)
|
1247
|
15 |
instance
|
2907
|
16 |
bool :: monoid (bool_assoc, bool_left_unit, bool_right_unit)
|
1247
|
17 |
instance
|
2907
|
18 |
bool :: group (bool_left_unit, bool_left_inverse)
|
1247
|
19 |
instance
|
2907
|
20 |
bool :: agroup (bool_commut)
|
1247
|
21 |
|
|
22 |
|
|
23 |
(* cartesian products *)
|
|
24 |
|
|
25 |
instance
|
2907
|
26 |
"*" :: (semigroup, semigroup) semigroup (prod_assoc)
|
1247
|
27 |
instance
|
2907
|
28 |
"*" :: (monoid, monoid) monoid (prod_assoc, prod_left_unit, prod_right_unit)
|
1247
|
29 |
instance
|
2907
|
30 |
"*" :: (group, group) group (prod_left_unit, prod_left_inverse)
|
1247
|
31 |
instance
|
2907
|
32 |
"*" :: (agroup, agroup) agroup (prod_commut)
|
1247
|
33 |
|
|
34 |
|
|
35 |
(* function spaces *)
|
|
36 |
|
|
37 |
instance
|
2907
|
38 |
fun :: (term, semigroup) semigroup (fun_assoc)
|
1247
|
39 |
instance
|
2907
|
40 |
fun :: (term, monoid) monoid (fun_assoc, fun_left_unit, fun_right_unit)
|
1247
|
41 |
instance
|
2907
|
42 |
fun :: (term, group) group (fun_left_unit, fun_left_inverse)
|
1247
|
43 |
instance
|
2907
|
44 |
fun :: (term, agroup) agroup (fun_commut)
|
1247
|
45 |
|
|
46 |
end
|