begin
theorem
for
n,
k being
Nat st
n < k holds
n <= k - 1
begin
begin
Lm1:
for P being Subset of (TOP-REAL 2) st not P is trivial & P is horizontal holds
not P is vertical
Lm2:
for f being FinSequence of the carrier of (TOP-REAL 2)
for k being Element of NAT holds { (LSeg (f,i)) where i is Element of NAT : ( 1 <= i & i + 1 <= len f & i <> k & i <> k + 1 ) } is finite
Lm3:
for f being FinSequence of the carrier of (TOP-REAL 2)
for k being Element of NAT holds { (LSeg (f,i)) where i is Element of NAT : ( 1 <= i & i + 1 <= len f & i <> k & i <> k + 1 ) } is Subset-Family of (TOP-REAL 2)
Lm4:
for f being FinSequence of the carrier of (TOP-REAL 2)
for Q being Subset of (TOP-REAL 2)
for k being Element of NAT st Q = union { (LSeg (f,i)) where i is Element of NAT : ( 1 <= i & i + 1 <= len f & i <> k & i <> k + 1 ) } holds
Q is closed
Lm5:
for f being FinSequence of the carrier of (TOP-REAL 2)
for i being Element of NAT
for p1, p2 being Point of (TOP-REAL 2) st f is alternating & 1 <= i & i + 2 <= len f & p1 = f /. i & p2 = f /. (i + 2) holds
ex p being Point of (TOP-REAL 2) st
( p in LSeg (p1,p2) & p `1 <> p1 `1 & p `1 <> p2 `1 & p `2 <> p1 `2 & p `2 <> p2 `2 )