:: QUIN_1 semantic presentation

definition
let a be complex number , b be complex number , c be complex number ;
func delta c1,c2,c3 -> set equals :: QUIN_1:def 1
(b ^2 ) - ((4 * a) * c);
coherence
(b ^2 ) - ((4 * a) * c) is set
;
end;

:: deftheorem Def1 defines delta QUIN_1:def 1 :
for a, b, c being complex number holds delta a,b,c = (b ^2 ) - ((4 * a) * c);

registration
let a be complex number , b be complex number , c be complex number ;
cluster delta a1,a2,a3 -> complex ;
coherence
delta a,b,c is complex
;
end;

registration
let a be real number ;
let b be real number ;
let c be real number ;
cluster delta a1,a2,a3 -> complex real ;
coherence
delta a,b,c is real
;
end;

definition
let a be Real, b be Real, c be Real;
redefine func delta as delta c1,c2,c3 -> Real;
coherence
delta a,b,c is Real
by XREAL_0:def 1;
end;

theorem Th1: :: QUIN_1:1
for a, b, c, x being complex number st a <> 0 holds
((a * (x ^2 )) + (b * x)) + c = (a * ((x + (b / (2 * a))) ^2 )) - ((delta a,b,c) / (4 * a))
proof end;

theorem Th2: :: QUIN_1:2
for a, b, c, x being real number st a > 0 & delta a,b,c <= 0 holds
((a * (x ^2 )) + (b * x)) + c >= 0
proof end;

theorem Th3: :: QUIN_1:3
for a, b, c, x being real number st a > 0 & delta a,b,c < 0 holds
((a * (x ^2 )) + (b * x)) + c > 0
proof end;

theorem Th4: :: QUIN_1:4
for a, b, c, x being real number st a < 0 & delta a,b,c <= 0 holds
((a * (x ^2 )) + (b * x)) + c <= 0
proof end;

theorem Th5: :: QUIN_1:5
for a, b, c, x being real number st a < 0 & delta a,b,c < 0 holds
((a * (x ^2 )) + (b * x)) + c < 0
proof end;

theorem Th6: :: QUIN_1:6
for a, x, b, c being real number st a > 0 & ((a * (x ^2 )) + (b * x)) + c >= 0 holds
((((2 * a) * x) + b) ^2 ) - (delta a,b,c) >= 0
proof end;

theorem Th7: :: QUIN_1:7
for a, x, b, c being real number st a > 0 & ((a * (x ^2 )) + (b * x)) + c > 0 holds
((((2 * a) * x) + b) ^2 ) - (delta a,b,c) > 0
proof end;

theorem Th8: :: QUIN_1:8
for a, x, b, c being real number st a < 0 & ((a * (x ^2 )) + (b * x)) + c <= 0 holds
((((2 * a) * x) + b) ^2 ) - (delta a,b,c) >= 0
proof end;

theorem Th9: :: QUIN_1:9
for a, x, b, c being real number st a < 0 & ((a * (x ^2 )) + (b * x)) + c < 0 holds
((((2 * a) * x) + b) ^2 ) - (delta a,b,c) > 0
proof end;

theorem Th10: :: QUIN_1:10
for a, b, c being real number st ( for x being real number holds ((a * (x ^2 )) + (b * x)) + c >= 0 ) & a > 0 holds
delta a,b,c <= 0
proof end;

theorem Th11: :: QUIN_1:11
for a, b, c being real number st ( for x being real number holds ((a * (x ^2 )) + (b * x)) + c <= 0 ) & a < 0 holds
delta a,b,c <= 0
proof end;

theorem Th12: :: QUIN_1:12
for a, b, c being real number st ( for x being real number holds ((a * (x ^2 )) + (b * x)) + c > 0 ) & a > 0 holds
delta a,b,c < 0
proof end;

theorem Th13: :: QUIN_1:13
for a, b, c being real number st ( for x being real number holds ((a * (x ^2 )) + (b * x)) + c < 0 ) & a < 0 holds
delta a,b,c < 0
proof end;

theorem Th14: :: QUIN_1:14
for a, b, c, x being complex number st a <> 0 & ((a * (x ^2 )) + (b * x)) + c = 0 holds
((((2 * a) * x) + b) ^2 ) - (delta a,b,c) = 0
proof end;

