let n be Element of NAT ; :: thesis: for q1 being Point of (TOP-REAL n) ex f being Function of (TOP-REAL n),R^1 st
( ( for q being Point of (TOP-REAL n) holds f . q = |.(q - q1).| ) & f is continuous )

let q1 be Point of (TOP-REAL n); :: thesis: ex f being Function of (TOP-REAL n),R^1 st
( ( for q being Point of (TOP-REAL n) holds f . q = |.(q - q1).| ) & f is continuous )

defpred S1[ object , object ] means ex q being Point of (TOP-REAL n) st
( q = $1 & $2 = |.(q - q1).| );
A1: for x being object st x in the carrier of (TOP-REAL n) holds
ex y being object st S1[x,y]
proof
let x be object ; :: thesis: ( x in the carrier of (TOP-REAL n) implies ex y being object st S1[x,y] )
assume x in the carrier of (TOP-REAL n) ; :: thesis: ex y being object st S1[x,y]
then reconsider q3 = x as Point of (TOP-REAL n) ;
take |.(q3 - q1).| ; :: thesis: S1[x,|.(q3 - q1).|]
thus S1[x,|.(q3 - q1).|] ; :: thesis: verum
end;
consider f1 being Function such that
A2: ( dom f1 = the carrier of (TOP-REAL n) & ( for x being object st x in the carrier of (TOP-REAL n) holds
S1[x,f1 . x] ) ) from CLASSES1:sch 1(A1);
rng f1 c= the carrier of R^1
proof
let z be object ; :: according to TARSKI:def 3 :: thesis: ( not z in rng f1 or z in the carrier of R^1 )
assume z in rng f1 ; :: thesis: z in the carrier of R^1
then consider xz being object such that
A3: xz in dom f1 and
A4: z = f1 . xz by FUNCT_1:def 3;
consider q4 being Point of (TOP-REAL n) such that
A5: ( q4 = xz & f1 . xz = |.(q4 - q1).| ) by A2, A3;
f1 . xz in REAL by A5, XREAL_0:def 1;
hence z in the carrier of R^1 by A4, TOPMETR:17; :: thesis: verum
end;
then reconsider f2 = f1 as Function of (TOP-REAL n),R^1 by A2, FUNCT_2:def 1, RELSET_1:4;
A6: for q being Point of (TOP-REAL n) holds f1 . q = |.(q - q1).|
proof
let q be Point of (TOP-REAL n); :: thesis: f1 . q = |.(q - q1).|
ex q2 being Point of (TOP-REAL n) st
( q2 = q & f1 . q = |.(q2 - q1).| ) by A2;
hence f1 . q = |.(q - q1).| ; :: thesis: verum
end;
then f2 is continuous by Lm20;
hence ex f being Function of (TOP-REAL n),R^1 st
( ( for q being Point of (TOP-REAL n) holds f . q = |.(q - q1).| ) & f is continuous ) by A6; :: thesis: verum