let a, b be real number ; :: thesis: REAL \ (RAT a,b) = (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[
per cases ( a < b or b <= a ) ;
suppose a < b ; :: thesis: REAL \ (RAT a,b) = (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[
thus REAL \ (RAT a,b) c= (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ :: according to XBOOLE_0:def 10 :: thesis: (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ c= REAL \ (RAT a,b)
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in REAL \ (RAT a,b) or x in (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ )
assume A1: x in REAL \ (RAT a,b) ; :: thesis: x in (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[
then A2: not x in RAT a,b by XBOOLE_0:def 5;
reconsider x = x as real number by A1;
per cases ( ( x <= a & x < b ) or ( x <= a & x >= b ) or ( x > a & x < b ) or ( x > a & x >= b ) ) ;
end;
end;
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ or x in REAL \ (RAT a,b) )
assume A4: x in (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ ; :: thesis: x in REAL \ (RAT a,b)
then reconsider x = x as real number ;
A5: ( x in ].-infty ,a.] \/ (IRRAT a,b) or x in [.b,+infty .[ ) by A4, XBOOLE_0:def 3;
end;
suppose A10: b <= a ; :: thesis: REAL \ (RAT a,b) = (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[
then A11: ].-infty ,a.] \/ [.b,+infty .[ = REAL by Lm8;
REAL \ (RAT a,b) = REAL \ {} by A10, Lm7
.= (].-infty ,a.] \/ [.b,+infty .[) \/ (IRRAT a,b) by A11, XBOOLE_1:12
.= (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ by XBOOLE_1:4 ;
hence REAL \ (RAT a,b) = (].-infty ,a.] \/ (IRRAT a,b)) \/ [.b,+infty .[ ; :: thesis: verum
end;
end;