let i, j be Element of NAT ; :: thesis: for G being Go-board
for p being Point of (TOP-REAL 2) st 1 <= i & i + 1 <= len G & 1 <= j & j + 1 <= width G & p in Values G & p in cell G,i,j holds
p is_extremal_in cell G,i,j

let G be Go-board; :: thesis: for p being Point of (TOP-REAL 2) st 1 <= i & i + 1 <= len G & 1 <= j & j + 1 <= width G & p in Values G & p in cell G,i,j holds
p is_extremal_in cell G,i,j

let p be Point of (TOP-REAL 2); :: thesis: ( 1 <= i & i + 1 <= len G & 1 <= j & j + 1 <= width G & p in Values G & p in cell G,i,j implies p is_extremal_in cell G,i,j )
assume that
A1: 1 <= i and
A2: i + 1 <= len G and
A3: 1 <= j and
A4: j + 1 <= width G and
A5: p in Values G and
A6: p in cell G,i,j ; :: thesis: p is_extremal_in cell G,i,j
for a, b being Point of (TOP-REAL 2) st p in LSeg a,b & LSeg a,b c= cell G,i,j & not p = a holds
p = b
proof
let a, b be Point of (TOP-REAL 2); :: thesis: ( p in LSeg a,b & LSeg a,b c= cell G,i,j & not p = a implies p = b )
assume that
A7: p in LSeg a,b and
A8: LSeg a,b c= cell G,i,j ; :: thesis: ( p = a or p = b )
assume A9: ( a <> p & b <> p ) ; :: thesis: contradiction
A10: ( a in LSeg a,b & b in LSeg a,b ) by RLTOPSP1:69;
per cases ( p = G * i,j or p = G * i,(j + 1) or p = G * (i + 1),(j + 1) or p = G * (i + 1),j ) by A1, A2, A3, A4, A5, A6, Th21;
suppose A11: p = G * i,j ; :: thesis: contradiction
then A12: ( p `1 <= a `1 & p `2 <= a `2 ) by A1, A2, A3, A4, A8, A10, Th19;
A13: ( p `1 <= b `1 & p `2 <= b `2 ) by A1, A2, A3, A4, A8, A10, A11, Th19;
now end;
hence contradiction ; :: thesis: verum
end;
suppose A16: p = G * i,(j + 1) ; :: thesis: contradiction
then A17: p `1 = (G * i,j) `1 by A1, A2, A3, A4, Th18;
then A18: ( p `1 <= a `1 & a `2 <= p `2 ) by A1, A2, A3, A4, A8, A10, A16, Th19;
A19: ( p `1 <= b `1 & b `2 <= p `2 ) by A1, A2, A3, A4, A8, A10, A16, A17, Th19;
now end;
hence contradiction ; :: thesis: verum
end;
suppose p = G * (i + 1),(j + 1) ; :: thesis: contradiction
then A22: ( p `1 = (G * (i + 1),j) `1 & p `2 = (G * i,(j + 1)) `2 ) by A1, A2, A3, A4, Th18;
then A23: ( a `1 <= p `1 & a `2 <= p `2 ) by A1, A2, A3, A4, A8, A10, Th19;
A24: ( b `1 <= p `1 & b `2 <= p `2 ) by A1, A2, A3, A4, A8, A10, A22, Th19;
now end;
hence contradiction ; :: thesis: verum
end;
suppose A27: p = G * (i + 1),j ; :: thesis: contradiction
then A28: p `2 = (G * i,j) `2 by A1, A2, A3, A4, Th18;
then A29: ( a `1 <= p `1 & p `2 <= a `2 ) by A1, A2, A3, A4, A8, A10, A27, Th19;
A30: ( b `1 <= p `1 & p `2 <= b `2 ) by A1, A2, A3, A4, A8, A10, A27, A28, Th19;
now end;
hence contradiction ; :: thesis: verum
end;
end;
end;
hence p is_extremal_in cell G,i,j by A6, SPPOL_1:def 1; :: thesis: verum