defpred S1[ set ] means not $1 in Ball |[x,y]|,r;
deffunc H1( Point of (TOP-REAL 2)) -> Element of REAL = |.(|[x,y]| - $1).| / r;
deffunc H2( Point of (TOP-REAL 2)) -> Element of NAT = 1;
the carrier of Niemytzki-plane = y>=0-plane by Def3;
then A1: the carrier of Niemytzki-plane c= the carrier of (TOP-REAL 2) ;
A2: for a being Point of (TOP-REAL 2) st a in the carrier of Niemytzki-plane holds
( ( S1[a] implies H2(a) in the carrier of I[01] ) & ( not S1[a] implies H1(a) in the carrier of I[01] ) )
proof
let a be Point of (TOP-REAL 2); :: thesis: ( a in the carrier of Niemytzki-plane implies ( ( S1[a] implies H2(a) in the carrier of I[01] ) & ( not S1[a] implies H1(a) in the carrier of I[01] ) ) )
assume a in the carrier of Niemytzki-plane ; :: thesis: ( ( S1[a] implies H2(a) in the carrier of I[01] ) & ( not S1[a] implies H1(a) in the carrier of I[01] ) )
thus ( S1[a] implies H2(a) in the carrier of I[01] ) by BORSUK_1:83, XXREAL_1:1; :: thesis: ( not S1[a] implies H1(a) in the carrier of I[01] )
assume not S1[a] ; :: thesis: H1(a) in the carrier of I[01]
then |.(a - |[x,y]|).| < r by TOPREAL9:7;
then ( |.(|[x,y]| - a).| < r & |.(|[x,y]| - a).| >= 0 ) by TOPRNS_1:28;
then ( 0 / r <= H1(a) & H1(a) < r / r & r / r = 1 ) by XCMPLX_1:60, XREAL_1:76;
hence H1(a) in the carrier of I[01] by BORSUK_1:83, XXREAL_1:1; :: thesis: verum
end;
consider f being Function of Niemytzki-plane ,I[01] such that
A3: for a being Point of (TOP-REAL 2) st a in the carrier of Niemytzki-plane holds
( ( S1[a] implies f . a = H2(a) ) & ( not S1[a] implies f . a = H1(a) ) ) from TOPGEN_5:sch 1(A1, A2);
take f ; :: thesis: for a being real number
for b being real non negative number holds
( ( not |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = 1 ) & ( |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = |.(|[x,y]| - |[a,b]|).| / r ) )

let a be real number ; :: thesis: for b being real non negative number holds
( ( not |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = 1 ) & ( |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = |.(|[x,y]| - |[a,b]|).| / r ) )

let b be real non negative number ; :: thesis: ( ( not |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = 1 ) & ( |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = |.(|[x,y]| - |[a,b]|).| / r ) )
|[a,b]| in the carrier of Niemytzki-plane by Lm1, Th22;
hence ( ( not |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = 1 ) & ( |[a,b]| in Ball |[x,y]|,r implies f . |[a,b]| = |.(|[x,y]| - |[a,b]|).| / r ) ) by A3; :: thesis: verum