let j, i, k be Element of NAT ; :: thesis: for f being FinSequence of the carrier of (TOP-REAL 2)
for G being Go-board st f is_sequence_on G & LSeg (G * j,i),(G * k,i) meets L~ f & [j,i] in Indices G & [k,i] in Indices G & j <= k holds
ex n being Element of NAT st
( j <= n & n <= k & (G * n,i) `1 = lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) )

let f be FinSequence of the carrier of (TOP-REAL 2); :: thesis: for G being Go-board st f is_sequence_on G & LSeg (G * j,i),(G * k,i) meets L~ f & [j,i] in Indices G & [k,i] in Indices G & j <= k holds
ex n being Element of NAT st
( j <= n & n <= k & (G * n,i) `1 = lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) )

let G be Go-board; :: thesis: ( f is_sequence_on G & LSeg (G * j,i),(G * k,i) meets L~ f & [j,i] in Indices G & [k,i] in Indices G & j <= k implies ex n being Element of NAT st
( j <= n & n <= k & (G * n,i) `1 = lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) ) )

set X = (LSeg (G * j,i),(G * k,i)) /\ (L~ f);
assume that
A1: f is_sequence_on G and
A2: LSeg (G * j,i),(G * k,i) meets L~ f and
A3: [j,i] in Indices G and
A4: [k,i] in Indices G and
A5: j <= k ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & (G * n,i) `1 = lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) )

