per cases ( [.r,s.] in F or not [.r,s.] in F ) ;
suppose A5: [.r,s.] in F ; :: thesis: ex b1 being FinSequence of bool REAL st
( rng b1 c= F & union (rng b1) = [.r,s.] & ( for n being Nat st 1 <= n holds
( ( n <= len b1 implies not b1 /. n is empty ) & ( n + 1 <= len b1 implies ( lower_bound (b1 /. n) <= lower_bound (b1 /. (n + 1)) & upper_bound (b1 /. n) <= upper_bound (b1 /. (n + 1)) & lower_bound (b1 /. (n + 1)) < upper_bound (b1 /. n) ) ) & ( n + 2 <= len b1 implies upper_bound (b1 /. n) <= lower_bound (b1 /. (n + 2)) ) ) ) & ( [.r,s.] in F implies b1 = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & b1 . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & b1 . (len b1) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len b1 holds
ex p, q being Real st
( r <= p & p < q & q <= s & b1 . n = ].p,q.[ ) ) ) ) )

take f = <*[.r,s.]*>; :: thesis: ( rng f c= F & union (rng f) = [.r,s.] & ( for n being Nat st 1 <= n holds
( ( n <= len f implies not f /. n is empty ) & ( n + 1 <= len f implies ( lower_bound (f /. n) <= lower_bound (f /. (n + 1)) & upper_bound (f /. n) <= upper_bound (f /. (n + 1)) & lower_bound (f /. (n + 1)) < upper_bound (f /. n) ) ) & ( n + 2 <= len f implies upper_bound (f /. n) <= lower_bound (f /. (n + 2)) ) ) ) & ( [.r,s.] in F implies f = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & f . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & f . (len f) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len f holds
ex p, q being Real st
( r <= p & p < q & q <= s & f . n = ].p,q.[ ) ) ) ) )

A6: rng f = {[.r,s.]} by FINSEQ_1:38;
thus rng f c= F by A5, A6, TARSKI:def 1; :: thesis: ( union (rng f) = [.r,s.] & ( for n being Nat st 1 <= n holds
( ( n <= len f implies not f /. n is empty ) & ( n + 1 <= len f implies ( lower_bound (f /. n) <= lower_bound (f /. (n + 1)) & upper_bound (f /. n) <= upper_bound (f /. (n + 1)) & lower_bound (f /. (n + 1)) < upper_bound (f /. n) ) ) & ( n + 2 <= len f implies upper_bound (f /. n) <= lower_bound (f /. (n + 2)) ) ) ) & ( [.r,s.] in F implies f = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & f . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & f . (len f) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len f holds
ex p, q being Real st
( r <= p & p < q & q <= s & f . n = ].p,q.[ ) ) ) ) )

thus union (rng f) = [.r,s.] by A6, ZFMISC_1:25; :: thesis: ( ( for n being Nat st 1 <= n holds
( ( n <= len f implies not f /. n is empty ) & ( n + 1 <= len f implies ( lower_bound (f /. n) <= lower_bound (f /. (n + 1)) & upper_bound (f /. n) <= upper_bound (f /. (n + 1)) & lower_bound (f /. (n + 1)) < upper_bound (f /. n) ) ) & ( n + 2 <= len f implies upper_bound (f /. n) <= lower_bound (f /. (n + 2)) ) ) ) & ( [.r,s.] in F implies f = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & f . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & f . (len f) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len f holds
ex p, q being Real st
( r <= p & p < q & q <= s & f . n = ].p,q.[ ) ) ) ) )

thus ( ( for n being Nat st 1 <= n holds
( ( n <= len f implies not f /. n is empty ) & ( n + 1 <= len f implies ( lower_bound (f /. n) <= lower_bound (f /. (n + 1)) & upper_bound (f /. n) <= upper_bound (f /. (n + 1)) & lower_bound (f /. (n + 1)) < upper_bound (f /. n) ) ) & ( n + 2 <= len f implies upper_bound (f /. n) <= lower_bound (f /. (n + 2)) ) ) ) & ( [.r,s.] in F implies f = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & f . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & f . (len f) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len f holds
ex p, q being Real st
( r <= p & p < q & q <= s & f . n = ].p,q.[ ) ) ) ) ) by A4, A5, Lm3; :: thesis: verum
end;
suppose A7: not [.r,s.] in F ; :: thesis: ex b1 being FinSequence of bool REAL st
( rng b1 c= F & union (rng b1) = [.r,s.] & ( for n being Nat st 1 <= n holds
( ( n <= len b1 implies not b1 /. n is empty ) & ( n + 1 <= len b1 implies ( lower_bound (b1 /. n) <= lower_bound (b1 /. (n + 1)) & upper_bound (b1 /. n) <= upper_bound (b1 /. (n + 1)) & lower_bound (b1 /. (n + 1)) < upper_bound (b1 /. n) ) ) & ( n + 2 <= len b1 implies upper_bound (b1 /. n) <= lower_bound (b1 /. (n + 2)) ) ) ) & ( [.r,s.] in F implies b1 = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & b1 . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & b1 . (len b1) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len b1 holds
ex p, q being Real st
( r <= p & p < q & q <= s & b1 . n = ].p,q.[ ) ) ) ) )

