MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  spthispth Structured version   Unicode version

Theorem spthispth 23294
Description: A simple path is a path (in an undirected graph). (Contributed by Alexander van der Vekens, 21-Oct-2017.)
Assertion
Ref Expression
spthispth  |-  ( F ( V SPaths  E ) P  ->  F ( V Paths  E ) P )

Proof of Theorem spthispth
Dummy variables  x  e  f  p  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-spth 23240 . . 3  |- SPaths  =  ( v  e.  _V , 
e  e.  _V  |->  {
<. f ,  p >.  |  ( f ( v Trails 
e ) p  /\  Fun  `' p ) } )
21brovmpt2ex 6730 . 2  |-  ( F ( V SPaths  E ) P  ->  ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) ) )
3 simprl 748 . . . . 5  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  ( F ( V Trails  E
) P  /\  Fun  `' P ) )  ->  F ( V Trails  E
) P )
4 funres11 5474 . . . . . . 7  |-  ( Fun  `' P  ->  Fun  `' ( P  |`  ( 1..^ ( # `  F
) ) ) )
54adantl 463 . . . . . 6  |-  ( ( F ( V Trails  E
) P  /\  Fun  `' P )  ->  Fun  `' ( P  |`  (
1..^ ( # `  F
) ) ) )
65adantl 463 . . . . 5  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  ( F ( V Trails  E
) P  /\  Fun  `' P ) )  ->  Fun  `' ( P  |`  ( 1..^ ( # `  F
) ) ) )
7 trliswlk 23260 . . . . . . . . . 10  |-  ( F ( V Trails  E ) P  ->  F ( V Walks  E ) P )
87a1i 11 . . . . . . . . 9  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Trails  E ) P  ->  F ( V Walks 
E ) P ) )
9 2mwlk 23249 . . . . . . . . 9  |-  ( F ( V Walks  E ) P  ->  ( F  e. Word  dom  E  /\  P : ( 0 ... ( # `  F
) ) --> V ) )
108, 9syl6 33 . . . . . . . 8  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Trails  E ) P  ->  ( F  e. Word  dom  E  /\  P :
( 0 ... ( # `
 F ) ) --> V ) ) )
