let G be _Graph; :: thesis: for P1, P2 being Path of G st P1 .last() = P2 .first() & not P1 is closed & not P2 is closed & (P1 .vertices() ) /\ (P2 .vertices() ) = {(P1 .last() )} holds
( not P1 .append P2 is closed & P1 .append P2 is Path-like )

let P1, P2 be Path of G; :: thesis: ( P1 .last() = P2 .first() & not P1 is closed & not P2 is closed & (P1 .vertices() ) /\ (P2 .vertices() ) = {(P1 .last() )} implies ( not P1 .append P2 is closed & P1 .append P2 is Path-like ) )
assume that
A1: P1 .last() = P2 .first() and
A2: not P1 is closed and
A3: not P2 is closed and
A4: (P1 .vertices() ) /\ (P2 .vertices() ) = {(P1 .last() )} ; :: thesis: ( not P1 .append P2 is closed & P1 .append P2 is Path-like )
set P = P1 .append P2;
thus not P1 .append P2 is closed :: thesis: P1 .append P2 is Path-like
proof end;
A6: now end;
A8: P1 .edges() misses P2 .edges()
proof
assume (P1 .edges() ) /\ (P2 .edges() ) <> {} ; :: according to XBOOLE_0:def 7 :: thesis: contradiction
then consider x being set such that
A9: x in (P1 .edges() ) /\ (P2 .edges() ) by XBOOLE_0:def 1;
x in P2 .edges() by A9, XBOOLE_0:def 4;
then consider u1, u2 being Vertex of G, m being odd Element of NAT such that
A10: m + 2 <= len P2 and
A11: u1 = P2 . m and
x = P2 . (m + 1) and
A12: u2 = P2 . (m + 2) and
A13: x Joins u1,u2,G by GLIB_001:104;
x in P1 .edges() by A9, XBOOLE_0:def 4;
then consider v1, v2 being Vertex of G, n being odd Element of NAT such that
A14: n + 2 <= len P1 and
A15: v1 = P1 . n and
x = P1 . (n + 1) and
A16: v2 = P1 . (n + 2) and
A17: x Joins v1,v2,G by GLIB_001:104;
A18: n + 0 < n + 2 by XREAL_1:10;
per cases ( v1 <> v2 or v1 = v2 ) ;
end;
end;
(P1 .vertices() ) /\ (P2 .vertices() ) c= {(P1 .first() ),(P1 .last() )} by A4, ZFMISC_1:12;
hence P1 .append P2 is Path-like by A1, A2, A3, A8, A6, Th18; :: thesis: verum