consider f being Function such that
A1: dom f = R and
A2: for x being object st x in R holds
f . x = x `1 from FUNCT_1:sch 3();
now :: thesis: for x being object holds
( ( x in rng f implies ex y being object st [x,y] in R ) & ( ex y being object st [x,y] in R implies x in rng f ) )
let x be object ; :: thesis: ( ( x in rng f implies ex y being object st [x,y] in R ) & ( ex y being object st [x,y] in R implies x in rng f ) )
thus ( x in rng f implies ex y being object st [x,y] in R ) :: thesis: ( ex y being object st [x,y] in R implies x in rng f )
proof
assume x in rng f ; :: thesis: ex y being object st [x,y] in R
then consider a being object such that
A3: a in dom f and
A4: f . a = x by FUNCT_1:def 3;
take a `2 ; :: thesis: [x,(a `2)] in R
A5: ex x, y being object st a = [x,y] by A1, A3, RELAT_1:def 1;
x = a `1 by A1, A2, A3, A4;
hence [x,(a `2)] in R by A1, A3, A5; :: thesis: verum
end;
given y being object such that A6: [x,y] in R ; :: thesis: x in rng f
f . [x,y] = [x,y] `1 by A2, A6
.= x ;
hence x in rng f by A1, A6, FUNCT_1:3; :: thesis: verum
end;
then rng f = dom R by XTUPLE_0:def 12;
hence dom R is finite by A1, Th8; :: thesis: verum