defpred S1[ Element of M, Element of R^1] means for s being Element of M
for t being Element of R^1 st $1 = s & $2 = t holds
t = dist (s,x);
A1:
for s being Element of M ex t being Element of R^1 st S1[s,t]
consider F being Function of the carrier of M, the carrier of R^1 such that
A2:
for x being Element of M holds S1[x,F . x]
from FUNCT_2:sch 3(A1);
A3:
for y being Point of M holds F . y = dist (y,x)
by A2;
TopSpaceMetr M = TopStruct(# the carrier of M,(Family_open_set M) #)
by PCOMPS_1:def 5;
then reconsider F = F as Function of (TopSpaceMetr M),R^1 ;
take
F
; for y being Point of M holds F . y = dist (y,x)
thus
for y being Point of M holds F . y = dist (y,x)
by A3; verum