:: GRAPH_5 semantic presentation
theorem Th1: :: GRAPH_5:1
theorem Th2: :: GRAPH_5:2
theorem Th3: :: GRAPH_5:3
theorem Th4: :: GRAPH_5:4
theorem Th5: :: GRAPH_5:5
theorem Th6: :: GRAPH_5:6
theorem Th7: :: GRAPH_5:7
theorem Th8: :: GRAPH_5:8
Lemma9:
for b1 being Nat
for b2, b3 being FinSequence st 1 <= b1 & b1 <= len b2 holds
b2 . b1 = (b2 ^ b3) . b1
Lemma10:
for b1 being Nat
for b2, b3 being FinSequence st 1 <= b1 & b1 <= len b2 holds
b2 . b1 = (b3 ^ b2) . ((len b3) + b1)
theorem Th9: :: GRAPH_5:9
theorem Th10: :: GRAPH_5:10
theorem Th11: :: GRAPH_5:11
theorem Th12: :: GRAPH_5:12
theorem Th13: :: GRAPH_5:13
theorem Th14: :: GRAPH_5:14
theorem Th15: :: GRAPH_5:15
theorem Th16: :: GRAPH_5:16
theorem Th17: :: GRAPH_5:17
theorem Th18: :: GRAPH_5:18
theorem Th19: :: GRAPH_5:19
theorem Th20: :: GRAPH_5:20
:: deftheorem Def1 defines vertices GRAPH_5:def 1 :
:: deftheorem Def2 defines vertices GRAPH_5:def 2 :
theorem Th21: :: GRAPH_5:21
theorem Th22: :: GRAPH_5:22
theorem Th23: :: GRAPH_5:23
theorem Th24: :: GRAPH_5:24
theorem Th25: :: GRAPH_5:25
theorem Th26: :: GRAPH_5:26
theorem Th27: :: GRAPH_5:27
theorem Th28: :: GRAPH_5:28
theorem Th29: :: GRAPH_5:29
theorem Th30: :: GRAPH_5:30
theorem Th31: :: GRAPH_5:31
theorem Th32: :: GRAPH_5:32
:: deftheorem Def3 defines is_orientedpath_of GRAPH_5:def 3 :
:: deftheorem Def4 defines is_orientedpath_of GRAPH_5:def 4 :
:: deftheorem Def5 defines OrientedPaths GRAPH_5:def 5 :
theorem Th33: :: GRAPH_5:33
theorem Th34: :: GRAPH_5:34
theorem Th35: :: GRAPH_5:35
theorem Th36: :: GRAPH_5:36
theorem Th37: :: GRAPH_5:37
theorem Th38: :: GRAPH_5:38
:: deftheorem Def6 defines is_acyclicpath_of GRAPH_5:def 6 :
:: deftheorem Def7 defines is_acyclicpath_of GRAPH_5:def 7 :
:: deftheorem Def8 defines AcyclicPaths GRAPH_5:def 8 :
:: deftheorem Def9 defines AcyclicPaths GRAPH_5:def 9 :
:: deftheorem Def10 defines AcyclicPaths GRAPH_5:def 10 :
:: deftheorem Def11 defines AcyclicPaths GRAPH_5:def 11 :
theorem Th39: :: GRAPH_5:39
theorem Th40: :: GRAPH_5:40
theorem Th41: :: GRAPH_5:41
theorem Th42: :: GRAPH_5:42
theorem Th43: :: GRAPH_5:43
theorem Th44: :: GRAPH_5:44
theorem Th45: :: GRAPH_5:45
theorem Th46: :: GRAPH_5:46
theorem Th47: :: GRAPH_5:47
theorem Th48: :: GRAPH_5:48
theorem Th49: :: GRAPH_5:49
:: deftheorem Def12 defines Real>=0 GRAPH_5:def 12 :
:: deftheorem Def13 defines is_weight>=0of GRAPH_5:def 13 :
:: deftheorem Def14 defines is_weight_of GRAPH_5:def 14 :
:: deftheorem Def15 defines RealSequence GRAPH_5:def 15 :
:: deftheorem Def16 defines cost GRAPH_5:def 16 :
theorem Th50: :: GRAPH_5:50
theorem Th51: :: GRAPH_5:51
theorem Th52: :: GRAPH_5:52
Lemma57:
for b1 being FinSequence of REAL holds
( ( for b2 being Real st b2 in rng b1 holds
b2 >= 0 ) iff for b2 being Nat st b2 in dom b1 holds
b1 . b2 >= 0 )
Lemma58:
for b1, b2, b3 being FinSequence of REAL st b3 = b1 ^ b2 & ( for b4 being Real st b4 in rng b3 holds
b4 >= 0 ) holds
( ( for b4 being Nat st b4 in dom b1 holds
b1 . b4 >= 0 ) & ( for b4 being Nat st b4 in dom b2 holds
b2 . b4 >= 0 ) )
theorem Th53: :: GRAPH_5:53
theorem Th54: :: GRAPH_5:54
theorem Th55: :: GRAPH_5:55
theorem Th56: :: GRAPH_5:56
theorem Th57: :: GRAPH_5:57
theorem Th58: :: GRAPH_5:58
theorem Th59: :: GRAPH_5:59
theorem Th60: :: GRAPH_5:60
:: deftheorem Def17 defines is_shortestpath_of GRAPH_5:def 17 :
definition
let c1 be
Graph;
let c2,
c3 be
Vertex of
c1;
let c4 be
oriented Chain of
c1;
let c5 be
set ;
let c6 be
Function;
pred c4 is_shortestpath_of c2,
c3,
c5,
c6 means :
Def18:
:: GRAPH_5:def 18
(
a4 is_orientedpath_of a2,
a3,
a5 & ( for
b1 being
oriented Chain of
a1 st
b1 is_orientedpath_of a2,
a3,
a5 holds
cost a4,
a6 <= cost b1,
a6 ) );
end;
:: deftheorem Def18 defines is_shortestpath_of GRAPH_5:def 18 :
for
b1 being
Graph for
b2,
b3 being
Vertex of
b1 for
b4 being
oriented Chain of
b1 for
b5 being
set for
b6 being
Function holds
(
b4 is_shortestpath_of b2,
b3,
b5,
b6 iff (
b4 is_orientedpath_of b2,
b3,
b5 & ( for
b7 being
oriented Chain of
b1 st
b7 is_orientedpath_of b2,
b3,
b5 holds
cost b4,
b6 <= cost b7,
b6 ) ) );
theorem Th61: :: GRAPH_5:61
theorem Th62: :: GRAPH_5:62
Lemma69:
for b1 being finite Graph holds AcyclicPaths b1 is finite
Lemma70:
for b1 being finite Graph
for b2 being oriented Chain of b1 holds AcyclicPaths b2 is finite
Lemma71:
for b1 being finite Graph
for b2, b3 being Element of the Vertices of b1 holds AcyclicPaths b2,b3 is finite
Lemma72:
for b1 being set
for b2 being finite Graph
for b3, b4 being Element of the Vertices of b2 holds AcyclicPaths b3,b4,b1 is finite
theorem Th63: :: GRAPH_5:63
theorem Th64: :: GRAPH_5:64
theorem Th65: :: GRAPH_5:65
theorem Th66: :: GRAPH_5:66
theorem Th67: :: GRAPH_5:67
for
b1 being
set for
b2 being
Function for
b3 being
finite Graph for
b4 being
oriented Chain of
b3 for
b5,
b6 being
Element of the
Vertices of
b3 st
b2 is_weight>=0of b3 &
b4 is_shortestpath_of b5,
b6,
b1,
b2 &
b5 <> b6 & ( for
b7 being
oriented Chain of
b3 for
b8 being
Element of the
Vertices of
b3 st not
b8 in b1 &
b7 is_shortestpath_of b5,
b8,
b1,
b2 holds
cost b4,
b2 <= cost b7,
b2 ) holds
b4 is_shortestpath_of b5,
b6,
b2
theorem Th68: :: GRAPH_5:68
for
b1,
b2 being
set for
b3 being
Function for
b4 being
finite Graph for
b5 being
oriented Chain of
b4 for
b6,
b7 being
Element of the
Vertices of
b4 st
b3 is_weight>=0of b4 &
b5 is_shortestpath_of b6,
b7,
b1,
b3 &
b6 <> b7 &
b1 c= b2 & ( for
b8 being
oriented Chain of
b4 for
b9 being
Element of the
Vertices of
b4 st not
b9 in b1 &
b8 is_shortestpath_of b6,
b9,
b1,
b3 holds
cost b5,
b3 <= cost b8,
b3 ) holds
b5 is_shortestpath_of b6,
b7,
b2,
b3
:: deftheorem Def19 defines islongestInShortestpath GRAPH_5:def 19 :
theorem Th69: :: GRAPH_5:69
for
b1,
b2 being
set for
b3 being
Function for
b4 being
oriented finite Graph for
b5,
b6,
b7 being
oriented Chain of
b4 for
b8,
b9,
b10 being
Element of the
Vertices of
b4 st
b1 in the
Edges of
b4 &
b3 is_weight>=0of b4 &
len b5 >= 1 &
b5 is_shortestpath_of b8,
b9,
b2,
b3 &
b8 <> b9 &
b8 <> b10 &
b7 = b5 ^ <*b1*> &
b6 is_shortestpath_of b8,
b10,
b2,
b3 &
b1 orientedly_joins b9,
b10 &
b5 islongestInShortestpath b2,
b8,
b3 holds
( (
cost b6,
b3 <= cost b7,
b3 implies
b6 is_shortestpath_of b8,
b10,
b2 \/ {b9},
b3 ) & (
cost b6,
b3 >= cost b7,
b3 implies
b7 is_shortestpath_of b8,
b10,
b2 \/ {b9},
b3 ) )