X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Flibrary%2Falgebra%2Fmonoids.ma;h=36de5a369d47eae97a210e6d0f7c8c64362e38a1;hb=a14157957532b731330492388ab32909b4147758;hp=a80ee5fb06e40723f2f9e6051c255b9a3fa2a36d;hpb=7815a9150b5581f60e49ad6520f46ac287e073fa;p=helm.git diff --git a/helm/software/matita/library/algebra/monoids.ma b/helm/software/matita/library/algebra/monoids.ma index a80ee5fb0..36de5a369 100644 --- a/helm/software/matita/library/algebra/monoids.ma +++ b/helm/software/matita/library/algebra/monoids.ma @@ -12,8 +12,6 @@ (* *) (**************************************************************************) -set "baseuri" "cic:/matita/algebra/monoids/". - include "algebra/semigroups.ma". record PreMonoid : Type ≝ @@ -21,6 +19,9 @@ record PreMonoid : Type ≝ e: magma }. +(* FG: the interpretation goes just after its definition *) +interpretation "Monoid unit" 'neutral = (e ?). + record isMonoid (M:PreMonoid) : Prop ≝ { is_semi_group:> isSemiGroup M; e_is_left_unit: @@ -33,22 +34,16 @@ record Monoid : Type ≝ { premonoid:> PreMonoid; monoid_properties:> isMonoid premonoid }. - -notation "1" with precedence 89 -for @{ 'munit }. - -interpretation "Monoid unit" 'munit = - (cic:/matita/algebra/monoids/e.con _). definition is_left_inverse ≝ λM:Monoid. λopp: M → M. - ∀x:M. (opp x)·x = 1. + ∀x:M. (opp x)·x = ⅇ. definition is_right_inverse ≝ λM:Monoid. λopp: M → M. - ∀x:M. x·(opp x) = 1. + ∀x:M. x·(opp x) = ⅇ. theorem is_left_inverse_to_is_right_inverse_to_eq: ∀M:Monoid. ∀l,r.