let G be acyclic _Graph; :: thesis: for W being Path of G
for e being set st not e in W .edges() & e in (W .last()) .edgesInOut() holds
W .addEdge e is Path-like

let W be Path of G; :: thesis: for e being set st not e in W .edges() & e in (W .last()) .edgesInOut() holds
W .addEdge e is Path-like

let e be set ; :: thesis: ( not e in W .edges() & e in (W .last()) .edgesInOut() implies W .addEdge e is Path-like )
assume that
A1: not e in W .edges() and
A2: e in (W .last()) .edgesInOut() ; :: thesis: W .addEdge e is Path-like
set v = (W .last()) .adj e;
set W2 = W .addEdge e;
A3: e Joins W .last() ,(W .last()) .adj e,G by A2, GLIB_000:67;
then A4: len (W .addEdge e) = (len W) + 2 by GLIB_001:64;
A5: W .addEdge e is Trail-like by A1, A2, GLIB_001:142;
now :: thesis: W .addEdge e is Path-like
per cases ( not W is trivial or not W is trivial ) ;
suppose A7: W is trivial ; :: thesis: W .addEdge e is Path-like
A8: now :: thesis: for n being odd Element of NAT st 1 < n & n <= len W holds
W . n <> (W .last()) .adj e
let n be odd Element of NAT ; :: thesis: ( 1 < n & n <= len W implies W . n <> (W .last()) .adj e )
assume that
A9: 1 < n and
A10: n <= len W ; :: thesis: W . n <> (W .last()) .adj e
now :: thesis: not W . n = (W .last()) .adj eend;
hence W . n <> (W .last()) .adj e ; :: thesis: verum
end;
not W is closed by A7, GLIB_001:def 31, Def2;
hence W .addEdge e is Path-like by A1, A3, A8, GLIB_001:150; :: thesis: verum
end;
end;
end;
hence W .addEdge e is Path-like ; :: thesis: verum