let P be non _trivial Path-like _Graph; :: thesis: ( ( P .order() = 2 implies P .maxDegree() = 1 ) & ( P .order() <> 2 implies P .maxDegree() = 2 ) )
hereby :: thesis: ( P .order() <> 2 implies P .maxDegree() = 2 )
assume P .order() = 2 ; :: thesis: P .maxDegree() = 1
then A1: P is 2 -vertex by GLIB_013:def 3;
now :: thesis: ex v being Vertex of P st
( v .degree() = 1 & ( for w being Vertex of P holds w .degree() c= v .degree() ) )
set v = the Vertex of P;
take v = the Vertex of P; :: thesis: ( v .degree() = 1 & ( for w being Vertex of P holds w .degree() c= v .degree() ) )
thus A2: v .degree() = 1 by A1, GLIB_000:174; :: thesis: for w being Vertex of P holds w .degree() c= v .degree()
let w be Vertex of P; :: thesis: w .degree() c= v .degree()
thus w .degree() c= v .degree() by A1, A2, GLIB_000:174; :: thesis: verum
end;
hence P .maxDegree() = 1 by GLIB_013:48; :: thesis: verum
end;
assume A3: P .order() <> 2 ; :: thesis: 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 A4: for v being Vertex of P holds not v is endvertex ; :: thesis: P .maxDegree() = 2
now :: thesis: ex v being Vertex of P st
( v .degree() = 2 & ( for w being Vertex of P holds w .degree() c= v .degree() ) )
end;
hence P .maxDegree() = 2 by GLIB_013:48; :: thesis: verum
end;
suppose ex v being Vertex of P st v is endvertex ; :: thesis: P .maxDegree() = 2
then 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
proof
assume e = the Trail of W . 2 ; :: thesis: contradiction
per cases then ( ( u = u & v = the Trail of W . 3 ) or ( u = the Trail of W . 3 & u = v ) ) by A9, A13, GLIB_000:15;
suppose ( u = u & v = the Trail of W . 3 ) ; :: thesis: contradiction
end;
suppose ( u = the Trail of W . 3 & u = v ) ; :: thesis: contradiction
end;
end;
end;
hence P .maxDegree() = 2 by GLIB_013:48; :: thesis: verum
end;
end;