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

let P1, P2 be Path of G; :: thesis: ( P1 .last() = P2 .first() & P1 is open & P2 is open & (P1 .vertices()) /\ (P2 .vertices()) = {(P1 .last())} implies ( P1 .append P2 is open & P1 .append P2 is Path-like ) )
assume that
A1: P1 .last() = P2 .first() and
A2: P1 is open and
A3: P2 is open and
A4: (P1 .vertices()) /\ (P2 .vertices()) = {(P1 .last())} ; :: thesis: ( P1 .append P2 is open & P1 .append P2 is Path-like )
set P = P1 .append P2;
thus P1 .append P2 is open :: thesis: P1 .append P2 is Path-like
proof end;
A6: now :: thesis: not P1 .first() in P2 .vertices() 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 object 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:103;
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:103;
A18: n + 0 < n + 2 by XREAL_1:8;
per cases ( v1 <> v2 or v1 = v2 ) ;
end;
end;
(P1 .vertices()) /\ (P2 .vertices()) c= {(P1 .first()),(P1 .last())} by A4, ZFMISC_1:7;
hence P1 .append P2 is Path-like by A1, A2, A3, A8, A6, Th18; :: thesis: verum