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 set "baseuri" "cic:/matita/algebra/semigroups".
17 include "higher_order_defs/functions.ma".
23 op: carrier → carrier → carrier
26 notation "hvbox(a break \middot b)"
27 left associative with precedence 55
28 for @{ 'magma_op $a $b }.
30 interpretation "magma operation" 'magma_op a b =
31 (cic:/matita/algebra/semigroups/op.con _ a b).
35 record isSemiGroup (M:Magma) : Prop≝
36 { op_associative: associative ? (op M) }.
38 record SemiGroup : Type≝
40 semigroup_properties:> isSemiGroup magma
43 definition is_left_unit ≝
44 λS:SemiGroup. λe:S. ∀x:S. e·x = x.
46 definition is_right_unit ≝
47 λS:SemiGroup. λe:S. ∀x:S. x·e = x.
49 theorem is_left_unit_to_is_right_unit_to_eq:
50 ∀S:SemiGroup. ∀e,e':S.
51 is_left_unit ? e → is_right_unit ? e' → e=e'.
54 rewrite < (H1 e) in \vdash (? ? % ?).