let X, Y be set ; :: thesis: for f, g being PartFunc of X,Y st ( Y = {} implies X = {} ) & f tolerates g holds
ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )
let f, g be PartFunc of X,Y; :: thesis: ( ( Y = {} implies X = {} ) & f tolerates g implies ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h ) )
assume that
A1:
( Y = {} implies X = {} )
and
A2:
f tolerates g
; :: thesis: ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )
now per cases
( Y = {} or Y <> {} )
;
suppose A3:
Y <> {}
;
:: thesis: ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )consider y being
Element of
Y;
defpred S1[
set ,
set ]
means ( ( $1
in dom f implies $2
= f . $1 ) & ( $1
in dom g implies $2
= g . $1 ) & ( not $1
in dom f & not $1
in dom g implies $2
= y ) );
A4:
for
x being
set st
x in X holds
ex
y' being
set st
S1[
x,
y']
A8:
for
x,
y1,
y2 being
set st
x in X &
S1[
x,
y1] &
S1[
x,
y2] holds
y1 = y2
;
consider h being
Function such that A9:
dom h = X
and A10:
for
x being
set st
x in X holds
S1[
x,
h . x]
from FUNCT_1:sch 2(A8, A4);
A11:
f tolerates h
A12:
g tolerates h
rng h c= Y
then reconsider h' =
h as
PartFunc of
X,
Y by A9, RELSET_1:11;
h' is
total
by A9, Def4;
hence
ex
h being
PartFunc of
X,
Y st
(
h is
total &
f tolerates h &
g tolerates h )
by A11, A12;
:: thesis: verum end; end; end;
hence
ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )
; :: thesis: verum