let P be non _trivial Path-like _Graph; ( ( P .order() = 2 implies P .maxDegree() = 1 ) & ( P .order() <> 2 implies P .maxDegree() = 2 ) )
assume A3:
P .order() <> 2
; P .maxDegree() = 2
per cases
( for v being Vertex of P holds not v is endvertex or ex v being Vertex of P st v is endvertex )
;
suppose
ex
v being
Vertex of
P st
v is
endvertex
;
P .maxDegree() = 2then consider v being
Vertex of
P such that A7:
v is
endvertex
;
3
c= P .order()
then consider u,
w being
Vertex of
P such that A8:
(
u <> v &
w <> v &
u <> w &
u,
v are_adjacent & not
v,
w are_adjacent )
by A7, GLIBPRE0:95;
consider e being
object such that A9:
e Joins u,
v,
P
by A8, CHORD:def 3;
consider W being
Walk of
P such that A10:
W is_Walk_from u,
w
by GLIB_002:def 1;
set T = the
Trail of
W;
the
Trail of
W is_Walk_from u,
w
by A10, GLIB_001:160;
then A11:
( the
Trail of
W .first() = u & the
Trail of
W .last() = w )
by GLIB_001:def 23;
then A12:
3
<= len the
Trail of
W
by A8, GLIB_001:127, GLIB_001:125;
1
< len the
Trail of
W
by A12, XXREAL_0:2;
then
the
Trail of
W . (1 + 1) Joins the
Trail of
W . 1, the
Trail of
W . (1 + 2),
P
by POLYFORM:4, GLIB_001:def 3;
then A13:
the
Trail of
W . 2
Joins u, the
Trail of
W . 3,
P
by A11;
A14:
the
Trail of
W . 3
<> v
A16:
e <> the
Trail of
W . 2
hence
P .maxDegree() = 2
by GLIB_013:48;
verum end; end;