deffunc H1( Point of (TOP-REAL 2)) -> Element of omega = 1;
deffunc H2( Point of (TOP-REAL 2)) -> set = |.(|[x,y]| - $1).| / r;
defpred S1[ set ] means not $1 in Ball (|[x,y]|,r);
A1:
for a being Point of (TOP-REAL 2) st a in the carrier of Niemytzki-plane holds
( ( S1[a] implies H1(a) in the carrier of I[01] ) & ( not S1[a] implies H2(a) in the carrier of I[01] ) )
the carrier of Niemytzki-plane = y>=0-plane
by Def3;
then A3:
the carrier of Niemytzki-plane c= the carrier of (TOP-REAL 2)
;
consider f being Function of Niemytzki-plane,I[01] such that
A4:
for a being Point of (TOP-REAL 2) st a in the carrier of Niemytzki-plane holds
( ( S1[a] implies f . a = H1(a) ) & ( not S1[a] implies f . a = H2(a) ) )
from TOPGEN_5:sch 1(A3, A1);
take
f
; for a being Real
for b being non negative Real 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; for b being non negative Real 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 non negative Real; ( ( 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;
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 A4; verum