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

Theorem constr3trl 21651
Description: Construction of a trail from three given edges in a graph. (Contributed by Alexander van der Vekens, 13-Nov-2017.)
Hypotheses
Ref Expression
constr3cycl.f  |-  F  =  { <. 0 ,  ( `' E `  { A ,  B } ) >. ,  <. 1 ,  ( `' E `  { B ,  C } ) >. ,  <. 2 ,  ( `' E `  { C ,  A } ) >. }
constr3cycl.p  |-  P  =  ( { <. 0 ,  A >. ,  <. 1 ,  B >. }  u.  { <. 2 ,  C >. , 
<. 3 ,  A >. } )
Assertion
Ref Expression
constr3trl  |-  ( ( V USGrph  E  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  F
( V Trails  E ) P )

Proof of Theorem constr3trl
Dummy variable  k is distinct from all other variables.
StepHypRef Expression
1 usgrav 21376 . . 3  |-  ( V USGrph  E  ->  ( V  e. 
_V  /\  E  e.  _V ) )
2 constr3cycl.f . . . . 5  |-  F  =  { <. 0 ,  ( `' E `  { A ,  B } ) >. ,  <. 1 ,  ( `' E `  { B ,  C } ) >. ,  <. 2 ,  ( `' E `  { C ,  A } ) >. }
3 constr3cycl.p . . . . 5  |-  P  =  ( { <. 0 ,  A >. ,  <. 1 ,  B >. }  u.  { <. 2 ,  C >. , 
<. 3 ,  A >. } )
42, 3constr3lem1 21637 . . . 4  |-  ( F  e.  _V  /\  P  e.  _V )
5 simplr 733 . . . . . . . . . . 11  |-  ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V )
)  ->  V USGrph  E )
62, 3constr3trllem1 21642 . . . . . . . . . . 11  |-  ( ( V USGrph  E  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  F  e. Word  dom  E )
75, 6sylan 459 . . . . . . . . . 10  |-  ( ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V ) )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  F  e. Word  dom  E )
82, 3constr3trllem2 21643 . . . . . . . . . . 11  |-  ( ( V USGrph  E  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  Fun  `' F
)
95, 8sylan 459 . . . . . . . . . 10  |-  ( ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V ) )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  Fun  `' F
)
107, 9jca 520 . . . . . . . . 9  |-  ( ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V ) )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  ( F  e. Word  dom  E  /\  Fun  `' F ) )
112, 3constr3trllem3 21644 . . . . . . . . . 10  |-  ( ( A  e.  V  /\  B  e.  V  /\  C  e.  V )  ->  P : ( 0 ... ( # `  F
) ) --> V )
1211ad2antlr 709 . . . . . . . . 9  |-  ( ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V ) )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  P : ( 0 ... ( # `  F ) ) --> V )
132, 3constr3trllem5 21646 . . . . . . . . . 10  |-  ( ( V USGrph  E  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )
145, 13sylan 459 . . . . . . . . 9  |-  ( ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V ) )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } )
1510, 12, 143jca 1135 . . . . . . . 8  |-  ( ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V ) )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) )
1615ex 425 . . . . . . 7  |-  ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V )
)  ->  ( ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E )  -> 
( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) ) )
17 istrl 21542 . . . . . . . 8  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( F
( V Trails  E ) P 
<->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) ) )
1817ad2antrr 708 . . . . . . 7  |-  ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V )
)  ->  ( F
( V Trails  E ) P 
<->  ( ( F  e. Word  dom  E  /\  Fun  `' F )  /\  P : ( 0 ... ( # `  F
) ) --> V  /\  A. k  e.  ( 0..^ ( # `  F
) ) ( E `
 ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) } ) ) )
1916, 18sylibrd 227 . . . . . 6  |-  ( ( ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  V USGrph  E )  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V )
)  ->  ( ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E )  ->  F ( V Trails  E
) P ) )
2019ex 425 . . . . 5  |-  ( ( ( ( V  e. 
_V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V ) )  /\  V USGrph  E )  ->  (
( A  e.  V  /\  B  e.  V  /\  C  e.  V
)  ->  ( ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E )  ->  F ( V Trails  E
) P ) ) )
2120ex 425 . . . 4  |-  ( ( ( V  e.  _V  /\  E  e.  _V )  /\  ( F  e.  _V  /\  P  e.  _V )
)  ->  ( V USGrph  E  ->  ( ( A  e.  V  /\  B  e.  V  /\  C  e.  V )  ->  (
( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E )  ->  F ( V Trails  E ) P ) ) ) )
224, 21mpan2 654 . . 3  |-  ( ( V  e.  _V  /\  E  e.  _V )  ->  ( V USGrph  E  -> 
( ( A  e.  V  /\  B  e.  V  /\  C  e.  V )  ->  (
( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E )  ->  F ( V Trails  E ) P ) ) ) )
231, 22mpcom 35 . 2  |-  ( V USGrph  E  ->  ( ( A  e.  V  /\  B  e.  V  /\  C  e.  V )  ->  (
( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E )  ->  F ( V Trails  E ) P ) ) )
24233imp 1148 1  |-  ( ( V USGrph  E  /\  ( A  e.  V  /\  B  e.  V  /\  C  e.  V )  /\  ( { A ,  B }  e.  ran  E  /\  { B ,  C }  e.  ran  E  /\  { C ,  A }  e.  ran  E ) )  ->  F
( V Trails  E ) P )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 178    /\ wa 360    /\ w3a 937    = wceq 1653    e. wcel 1726   A.wral 2707   _Vcvv 2958    u. cun 3320   {cpr 3817   {ctp 3818   <.cop 3819   class class class wbr 4215   `'ccnv 4880   dom cdm 4881   ran crn 4882   Fun wfun 5451   -->wf 5453   ` cfv 5457  (class class class)co 6084   0cc0 8995   1c1 8996    + caddc 8998   2c2 10054   3c3 10055   ...cfz 11048  ..^cfzo 11140   #chash 11623  Word cword 11722   USGrph cusg 21370   Trails ctrail 21512
This theorem is referenced by:  constr3pth  21652
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-rep 4323  ax-sep 4333  ax-nul 4341  ax-pow 4380  ax-pr 4406  ax-un 4704  ax-cnex 9051  ax-resscn 9052  ax-1cn 9053  ax-icn 9054  ax-addcl 9055  ax-addrcl 9056  ax-mulcl 9057  ax-mulrcl 9058  ax-mulcom 9059  ax-addass 9060  ax-mulass 9061  ax-distr 9062  ax-i2m1 9063  ax-1ne0 9064  ax-1rid 9065  ax-rnegex 9066  ax-rrecex 9067  ax-cnre 9068  ax-pre-lttri 9069  ax-pre-lttrn 9070  ax-pre-ltadd 9071  ax-pre-mulgt0 9072
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-int 4053  df-iun 4097  df-br 4216  df-opab 4270  df-mpt 4271  df-tr 4306  df-eprel 4497  df-id 4501  df-po 4506  df-so 4507  df-fr 4544  df-we 4546  df-ord 4587  df-on 4588  df-lim 4589  df-suc 4590  df-om 4849  df-xp 4887  df-rel 4888  df-cnv 4889  df-co 4890  df-dm 4891  df-rn 4892  df-res 4893  df-ima 4894  df-iota 5421  df-fun 5459  df-fn 5460  df-f 5461  df-f1 5462  df-fo 5463  df-f1o 5464  df-fv 5465  df-ov 6087  df-oprab 6088  df-mpt2 6089  df-1st 6352  df-2nd 6353  df-riota 6552  df-recs 6636  df-rdg 6671  df-1o 6727  df-oadd 6731  df-er 6908  df-map 7023  df-pm 7024  df-en 7113  df-dom 7114  df-sdom 7115  df-fin 7116  df-card 7831  df-cda 8053  df-pnf 9127  df-mnf 9128  df-xr 9129  df-ltxr 9130  df-le 9131  df-sub 9298  df-neg 9299  df-nn 10006  df-2 10063  df-3 10064  df-n0 10227  df-z 10288  df-uz 10494  df-fz 11049  df-fzo 11141  df-hash 11624  df-word 11728  df-usgra 21372  df-wlk 21521  df-trail 21522
  Copyright terms: Public domain W3C validator