let G be Graph; for v1, v2 being Vertex of G
for vs being FinSequence of the carrier of G
for p' being Path of
for vs' being FinSequence of the carrier of (AddNewEdge v1,v2) st not the carrier' of G in rng p' & vs = vs' & vs' is_vertex_seq_of p' holds
vs is_vertex_seq_of p'
let v1, v2 be Vertex of G; for vs being FinSequence of the carrier of G
for p' being Path of
for vs' being FinSequence of the carrier of (AddNewEdge v1,v2) st not the carrier' of G in rng p' & vs = vs' & vs' is_vertex_seq_of p' holds
vs is_vertex_seq_of p'
let vs be FinSequence of the carrier of G; for p' being Path of
for vs' being FinSequence of the carrier of (AddNewEdge v1,v2) st not the carrier' of G in rng p' & vs = vs' & vs' is_vertex_seq_of p' holds
vs is_vertex_seq_of p'
let p' be Path of ; for vs' being FinSequence of the carrier of (AddNewEdge v1,v2) st not the carrier' of G in rng p' & vs = vs' & vs' is_vertex_seq_of p' holds
vs is_vertex_seq_of p'
let vs' be FinSequence of the carrier of (AddNewEdge v1,v2); ( not the carrier' of G in rng p' & vs = vs' & vs' is_vertex_seq_of p' implies vs is_vertex_seq_of p' )
set G' = AddNewEdge v1,v2;
set S = the Source of G;
set T = the Target of G;
set E = the carrier' of G;
set S' = the Source of (AddNewEdge v1,v2);
set T' = the Target of (AddNewEdge v1,v2);
the carrier' of (AddNewEdge v1,v2) = the carrier' of G \/ {the carrier' of G}
by Def7;
then A1:
rng p' c= the carrier' of G \/ {the carrier' of G}
by FINSEQ_1:def 4;
assume A2:
not the carrier' of G in rng p'
; ( not vs = vs' or not vs' is_vertex_seq_of p' or vs is_vertex_seq_of p' )
A3:
rng p' c= the carrier' of G
assume that
A5:
vs = vs'
and
A6:
vs' is_vertex_seq_of p'
; vs is_vertex_seq_of p'
thus
vs is_vertex_seq_of p'
verumproof
thus A7:
len vs = (len p') + 1
by A5, A6, GRAPH_2:def 7;
GRAPH_2:def 7 for b1 being Element of NAT holds
( not 1 <= b1 or not b1 <= len p' or p' . b1 joins vs /. b1,vs /. (b1 + 1) )
let n be
Element of
NAT ;
( not 1 <= n or not n <= len p' or p' . n joins vs /. n,vs /. (n + 1) )
assume that A8:
1
<= n
and A9:
n <= len p'
;
p' . n joins vs /. n,vs /. (n + 1)
set e =
p' . n;
reconsider vn' =
vs' /. n,
vn1' =
vs' /. (n + 1) as
Vertex of
(AddNewEdge v1,v2) ;
p' . n joins vs' /. n,
vs' /. (n + 1)
by A6, A8, A9, GRAPH_2:def 7;
then A10:
( ( the
Source of
(AddNewEdge v1,v2) . (p' . n) = vn' & the
Target of
(AddNewEdge v1,v2) . (p' . n) = vn1' ) or ( the
Source of
(AddNewEdge v1,v2) . (p' . n) = vn1' & the
Target of
(AddNewEdge v1,v2) . (p' . n) = vn' ) )
by GRAPH_1:def 10;
reconsider vn =
vs /. n,
vn1 =
vs /. (n + 1) as
Vertex of
G ;
( 1
<= n + 1 &
n + 1
<= len vs )
by A7, A9, NAT_1:11, XREAL_1:8;
then A11:
n + 1
in dom vs
by FINSEQ_3:27;
then A12:
vn1 =
vs . (n + 1)
by PARTFUN1:def 8
.=
vn1'
by A5, A11, PARTFUN1:def 8
;
n in dom p'
by A8, A9, FINSEQ_3:27;
then
p' . n in rng p'
by FUNCT_1:def 5;
then A13:
( the
Source of
(AddNewEdge v1,v2) . (p' . n) = the
Source of
G . (p' . n) & the
Target of
(AddNewEdge v1,v2) . (p' . n) = the
Target of
G . (p' . n) )
by A3, Th40;
len p' <= len vs
by A7, NAT_1:11;
then
n <= len vs
by A9, XXREAL_0:2;
then A14:
n in dom vs
by A8, FINSEQ_3:27;
then vn =
vs . n
by PARTFUN1:def 8
.=
vn'
by A5, A14, PARTFUN1:def 8
;
hence
p' . n joins vs /. n,
vs /. (n + 1)
by A10, A13, A12, GRAPH_1:def 10;
verum
end;