A6: 1 <= j by A3, MATRIX_1:39;
ex x being set st
( x in LSeg (G * j,i),(G * k,i) & x in L~ f ) by A2, XBOOLE_0:3;
then reconsider X1 = (LSeg (G * j,i),(G * k,i)) /\ (L~ f) as non empty compact Subset of (TOP-REAL 2) by XBOOLE_0:def 4;
consider p being set such that
A7: p in W-most X1 by XBOOLE_0:def 1;
reconsider p = p as Point of (TOP-REAL 2) by A7;
A8: p in (LSeg (G * j,i),(G * k,i)) /\ (L~ f) by A7, XBOOLE_0:def 4;
then A9: p in LSeg (G * j,i),(G * k,i) by XBOOLE_0:def 4;
proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f)) = (proj1 | ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f)) by RELAT_1:162;
then A10: lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) = lower_bound ((proj1 | ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) .: ([#] ((TOP-REAL 2) | ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))))) by PRE_TOPC:def 10
.= W-bound ((LSeg (G * j,i),(G * k,i)) /\ (L~ f)) ;
A11: ( 1 <= k & 1 <= i ) by A4, MATRIX_1:39;
A12: p `1 = (W-min ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) `1 by A7, PSCOMP_1:88
.= lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) by A10, EUCLID:56 ;
A13: i <= width G by A3, MATRIX_1:39;
A14: ( 1 <= i & i <= width G ) by A3, MATRIX_1:39;
A15: k <= len G by A4, MATRIX_1:39;
then A16: (G * j,i) `1 <= (G * k,i) `1 by A5, A6, A14, SPRECT_3:25;
then A17: (G * j,i) `1 <= p `1 by A9, TOPREAL1:9;
A18: p `1 <= (G * k,i) `1 by A9, A16, TOPREAL1:9;
A19: j <= len G by A3, MATRIX_1:39;
then A20: (G * j,i) `2 = (G * 1,i) `2 by A6, A14, GOBOARD5:2
.= (G * k,i) `2 by A15, A11, A13, GOBOARD5:2 ;
p in L~ f by A8, XBOOLE_0:def 4;
then p in union { (LSeg f,k1) where k1 is Element of NAT : ( 1 <= k1 & k1 + 1 <= len f ) } by TOPREAL1:def 6;
then consider Y being set such that
A21: p in Y and
A22: Y in { (LSeg f,k1) where k1 is Element of NAT : ( 1 <= k1 & k1 + 1 <= len f ) } by TARSKI:def 4;
consider i1 being Element of NAT such that
A23: Y = LSeg f,i1 and
A24: 1 <= i1 and
A25: i1 + 1 <= len f by A22;
A26: p in LSeg (f /. i1),(f /. (i1 + 1)) by A21, A23, A24, A25, TOPREAL1:def 5;
1 < i1 + 1 by A24, NAT_1:13;
then i1 + 1 in Seg (len f) by A25, FINSEQ_1:3;
then A27: i1 + 1 in dom f by FINSEQ_1:def 3;
then consider jo, io being Element of NAT such that
A28: [jo,io] in Indices G and
A29: f /. (i1 + 1) = G * jo,io by A1, GOBOARD1:def 11;
A30: 1 <= jo by A28, MATRIX_1:39;
i1 <= len f by A25, NAT_1:13;
then i1 in Seg (len f) by A24, FINSEQ_1:3;
then A31: i1 in dom f by FINSEQ_1:def 3;
then consider j0, i0 being Element of NAT such that
A32: [j0,i0] in Indices G and
A33: f /. i1 = G * j0,i0 by A1, GOBOARD1:def 11;
A34: 1 <= j0 by A32, MATRIX_1:39;
A35: ( 1 <= i0 & i0 <= width G ) by A32, MATRIX_1:39;
A36: j0 <= len G by A32, MATRIX_1:39;
A37: ( 1 <= io & io <= width G ) by A28, MATRIX_1:39;
A38: jo <= len G by A28, MATRIX_1:39;
A39: f is special by A1, A31, JORDAN8:7, RELAT_1:60;
ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )
proof
per cases ( (f /. i1) `2 = (f /. (i1 + 1)) `2 or (f /. i1) `1 = (f /. (i1 + 1)) `1 ) by A24, A25, A39, TOPREAL1:def 7;
suppose A40: (f /. i1) `2 = (f /. (i1 + 1)) `2 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

(G * j,io) `2 = (G * 1,io) `2 by A6, A19, A37, GOBOARD5:2
.= (G * jo,io) `2 by A30, A38, A37, GOBOARD5:2
.= p `2 by A26, A29, A40, GOBOARD7:6
.= (G * j,i) `2 by A20, A9, GOBOARD7:6 ;
then ( io <= i & io >= i ) by A6, A19, A14, A37, GOBOARD5:5;
then A42: i = io by XXREAL_0:1;
(G * j,i0) `2 = (G * 1,i0) `2 by A6, A19, A35, GOBOARD5:2
.= (G * j0,i0) `2 by A34, A36, A35, GOBOARD5:2
.= p `2 by A26, A33, A40, GOBOARD7:6
.= (G * j,i) `2 by A20, A9, GOBOARD7:6 ;
then ( i0 <= i & i0 >= i ) by A6, A19, A14, A35, GOBOARD5:5;
then A44: i = i0 by XXREAL_0:1;
thus ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) :: thesis: verum
proof
per cases ( (f /. i1) `1 <= (f /. (i1 + 1)) `1 or (f /. i1) `1 > (f /. (i1 + 1)) `1 ) ;
suppose A45: (f /. i1) `1 <= (f /. (i1 + 1)) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

thus ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) :: thesis: verum
proof
per cases ( f /. i1 in LSeg (G * j,i),(G * k,i) or not f /. i1 in LSeg (G * j,i),(G * k,i) ) ;
suppose A46: f /. i1 in LSeg (G * j,i),(G * k,i) ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

1 + 1 <= i1 + 1 by A24, XREAL_1:8;
then f /. i1 in L~ f by A25, A31, GOBOARD1:16, XXREAL_0:2;
then f /. i1 in X1 by A46, XBOOLE_0:def 4;
then A47: p `1 <= (f /. i1) `1 by A10, A12, PSCOMP_1:71;
take n = j0; :: thesis: ( j <= n & n <= k & G * n,i = p )
A48: p in LSeg (G * j,i),(G * k,i) by A8, XBOOLE_0:def 4;
p `1 >= (f /. i1) `1 by A26, A45, TOPREAL1:9;
then p `1 = (f /. i1) `1 by A47, XXREAL_0:1;
then A49: p `1 = (G * j0,1) `1 by A33, A34, A36, A35, GOBOARD5:3
.= (G * n,i) `1 by A14, A34, A36, GOBOARD5:3 ;
A50: (G * j,i) `1 <= (G * k,i) `1 by A5, A6, A14, A15, SPRECT_3:25;
then (G * j,i) `1 <= (G * n,i) `1 by A48, A49, TOPREAL1:9;
hence j <= n by A19, A14, A34, GOBOARD5:4; :: thesis: ( n <= k & G * n,i = p )
(G * n,i) `1 <= (G * k,i) `1 by A48, A49, A50, TOPREAL1:9;
hence n <= k by A11, A13, A36, GOBOARD5:4; :: thesis: G * n,i = p
p `2 = (G * j,i) `2 by A20, A48, GOBOARD7:6
.= (G * 1,i) `2 by A6, A19, A14, GOBOARD5:2
.= (G * n,i) `2 by A14, A34, A36, GOBOARD5:2 ;
hence G * n,i = p by A49, TOPREAL3:11; :: thesis: verum
end;
suppose A51: not f /. i1 in LSeg (G * j,i),(G * k,i) ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

A52: (f /. i1) `2 = p `2 by A26, A40, GOBOARD7:6
.= (G * j,i) `2 by A20, A9, GOBOARD7:6 ;
thus ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) :: thesis: verum
proof
per cases ( (f /. i1) `1 < (G * j,i) `1 or (f /. i1) `1 > (G * k,i) `1 ) by A20, A51, A52, GOBOARD7:9;
suppose A53: (f /. i1) `1 < (G * j,i) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

p `1 <= (G * jo,io) `1 by A26, A29, A45, TOPREAL1:9;
then p `1 <= (G * jo,1) `1 by A30, A38, A37, GOBOARD5:3;
then p `1 <= (G * jo,i) `1 by A14, A30, A38, GOBOARD5:3;
then (G * j,i) `1 <= (G * jo,i) `1 by A17, XXREAL_0:2;
then A54: j <= jo by A19, A14, A30, GOBOARD5:4;
(abs (i0 - io)) + (abs (j0 - jo)) = 1 by A1, A31, A27, A32, A33, A28, A29, GOBOARD1:def 11;
then 0 + (abs (j0 - jo)) = 1 by A44, A42, ABSVALUE:7;
then A55: abs (- (j0 - jo)) = 1 by COMPLEX1:138;
j0 <= jo + 0 by A33, A29, A36, A35, A30, A44, A42, A45, GOBOARD5:4;
then j0 - jo <= 0 by XREAL_1:22;
then jo - j0 = 1 by A55, ABSVALUE:def 1;
then A56: j0 + 1 = jo + 0 ;
( (G * j0,i) `1 < (G * j,i) `1 & j0 <= j ) by A33, A6, A14, A36, A44, A53, GOBOARD5:4;
then j0 < j by XXREAL_0:1;
then jo <= j by A56, NAT_1:13;
then A57: j = jo by A54, XXREAL_0:1;
take n = jo; :: thesis: ( j <= n & n <= k & G * n,i = p )
A58: p `2 = (G * j,i) `2 by A20, A9, GOBOARD7:6
.= (G * 1,i) `2 by A6, A19, A14, GOBOARD5:2
.= (G * n,i) `2 by A14, A30, A38, GOBOARD5:2 ;
p `1 <= (G * jo,io) `1 by A26, A29, A45, TOPREAL1:9;
then p `1 <= (G * jo,1) `1 by A30, A38, A37, GOBOARD5:3;
then p `1 <= (G * jo,i) `1 by A14, A30, A38, GOBOARD5:3;
then p `1 = (G * j,i) `1 by A17, A57, XXREAL_0:1;
hence ( j <= n & n <= k & G * n,i = p ) by A5, A57, A58, TOPREAL3:11; :: thesis: verum
end;
suppose A59: (f /. i1) `1 > (G * k,i) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

