:: ABSVALUE semantic presentation  Show TPTP formulae Show IDV graph for whole article:: Showing IDV graph ... (Click the Palm Trees again to close it)

definition
let x be real number ;
redefine func |.x.| equals :Def1: :: ABSVALUE:def 1
x if 0 <= x
otherwise - x;
correctness
compatibility
for b1 being set holds
( ( 0 <= x implies ( b1 = |.x.| iff b1 = x ) ) & ( not 0 <= x implies ( b1 = |.x.| iff b1 = - x ) ) )
;
consistency
for b1 being set holds verum
;
by COMPLEX1:129, COMPLEX1:156;
end;

:: deftheorem Def1 defines |. ABSVALUE:def 1 :
for x being real number holds
( ( 0 <= x implies |.x.| = x ) & ( not 0 <= x implies |.x.| = - x ) );

theorem :: ABSVALUE:1  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds
( abs x = x or abs x = - x )
proof end;

Lm1: for x being real number holds 0 <= abs x
by COMPLEX1:132;

Lm2: for x being real number st x <> 0 holds
0 < abs x
by COMPLEX1:133;

theorem :: ABSVALUE:2  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:3  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:4  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:5  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:6  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:7  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds
( x = 0 iff abs x = 0 ) by Def1, COMPLEX1:133;

theorem :: ABSVALUE:8  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:9  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number st abs x = - x & x <> 0 holds
x < 0
proof end;

Lm3: for x, y being real number holds abs (x * y) = (abs x) * (abs y)
by COMPLEX1:151;

theorem :: ABSVALUE:10  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:11  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds
( - (abs x) <= x & x <= abs x )
proof end;

theorem :: ABSVALUE:12  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for y, x being real number holds
( ( - y <= x & x <= y ) iff abs x <= y )
proof end;

Lm4: for x, y being real number holds abs (x + y) <= (abs x) + (abs y)
by COMPLEX1:142;

theorem :: ABSVALUE:13  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem Th14: :: ABSVALUE:14  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number st x <> 0 holds
(abs x) * (abs (1 / x)) = 1
proof end;

theorem :: ABSVALUE:15  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds abs (1 / x) = 1 / (abs x)
proof end;

Lm5: for x, y being real number holds abs (x / y) = (abs x) / (abs y)
by COMPLEX1:153;

theorem :: ABSVALUE:16  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:17  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:18  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:19  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:20  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number st 0 <= x * y holds
sqrt (x * y) = (sqrt (abs x)) * (sqrt (abs y))
proof end;

theorem :: ABSVALUE:21  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, z, y, t being real number st abs x <= z & abs y <= t holds
abs (x + y) <= z + t
proof end;

theorem :: ABSVALUE:22  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:23  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number st 0 < x / y holds
sqrt (x / y) = (sqrt (abs x)) / (sqrt (abs y))
proof end;

theorem :: ABSVALUE:24  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number st 0 <= x * y holds
abs (x + y) = (abs x) + (abs y)
proof end;

theorem :: ABSVALUE:25  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number st abs (x + y) = (abs x) + (abs y) holds
0 <= x * y
proof end;

theorem :: ABSVALUE:26  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number holds (abs (x + y)) / (1 + (abs (x + y))) <= ((abs x) / (1 + (abs x))) + ((abs y) / (1 + (abs y)))
proof end;

definition
let x be real number ;
func sgn x -> set equals :Def2: :: ABSVALUE:def 2
1 if 0 < x
- 1 if x < 0
otherwise 0;
coherence
( ( 0 < x implies 1 is set ) & ( x < 0 implies - 1 is set ) & ( not 0 < x & not x < 0 implies 0 is set ) )
;
consistency
for b1 being set st 0 < x & x < 0 holds
( b1 = 1 iff b1 = - 1 )
;
end;

:: deftheorem Def2 defines sgn ABSVALUE:def 2 :
for x being real number holds
( ( 0 < x implies sgn x = 1 ) & ( x < 0 implies sgn x = - 1 ) & ( not 0 < x & not x < 0 implies sgn x = 0 ) );

registration
let x be real number ;
cluster sgn x -> real ;
coherence
sgn x is real
proof end;
end;

definition
let x be Real;
:: original: sgn
redefine func sgn x -> Real;
coherence
sgn x is Real
by XREAL_0:def 1;
end;

theorem :: ABSVALUE:27  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:28  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:29  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:30  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ABSVALUE:31  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number st sgn x = 1 holds
0 < x
proof end;

theorem :: ABSVALUE:32  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number st sgn x = - 1 holds
x < 0
proof end;

theorem Th33: :: ABSVALUE:33  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number st sgn x = 0 holds
x = 0
proof end;

theorem :: ABSVALUE:34  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds x = (abs x) * (sgn x)
proof end;

theorem Th35: :: ABSVALUE:35  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number holds sgn (x * y) = (sgn x) * (sgn y)
proof end;

theorem :: ABSVALUE:36  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds sgn (sgn x) = sgn x
proof end;

theorem :: ABSVALUE:37  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number holds sgn (x + y) <= ((sgn x) + (sgn y)) + 1
proof end;

theorem Th38: :: ABSVALUE:38  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number st x <> 0 holds
(sgn x) * (sgn (1 / x)) = 1
proof end;

theorem Th39: :: ABSVALUE:39  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds 1 / (sgn x) = sgn (1 / x)
proof end;

theorem :: ABSVALUE:40  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number holds ((sgn x) + (sgn y)) - 1 <= sgn (x + y)
proof end;

theorem :: ABSVALUE:41  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being real number holds sgn x = sgn (1 / x)
proof end;

theorem :: ABSVALUE:42  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being real number holds sgn (x / y) = (sgn x) / (sgn y)
proof end;