let V be set ; for W being Function
for G being Graph
for v1, v2 being Element of G
for D being non empty finite Subset of (the carrier' of G * ) st D = AcyclicPaths v1,v2,V holds
ex pe being FinSequence of the carrier' of G st
( pe in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost pe,W <= cost qe,W ) )
let W be Function; for G being Graph
for v1, v2 being Element of G
for D being non empty finite Subset of (the carrier' of G * ) st D = AcyclicPaths v1,v2,V holds
ex pe being FinSequence of the carrier' of G st
( pe in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost pe,W <= cost qe,W ) )
let G be Graph; for v1, v2 being Element of G
for D being non empty finite Subset of (the carrier' of G * ) st D = AcyclicPaths v1,v2,V holds
ex pe being FinSequence of the carrier' of G st
( pe in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost pe,W <= cost qe,W ) )
let v1, v2 be Element of G; for D being non empty finite Subset of (the carrier' of G * ) st D = AcyclicPaths v1,v2,V holds
ex pe being FinSequence of the carrier' of G st
( pe in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost pe,W <= cost qe,W ) )
let D be non empty finite Subset of (the carrier' of G * ); ( D = AcyclicPaths v1,v2,V implies ex pe being FinSequence of the carrier' of G st
( pe in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost pe,W <= cost qe,W ) ) )
deffunc H1( Element of D) -> Real = cost $1,W;
consider x being Element of D such that
A1:
for y being Element of D holds H1(x) <= H1(y)
from GRAPH_5:sch 2();
assume
D = AcyclicPaths v1,v2,V
; ex pe being FinSequence of the carrier' of G st
( pe in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost pe,W <= cost qe,W ) )
then
x in AcyclicPaths v1,v2,V
;
then consider p being oriented Simple Chain of G such that
A2:
x = p
and
p is_acyclicpath_of v1,v2,V
;
take
p
; ( p in D & ( for qe being FinSequence of the carrier' of G st qe in D holds
cost p,W <= cost qe,W ) )
thus
p in D
by A2; for qe being FinSequence of the carrier' of G st qe in D holds
cost p,W <= cost qe,W
let pe be FinSequence of the carrier' of G; ( pe in D implies cost p,W <= cost pe,W )
assume
pe in D
; cost p,W <= cost pe,W
then reconsider y = pe as Element of D ;
H1(x) <= H1(y)
by A1;
hence
cost p,W <= cost pe,W
by A2; verum