Lemma24: for a, b being complex number holds
( not a ^2 = b ^2 or a = b or a = - b )
proof end;

theorem Th15: :: QUIN_1:15
for a, b, c, x being real number st a <> 0 & delta a,b,c >= 0 & ((a * (x ^2 )) + (b * x)) + c = 0 & not x = ((- b) - (sqrt (delta a,b,c))) / (2 * a) holds
x = ((- b) + (sqrt (delta a,b,c))) / (2 * a)
proof end;

theorem Th16: :: QUIN_1:16
for a, b, c, x being real number st a <> 0 & delta a,b,c >= 0 holds
((a * (x ^2 )) + (b * x)) + c = (a * (x - (((- b) - (sqrt (delta a,b,c))) / (2 * a)))) * (x - (((- b) + (sqrt (delta a,b,c))) / (2 * a)))
proof end;

theorem Th17: :: QUIN_1:17
for a, b, c being real number st a < 0 & delta a,b,c > 0 holds
((- b) + (sqrt (delta a,b,c))) / (2 * a) < ((- b) - (sqrt (delta a,b,c))) / (2 * a)
proof end;

theorem Th18: :: QUIN_1:18
for a, b, c, x being real number st a < 0 & delta a,b,c > 0 holds
( ((a * (x ^2 )) + (b * x)) + c > 0 iff ( ((- b) + (sqrt (delta a,b,c))) / (2 * a) < x & x < ((- b) - (sqrt (delta a,b,c))) / (2 * a) ) )
proof end;

theorem Th19: :: QUIN_1:19
for a, b, c, x being real number st a < 0 & delta a,b,c > 0 holds
( ( x < ((- b) + (sqrt (delta a,b,c))) / (2 * a) or x > ((- b) - (sqrt (delta a,b,c))) / (2 * a) ) iff ((a * (x ^2 )) + (b * x)) + c < 0 )
proof end;

theorem Th20: :: QUIN_1:20
canceled;

theorem Th21: :: QUIN_1:21
canceled;

theorem Th22: :: QUIN_1:22
for a, b, c, x being complex number st a <> 0 & delta a,b,c = 0 & ((a * (x ^2 )) + (b * x)) + c = 0 holds
x = - (b / (2 * a))
proof end;

theorem Th23: :: QUIN_1:23
for a, x, b, c being real number st a > 0 & ((((2 * a) * x) + b) ^2 ) - (delta a,b,c) > 0 holds
((a * (x ^2 )) + (b * x)) + c > 0
proof end;

theorem Th24: :: QUIN_1:24
for a, b, c, x being real number st a > 0 & delta a,b,c = 0 holds
( ((a * (x ^2 )) + (b * x)) + c > 0 iff x <> - (b / (2 * a)) )
proof end;

theorem Th25: :: QUIN_1:25
for a, x, b, c being real number st a < 0 & ((((2 * a) * x) + b) ^2 ) - (delta a,b,c) > 0 holds
((a * (x ^2 )) + (b * x)) + c < 0
proof end;

theorem Th26: :: QUIN_1:26
for a, b, c, x being real number st a < 0 & delta a,b,c = 0 holds
( ((a * (x ^2 )) + (b * x)) + c < 0 iff x <> - (b / (2 * a)) )
proof end;

theorem Th27: :: QUIN_1:27
for a, b, c being real number st a > 0 & delta a,b,c > 0 holds
((- b) + (sqrt (delta a,b,c))) / (2 * a) > ((- b) - (sqrt (delta a,b,c))) / (2 * a)
proof end;

theorem Th28: :: QUIN_1:28
for a, b, c, x being real number st a > 0 & delta a,b,c > 0 holds
( ((a * (x ^2 )) + (b * x)) + c < 0 iff ( ((- b) - (sqrt (delta a,b,c))) / (2 * a) < x & x < ((- b) + (sqrt (delta a,b,c))) / (2 * a) ) )
proof end;

theorem Th29: :: QUIN_1:29
for a, b, c, x being real number st a > 0 & delta a,b,c > 0 holds
( ( x < ((- b) - (sqrt (delta a,b,c))) / (2 * a) or x > ((- b) + (sqrt (delta a,b,c))) / (2 * a) ) iff ((a * (x ^2 )) + (b * x)) + c > 0 )
proof end;