defpred S1[ object , object ] means ex q being Point of (TOP-REAL n) st
( q = $1 & $2 = |(p,q)| );
A1:
for x being object st x in the carrier of (TOP-REAL n) holds
ex y being object st S1[x,y]
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
then reconsider f2 = f1 as Function of (TOP-REAL n),R^1 by A2, FUNCT_2:def 1, RELSET_1:4;
take
f2
; for q being Point of (TOP-REAL n) holds f2 . q = |(p,q)|
for q being Point of (TOP-REAL n) holds f1 . q = |(p,q)|
hence
for q being Point of (TOP-REAL n) holds f2 . q = |(p,q)|
; verum