set L = Closed-Interval-TSpace (r,s);
A8: the carrier of (Closed-Interval-TSpace (r,s)) = [.r,s.] by A4, TOPMETR:18;
Closed-Interval-TSpace (r,s) is compact by A4, HEINE:4;
then [#] (Closed-Interval-TSpace (r,s)) is compact by COMPTS_1:1;
then consider G being Subset-Family of (Closed-Interval-TSpace (r,s)) such that
A10: G c= F and
A11: G is Cover of [#] (Closed-Interval-TSpace (r,s)) and
A12: G is finite by A1, A2, COMPTS_1:def 4;
set ZAW = { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
;
set G1 = G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
;
set ALL = { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
;
set R = RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
;
A13: RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
is_antisymmetric_in { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
by WELLORD2:21;
set RM = { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
;
set LM = { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
;
A14: G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
c= G by XBOOLE_1:36;
then A15: G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
c= F by A10;
A16: for X being set st X in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
holds
X is interval Subset of REAL
proof
let X be set ; :: thesis: ( X in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
implies X is interval Subset of REAL )

assume X in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
; :: thesis: X is interval Subset of REAL
then reconsider X = X as connected Subset of (Closed-Interval-TSpace (r,s)) by A3, A15;
reconsider Y = X as Subset of REAL by A8, XBOOLE_1:1;
Y is interval by Th43;
hence X is interval Subset of REAL ; :: thesis: verum
end;
reconsider T = Closed-Interval-TSpace (r,s) as non empty connected TopSpace by A4, TREAL_1:20;
set LM1 = { (upper_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
;
A17: { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} c= { (upper_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
or x in { (upper_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
)

assume x in { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
; :: thesis: x in { (upper_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}

then ex b being Real st
( x = upper_bound [.r,b.[ & [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
) ;
hence x in { (upper_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
; :: thesis: verum
end;
A18: { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} c= REAL
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
or x in REAL )

assume x in { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
; :: thesis: x in REAL
then ex b being Real st
( x = upper_bound [.r,b.[ & [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
) ;
hence x in REAL by XREAL_0:def 1; :: thesis: verum
end;
set RM1 = { (lower_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
;
A19: { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} c= { (lower_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
or x in { (lower_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
)

assume x in { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
; :: thesis: x in { (lower_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}

then ex b being Real st
( x = lower_bound ].b,s.] & ].b,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
) ;
hence x in { (lower_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
; :: thesis: verum
end;
A20: { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} c= REAL
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
or x in REAL )

assume x in { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
; :: thesis: x in REAL
then ex b being Real st
( x = lower_bound ].b,s.] & ].b,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
) ;
hence x in REAL by XREAL_0:def 1; :: thesis: verum
end;
A21: field (RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
)
= { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
by WELLORD2:def 1;
( RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
is_reflexive_in { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
& RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
is_transitive_in { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
) by WELLORD2:19, WELLORD2:20;
then RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
partially_orders { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
by A13;
then consider M being set such that
A22: M is_minimal_in RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
by A11, A12, A21, Th47, ORDERS_1:64;
A23: M in field (RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
)
by A22;
then consider C being Subset-Family of (Closed-Interval-TSpace (r,s)) such that
A24: M = C and
A25: C is Cover of (Closed-Interval-TSpace (r,s)) and
A26: C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A21;
A27: union C = [#] (Closed-Interval-TSpace (r,s)) by A25, SETFAM_1:45;
A28: s in [.r,s.] by A4, XXREAL_1:1;
then consider R2 being set such that
A29: s in R2 and
A30: R2 in C by A8, A27, TARSKI:def 4;
r in [.r,s.] by A4, XXREAL_1:1;
then consider R1 being set such that
A31: r in R1 and
A32: R1 in C by A8, A27, TARSKI:def 4;
A33: R1 in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A26, A32;
then A34: R1 in F by A15;
A35: R2 in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A26, A30;
then A36: R2 in F by A15;
reconsider R1 = R1, R2 = R2 as open connected Subset of (Closed-Interval-TSpace (r,s)) by A2, A3, A15, A33, A35;
A37: now :: thesis: not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty
per cases ( ex a being Real st
( r < a & a <= s & R2 = [.r,a.[ ) or ex a being Real st
( r <= a & a < s & R2 = ].a,s.] ) or ex a, b being Real st
( r <= a & a < b & b <= s & R2 = ].a,b.[ ) )
by A4, A7, A29, A36, Th44;
suppose ex a being Real st
( r < a & a <= s & R2 = [.r,a.[ ) ; :: thesis: not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty

hence not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is empty by A29, XXREAL_1:3; :: thesis: verum
end;
suppose ex a being Real st
( r <= a & a < s & R2 = ].a,s.] ) ; :: thesis: not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty

then consider a being Real such that
r <= a and
a < s and
A38: R2 = ].a,s.] ;
lower_bound ].a,s.] in { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
by A26, A30, A38;
hence not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is empty ; :: thesis: verum
end;
suppose ex a, b being Real st
( r <= a & a < b & b <= s & R2 = ].a,b.[ ) ; :: thesis: not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty

hence not { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is empty by A29, XXREAL_1:4; :: thesis: verum
end;
end;
end;
A39: now :: thesis: not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty
per cases ( ex a being Real st
( r < a & a <= s & R1 = [.r,a.[ ) or ex a being Real st
( r <= a & a < s & R1 = ].a,s.] ) or ex a, b being Real st
( r <= a & a < b & b <= s & R1 = ].a,b.[ ) )
by A4, A7, A31, A34, Th44;
suppose ex a being Real st
( r < a & a <= s & R1 = [.r,a.[ ) ; :: thesis: not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty

then consider a being Real such that
r < a and
a <= s and
A40: R1 = [.r,a.[ ;
upper_bound [.r,a.[ in { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
by A26, A32, A40;
hence not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is empty ; :: thesis: verum
end;
suppose ex a being Real st
( r <= a & a < s & R1 = ].a,s.] ) ; :: thesis: not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty

hence not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is empty by A31, XXREAL_1:2; :: thesis: verum
end;
suppose ex a, b being Real st
( r <= a & a < b & b <= s & R1 = ].a,b.[ ) ; :: thesis: not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
is empty

hence not { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is empty by A31, XXREAL_1:4; :: thesis: verum
end;
end;
end;
A41: G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
is finite by A12;
{ (lower_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is finite from FRAENKEL:sch 21(A41);
then reconsider RM = { (lower_bound ].c,s.]) where c is Real : ].c,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
as non empty finite Subset of REAL by A19, A37, A20;
F c= bool REAL
proof
let a be object ; :: according to TARSKI:def 3 :: thesis: ( not a in F or a in bool REAL )
reconsider aa = a as set by TARSKI:1;
assume a in F ; :: thesis: a in bool REAL
then aa c= REAL by A8, XBOOLE_1:1;
hence a in bool REAL ; :: thesis: verum
end;
then G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
c= bool REAL by A15;
then reconsider X = C as non empty finite Subset-Family of REAL by A12, A26, A32, XBOOLE_1:1;
{ (upper_bound E) where E is Subset of (Closed-Interval-TSpace (r,s)) : E in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
} is finite from FRAENKEL:sch 21(A41);
then reconsider LM = { (upper_bound [.r,b.[) where b is Real : [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
}
as non empty finite Subset of REAL by A17, A39, A18;
reconsider kL = max LM as Real ;
set LEWY = [.r,kL.[;
kL in LM by XXREAL_2:def 8;
then consider b being Real such that
A42: kL = upper_bound [.r,b.[ and
A43: [.r,b.[ in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
;
A44: union G = [#] (Closed-Interval-TSpace (r,s)) by A11, SETFAM_1:45;
A45: now :: thesis: not {} in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
consider x being object such that
A46: x in the carrier of (Closed-Interval-TSpace (r,s)) by XBOOLE_0:def 1;
consider g being set such that
A47: x in g and
A48: g in G by A44, A46, TARSKI:def 4;
{} c= g ;
then A49: {} c< g by A47;
assume A50: {} in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
; :: thesis: contradiction
then {} in G by XBOOLE_0:def 5;
then {} in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A48, A49;
hence contradiction by A50, XBOOLE_0:def 5; :: thesis: verum
end;
then A51: upper_bound [.r,kL.[ = kL by A42, A43, Th5, XXREAL_1:27;
A52: r < b by A45, A43, XXREAL_1:27;
then r < kL by A42, Th5;
then A53: lower_bound [.r,kL.[ = r by Th4;
reconsider LEWY = [.r,kL.[ as non empty Subset of (Closed-Interval-TSpace (r,s)) by A45, A42, A43, Th5, XXREAL_1:27;
A54: kL = b by A45, A42, A43, Th5, XXREAL_1:27;
A55: for A being Subset of (Closed-Interval-TSpace (r,s)) st r in A & A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
holds
A = LEWY
proof
let A be Subset of (Closed-Interval-TSpace (r,s)); :: thesis: ( r in A & A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
implies A = LEWY )

assume that
A56: r in A and
A57: A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
; :: thesis: A = LEWY
A58: ( A in F & A is open ) by A2, A15, A57;
A59: now :: thesis: ( ( for a being Real holds
( not r <= a or not a < s or not A = ].a,s.] ) ) & ( for a, b being Real holds
( not r <= a or not a < b or not b <= s or not A = ].a,b.[ ) ) )
assume A60: ( ex a being Real st
( r <= a & a < s & A = ].a,s.] ) or ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) ) ; :: thesis: contradiction
per cases ( ex a being Real st
( r <= a & a < s & A = ].a,s.] ) or ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) )
by A60;
suppose ex a being Real st
( r <= a & a < s & A = ].a,s.] ) ; :: thesis: contradiction
end;
suppose ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) ; :: thesis: contradiction
end;
end;
end;
A is connected by A3, A15, A57;
then consider ak being Real such that
A61: r < ak and
ak <= s and
A62: A = [.r,ak.[ by A4, A7, A56, A58, A59, Th44;
A63: A c= LEWY
proof
upper_bound A = ak by A61, A62, Th5;
then ak in LM by A57, A62;
then A64: ak <= kL by XXREAL_2:def 8;
let a be object ; :: according to TARSKI:def 3 :: thesis: ( not a in A or a in LEWY )
assume A65: a in A ; :: thesis: a in LEWY
then a in [.r,s.] by A8;
then reconsider a = a as Real ;
a < ak by A62, A65, XXREAL_1:3;
then A66: a < kL by A64, XXREAL_0:2;
r <= a by A62, A65, XXREAL_1:3;
hence a in LEWY by A66, XXREAL_1:3; :: thesis: verum
end;
assume A <> LEWY ; :: thesis: contradiction
then A c< LEWY by A63;
then A in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A43, A54, A57;
hence contradiction by A57, XBOOLE_0:def 5; :: thesis: verum
end;
then reconsider LLEWY = LEWY as Element of X by A26, A31, A32;
reconsider pP = min RM as Real ;
set PRAWY = ].pP,s.];
pP in RM by XXREAL_2:def 7;
then consider b being Real such that
A67: pP = lower_bound ].b,s.] and
A68: ].b,s.] in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
;
A69: lower_bound ].pP,s.] = pP by A45, A67, A68, Th6, XXREAL_1:26;
A70: b < s by A45, A68, XXREAL_1:26;
then pP < s by A67, Th6;
then A71: upper_bound ].pP,s.] = s by Th7;
reconsider PRAWY = ].pP,s.] as non empty Subset of (Closed-Interval-TSpace (r,s)) by A45, A67, A68, Th6, XXREAL_1:26;
A72: pP = b by A45, A67, A68, Th6, XXREAL_1:26;
A73: for A being Subset of (Closed-Interval-TSpace (r,s)) st A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
& A <> LEWY & A <> PRAWY holds
ex a, b being Real st
( a < b & A = ].a,b.[ )
proof
let A be Subset of (Closed-Interval-TSpace (r,s)); :: thesis: ( A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
& A <> LEWY & A <> PRAWY implies ex a, b being Real st
( a < b & A = ].a,b.[ ) )

assume that
A74: A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
and
A75: A <> LEWY and
A76: A <> PRAWY ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

A77: ( A in F & A is open & A is connected ) by A3, A2, A15, A74;
per cases ( ex a being Real st
( r < a & a <= s & A = [.r,a.[ ) or ex a being Real st
( r <= a & a < s & A = ].a,s.] ) or ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) )
by A4, A7, A45, A74, A77, Th44;
suppose ex a being Real st
( r < a & a <= s & A = [.r,a.[ ) ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then consider a being Real such that
r < a and
a <= s and
A78: A = [.r,a.[ ;
per cases ( a <= kL or a > kL ) ;
suppose a <= kL ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then A c= LEWY by A78, XXREAL_1:38;
then A c< LEWY by A75;
then A in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A43, A54, A74;
hence ex a, b being Real st
( a < b & A = ].a,b.[ ) by A74, XBOOLE_0:def 5; :: thesis: verum
end;
suppose a > kL ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then LEWY c= A by A78, XXREAL_1:38;
then LEWY c< A by A75;
then LEWY in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A43, A54, A74;
hence ex a, b being Real st
( a < b & A = ].a,b.[ ) by A43, A54, XBOOLE_0:def 5; :: thesis: verum
end;
end;
end;
suppose ex a being Real st
( r <= a & a < s & A = ].a,s.] ) ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then consider a being Real such that
r <= a and
a < s and
A79: A = ].a,s.] ;
per cases ( a >= pP or a < pP ) ;
suppose a >= pP ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then A c= PRAWY by A79, XXREAL_1:42;
then A c< PRAWY by A76;
then A in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A68, A72, A74;
hence ex a, b being Real st
( a < b & A = ].a,b.[ ) by A74, XBOOLE_0:def 5; :: thesis: verum
end;
suppose a < pP ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then PRAWY c= A by A79, XXREAL_1:42;
then PRAWY c< A by A76;
then PRAWY in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A68, A72, A74;
hence ex a, b being Real st
( a < b & A = ].a,b.[ ) by A68, A72, XBOOLE_0:def 5; :: thesis: verum
end;
end;
end;
suppose ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) ; :: thesis: ex a, b being Real st
( a < b & A = ].a,b.[ )

then consider a, b being Real such that
r <= a and
A80: a < b and
b <= s and
A81: A = ].a,b.[ ;
reconsider a = a, b = b as Real ;
take a ; :: thesis: ex b being Real st
( a < b & A = ].a,b.[ )

take b ; :: thesis: ( a < b & A = ].a,b.[ )
thus ( a < b & A = ].a,b.[ ) by A80, A81; :: thesis: verum
end;
end;
end;
A82: for A being Subset of (Closed-Interval-TSpace (r,s)) st A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
& upper_bound A in A holds
A = PRAWY
proof
let A be Subset of (Closed-Interval-TSpace (r,s)); :: thesis: ( A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
& upper_bound A in A implies A = PRAWY )

assume that
A83: A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
and
A84: upper_bound A in A and
A85: A <> PRAWY ; :: thesis: contradiction
A <> LEWY by A51, A84, XXREAL_1:3;
then consider a, b being Real such that
A86: a < b and
A87: A = ].a,b.[ by A73, A83, A85;
upper_bound A = b by A86, A87, TOPREAL6:17;
hence contradiction by A84, A87, XXREAL_1:4; :: thesis: verum
end;
defpred S2[ set , set , set ] means ex S being Element of X st
( S = $2 & upper_bound S in $3 );
A88: X c= F by A15, A26;
A89: for Z being Subset of REAL st Z in X holds
Z is non empty open connected Subset of T
proof
let Z be Subset of REAL; :: thesis: ( Z in X implies Z is non empty open connected Subset of T )
assume A90: Z in X ; :: thesis: Z is non empty open connected Subset of T
then ( not Z is empty & Z is interval ) by A45, A16, A26;
hence Z is non empty open connected Subset of T by A2, A88, A90, Th43; :: thesis: verum
end;
A91: for n being Nat st 1 <= n & n < card X holds
for x being Element of X ex y being Element of X st S2[n,x,y]
proof
let n be Nat; :: thesis: ( 1 <= n & n < card X implies for x being Element of X ex y being Element of X st S2[n,x,y] )
assume that
1 <= n and
n < card X ; :: thesis: for x being Element of X ex y being Element of X st S2[n,x,y]
let x be Element of X; :: thesis: ex y being Element of X st S2[n,x,y]
reconsider x1 = x as Subset of REAL ;
A92: not x1 is empty by A89;
A93: x c= union X by ZFMISC_1:74;
then x c= [.r,s.] by A8, A27;
then x1 is bounded_above by XXREAL_2:43;
then upper_bound x is Element of (Closed-Interval-TSpace (r,s)) by A8, A27, A92, A93, Th2;
then consider y being set such that
A94: upper_bound x in y and
A95: y in X by A27, TARSKI:def 4;
reconsider y = y as Element of X by A95;
take y ; :: thesis: S2[n,x,y]
take x ; :: thesis: ( x = x & upper_bound x in y )
thus ( x = x & upper_bound x in y ) by A94; :: thesis: verum
end;
consider IT being FinSequence of X such that
A96: len IT = card X and
A97: ( IT . 1 = LLEWY or card X = 0 ) and
A98: for n being Nat st 1 <= n & n < card X holds
S2[n,IT . n,IT . (n + 1)] from RECDEF_1:sch 4(A91);
A99: rng IT c= X ;
rng IT c= bool REAL by XBOOLE_1:1;
then reconsider IT = IT as FinSequence of bool REAL by FINSEQ_1:def 4;
A100: not IT is empty by A96;
then A101: not rng IT is empty ;
then A102: 1 in dom IT by FINSEQ_3:32;
then A103: IT /. 1 = IT . 1 by PARTFUN1:def 6;
A104: for n being Nat st n in dom IT holds
( IT . n in X & IT /. n in X )
proof
let n be Nat; :: thesis: ( n in dom IT implies ( IT . n in X & IT /. n in X ) )
assume n in dom IT ; :: thesis: ( IT . n in X & IT /. n in X )
then ( IT . n = IT /. n & IT . n in rng IT ) by FUNCT_1:def 3, PARTFUN1:def 6;
hence ( IT . n in X & IT /. n in X ) by A99; :: thesis: verum
end;
A105: for n being Nat st n in dom IT holds
( IT . n in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
& IT /. n in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
) by A104, A26;
A106: for i being Nat st i in dom IT holds
for x being Point of (Closed-Interval-TSpace (r,s)) st x < upper_bound (IT /. i) holds
ex j being Nat st
( j in dom IT & j <= i & x in IT /. j )
proof
defpred S3[ Nat] means ( $1 in dom IT implies for x being Point of (Closed-Interval-TSpace (r,s)) st x < upper_bound (IT /. $1) holds
ex j being Nat st
( j in dom IT & j <= $1 & x in IT /. j ) );
A107: for n being Nat st S3[n] holds
S3[n + 1]
proof
let n be Nat; :: thesis: ( S3[n] implies S3[n + 1] )
assume that
A108: S3[n] and
A109: n + 1 in dom IT ; :: thesis: for x being Point of (Closed-Interval-TSpace (r,s)) st x < upper_bound (IT /. (n + 1)) holds
ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

A110: IT /. (n + 1) = IT . (n + 1) by A109, PARTFUN1:def 6;
let x be Point of (Closed-Interval-TSpace (r,s)); :: thesis: ( x < upper_bound (IT /. (n + 1)) implies ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j ) )

assume A111: x < upper_bound (IT /. (n + 1)) ; :: thesis: ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

per cases ( n = 0 or n in dom IT ) by A109, TOPREALA:2;
suppose A112: n = 0 ; :: thesis: ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

take 1 ; :: thesis: ( 1 in dom IT & 1 <= n + 1 & x in IT /. 1 )
thus 1 in dom IT by A101, FINSEQ_3:32; :: thesis: ( 1 <= n + 1 & x in IT /. 1 )
thus 1 <= n + 1 by A112; :: thesis: x in IT /. 1
r <= x by A8, XXREAL_1:1;
hence x in IT /. 1 by A51, A97, A111, A110, A112, XXREAL_1:3; :: thesis: verum
end;
suppose A113: n in dom IT ; :: thesis: ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

n + 1 <= len IT by A109, FINSEQ_3:25;
then A114: n < len IT by NAT_1:13;
1 <= n by A113, FINSEQ_3:25;
then A115: ex S being Element of X st
( S = IT . n & upper_bound S in IT . (n + 1) ) by A96, A98, A114;
IT /. (n + 1) in X by A104, A109;
then A116: IT /. (n + 1) is bounded_below by A9;
IT /. n = IT . n by A113, PARTFUN1:def 6;
then A117: lower_bound (IT /. (n + 1)) <= upper_bound (IT /. n) by A110, A116, A115, SEQ_4:def 2;
A118: ( IT /. (n + 1) is interval Subset of REAL & not IT /. (n + 1) is empty ) by A45, A16, A105, A109;
per cases ( x < upper_bound (IT /. n) or x = upper_bound (IT /. n) or x > upper_bound (IT /. n) ) by XXREAL_0:1;
suppose x < upper_bound (IT /. n) ; :: thesis: ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

then consider j being Nat such that
A119: j in dom IT and
A120: j <= n and
A121: x in IT /. j by A108, A113;
take j ; :: thesis: ( j in dom IT & j <= n + 1 & x in IT /. j )
thus j in dom IT by A119; :: thesis: ( j <= n + 1 & x in IT /. j )
j + 0 < n + 1 by A120, XREAL_1:8;
hence j <= n + 1 ; :: thesis: x in IT /. j
thus x in IT /. j by A121; :: thesis: verum
end;
suppose A122: x = upper_bound (IT /. n) ; :: thesis: ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

take n + 1 ; :: thesis: ( n + 1 in dom IT & n + 1 <= n + 1 & x in IT /. (n + 1) )
thus n + 1 in dom IT by A109; :: thesis: ( n + 1 <= n + 1 & x in IT /. (n + 1) )
thus n + 1 <= n + 1 ; :: thesis: x in IT /. (n + 1)
thus x in IT /. (n + 1) by A110, A113, A115, A122, PARTFUN1:def 6; :: thesis: verum
end;
suppose A123: x > upper_bound (IT /. n) ; :: thesis: ex j being Nat st
( j in dom IT & j <= n + 1 & x in IT /. j )

take n + 1 ; :: thesis: ( n + 1 in dom IT & n + 1 <= n + 1 & x in IT /. (n + 1) )
thus n + 1 in dom IT by A109; :: thesis: ( n + 1 <= n + 1 & x in IT /. (n + 1) )
thus n + 1 <= n + 1 ; :: thesis: x in IT /. (n + 1)
lower_bound (IT /. (n + 1)) < x by A117, A123, XXREAL_0:2;
hence x in IT /. (n + 1) by A111, A118, Th30; :: thesis: verum
end;
end;
end;
end;
end;
A124: S3[ 0 ] by FINSEQ_3:24;
A125: for n being Nat holds S3[n] from NAT_1:sch 2(A124, A107);
let i be Nat; :: thesis: ( i in dom IT implies for x being Point of (Closed-Interval-TSpace (r,s)) st x < upper_bound (IT /. i) holds
ex j being Nat st
( j in dom IT & j <= i & x in IT /. j ) )

assume i in dom IT ; :: thesis: for x being Point of (Closed-Interval-TSpace (r,s)) st x < upper_bound (IT /. i) holds
ex j being Nat st
( j in dom IT & j <= i & x in IT /. j )

hence for x being Point of (Closed-Interval-TSpace (r,s)) st x < upper_bound (IT /. i) holds
ex j being Nat st
( j in dom IT & j <= i & x in IT /. j ) by A125; :: thesis: verum
end;
A126: s in ].b,s.] by A70, XXREAL_1:2;
A127: for i being Nat st i in dom IT holds
for j being Nat st j in dom IT & i < j holds
ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. j & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )
proof
let i be Nat; :: thesis: ( i in dom IT implies for j being Nat st j in dom IT & i < j holds
ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. j & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) ) )

assume A128: i in dom IT ; :: thesis: for j being Nat st j in dom IT & i < j holds
ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. j & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

defpred S3[ Nat] means ( $1 in dom IT & i < $1 implies ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. $1 & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) ) );
A129: for n being Nat st S3[n] holds
S3[n + 1]
proof
let n be Nat; :: thesis: ( S3[n] implies S3[n + 1] )
assume that
A130: S3[n] and
A131: n + 1 in dom IT ; :: thesis: ( not i < n + 1 or ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) ) )

A132: IT /. (n + 1) = IT . (n + 1) by A131, PARTFUN1:def 6;
assume A133: i < n + 1 ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

then A134: i <= n by NAT_1:13;
per cases ( n = 0 or n in dom IT ) by A131, TOPREALA:2;
suppose n = 0 ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

then i = 0 by A133, NAT_1:13;
hence ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) ) by A128, FINSEQ_3:24; :: thesis: verum
end;
suppose A135: n in dom IT ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

then A136: IT /. n in X by A104;
then A137: IT /. n is bounded_above by A9;
A138: IT /. n = IT . n by A135, PARTFUN1:def 6;
then IT /. n in rng IT by A135, FUNCT_1:def 3;
then A139: ( not IT /. n is empty & IT /. n is Subset of (Closed-Interval-TSpace (r,s)) ) by A89, A99;
then upper_bound (IT /. n) in [.r,s.] by A8, A137, Th2;
then A140: upper_bound (IT /. n) <= s by XXREAL_1:1;
A141: IT /. (n + 1) in X by A104, A131;
A142: 1 <= n by A135, FINSEQ_3:25;
A143: IT /. (n + 1) in rng IT by A131, A132, FUNCT_1:def 3;
then A144: IT /. (n + 1) is open connected Subset of (Closed-Interval-TSpace (r,s)) by A89, A99;
then A145: IT /. (n + 1) is interval Subset of REAL by Th43;
A146: n + 1 <= len IT by A131, FINSEQ_3:25;
then ( n is Element of NAT & n < card X ) by A96, NAT_1:13, ORDINAL1:def 12;
then consider S being Element of X such that
A147: S = IT . n and
A148: upper_bound S in IT . (n + 1) by A98, A142;
IT /. (n + 1) is bounded_below by A9, A144;
then A149: lower_bound (IT /. (n + 1)) <= upper_bound S by A132, A148, SEQ_4:def 2;
A150: IT /. (n + 1) is bounded_above by A9, A144;
then A151: upper_bound S <= upper_bound (IT /. (n + 1)) by A132, A148, SEQ_4:def 1;
A152: not IT /. (n + 1) is empty by A89, A99, A143;
then upper_bound (IT /. (n + 1)) in [.r,s.] by A8, A144, A150, Th2;
then A153: upper_bound (IT /. (n + 1)) <= s by XXREAL_1:1;
per cases ( i < n or i = n ) by A134, XXREAL_0:1;
suppose i < n ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

then consider y being Point of (Closed-Interval-TSpace (r,s)) such that
A154: y in IT /. n and
A155: for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y by A130, A135;
A156: y <= upper_bound (IT /. n) by A137, A154, SEQ_4:def 1;
per cases ( upper_bound S < upper_bound (IT /. (n + 1)) or upper_bound S = upper_bound (IT /. (n + 1)) ) by A151, XXREAL_0:1;
suppose A157: upper_bound S < upper_bound (IT /. (n + 1)) ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

set y1 = ((upper_bound S) + (upper_bound (IT /. (n + 1)))) / 2;
A158: upper_bound S < ((upper_bound S) + (upper_bound (IT /. (n + 1)))) / 2 by A157, XREAL_1:226;
upper_bound S in [.r,s.] by A8, A138, A137, A139, A147, Th2;
then r <= upper_bound S by XXREAL_1:1;
then A159: r <= ((upper_bound S) + (upper_bound (IT /. (n + 1)))) / 2 by A158, XXREAL_0:2;
((upper_bound S) + (upper_bound (IT /. (n + 1)))) / 2 < upper_bound (IT /. (n + 1)) by A157, XREAL_1:226;
then ((upper_bound S) + (upper_bound (IT /. (n + 1)))) / 2 < s by A153, XXREAL_0:2;
then reconsider y1 = ((upper_bound S) + (upper_bound (IT /. (n + 1)))) / 2 as Point of (Closed-Interval-TSpace (r,s)) by A8, A159, XXREAL_1:1;
take y1 ; :: thesis: ( y1 in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y1 ) )

lower_bound (IT /. (n + 1)) < y1 by A149, A158, XXREAL_0:2;
hence y1 in IT /. (n + 1) by A145, A152, A157, Th30, XREAL_1:226; :: thesis: for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y1

let x be Point of (Closed-Interval-TSpace (r,s)); :: thesis: ( x in IT /. i implies x < y1 )
assume x in IT /. i ; :: thesis: x < y1
then x < upper_bound (IT /. n) by A155, A156, XXREAL_0:2;
hence x < y1 by A138, A147, A158, XXREAL_0:2; :: thesis: verum
end;
suppose A160: upper_bound S = upper_bound (IT /. (n + 1)) ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

reconsider y1 = s as Point of (Closed-Interval-TSpace (r,s)) by A4, A8, XXREAL_1:1;
take y1 ; :: thesis: ( y1 in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y1 ) )

IT /. (n + 1) = PRAWY by A26, A82, A132, A148, A141, A160;
hence y1 in IT /. (n + 1) by A70, A72, XXREAL_1:2; :: thesis: for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y1

let x be Point of (Closed-Interval-TSpace (r,s)); :: thesis: ( x in IT /. i implies x < y1 )
assume x in IT /. i ; :: thesis: x < y1
then x < upper_bound (IT /. n) by A155, A156, XXREAL_0:2;
hence x < y1 by A140, XXREAL_0:2; :: thesis: verum
end;
end;
end;
suppose A161: i = n ; :: thesis: ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) )

reconsider y1 = upper_bound (IT /. n) as Element of (Closed-Interval-TSpace (r,s)) by A8, A137, A139, Th2;
take y1 ; :: thesis: ( y1 in IT /. (n + 1) & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y1 ) )

thus y1 in IT /. (n + 1) by A132, A135, A147, A148, PARTFUN1:def 6; :: thesis: for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y1

let x be Point of (Closed-Interval-TSpace (r,s)); :: thesis: ( x in IT /. i implies x < y1 )
assume A162: x in IT /. i ; :: thesis: x < y1
A163: now :: thesis: not x = upper_bound (IT /. n)
set IT1 = IT | (Seg n);
A164: rng (IT | (Seg n)) c= rng IT by RELAT_1:70;
rng (IT | (Seg n)) c= bool the carrier of (Closed-Interval-TSpace (r,s))
proof
let A be object ; :: according to TARSKI:def 3 :: thesis: ( not A in rng (IT | (Seg n)) or A in bool the carrier of (Closed-Interval-TSpace (r,s)) )
assume A in rng (IT | (Seg n)) ; :: thesis: A in bool the carrier of (Closed-Interval-TSpace (r,s))
then A in rng IT by A164;
then A in X by A99;
hence A in bool the carrier of (Closed-Interval-TSpace (r,s)) ; :: thesis: verum
end;
then reconsider FI = rng (IT | (Seg n)) as Subset-Family of (Closed-Interval-TSpace (r,s)) ;
assume x = upper_bound (IT /. n) ; :: thesis: contradiction
then A165: IT /. n = PRAWY by A26, A82, A136, A161, A162;
A166: now :: thesis: not FI <> X
union FI = the carrier of (Closed-Interval-TSpace (r,s))
proof
thus union FI c= the carrier of (Closed-Interval-TSpace (r,s)) ; :: according to XBOOLE_0:def 10 :: thesis: the carrier of (Closed-Interval-TSpace (r,s)) c= union FI
let l be object ; :: according to TARSKI:def 3 :: thesis: ( not l in the carrier of (Closed-Interval-TSpace (r,s)) or l in union FI )
assume l in the carrier of (Closed-Interval-TSpace (r,s)) ; :: thesis: l in union FI
then reconsider l = l as Point of (Closed-Interval-TSpace (r,s)) ;
end;
then A173: FI is Cover of (Closed-Interval-TSpace (r,s)) by SETFAM_1:def 11;
assume A174: FI <> X ; :: thesis: contradiction
A175: FI c= X by A99, A164;
then FI c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A26;
then A176: FI in { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
by A173;
then [FI,M] in RelIncl { C where C is Subset-Family of (Closed-Interval-TSpace (r,s)) : ( C is Cover of (Closed-Interval-TSpace (r,s)) & C c= G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
)
}
by A21, A23, A24, A175, WELLORD2:def 1;
hence contradiction by A21, A22, A24, A174, A176; :: thesis: verum
end;
Seg n c= dom IT
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in Seg n or x in dom IT )
A177: n + 0 <= n + 1 by XREAL_1:6;
assume A178: x in Seg n ; :: thesis: x in dom IT
then reconsider x = x as Nat ;
x <= n by A178, FINSEQ_1:1;
then x <= n + 1 by A177, XXREAL_0:2;
then A179: x <= len IT by A146, XXREAL_0:2;
1 <= x by A178, FINSEQ_1:1;
hence x in dom IT by A179, FINSEQ_3:25; :: thesis: verum
end;
then dom (IT | (Seg n)) = Seg n by RELAT_1:62;
then ( card (rng (IT | (Seg n))) <= card (dom (IT | (Seg n))) & card (dom (IT | (Seg n))) = n ) by CARD_2:47, FINSEQ_1:57;
then n + 1 <= n + 0 by A96, A146, A166, XXREAL_0:2;
hence contradiction by XREAL_1:6; :: thesis: verum
end;
x <= upper_bound (IT /. n) by A137, A161, A162, SEQ_4:def 1;
hence x < y1 by A163, XXREAL_0:1; :: thesis: verum
end;
end;
end;
end;
end;
A180: S3[ 0 ] ;
for n being Nat holds S3[n] from NAT_1:sch 2(A180, A129);
hence for j being Nat st j in dom IT & i < j holds
ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. j & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) ) ; :: thesis: verum
end;
A181: IT is one-to-one
proof
let i, j be object ; :: according to FUNCT_1:def 4 :: thesis: ( not i in dom IT or not j in dom IT or not IT . i = IT . j or i = j )
assume that
A182: ( i in dom IT & j in dom IT ) and
A183: IT . i = IT . j ; :: thesis: i = j
A184: ( IT /. i = IT . i & IT /. j = IT . j ) by A182, PARTFUN1:def 6;
assume A185: i <> j ; :: thesis: contradiction
reconsider i = i, j = j as Nat by A182;
per cases ( i < j or j < i ) by A185, XXREAL_0:1;
suppose i < j ; :: thesis: contradiction
then ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. j & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. i holds
x < y ) ) by A127, A182;
hence contradiction by A183, A184; :: thesis: verum
end;
suppose j < i ; :: thesis: contradiction
then ex y being Point of (Closed-Interval-TSpace (r,s)) st
( y in IT /. i & ( for x being Point of (Closed-Interval-TSpace (r,s)) st x in IT /. j holds
x < y ) ) by A127, A182;
hence contradiction by A183, A184; :: thesis: verum
end;
end;
end;
A186: for i, j being Nat st i in dom IT & j in dom IT & i <> j holds
IT /. i <> IT /. j
proof
let i, j be Nat; :: thesis: ( i in dom IT & j in dom IT & i <> j implies IT /. i <> IT /. j )
assume that
A187: ( i in dom IT & j in dom IT ) and
A188: i <> j ; :: thesis: IT /. i <> IT /. j
( IT /. i = IT . i & IT /. j = IT . j ) by A187, PARTFUN1:def 6;
hence IT /. i <> IT /. j by A181, A187, A188; :: thesis: verum
end;
A189: for A being Subset of (Closed-Interval-TSpace (r,s)) st s in A & A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
holds
A = PRAWY
proof
let A be Subset of (Closed-Interval-TSpace (r,s)); :: thesis: ( s in A & A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
implies A = PRAWY )

assume that
A190: s in A and
A191: A in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
; :: thesis: A = PRAWY
A192: ( A in F & A is open ) by A2, A15, A191;
A193: now :: thesis: ( ( for a being Real holds
( not r < a or not a <= s or not A = [.r,a.[ ) ) & ( for a, b being Real holds
( not r <= a or not a < b or not b <= s or not A = ].a,b.[ ) ) )
assume A194: ( ex a being Real st
( r < a & a <= s & A = [.r,a.[ ) or ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) ) ; :: thesis: contradiction
per cases ( ex a being Real st
( r < a & a <= s & A = [.r,a.[ ) or ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) )
by A194;
suppose ex a being Real st
( r < a & a <= s & A = [.r,a.[ ) ; :: thesis: contradiction
end;
suppose ex a, b being Real st
( r <= a & a < b & b <= s & A = ].a,b.[ ) ; :: thesis: contradiction
end;
end;
end;
A is connected by A3, A15, A191;
then consider ak being Real such that
r <= ak and
A195: ak < s and
A196: A = ].ak,s.] by A4, A7, A190, A192, A193, Th44;
A197: A c= PRAWY
proof
lower_bound A = ak by A195, A196, Th6;
then ak in RM by A191, A196;
then A198: pP <= ak by XXREAL_2:def 7;
let a be object ; :: according to TARSKI:def 3 :: thesis: ( not a in A or a in PRAWY )
assume A199: a in A ; :: thesis: a in PRAWY
then a in [.r,s.] by A8;
then reconsider a = a as Real ;
ak < a by A196, A199, XXREAL_1:2;
then A200: pP < a by A198, XXREAL_0:2;
a <= s by A196, A199, XXREAL_1:2;
hence a in PRAWY by A200, XXREAL_1:2; :: thesis: verum
end;
assume A <> PRAWY ; :: thesis: contradiction
then A c< PRAWY by A197;
then A in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A68, A72, A191;
hence contradiction by A191, XBOOLE_0:def 5; :: thesis: verum
end;
take IT ; :: thesis: ( rng IT c= F & union (rng IT) = [.r,s.] & ( for n being Nat st 1 <= n holds
( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( lower_bound (IT /. n) <= lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) & ( n + 2 <= len IT implies upper_bound (IT /. n) <= lower_bound (IT /. (n + 2)) ) ) ) & ( [.r,s.] in F implies IT = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) ) ) )

thus rng IT c= F by A88, A99; :: thesis: ( union (rng IT) = [.r,s.] & ( for n being Nat st 1 <= n holds
( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( lower_bound (IT /. n) <= lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) & ( n + 2 <= len IT implies upper_bound (IT /. n) <= lower_bound (IT /. (n + 2)) ) ) ) & ( [.r,s.] in F implies IT = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) ) ) )

dom IT = Seg (len IT) by FINSEQ_1:def 3;
then A201: card (dom IT) = card X by A96, FINSEQ_1:57;
reconsider IT1 = IT as Function of (dom IT),X by A99, FUNCT_2:2;
IT1 is onto by A201, A181, FINSEQ_4:63;
then A202: rng IT = X ;
hence union (rng IT) = [.r,s.] by A8, A27; :: thesis: ( ( for n being Nat st 1 <= n holds
( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( lower_bound (IT /. n) <= lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) & ( n + 2 <= len IT implies upper_bound (IT /. n) <= lower_bound (IT /. (n + 2)) ) ) ) & ( [.r,s.] in F implies IT = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) ) ) )

ex Z being set st
( s in Z & Z in C ) by A28, A8, A27, TARSKI:def 4;
then PRAWY in X by A26, A189;
then consider i being object such that
A203: i in dom IT and
A204: IT . i = PRAWY by A202, FUNCT_1:def 3;
reconsider i = i as Element of NAT by A203;
A205: i <= len IT by A203, FINSEQ_3:25;
A206: IT /. i = IT . i by A203, PARTFUN1:def 6;
A207: 1 <= i by A203, FINSEQ_3:25;
A208: now :: thesis: not i <> len IT
assume i <> len IT ; :: thesis: contradiction
then A209: i < len IT by A205, XXREAL_0:1;
then A210: ex S being Element of X st
( S = IT . i & upper_bound S in IT . (i + 1) ) by A96, A98, A207;
( 0 + 1 <= i + 1 & i + 1 <= len IT ) by A209, NAT_1:13;
then A211: i + 1 in dom IT by FINSEQ_3:25;
then ( IT /. (i + 1) = IT . (i + 1) & IT /. (i + 1) in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
) by A105, PARTFUN1:def 6;
then i + 0 = i + 1 by A71, A189, A186, A203, A204, A206, A210, A211;
hence contradiction ; :: thesis: verum
end;
A212: len IT in dom IT by A100, FINSEQ_5:6;
A213: for n being Nat st 1 < n & n < len IT holds
ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )
proof
let n be Nat; :: thesis: ( 1 < n & n < len IT implies ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) )

assume that
A214: 1 < n and
A215: n < len IT ; :: thesis: ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )

A216: n in dom IT by A214, A215, FINSEQ_3:25;
then IT . n in rng IT by FUNCT_1:def 3;
then A217: IT /. n in rng IT by A216, PARTFUN1:def 6;
then A218: IT /. n in X by A99;
then A219: ( IT /. n in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
& IT /. n in F ) by A26, A88;
A220: IT /. n is open connected Subset of (Closed-Interval-TSpace (r,s)) by A89, A99, A217;
per cases ( ex a being Real st
( r < a & a <= s & IT /. n = [.r,a.[ ) or ex a being Real st
( r <= a & a < s & IT /. n = ].a,s.] ) or ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) )
by A4, A7, A45, A219, A220, Th44;
suppose ex a being Real st
( r < a & a <= s & IT /. n = [.r,a.[ ) ; :: thesis: ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )

then consider a being Real such that
A221: r < a and
a <= s and
A222: IT /. n = [.r,a.[ ;
r in [.r,a.[ by A221, XXREAL_1:3;
hence ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) by A26, A55, A97, A102, A103, A186, A214, A216, A218, A222; :: thesis: verum
end;
suppose ex a being Real st
( r <= a & a < s & IT /. n = ].a,s.] ) ; :: thesis: ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )

then consider a being Real such that
r <= a and
A223: a < s and
A224: IT /. n = ].a,s.] ;
( upper_bound ].a,s.] = s & s in ].a,s.] ) by A223, Th7, XXREAL_1:2;
hence ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) by A26, A82, A212, A186, A204, A206, A208, A215, A216, A218, A224; :: thesis: verum
end;
suppose ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) ; :: thesis: ex a, b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )

then consider a, b being Real such that
A225: ( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) ;
reconsider a = a, b = b as Real ;
take a ; :: thesis: ex b being Real st
( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )

take b ; :: thesis: ( r <= a & a < b & b <= s & IT /. n = ].a,b.[ )
thus ( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) by A225; :: thesis: verum
end;
end;
end;
A226: now :: thesis: for n being Nat st 1 <= n holds
( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( not lower_bound (IT /. n) > lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) )
let n be Nat; :: thesis: ( 1 <= n implies ( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( not lower_bound (IT /. n) > lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) ) )
assume A227: 1 <= n ; :: thesis: ( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( not lower_bound (IT /. n) > lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) )
reconsider m = n as Element of NAT by ORDINAL1:def 12;
hereby :: thesis: ( n + 1 <= len IT implies ( not lower_bound (IT /. n) > lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) )
assume n <= len IT ; :: thesis: not IT /. n is empty
then ( m in dom IT & IT /. n = IT . n ) by A227, FINSEQ_3:25, FINSEQ_4:15;
then IT /. n in rng IT by FUNCT_1:def 3;
then IT /. n in X by A99;
hence not IT /. n is empty by A45, A26; :: thesis: verum
end;
hereby :: thesis: verum
assume A228: n + 1 <= len IT ; :: thesis: ( not lower_bound (IT /. n) > lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) )
then A229: m < len IT by NAT_1:13;
then A230: IT /. n = IT . n by A227, FINSEQ_4:15;
A231: m in dom IT by A227, A229, FINSEQ_3:25;
then IT /. n in rng IT by A230, FUNCT_1:def 3;
then A232: IT /. n in X by A99;
then A233: IT /. n in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A26;
A234: IT /. n is non empty real-bounded interval Subset of REAL by A9, A45, A16, A26, A232;
A235: ex S being Element of X st
( S = IT . n & upper_bound S in IT . (n + 1) ) by A96, A98, A227, A229;
A236: 1 < m + 1 by A227, NAT_1:13;
then A237: IT /. (m + 1) = IT . (m + 1) by A228, FINSEQ_4:15;
A238: n + 1 in dom IT by A228, A236, FINSEQ_3:25;
then A239: IT /. (n + 1) in rng IT by A237, FUNCT_1:def 3;
then A240: IT /. (n + 1) in X by A99;
then A241: IT /. (n + 1) in G \ { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A26;
n + 0 < n + 1 by XREAL_1:6;
then A242: IT /. n <> IT /. (n + 1) by A186, A231, A238;
A243: IT /. (n + 1) is non empty real-bounded interval Subset of REAL by A9, A45, A16, A26, A240;
IT /. (n + 1) c= union X by A99, A239, ZFMISC_1:74;
then IT /. (n + 1) c= [.r,s.] by A8, A27;
then A244: IT /. (n + 1) is bounded_above by XXREAL_2:43;
then A245: upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) by A235, A230, A237, SEQ_4:def 1;
hereby :: thesis: ( upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) )
assume A246: lower_bound (IT /. n) > lower_bound (IT /. (n + 1)) ; :: thesis: contradiction
( upper_bound (IT /. (n + 1)) = upper_bound (IT /. n) & upper_bound (IT /. n) in IT /. n implies upper_bound (IT /. (n + 1)) in IT /. (n + 1) ) by A26, A82, A212, A186, A204, A206, A208, A229, A231, A232;
then IT /. n c= IT /. (n + 1) by A234, A243, A245, A246, Th31;
then IT /. n c< IT /. (n + 1) by A242;
then IT /. n in { X where X is Subset of (Closed-Interval-TSpace (r,s)) : ( X in G & ex Y being Subset of (Closed-Interval-TSpace (r,s)) st
( Y in G & X c< Y ) )
}
by A14, A233, A241;
hence contradiction by A26, A232, XBOOLE_0:def 5; :: thesis: verum
end;
thus upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) by A235, A230, A237, A244, SEQ_4:def 1; :: thesis: lower_bound (IT /. (n + 1)) < upper_bound (IT /. n)
per cases ( n + 1 = len IT or n + 1 < len IT ) by A228, XXREAL_0:1;
suppose n + 1 < len IT ; :: thesis: lower_bound (IT /. (n + 1)) < upper_bound (IT /. n)
then consider a1, b1 being Real such that
r <= a1 and
A248: a1 < b1 and
b1 <= s and
A249: IT /. (n + 1) = ].a1,b1.[ by A213, A236;
a1 < upper_bound (IT /. n) by A235, A230, A237, A249, XXREAL_1:4;
hence lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) by A248, A249, TOPREAL6:17; :: thesis: verum
end;
end;
end;
end;
hereby :: thesis: ( ( [.r,s.] in F implies IT = <*[.r,s.]*> ) & ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) ) ) )
let n be Nat; :: thesis: ( 1 <= n implies ( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( lower_bound (IT /. n) <= lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) & ( n + 2 <= len IT implies not upper_bound (IT /. n) > lower_bound (IT /. (n + 2)) ) ) )
assume A250: 1 <= n ; :: thesis: ( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( lower_bound (IT /. n) <= lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) & ( n + 2 <= len IT implies not upper_bound (IT /. n) > lower_bound (IT /. (n + 2)) ) )
thus A251: ( ( n <= len IT implies not IT /. n is empty ) & ( n + 1 <= len IT implies ( lower_bound (IT /. n) <= lower_bound (IT /. (n + 1)) & upper_bound (IT /. n) <= upper_bound (IT /. (n + 1)) & lower_bound (IT /. (n + 1)) < upper_bound (IT /. n) ) ) ) by A226, A250; :: thesis: ( n + 2 <= len IT implies not upper_bound (IT /. n) > lower_bound (IT /. (n + 2)) )
reconsider m = n as Nat ;
A252: n + 0 < n + 1 by XREAL_1:6;
then A253: 1 < m + 1 by A250, XXREAL_0:2;
assume A254: n + 2 <= len IT ; :: thesis: not upper_bound (IT /. n) > lower_bound (IT /. (n + 2))
then A255: (n + 1) + 1 <= len IT ;
then A256: m + 1 < len IT by NAT_1:13;
then A257: n + 1 in dom IT by A253, FINSEQ_3:25;
then IT /. (n + 1) = IT . (n + 1) by PARTFUN1:def 6;
then IT /. (n + 1) in rng IT by A257, FUNCT_1:def 3;
then A258: IT /. (n + 1) in X by A99;
0 + 1 <= n + 1 by XREAL_1:6;
then A259: upper_bound (IT /. (n + 1)) <= upper_bound (IT /. ((n + 1) + 1)) by A226, A254;
assume A260: upper_bound (IT /. n) > lower_bound (IT /. (n + 2)) ; :: thesis: contradiction
consider a1, b1 being Real such that
r <= a1 and
A261: a1 < b1 and
b1 <= s and
A262: IT /. (n + 1) = ].a1,b1.[ by A213, A253, A256;
A263: lower_bound ].a1,b1.[ = a1 by A261, TOPREAL6:17;
A264: upper_bound ].a1,b1.[ = b1 by A261, TOPREAL6:17;
A265: IT /. (n + 1) c= (IT /. n) \/ (IT /. (n + 2))
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in IT /. (n + 1) or x in (IT /. n) \/ (IT /. (n + 2)) )
assume A266: x in IT /. (n + 1) ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
then reconsider x = x as Real ;
A267: a1 < x by A262, A266, XXREAL_1:4;
A268: x < b1 by A262, A266, XXREAL_1:4;
per cases ( x < upper_bound (IT /. n) or x >= upper_bound (IT /. n) ) ;
suppose A269: x < upper_bound (IT /. n) ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
per cases ( n = 1 or n <> 1 ) ;
suppose A270: n = 1 ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
then lower_bound (IT /. n) <= x by A8, A53, A97, A103, A258, A266, XXREAL_1:1;
then x in IT /. n by A42, A54, A53, A97, A103, A269, A270, XXREAL_1:3;
hence x in (IT /. n) \/ (IT /. (n + 2)) by XBOOLE_0:def 3; :: thesis: verum
end;
suppose A271: n <> 1 ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
n + 0 < n + 2 by XREAL_1:6;
then A272: n < len IT by A254, XXREAL_0:2;
A273: lower_bound (IT /. n) < x by A251, A255, A262, A263, A267, NAT_1:13, XXREAL_0:2;
1 < n by A250, A271, XXREAL_0:1;
then consider a, b being Real such that
r <= a and
A274: a < b and
b <= s and
A275: IT /. n = ].a,b.[ by A213, A272;
( lower_bound (IT /. n) = a & upper_bound (IT /. n) = b ) by A274, A275, TOPREAL6:17;
then x in IT /. n by A269, A275, A273, XXREAL_1:4;
hence x in (IT /. n) \/ (IT /. (n + 2)) by XBOOLE_0:def 3; :: thesis: verum
end;
end;
end;
suppose x >= upper_bound (IT /. n) ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
then A276: x > lower_bound (IT /. (n + 2)) by A260, XXREAL_0:2;
per cases ( len IT = n + 2 or len IT <> n + 2 ) ;
suppose A277: len IT = n + 2 ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
x <= s by A8, A258, A266, XXREAL_1:1;
then x in IT /. (n + 2) by A69, A204, A206, A208, A276, A277, XXREAL_1:2;
hence x in (IT /. n) \/ (IT /. (n + 2)) by XBOOLE_0:def 3; :: thesis: verum
end;
suppose A278: len IT <> n + 2 ; :: thesis: x in (IT /. n) \/ (IT /. (n + 2))
n + 1 < n + 2 by XREAL_1:6;
then A279: 1 < n + 2 by A253, XXREAL_0:2;
(n + 1) + 1 < len IT by A254, A278, XXREAL_0:1;
then consider a2, b2 being Real such that
r <= a2 and
A280: a2 < b2 and
b2 <= s and
A281: IT /. (n + 2) = ].a2,b2.[ by A213, A279;
upper_bound ].a2,b2.[ = b2 by A280, TOPREAL6:17;
then A282: x < b2 by A259, A262, A264, A268, A281, XXREAL_0:2;
lower_bound ].a2,b2.[ = a2 by A280, TOPREAL6:17;
then x in IT /. (n + 2) by A276, A281, A282, XXREAL_1:4;
hence x in (IT /. n) \/ (IT /. (n + 2)) by XBOOLE_0:def 3; :: thesis: verum
end;
end;
end;
end;
end;
m + 1 <= m + 2 by XREAL_1:6;
then 1 <= m + 2 by A253, XXREAL_0:2;
then A283: m + 2 in dom IT by A254, FINSEQ_3:25;
then IT /. (n + 2) = IT . (n + 2) by PARTFUN1:def 6;
then IT /. (n + 2) in rng IT by A283, FUNCT_1:def 3;
then A284: IT /. (n + 2) in X by A99;
m <= len IT by A252, A256, XXREAL_0:2;
then A285: n in dom IT by A250, FINSEQ_3:25;
then IT /. n = IT . n by PARTFUN1:def 6;
then IT /. n in rng IT by A285, FUNCT_1:def 3;
then A286: IT /. n in X by A99;
n + 1 < n + 2 by XREAL_1:6;
then A287: IT /. (n + 2) <> IT /. (n + 1) by A186, A257, A283;
n + 0 < n + 1 by XREAL_1:6;
then IT /. n <> IT /. (n + 1) by A186, A285, A257;
hence contradiction by A22, A24, A286, A258, A284, A287, A265, Th48; :: thesis: verum
end;
thus ( [.r,s.] in F implies IT = <*[.r,s.]*> ) by A7; :: thesis: ( not [.r,s.] in F implies ( ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) ) )