p `1 >= (f /. i1) `1 by A26, A45, TOPREAL1:9;
hence ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) by A18, A59, XXREAL_0:2; :: thesis: verum
end;
end;
end;
end;
end;
end;
end;
suppose A60: (f /. i1) `1 > (f /. (i1 + 1)) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

thus ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) :: thesis: verum
proof
per cases ( f /. (i1 + 1) in LSeg (G * j,i),(G * k,i) or not f /. (i1 + 1) in LSeg (G * j,i),(G * k,i) ) ;
suppose A61: f /. (i1 + 1) in LSeg (G * j,i),(G * k,i) ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

1 + 1 <= i1 + 1 by A24, XREAL_1:8;
then f /. (i1 + 1) in L~ f by A25, A27, GOBOARD1:16, XXREAL_0:2;
then f /. (i1 + 1) in X1 by A61, XBOOLE_0:def 4;
then A62: p `1 <= (f /. (i1 + 1)) `1 by A10, A12, PSCOMP_1:71;
take n = jo; :: thesis: ( j <= n & n <= k & G * n,i = p )
A63: p in LSeg (G * j,i),(G * k,i) by A8, XBOOLE_0:def 4;
p `1 >= (f /. (i1 + 1)) `1 by A26, A60, TOPREAL1:9;
then p `1 = (f /. (i1 + 1)) `1 by A62, XXREAL_0:1;
then A64: p `1 = (G * jo,1) `1 by A29, A30, A38, A37, GOBOARD5:3
.= (G * n,i) `1 by A14, A30, A38, GOBOARD5:3 ;
A65: (G * j,i) `1 <= (G * k,i) `1 by A5, A6, A14, A15, SPRECT_3:25;
then (G * j,i) `1 <= (G * n,i) `1 by A63, A64, TOPREAL1:9;
hence j <= n by A19, A14, A30, GOBOARD5:4; :: thesis: ( n <= k & G * n,i = p )
(G * n,i) `1 <= (G * k,i) `1 by A63, A64, A65, TOPREAL1:9;
hence n <= k by A11, A13, A38, GOBOARD5:4; :: thesis: G * n,i = p
p `2 = (G * j,i) `2 by A20, A63, GOBOARD7:6
.= (G * 1,i) `2 by A6, A19, A14, GOBOARD5:2
.= (G * n,i) `2 by A14, A30, A38, GOBOARD5:2 ;
hence G * n,i = p by A64, TOPREAL3:11; :: thesis: verum
end;
suppose A66: not f /. (i1 + 1) in LSeg (G * j,i),(G * k,i) ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

