let X, Y be set ; :: thesis: for f being Function of X,Y st X <> {} & Y <> {} holds
( f is one-to-one iff for Z being set
for g, h being Function of Z,X st f * g = f * h holds
g = h )
let f be Function of X,Y; :: thesis: ( X <> {} & Y <> {} implies ( f is one-to-one iff for Z being set
for g, h being Function of Z,X st f * g = f * h holds
g = h ) )
assume A1:
( X <> {} & Y <> {} )
; :: thesis: ( f is one-to-one iff for Z being set
for g, h being Function of Z,X st f * g = f * h holds
g = h )
then A2:
dom f = X
by Def1;
thus
( f is one-to-one implies for Z being set
for g, h being Function of Z,X st f * g = f * h holds
g = h )
:: thesis: ( ( for Z being set
for g, h being Function of Z,X st f * g = f * h holds
g = h ) implies f is one-to-one )
assume A4:
for Z being set
for g, h being Function of Z,X st f * g = f * h holds
g = h
; :: thesis: f is one-to-one
hence
f is one-to-one
by FUNCT_1:49; :: thesis: verum