1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "higher_order_defs/functions.ma".
21 op: carrier → carrier → carrier
24 interpretation "magma operation" 'middot a b = (op ? a b).
28 record isSemiGroup (M:Magma) : Prop≝
29 { op_associative: associative ? (op M) }.
31 record SemiGroup : Type≝
33 semigroup_properties:> isSemiGroup magma
36 definition is_left_unit ≝
37 λS:SemiGroup. λe:S. ∀x:S. e·x = x.
39 definition is_right_unit ≝
40 λS:SemiGroup. λe:S. ∀x:S. x·e = x.
42 theorem is_left_unit_to_is_right_unit_to_eq:
43 ∀S:SemiGroup. ∀e,e':S.
44 is_left_unit ? e → is_right_unit ? e' → e=e'.
47 rewrite < (H1 e) in \vdash (? ? % ?).