let f be Function; :: thesis: ( f is RAT -valued iff for x being object holds f . x is rational )
hereby :: thesis: ( ( for x being object holds f . x is rational ) implies f is RAT -valued )
assume A1: f is RAT -valued ; :: thesis: for x being object holds f . b2 is rational
let x be object ; :: thesis: f . b1 is rational
per cases ( x in dom f or not x in dom f ) ;
end;
end;
assume A2: for x being object holds f . x is rational ; :: thesis: f is RAT -valued
let y be object ; :: according to TARSKI:def 3,RELAT_1:def 19 :: thesis: ( not y in rng f or y in RAT )
assume y in rng f ; :: thesis: y in RAT
then consider x being object such that
x in dom f and
A3: f . x = y by FUNCT_1:def 3;
f . x is rational by A2;
hence y in RAT by A3, RAT_1:def 2; :: thesis: verum