assume not [.r,s.] in F ; :: thesis: ( ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) & ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) )

thus ex p being Real st
( r < p & p <= s & IT . 1 = [.r,p.[ ) :: thesis: ( ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) & ( for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) ) )
proof
take kL ; :: thesis: ( r < kL & kL <= s & IT . 1 = [.r,kL.[ )
thus r < kL by A42, A52, Th5; :: thesis: ( kL <= s & IT . 1 = [.r,kL.[ )
upper_bound LEWY <= upper_bound [.r,s.] by A8, SEQ_4:48;
hence kL <= s by A4, A51, JORDAN5A:19; :: thesis: IT . 1 = [.r,kL.[
thus IT . 1 = [.r,kL.[ by A97; :: thesis: verum
end;
thus ex p being Real st
( r <= p & p < s & IT . (len IT) = ].p,s.] ) :: thesis: for n being Nat st 1 < n & n < len IT holds
ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ )
proof
take pP ; :: thesis: ( r <= pP & pP < s & IT . (len IT) = ].pP,s.] )
lower_bound [.r,s.] <= lower_bound PRAWY by A8, SEQ_4:47;
hence r <= pP by A4, A69, JORDAN5A:19; :: thesis: ( pP < s & IT . (len IT) = ].pP,s.] )
thus pP < s by A67, A70, Th6; :: thesis: IT . (len IT) = ].pP,s.]
thus IT . (len IT) = ].pP,s.] by A204, A208; :: thesis: verum
end;
let n be Nat; :: thesis: ( 1 < n & n < len IT implies ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ ) )

assume A288: ( 1 < n & n < len IT ) ; :: thesis: ex p, q being Real st
( r <= p & p < q & q <= s & IT . n = ].p,q.[ )

consider a, b being Real such that
A289: ( r <= a & a < b & b <= s & IT /. n = ].a,b.[ ) by A213, A288;
take a ; :: thesis: ex q being Real st
( r <= a & a < q & q <= s & IT . n = ].a,q.[ )

take b ; :: thesis: ( r <= a & a < b & b <= s & IT . n = ].a,b.[ )
thus ( r <= a & a < b & b <= s & IT . n = ].a,b.[ ) by A288, A289, FINSEQ_4:15; :: thesis: verum
end;
end;