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] ) )
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