1110imp 429 . . . . . . 7  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  F ( V Trails  E
) P )  -> 
( F  e. Word  dom  E  /\  P : ( 0 ... ( # `  F ) ) --> V ) )
12 imain 5482 . . . . . . . . . . 11  |-  ( Fun  `' P  ->  ( P
" ( { 0 ,  ( # `  F
) }  i^i  (
1..^ ( # `  F
) ) ) )  =  ( ( P
" { 0 ,  ( # `  F
) } )  i^i  ( P " (
1..^ ( # `  F
) ) ) ) )
1312adantl 463 . . . . . . . . . 10  |-  ( ( F  e. Word  dom  E  /\  Fun  `' P )  ->  ( P "
( { 0 ,  ( # `  F
) }  i^i  (
1..^ ( # `  F
) ) ) )  =  ( ( P
" { 0 ,  ( # `  F
) } )  i^i  ( P " (
1..^ ( # `  F
) ) ) ) )
14 0lt1 9849 . . . . . . . . . . . . . . . . . 18  |-  0  <  1
15 0re 9373 . . . . . . . . . . . . . . . . . . 19  |-  0  e.  RR
16 1re 9372 . . . . . . . . . . . . . . . . . . 19  |-  1  e.  RR
1715, 16ltnlei 9482 . . . . . . . . . . . . . . . . . 18  |-  ( 0  <  1  <->  -.  1  <_  0 )
1814, 17mpbi 208 . . . . . . . . . . . . . . . . 17  |-  -.  1  <_  0
19 elfzole1 11543 . . . . . . . . . . . . . . . . 17  |-  ( 0  e.  ( 1..^ (
# `  F )
)  ->  1  <_  0 )
2018, 19mto 176 . . . . . . . . . . . . . . . 16  |-  -.  0  e.  ( 1..^ ( # `  F ) )
2120a1i 11 . . . . . . . . . . . . . . 15  |-  ( F  e. Word  dom  E  ->  -.  0  e.  ( 1..^ ( # `  F
) ) )
22 wrdfin 12231 . . . . . . . . . . . . . . . . . . . 20  |-  ( F  e. Word  dom  E  ->  F  e.  Fin )
23 hashcl 12109 . . . . . . . . . . . . . . . . . . . . 21  |-  ( F  e.  Fin  ->  ( # `
 F )  e. 
NN0 )
2423nn0red 10624 . . . . . . . . . . . . . . . . . . . 20  |-  ( F  e.  Fin  ->  ( # `
 F )  e.  RR )
2522, 24syl 16 . . . . . . . . . . . . . . . . . . 19  |-  ( F  e. Word  dom  E  ->  (
# `  F )  e.  RR )
2625ltnrd 9495 . . . . . . . . . . . . . . . . . 18  |-  ( F  e. Word  dom  E  ->  -.  ( # `  F
)  <  ( # `  F
) )
27 3mix3 1152 . . . . . . . . . . . . . . . . . 18  |-  ( -.  ( # `  F
)  <  ( # `  F
)  ->  ( -.  ( # `  F )  e.  ( ZZ>= `  1
)  \/  -.  ( # `
 F )  e.  ZZ  \/  -.  ( # `
 F )  < 
( # `  F ) ) )
2826, 27syl 16 . . . . . . . . . . . . . . . . 17  |-  ( F  e. Word  dom  E  ->  ( -.  ( # `  F
)  e.  ( ZZ>= ` 
1 )  \/  -.  ( # `  F )  e.  ZZ  \/  -.  ( # `  F )  <  ( # `  F
) ) )
29 3ianor 975 . . . . . . . . . . . . . . . . 17  |-  ( -.  ( ( # `  F
)  e.  ( ZZ>= ` 
1 )  /\  ( # `
 F )  e.  ZZ  /\  ( # `  F )  <  ( # `
 F ) )  <-> 
( -.  ( # `  F )  e.  (
ZZ>= `  1 )  \/ 
-.  ( # `  F
)  e.  ZZ  \/  -.  ( # `  F
)  <  ( # `  F
) ) )
3028, 29sylibr 212 . . . . . . . . . . . . . . . 16  |-  ( F  e. Word  dom  E  ->  -.  ( ( # `  F
)  e.  ( ZZ>= ` 
1 )  /\  ( # `
 F )  e.  ZZ  /\  ( # `  F )  <  ( # `
 F ) ) )
31 elfzo2 11539 . . . . . . . . . . . . . . . 16  |-  ( (
# `  F )  e.  ( 1..^ ( # `  F ) )  <->  ( ( # `
 F )  e.  ( ZZ>= `  1 )  /\  ( # `  F
)  e.  ZZ  /\  ( # `  F )  <  ( # `  F
) ) )
3230, 31sylnibr 305 . . . . . . . . . . . . . . 15  |-  ( F  e. Word  dom  E  ->  -.  ( # `  F
)  e.  ( 1..^ ( # `  F
) ) )
33 fvex 5689 . . . . . . . . . . . . . . . 16  |-  ( # `  F )  e.  _V
34 eleq1 2493 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  0  ->  (
x  e.  ( 1..^ ( # `  F
) )  <->  0  e.  ( 1..^ ( # `  F
) ) ) )
3534notbid 294 . . . . . . . . . . . . . . . . 17  |-  ( x  =  0  ->  ( -.  x  e.  (
1..^ ( # `  F
) )  <->  -.  0  e.  ( 1..^ ( # `  F ) ) ) )
36 eleq1 2493 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  ( # `  F
)  ->  ( x  e.  ( 1..^ ( # `  F ) )  <->  ( # `  F
)  e.  ( 1..^ ( # `  F
) ) ) )
3736notbid 294 . . . . . . . . . . . . . . . . 17  |-  ( x  =  ( # `  F
)  ->  ( -.  x  e.  ( 1..^ ( # `  F
) )  <->  -.  ( # `
 F )  e.  ( 1..^ ( # `  F ) ) ) )
3835, 37ralprg 3913 . . . . . . . . . . . . . . . 16  |-  ( ( 0  e.  RR  /\  ( # `  F )  e.  _V )  -> 
( A. x  e. 
{ 0 ,  (
# `  F ) }  -.  x  e.  ( 1..^ ( # `  F
) )  <->  ( -.  0  e.  ( 1..^ ( # `  F
) )  /\  -.  ( # `  F )  e.  ( 1..^ (
# `  F )
) ) ) )
3915, 33, 38mp2an 665 . . . . . . . . . . . . . . 15  |-  ( A. x  e.  { 0 ,  ( # `  F
) }  -.  x  e.  ( 1..^ ( # `  F ) )  <->  ( -.  0  e.  ( 1..^ ( # `  F
) )  /\  -.  ( # `  F )  e.  ( 1..^ (
# `  F )
) ) )
4021, 32, 39sylanbrc 657 . . . . . . . . . . . . . 14  |-  ( F  e. Word  dom  E  ->  A. x  e.  { 0 ,  ( # `  F
) }  -.  x  e.  ( 1..^ ( # `  F ) ) )
41 disj 3707 . . . . . . . . . . . . . 14  |-  ( ( { 0 ,  (
# `  F ) }  i^i  ( 1..^ (
# `  F )
) )  =  (/)  <->  A. x  e.  { 0 ,  ( # `  F
) }  -.  x  e.  ( 1..^ ( # `  F ) ) )
4240, 41sylibr 212 . . . . . . . . . . . . 13  |-  ( F  e. Word  dom  E  ->  ( { 0 ,  (
# `  F ) }  i^i  ( 1..^ (
# `  F )
) )  =  (/) )
4342imaeq2d 5157 . . . . . . . . . . . 12  |-  ( F  e. Word  dom  E  ->  ( P " ( { 0 ,  ( # `  F ) }  i^i  ( 1..^ ( # `  F
) ) ) )  =  ( P " (/) ) )
44 ima0 5172 . . . . . . . . . . . 12  |-  ( P
" (/) )  =  (/)
4543, 44syl6eq 2481 . . . . . . . . . . 11  |-  ( F  e. Word  dom  E  ->  ( P " ( { 0 ,  ( # `  F ) }  i^i  ( 1..^ ( # `  F
) ) ) )  =  (/) )
4645adantr 462 . . . . . . . . . 10  |-  ( ( F  e. Word  dom  E  /\  Fun  `' P )  ->  ( P "
( { 0 ,  ( # `  F
) }  i^i  (
1..^ ( # `  F
) ) ) )  =  (/) )
4713, 46eqtr3d 2467 . . . . . . . . 9  |-  ( ( F  e. Word  dom  E  /\  Fun  `' P )  ->  ( ( P
" { 0 ,  ( # `  F
) } )  i^i  ( P " (
1..^ ( # `  F
) ) ) )  =  (/) )
4847ex 434 . . . . . . . 8  |-  ( F  e. Word  dom  E  ->  ( Fun  `' P  -> 
( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) ) )
4948adantr 462 . . . . . . 7  |-  ( ( F  e. Word  dom  E  /\  P : ( 0 ... ( # `  F
) ) --> V )  ->  ( Fun  `' P  ->  ( ( P
" { 0 ,  ( # `  F
) } )  i^i  ( P " (
1..^ ( # `  F
) ) ) )  =  (/) ) )
5011, 49syl 16 . . . . . 6  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  F ( V Trails  E
) P )  -> 
( Fun  `' P  ->  ( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) ) )
5150impr 614 . . . . 5  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  ( F ( V Trails  E
) P  /\  Fun  `' P ) )  -> 
( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) )
523, 6, 513jca 1161 . . . 4  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  ( F ( V Trails  E
) P  /\  Fun  `' P ) )  -> 
( F ( V Trails  E ) P  /\  Fun  `' ( P  |`  ( 1..^ ( # `  F
) ) )  /\  ( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) ) )
5352ex 434 . . 3  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( ( F ( V Trails  E
) P  /\  Fun  `' P )  ->  ( F ( V Trails  E
) P  /\  Fun  `' ( P  |`  (
1..^ ( # `  F
) ) )  /\  ( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) ) ) )
54 isspth 23290 . . 3  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V SPaths  E ) P 
<->  ( F ( V Trails  E ) P  /\  Fun  `' P ) ) )
55 ispth 23289 . . 3  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Paths  E ) P 
<->  ( F ( V Trails  E ) P  /\  Fun  `' ( P  |`  ( 1..^ ( # `  F
) ) )  /\  ( ( P " { 0 ,  (
# `  F ) } )  i^i  ( P " ( 1..^ (
# `  F )
) ) )  =  (/) ) ) )
5653, 54, 553imtr4d 268 . 2  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V SPaths  E ) P  ->  F ( V Paths 
E ) P ) )
572, 56mpcom 36 1  |-  ( F ( V SPaths  E ) P  ->  F ( V Paths  E ) P )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    /\ wa 369    \/ w3o 957    /\ w3a 958    = wceq 1362    e. wcel 1755   A.wral 2705   _Vcvv 2962    i^i cin 3315   (/)c0 3625   {cpr 3867   class class class wbr 4280   `'ccnv 4826   dom cdm 4827    |` cres 4829   "cima 4830   Fun wfun 5400   -->wf 5402   ` cfv 5406  (class class class)co 6080   Fincfn 7298   RRcr 9268   0cc0 9269   1c1 9270    < clt 9405    <_ cle 9406   ZZcz 10633   ZZ>=cuz 10848   ...cfz 11423  ..^cfzo 11531   #chash 12086  Word cword 12204   Walks cwalk 23227   Trails ctrail 23228   Paths cpath 23229   SPaths cspath 23230
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1594  ax-4 1605  ax-5 1669  ax-6 1707  ax-7 1727  ax-8 1757  ax-9 1759  ax-10 1774  ax-11 1779  ax-12 1791  ax-13 1942  ax-ext 2414  ax-rep 4391  ax-sep 4401  ax-nul 4409  ax-pow 4458  ax-pr 4519  ax-un 6361  ax-cnex 9325  ax-resscn 9326  ax-1cn 9327  ax-icn 9328  ax-addcl 9329  ax-addrcl 9330  ax-mulcl 9331  ax-mulrcl 9332  ax-mulcom 9333  ax-addass 9334  ax-mulass 9335  ax-distr 9336  ax-i2m1 9337  ax-1ne0 9338  ax-1rid 9339  ax-rnegex 9340  ax-rrecex 9341  ax-cnre 9342  ax-pre-lttri 9343  ax-pre-lttrn 9344  ax-pre-ltadd 9345  ax-pre-mulgt0 9346
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 959  df-3an 960  df-tru 1365  df-ex 1590  df-nf 1593  df-sb 1700  df-eu 2258  df-mo 2259  df-clab 2420  df-cleq 2426  df-clel 2429  df-nfc 2558  df-ne 2598  df-nel 2599  df-ral 2710  df-rex 2711  df-reu 2712  df-rab 2714  df-v 2964  df-sbc 3176  df-csb 3277  df-dif 3319  df-un 3321  df-in 3323  df-ss 3330  df-pss 3332  df-nul 3626  df-if 3780  df-pw 3850  df-sn 3866  df-pr 3868  df-tp 3870  df-op 3872  df-uni 4080  df-int 4117  df-iun 4161  df-br 4281  df-opab 4339  df-mpt 4340  df-tr 4374  df-eprel 4619  df-id 4623  df-po 4628  df-so 4629  df-fr 4666  df-we 4668  df-ord 4709  df-on 4710  df-lim 4711  df-suc 4712  df-xp 4833  df-rel 4834  df-cnv 4835  df-co 4836  df-dm 4837  df-rn 4838  df-res 4839  df-ima 4840  df-iota 5369  df-fun 5408  df-fn 5409  df-f 5410  df-f1 5411  df-fo 5412  df-f1o 5413  df-fv 5414  df-riota 6039  df-ov 6083  df-oprab 6084  df-mpt2 6085  df-om 6466  df-1st 6566  df-2nd 6567  df-recs 6818  df-rdg 6852  df-1o 6908  df-oadd 6912  df-er 7089  df-map 7204  df-pm 7205  df-en 7299  df-dom 7300  df-sdom 7301  df-fin 7302  df-card 8097  df-pnf 9407  df-mnf 9408  df-xr 9409  df-ltxr 9410  df-le 9411  df-sub 9584  df-neg 9585  df-nn 10310  df-n0 10567  df-z 10634  df-uz 10849  df-fz 11424  df-fzo 11532  df-hash 12087  df-word 12212  df-wlk 23237  df-trail 23238  df-pth 23239  df-spth 23240
This theorem is referenced by:  spthon  23303  isspthonpth  23305  usgra2pthspth  30138  spthdifv  30142  usgra2pth  30144  el2spthonot  30232  usg2wotspth  30246
  Copyright terms: Public domain W3C validator