let k be Element of NAT ; :: thesis: for D being set
for f being FinSequence of D
for G being Matrix of D st 1 <= k & k + 1 <= len f & f is_sequence_on G holds
ex i1, j1, i2, j2 being Element of NAT st
( [i1,j1] in Indices G & f /. k = G * i1,j1 & [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 & ( ( i1 = i2 & j1 + 1 = j2 ) or ( i1 + 1 = i2 & j1 = j2 ) or ( i1 = i2 + 1 & j1 = j2 ) or ( i1 = i2 & j1 = j2 + 1 ) ) )
let D be set ; :: thesis: for f being FinSequence of D
for G being Matrix of D st 1 <= k & k + 1 <= len f & f is_sequence_on G holds
ex i1, j1, i2, j2 being Element of NAT st
( [i1,j1] in Indices G & f /. k = G * i1,j1 & [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 & ( ( i1 = i2 & j1 + 1 = j2 ) or ( i1 + 1 = i2 & j1 = j2 ) or ( i1 = i2 + 1 & j1 = j2 ) or ( i1 = i2 & j1 = j2 + 1 ) ) )
let f be FinSequence of D; :: thesis: for G being Matrix of D st 1 <= k & k + 1 <= len f & f is_sequence_on G holds
ex i1, j1, i2, j2 being Element of NAT st
( [i1,j1] in Indices G & f /. k = G * i1,j1 & [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 & ( ( i1 = i2 & j1 + 1 = j2 ) or ( i1 + 1 = i2 & j1 = j2 ) or ( i1 = i2 + 1 & j1 = j2 ) or ( i1 = i2 & j1 = j2 + 1 ) ) )
let G be Matrix of D; :: thesis: ( 1 <= k & k + 1 <= len f & f is_sequence_on G implies ex i1, j1, i2, j2 being Element of NAT st
( [i1,j1] in Indices G & f /. k = G * i1,j1 & [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 & ( ( i1 = i2 & j1 + 1 = j2 ) or ( i1 + 1 = i2 & j1 = j2 ) or ( i1 = i2 + 1 & j1 = j2 ) or ( i1 = i2 & j1 = j2 + 1 ) ) ) )
assume that
A1:
( 1 <= k & k + 1 <= len f )
and
A2:
f is_sequence_on G
; :: thesis: ex i1, j1, i2, j2 being Element of NAT st
( [i1,j1] in Indices G & f /. k = G * i1,j1 & [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 & ( ( i1 = i2 & j1 + 1 = j2 ) or ( i1 + 1 = i2 & j1 = j2 ) or ( i1 = i2 + 1 & j1 = j2 ) or ( i1 = i2 & j1 = j2 + 1 ) ) )
k <= k + 1
by NAT_1:11;
then
k <= len f
by A1, XXREAL_0:2;
then A3:
k in dom f
by A1, FINSEQ_3:27;
then consider i1, j1 being Element of NAT such that
A4:
( [i1,j1] in Indices G & f /. k = G * i1,j1 )
by A2, GOBOARD1:def 11;
k + 1 >= 1
by NAT_1:11;
then A5:
k + 1 in dom f
by A1, FINSEQ_3:27;
then consider i2, j2 being Element of NAT such that
A6:
( [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 )
by A2, GOBOARD1:def 11;
A7:
(abs (i1 - i2)) + (abs (j1 - j2)) = 1
by A2, A3, A4, A5, A6, GOBOARD1:def 11;
hence
ex i1, j1, i2, j2 being Element of NAT st
( [i1,j1] in Indices G & f /. k = G * i1,j1 & [i2,j2] in Indices G & f /. (k + 1) = G * i2,j2 & ( ( i1 = i2 & j1 + 1 = j2 ) or ( i1 + 1 = i2 & j1 = j2 ) or ( i1 = i2 + 1 & j1 = j2 ) or ( i1 = i2 & j1 = j2 + 1 ) ) )
by A4, A6; :: thesis: verum