]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/library/algebra/semigroups.ma
nasty change in the lexer/parser:
[helm.git] / helm / software / matita / library / algebra / semigroups.ma
index 12ff9531155cc31d19e9aecb8b2a44bb8ba4885f..7d68dbb360f9cdcef6dd4fdf3325cdd32fbc2b62 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-set "baseuri" "cic:/matita/algebra/semigroups".
-
 include "higher_order_defs/functions.ma".
 
 (* Magmas *)
 
-record Magma : Type 
+record Magma : Type≝
  { carrier:> Type;
    op: carrier → carrier → carrier
  }.
 
-notation "hvbox(a break \middot b)" 
-  left associative with precedence 55
-for @{ 'magma_op $a $b }.
-
-interpretation "magma operation" 'magma_op a b =
- (cic:/matita/algebra/semigroups/op.con _ a b).
+interpretation "magma operation" 'middot a b = (op ? a b).
 
 (* Semigroups *)
 
-record isSemiGroup (M:Magma) : Prop 
+record isSemiGroup (M:Magma) : Prop≝
  { op_associative: associative ? (op M) }.
 
-record SemiGroup : Type 
+record SemiGroup : Type≝
  { magma:> Magma;
    semigroup_properties:> isSemiGroup magma
  }.
@@ -51,6 +44,6 @@ theorem is_left_unit_to_is_right_unit_to_eq:
   is_left_unit ? e → is_right_unit ? e' → e=e'.
  intros;
  rewrite < (H e');
- rewrite < (H1 e) in \vdash (? ? % ?);
+ rewrite < (H1 e) in \vdash (? ? % ?).
  reflexivity.
 qed.