reconsider jj = 1 as Element of REAL by XREAL_0:def 1;
definition
let C be non
empty set ;
let f be
PartFunc of
C,
ExtREAL;
deffunc H1(
Element of
C)
-> Element of
ExtREAL =
max (
(f . $1),
0.);
existence
ex b1 being PartFunc of C,ExtREAL st
( dom b1 = dom f & ( for x being Element of C st x in dom b1 holds
b1 . x = max ((f . x),0.) ) )
uniqueness
for b1, b2 being PartFunc of C,ExtREAL st dom b1 = dom f & ( for x being Element of C st x in dom b1 holds
b1 . x = max ((f . x),0.) ) & dom b2 = dom f & ( for x being Element of C st x in dom b2 holds
b2 . x = max ((f . x),0.) ) holds
b1 = b2
deffunc H2(
Element of
C)
-> Element of
ExtREAL =
max (
(- (f . $1)),
0.);
existence
ex b1 being PartFunc of C,ExtREAL st
( dom b1 = dom f & ( for x being Element of C st x in dom b1 holds
b1 . x = max ((- (f . x)),0.) ) )
uniqueness
for b1, b2 being PartFunc of C,ExtREAL st dom b1 = dom f & ( for x being Element of C st x in dom b1 holds
b1 . x = max ((- (f . x)),0.) ) & dom b2 = dom f & ( for x being Element of C st x in dom b2 holds
b2 . x = max ((- (f . x)),0.) ) holds
b1 = b2
end;