A67: (f /. (i1 + 1)) `2 = p `2 by A26, A40, GOBOARD7:6
.= (G * j,i) `2 by A20, A9, GOBOARD7:6 ;
thus ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) :: thesis: verum
proof
per cases ( (f /. (i1 + 1)) `1 < (G * j,i) `1 or (f /. (i1 + 1)) `1 > (G * k,i) `1 ) by A20, A66, A67, GOBOARD7:9;
suppose A68: (f /. (i1 + 1)) `1 < (G * j,i) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

p `1 <= (G * j0,i0) `1 by A26, A33, A60, TOPREAL1:9;
then p `1 <= (G * j0,1) `1 by A34, A36, A35, GOBOARD5:3;
then p `1 <= (G * j0,i) `1 by A14, A34, A36, GOBOARD5:3;
then (G * j,i) `1 <= (G * j0,i) `1 by A17, XXREAL_0:2;
then A69: j <= j0 by A19, A14, A34, GOBOARD5:4;
jo <= j0 + 0 by A33, A29, A34, A35, A38, A44, A42, A60, GOBOARD5:4;
then jo - j0 <= 0 by XREAL_1:22;
then A70: - (jo - j0) >= - 0 ;
(abs (i0 - io)) + (abs (j0 - jo)) = 1 by A1, A31, A27, A32, A33, A28, A29, GOBOARD1:def 11;
then 0 + (abs (j0 - jo)) = 1 by A44, A42, ABSVALUE:7;
then j0 - jo = 1 by A70, ABSVALUE:def 1;
then A71: jo + 1 = j0 - 0 ;
( (G * jo,i) `1 < (G * j,i) `1 & jo <= j ) by A29, A6, A14, A38, A42, A68, GOBOARD5:4;
then jo < j by XXREAL_0:1;
then j0 <= j by A71, NAT_1:13;
then A72: j = j0 by A69, XXREAL_0:1;
take n = j0; :: thesis: ( j <= n & n <= k & G * n,i = p )
A73: p `2 = (G * j,i) `2 by A20, A9, GOBOARD7:6
.= (G * 1,i) `2 by A6, A19, A14, GOBOARD5:2
.= (G * n,i) `2 by A14, A34, A36, GOBOARD5:2 ;
p `1 <= (G * j0,i0) `1 by A26, A33, A60, TOPREAL1:9;
then p `1 <= (G * j0,1) `1 by A34, A36, A35, GOBOARD5:3;
then p `1 <= (G * j0,i) `1 by A14, A34, A36, GOBOARD5:3;
then p `1 = (G * j,i) `1 by A17, A72, XXREAL_0:1;
hence ( j <= n & n <= k & G * n,i = p ) by A5, A72, A73, TOPREAL3:11; :: thesis: verum
end;
suppose A74: (f /. (i1 + 1)) `1 > (G * k,i) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

p `1 >= (f /. (i1 + 1)) `1 by A26, A60, TOPREAL1:9;
hence ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p ) by A18, A74, XXREAL_0:2; :: thesis: verum
end;
end;
end;
end;
end;
end;
end;
end;
end;
end;
suppose A75: (f /. i1) `1 = (f /. (i1 + 1)) `1 ; :: thesis: ex n being Element of NAT st
( j <= n & n <= k & G * n,i = p )

take n = j0; :: thesis: ( j <= n & n <= k & G * n,i = p )
p `1 = (f /. i1) `1 by A26, A75, GOBOARD7:5;
then A76: p `1 = (G * j0,1) `1 by A33, A34, A36, A35, GOBOARD5:3
.= (G * n,i) `1 by A14, A34, A36, GOBOARD5:3 ;
A77: (G * j,i) `1 <= (G * k,i) `1 by A5, A6, A14, A15, SPRECT_3:25;
then (G * j,i) `1 <= (G * n,i) `1 by A9, A76, TOPREAL1:9;
hence j <= n by A19, A14, A34, GOBOARD5:4; :: thesis: ( n <= k & G * n,i = p )
(G * n,i) `1 <= (G * k,i) `1 by A9, A76, A77, TOPREAL1:9;
hence n <= k by A11, A13, A36, GOBOARD5:4; :: thesis: G * n,i = p
p `2 = (G * j,i) `2 by A20, A9, GOBOARD7:6
.= (G * 1,i) `2 by A6, A19, A14, GOBOARD5:2
.= (G * n,i) `2 by A14, A34, A36, GOBOARD5:2 ;
hence G * n,i = p by A76, TOPREAL3:11; :: thesis: verum
end;
end;
end;
hence ex n being Element of NAT st
( j <= n & n <= k & (G * n,i) `1 = lower_bound (proj1 .: ((LSeg (G * j,i),(G * k,i)) /\ (L~ f))) ) by A12; :: thesis: verum