let p be Path of G; ( p is empty implies p is cyclic )
assume A1:
p is empty
; p is cyclic
set x = the Vertex of G;
A2:
the Vertex of G in the carrier of G
;
take
<* the Vertex of G*>
; GRAPH_1:def 15 ( len <* the Vertex of G*> = (len p) + 1 & ( for n being Element of NAT st 1 <= n & n <= len <* the Vertex of G*> holds
<* the Vertex of G*> . n in the carrier of G ) & ( for n being Element of NAT st 1 <= n & n <= len p holds
ex x9, y9 being Vertex of G st
( x9 = <* the Vertex of G*> . n & y9 = <* the Vertex of G*> . (n + 1) & p . n joins x9,y9 ) ) & <* the Vertex of G*> . 1 = <* the Vertex of G*> . (len <* the Vertex of G*>) )
thus
len <* the Vertex of G*> = (len p) + 1
by A1, CARD_1:27, FINSEQ_1:39; ( ( for n being Element of NAT st 1 <= n & n <= len <* the Vertex of G*> holds
<* the Vertex of G*> . n in the carrier of G ) & ( for n being Element of NAT st 1 <= n & n <= len p holds
ex x9, y9 being Vertex of G st
( x9 = <* the Vertex of G*> . n & y9 = <* the Vertex of G*> . (n + 1) & p . n joins x9,y9 ) ) & <* the Vertex of G*> . 1 = <* the Vertex of G*> . (len <* the Vertex of G*>) )
thus
for n being Element of NAT st 1 <= n & n <= len <* the Vertex of G*> holds
<* the Vertex of G*> . n in the carrier of G
( ( for n being Element of NAT st 1 <= n & n <= len p holds
ex x9, y9 being Vertex of G st
( x9 = <* the Vertex of G*> . n & y9 = <* the Vertex of G*> . (n + 1) & p . n joins x9,y9 ) ) & <* the Vertex of G*> . 1 = <* the Vertex of G*> . (len <* the Vertex of G*>) )
thus
for n being Element of NAT st 1 <= n & n <= len p holds
ex x9, y9 being Vertex of G st
( x9 = <* the Vertex of G*> . n & y9 = <* the Vertex of G*> . (n + 1) & p . n joins x9,y9 )
by A1, CARD_1:27, XXREAL_0:2; <* the Vertex of G*> . 1 = <* the Vertex of G*> . (len <* the Vertex of G*>)
thus
<* the Vertex of G*> . 1 = <* the Vertex of G*> . (len <* the Vertex of G*>)
by FINSEQ_1:39; verum