let D be non empty set ; for f being BinOp of D holds
( f is cancelable iff ( f is left-cancelable & f is right-cancelable ) )
let f be BinOp of D; ( f is cancelable iff ( f is left-cancelable & f is right-cancelable ) )
thus
( f is cancelable implies ( f is left-cancelable & f is right-cancelable ) )
( f is left-cancelable & f is right-cancelable implies f is cancelable )proof
assume A1:
for
a,
b,
c being
Element of
D st (
f . a,
b = f . a,
c or
f . b,
a = f . c,
a ) holds
b = c
;
MONOID_0:def 8 ( f is left-cancelable & f is right-cancelable )
hence
for
a,
b,
c being
Element of
D st
f . a,
b = f . a,
c holds
b = c
;
MONOID_0:def 6 f is right-cancelable
thus
for
a,
b,
c being
Element of
D st
f . b,
a = f . c,
a holds
b = c
by A1;
MONOID_0:def 7 verum
end;
assume
( ( for a, b, c being Element of D st f . a,b = f . a,c holds
b = c ) & ( for a, b, c being Element of D st f . b,a = f . c,a holds
b = c ) )
; MONOID_0:def 6,MONOID_0:def 7 f is cancelable
hence
for a, b, c being Element of D st ( f . a,b = f . a,c or f . b,a = f . c,a ) holds
b = c
; MONOID_0:def 8 verum