thus ( f is rational-valued implies for x being object st x in dom f holds
f . x is rational ) :: thesis: ( ( for x being object st x in dom f holds
f . x is rational ) implies f is rational-valued )
proof
assume A7: f is rational-valued ; :: thesis: for x being object st x in dom f holds
f . x is rational

let x be object ; :: thesis: ( x in dom f implies f . x is rational )
assume A8: x in dom f ; :: thesis: f . x is rational
reconsider f = f as rational-valued Function by A7;
f . x in rng f by A8, FUNCT_1:3;
hence f . x is rational ; :: thesis: verum
end;
assume A9: for x being object st x in dom f holds
f . x is rational ; :: thesis: f is rational-valued
let y be object ; :: according to TARSKI:def 3,VALUED_0:def 4 :: thesis: ( not y in rng f or y in RAT )
assume y in rng f ; :: thesis: y in RAT
then ex x being object st
( x in dom f & y = f . x ) by FUNCT_1:def 3;
then y is rational by A9;
hence y in RAT by RAT_1:def 2; :: thesis: verum