begin
:: deftheorem Def1 defines ext-real XXREAL_0:def 1 :
for x being set holds
( x is ext-real iff x in ExtREAL );
:: deftheorem defines +infty XXREAL_0:def 2 :
+infty = REAL ;
:: deftheorem defines -infty XXREAL_0:def 3 :
-infty = [0,REAL];
:: deftheorem defines ExtREAL XXREAL_0:def 4 :
ExtREAL = REAL \/ {+infty,-infty};
definition
let x,
y be
ext-real number ;
pred x <= y means :
Def5:
ex
x9,
y9 being
Element of
REAL+ st
(
x = x9 &
y = y9 &
x9 <=' y9 )
if (
x in REAL+ &
y in REAL+ )
ex
x9,
y9 being
Element of
REAL+ st
(
x = [0,x9] &
y = [0,y9] &
y9 <=' x9 )
if (
x in [:{0},REAL+:] &
y in [:{0},REAL+:] )
otherwise ( (
y in REAL+ &
x in [:{0},REAL+:] ) or
x = -infty or
y = +infty );
consistency
( x in REAL+ & y in REAL+ & x in [:{0},REAL+:] & y in [:{0},REAL+:] implies ( ex x9, y9 being Element of REAL+ st
( x = x9 & y = y9 & x9 <=' y9 ) iff ex x9, y9 being Element of REAL+ st
( x = [0,x9] & y = [0,y9] & y9 <=' x9 ) ) )
by ARYTM_0:5, XBOOLE_0:3;
reflexivity
for x being ext-real number holds
( ( x in REAL+ & x in REAL+ implies ex x9, y9 being Element of REAL+ st
( x = x9 & x = y9 & x9 <=' y9 ) ) & ( x in [:{0},REAL+:] & x in [:{0},REAL+:] implies ex x9, y9 being Element of REAL+ st
( x = [0,x9] & x = [0,y9] & y9 <=' x9 ) ) & ( ( not x in REAL+ or not x in REAL+ ) & ( not x in [:{0},REAL+:] or not x in [:{0},REAL+:] ) & not ( x in REAL+ & x in [:{0},REAL+:] ) & not x = -infty implies x = +infty ) )
connectedness
for x, y being ext-real number st ( ( x in REAL+ & y in REAL+ & ( for x9, y9 being Element of REAL+ holds
( not x = x9 or not y = y9 or not x9 <=' y9 ) ) ) or ( x in [:{0},REAL+:] & y in [:{0},REAL+:] & ( for x9, y9 being Element of REAL+ holds
( not x = [0,x9] or not y = [0,y9] or not y9 <=' x9 ) ) ) or ( ( not x in REAL+ or not y in REAL+ ) & ( not x in [:{0},REAL+:] or not y in [:{0},REAL+:] ) & not ( y in REAL+ & x in [:{0},REAL+:] ) & not x = -infty & not y = +infty ) ) holds
( ( y in REAL+ & x in REAL+ implies ex x9, y9 being Element of REAL+ st
( y = x9 & x = y9 & x9 <=' y9 ) ) & ( y in [:{0},REAL+:] & x in [:{0},REAL+:] implies ex x9, y9 being Element of REAL+ st
( y = [0,x9] & x = [0,y9] & y9 <=' x9 ) ) & ( ( not y in REAL+ or not x in REAL+ ) & ( not y in [:{0},REAL+:] or not x in [:{0},REAL+:] ) & not ( x in REAL+ & y in [:{0},REAL+:] ) & not y = -infty implies x = +infty ) )
end;
:: deftheorem Def5 defines <= XXREAL_0:def 5 :
for x, y being ext-real number holds
( ( x in REAL+ & y in REAL+ implies ( x <= y iff ex x9, y9 being Element of REAL+ st
( x = x9 & y = y9 & x9 <=' y9 ) ) ) & ( x in [:{0},REAL+:] & y in [:{0},REAL+:] implies ( x <= y iff ex x9, y9 being Element of REAL+ st
( x = [0,x9] & y = [0,y9] & y9 <=' x9 ) ) ) & ( ( not x in REAL+ or not y in REAL+ ) & ( not x in [:{0},REAL+:] or not y in [:{0},REAL+:] ) implies ( x <= y iff ( ( y in REAL+ & x in [:{0},REAL+:] ) or x = -infty or y = +infty ) ) ) );
Lm1:
+infty <> [0,0]
Lm2:
not +infty in REAL+
by ARYTM_0:1, ORDINAL1:7;
Lm3:
not -infty in REAL+
Lm4:
not +infty in [:{0},REAL+:]
Lm5:
not -infty in [:{0},REAL+:]
Lm6:
-infty < +infty
theorem Th1:
Lm7:
for a being ext-real number st -infty >= a holds
a = -infty
Lm8:
for a being ext-real number st +infty <= a holds
a = +infty
theorem Th2:
theorem
theorem
theorem
theorem
theorem
theorem
Lm9:
for a being ext-real number holds
( a in REAL or a = +infty or a = -infty )
theorem Th9:
theorem Th10:
theorem Th11:
theorem Th12:
theorem Th13:
theorem
begin
:: deftheorem defines positive XXREAL_0:def 6 :
for a being ext-real number holds
( a is positive iff a > 0 );
:: deftheorem defines negative XXREAL_0:def 7 :
for a being ext-real number holds
( a is negative iff a < 0 );
:: deftheorem defines zero XXREAL_0:def 8 :
for a being ext-real number holds
( a is zero iff a = 0 );
begin
:: deftheorem Def9 defines min XXREAL_0:def 9 :
for a, b being ext-real number holds
( ( a <= b implies min (a,b) = a ) & ( not a <= b implies min (a,b) = b ) );
:: deftheorem Def10 defines max XXREAL_0:def 10 :
for a, b being ext-real number holds
( ( b <= a implies max (a,b) = a ) & ( not b <= a implies max (a,b) = b ) );
theorem
theorem
theorem Th17:
theorem Th18:
theorem
theorem
theorem
theorem
theorem
theorem
theorem Th25:
theorem Th26:
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem Th37:
theorem
theorem
theorem
for
a,
b,
c being
ext-real number holds
max (
(max ((min (a,b)),(min (b,c)))),
(min (c,a)))
= min (
(min ((max (a,b)),(max (b,c)))),
(max (c,a)))
theorem
theorem
theorem
theorem
begin
theorem
theorem
theorem
theorem
:: deftheorem Def11 defines IFGT XXREAL_0:def 11 :
for x, y being ext-real number
for a, b being set holds
( ( x > y implies IFGT (x,y,a,b) = a ) & ( not x > y implies IFGT (x,y,a,b) = b ) );
theorem
theorem