let C be simple Cycle-like _Graph; for v being Vertex of C ex P being non _trivial Path-like _Graph st
( not v in the_Vertices_of P & C is addAdjVertexAll of P,v, Endvertices P )
let v be Vertex of C; ex P being non _trivial Path-like _Graph st
( not v in the_Vertices_of P & C is addAdjVertexAll of P,v, Endvertices P )
set P = the removeVertex of C,v;
A1:
not C is _trivial
;
then A2:
the removeVertex of C,v is Path-like
by Th54;
not the removeVertex of C,v is _trivial
then reconsider P = the removeVertex of C,v as non _trivial Path-like _Graph by A2;
take
P
; ( not v in the_Vertices_of P & C is addAdjVertexAll of P,v, Endvertices P )
A5:
the_Vertices_of P = (the_Vertices_of C) \ {v}
by A1, GLIB_000:47;
hence A6:
not v in the_Vertices_of P
by ZFMISC_1:56; C is addAdjVertexAll of P,v, Endvertices P
A7:
C is Supergraph of P
by GLIB_006:57;
A8:
the_Edges_of P = C .edgesBetween ((the_Vertices_of C) \ {v})
by A1, GLIB_000:47;
now ( the_Vertices_of C = (the_Vertices_of P) \/ {v} & ( for e being object holds
( not e Joins v,v,C & ( for v1 being object holds
( ( not v1 in Endvertices P implies not e Joins v1,v,C ) & ( for v2 being object st v1 <> v & v2 <> v & e DJoins v1,v2,C holds
e DJoins v1,v2,P ) ) ) ) ) & ex E being set st
( card (Endvertices P) = card E & E misses the_Edges_of P & the_Edges_of C = (the_Edges_of P) \/ E & ( for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) ) ) )thus
the_Vertices_of C = (the_Vertices_of P) \/ {v}
by A5, ZFMISC_1:116;
( ( for e being object holds
( not e Joins v,v,C & ( for v1 being object holds
( ( not v1 in Endvertices P implies not e Joins v1,v,C ) & ( for v2 being object st v1 <> v & v2 <> v & e DJoins v1,v2,C holds
e DJoins v1,v2,P ) ) ) ) ) & ex E being set st
( card (Endvertices P) = card E & E misses the_Edges_of P & the_Edges_of C = (the_Edges_of P) \/ E & ( for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) ) ) )hereby ex E being set st
( card (Endvertices P) = card E & E misses the_Edges_of P & the_Edges_of C = (the_Edges_of P) \/ E & ( for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) ) )
let e be
object ;
( not e Joins v,v,C & ( for v1 being object holds
( ( not v1 in Endvertices P implies not e Joins v1,v,C ) & ( for v2 being object st v1 <> v & v2 <> v & e DJoins v1,v2,C holds
e DJoins v1,v2,P ) ) ) )thus A10:
not
e Joins v,
v,
C
by GLIB_000:18;
for v1 being object holds
( ( not v1 in Endvertices P implies not e Joins v1,v,C ) & ( for v2 being object st v1 <> v & v2 <> v & e DJoins v1,v2,C holds
e DJoins v1,v2,P ) )let v1 be
object ;
( ( not v1 in Endvertices P implies not e Joins v1,v,C ) & ( for v2 being object st v1 <> v & v2 <> v & e DJoins v1,v2,C holds
e DJoins v1,v2,P ) )let v2 be
object ;
( v1 <> v & v2 <> v & e DJoins v1,v2,C implies e DJoins v1,v2,P )assume A17:
(
v1 <> v &
v2 <> v &
e DJoins v1,
v2,
C )
;
e DJoins v1,v2,Pthen A18:
e Joins v1,
v2,
C
by GLIB_000:16;
then
(
v1 in the_Vertices_of C &
v2 in the_Vertices_of C )
by GLIB_000:13;
then
(
v1 in (the_Vertices_of C) \ {v} &
v2 in (the_Vertices_of C) \ {v} )
by A17, ZFMISC_1:56;
then A19:
e in the_Edges_of P
by A8, A18, GLIB_000:32;
(
e is
set &
v1 is
set &
v2 is
set )
by TARSKI:1;
hence
e DJoins v1,
v2,
P
by A17, A19, GLIB_000:73;
verum
end; thus
ex
E being
set st
(
card (Endvertices P) = card E &
E misses the_Edges_of P &
the_Edges_of C = (the_Edges_of P) \/ E & ( for
v1 being
object st
v1 in Endvertices P holds
ex
e1 being
object st
(
e1 in E &
e1 Joins v1,
v,
C & ( for
e2 being
object st
e2 Joins v1,
v,
C holds
e1 = e2 ) ) ) )
verumproof
take E =
v .edgesInOut() ;
( card (Endvertices P) = card E & E misses the_Edges_of P & the_Edges_of C = (the_Edges_of P) \/ E & ( for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) ) )
consider P0 being
vertex-distinct Path of
P such that
(
P0 .vertices() = the_Vertices_of P &
P0 .edges() = the_Edges_of P )
and A20:
(
Endvertices P = {(P0 .first()),(P0 .last())} iff not
P is
_trivial )
and
(
P0 is
trivial iff
P is
_trivial )
and A21:
(
P0 is
closed iff
P is
_trivial )
and
P0 is
minlength
by Th31;
A22:
P0 .first() <> P0 .last()
by A21, GLIB_001:def 24;
thus card (Endvertices P) =
2
by A20, A22, CARD_2:57
.=
v .degree()
by GLIB_016:def 4
.=
card E
by GLIB_000:19
;
( E misses the_Edges_of P & the_Edges_of C = (the_Edges_of P) \/ E & ( for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) ) )
thus
E misses the_Edges_of P
( the_Edges_of C = (the_Edges_of P) \/ E & ( for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) ) )
for
x being
object holds
(
x in the_Edges_of C iff (
x in the_Edges_of P or
x in E ) )
hence
the_Edges_of C = (the_Edges_of P) \/ E
by XBOOLE_0:def 3;
for v1 being object st v1 in Endvertices P holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) )
let v1 be
object ;
( v1 in Endvertices P implies ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) ) )
assume A29:
v1 in Endvertices P
;
ex e1 being object st
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) )
then reconsider w1 =
v1 as
Vertex of
P ;
reconsider w2 =
w1 as
Vertex of
C by A5, XBOOLE_0:def 5;
take e1 = the
Element of
(w2 .edgesInOut()) \ (w1 .edgesInOut());
( e1 in E & e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) )
(w2 .edgesInOut()) \ (w1 .edgesInOut()) <> {}
then A33:
(
e1 in w2 .edgesInOut() & not
e1 in w1 .edgesInOut() )
by XBOOLE_0:def 5;
then consider u being
Vertex of
C such that A34:
e1 Joins w2,
u,
C
by GLIB_000:64;
A35:
u = v
hence
e1 in E
by A34, GLIB_000:14, GLIB_000:64;
( e1 Joins v1,v,C & ( for e2 being object st e2 Joins v1,v,C holds
e1 = e2 ) )
thus
(
e1 Joins v1,
v,
C & ( for
e2 being
object st
e2 Joins v1,
v,
C holds
e1 = e2 ) )
by A34, A35, GLIB_000:def 20;
verum
end; end;
hence
C is addAdjVertexAll of P,v, Endvertices P
by A6, A7, GLIB_007:def 4; verum