MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dlwwlknondlwlknonf1olem1 Structured version   Visualization version   GIF version

Theorem dlwwlknondlwlknonf1olem1 29617
Description: Lemma 1 for dlwwlknondlwlknonf1o 29618. (Contributed by AV, 29-May-2022.) (Revised by AV, 1-Nov-2022.)
Assertion
Ref Expression
dlwwlknondlwlknonf1olem1 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (((2nd β€˜π‘) prefix (β™―β€˜(1st β€˜π‘)))β€˜(𝑁 βˆ’ 2)) = ((2nd β€˜π‘)β€˜(𝑁 βˆ’ 2)))

Proof of Theorem dlwwlknondlwlknonf1olem1
StepHypRef Expression
1 clwlkwlk 29032 . . . . 5 (𝑐 ∈ (ClWalksβ€˜πΊ) β†’ 𝑐 ∈ (Walksβ€˜πΊ))
2 wlkcpr 28886 . . . . 5 (𝑐 ∈ (Walksβ€˜πΊ) ↔ (1st β€˜π‘)(Walksβ€˜πΊ)(2nd β€˜π‘))
31, 2sylib 217 . . . 4 (𝑐 ∈ (ClWalksβ€˜πΊ) β†’ (1st β€˜π‘)(Walksβ€˜πΊ)(2nd β€˜π‘))
4 eqid 2733 . . . . 5 (Vtxβ€˜πΊ) = (Vtxβ€˜πΊ)
54wlkpwrd 28874 . . . 4 ((1st β€˜π‘)(Walksβ€˜πΊ)(2nd β€˜π‘) β†’ (2nd β€˜π‘) ∈ Word (Vtxβ€˜πΊ))
63, 5syl 17 . . 3 (𝑐 ∈ (ClWalksβ€˜πΊ) β†’ (2nd β€˜π‘) ∈ Word (Vtxβ€˜πΊ))
763ad2ant2 1135 . 2 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (2nd β€˜π‘) ∈ Word (Vtxβ€˜πΊ))
8 eluzge2nn0 12871 . . . . . . 7 (𝑁 ∈ (β„€β‰₯β€˜2) β†’ 𝑁 ∈ β„•0)
983ad2ant3 1136 . . . . . 6 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ 𝑁 ∈ β„•0)
10 eleq1 2822 . . . . . . 7 ((β™―β€˜(1st β€˜π‘)) = 𝑁 β†’ ((β™―β€˜(1st β€˜π‘)) ∈ β„•0 ↔ 𝑁 ∈ β„•0))
11103ad2ant1 1134 . . . . . 6 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ ((β™―β€˜(1st β€˜π‘)) ∈ β„•0 ↔ 𝑁 ∈ β„•0))
129, 11mpbird 257 . . . . 5 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (β™―β€˜(1st β€˜π‘)) ∈ β„•0)
13 nn0fz0 13599 . . . . 5 ((β™―β€˜(1st β€˜π‘)) ∈ β„•0 ↔ (β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(1st β€˜π‘))))
1412, 13sylib 217 . . . 4 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(1st β€˜π‘))))
15 fzelp1 13553 . . . 4 ((β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(1st β€˜π‘))) β†’ (β™―β€˜(1st β€˜π‘)) ∈ (0...((β™―β€˜(1st β€˜π‘)) + 1)))
1614, 15syl 17 . . 3 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (β™―β€˜(1st β€˜π‘)) ∈ (0...((β™―β€˜(1st β€˜π‘)) + 1)))
17 wlklenvp1 28875 . . . . . . . 8 ((1st β€˜π‘)(Walksβ€˜πΊ)(2nd β€˜π‘) β†’ (β™―β€˜(2nd β€˜π‘)) = ((β™―β€˜(1st β€˜π‘)) + 1))
1817eqcomd 2739 . . . . . . 7 ((1st β€˜π‘)(Walksβ€˜πΊ)(2nd β€˜π‘) β†’ ((β™―β€˜(1st β€˜π‘)) + 1) = (β™―β€˜(2nd β€˜π‘)))
193, 18syl 17 . . . . . 6 (𝑐 ∈ (ClWalksβ€˜πΊ) β†’ ((β™―β€˜(1st β€˜π‘)) + 1) = (β™―β€˜(2nd β€˜π‘)))
2019oveq2d 7425 . . . . 5 (𝑐 ∈ (ClWalksβ€˜πΊ) β†’ (0...((β™―β€˜(1st β€˜π‘)) + 1)) = (0...(β™―β€˜(2nd β€˜π‘))))
2120eleq2d 2820 . . . 4 (𝑐 ∈ (ClWalksβ€˜πΊ) β†’ ((β™―β€˜(1st β€˜π‘)) ∈ (0...((β™―β€˜(1st β€˜π‘)) + 1)) ↔ (β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(2nd β€˜π‘)))))
22213ad2ant2 1135 . . 3 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ ((β™―β€˜(1st β€˜π‘)) ∈ (0...((β™―β€˜(1st β€˜π‘)) + 1)) ↔ (β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(2nd β€˜π‘)))))
2316, 22mpbid 231 . 2 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(2nd β€˜π‘))))
24 2nn 12285 . . . . . . 7 2 ∈ β„•
2524a1i 11 . . . . . 6 (𝑁 ∈ (β„€β‰₯β€˜2) β†’ 2 ∈ β„•)
26 eluz2nn 12868 . . . . . 6 (𝑁 ∈ (β„€β‰₯β€˜2) β†’ 𝑁 ∈ β„•)
27 eluzle 12835 . . . . . 6 (𝑁 ∈ (β„€β‰₯β€˜2) β†’ 2 ≀ 𝑁)
28 elfz1b 13570 . . . . . 6 (2 ∈ (1...𝑁) ↔ (2 ∈ β„• ∧ 𝑁 ∈ β„• ∧ 2 ≀ 𝑁))
2925, 26, 27, 28syl3anbrc 1344 . . . . 5 (𝑁 ∈ (β„€β‰₯β€˜2) β†’ 2 ∈ (1...𝑁))
30 ubmelfzo 13697 . . . . 5 (2 ∈ (1...𝑁) β†’ (𝑁 βˆ’ 2) ∈ (0..^𝑁))
3129, 30syl 17 . . . 4 (𝑁 ∈ (β„€β‰₯β€˜2) β†’ (𝑁 βˆ’ 2) ∈ (0..^𝑁))
32313ad2ant3 1136 . . 3 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (𝑁 βˆ’ 2) ∈ (0..^𝑁))
33 oveq2 7417 . . . . 5 ((β™―β€˜(1st β€˜π‘)) = 𝑁 β†’ (0..^(β™―β€˜(1st β€˜π‘))) = (0..^𝑁))
3433eleq2d 2820 . . . 4 ((β™―β€˜(1st β€˜π‘)) = 𝑁 β†’ ((𝑁 βˆ’ 2) ∈ (0..^(β™―β€˜(1st β€˜π‘))) ↔ (𝑁 βˆ’ 2) ∈ (0..^𝑁)))
35343ad2ant1 1134 . . 3 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ ((𝑁 βˆ’ 2) ∈ (0..^(β™―β€˜(1st β€˜π‘))) ↔ (𝑁 βˆ’ 2) ∈ (0..^𝑁)))
3632, 35mpbird 257 . 2 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (𝑁 βˆ’ 2) ∈ (0..^(β™―β€˜(1st β€˜π‘))))
37 pfxfv 14632 . 2 (((2nd β€˜π‘) ∈ Word (Vtxβ€˜πΊ) ∧ (β™―β€˜(1st β€˜π‘)) ∈ (0...(β™―β€˜(2nd β€˜π‘))) ∧ (𝑁 βˆ’ 2) ∈ (0..^(β™―β€˜(1st β€˜π‘)))) β†’ (((2nd β€˜π‘) prefix (β™―β€˜(1st β€˜π‘)))β€˜(𝑁 βˆ’ 2)) = ((2nd β€˜π‘)β€˜(𝑁 βˆ’ 2)))
387, 23, 36, 37syl3anc 1372 1 (((β™―β€˜(1st β€˜π‘)) = 𝑁 ∧ 𝑐 ∈ (ClWalksβ€˜πΊ) ∧ 𝑁 ∈ (β„€β‰₯β€˜2)) β†’ (((2nd β€˜π‘) prefix (β™―β€˜(1st β€˜π‘)))β€˜(𝑁 βˆ’ 2)) = ((2nd β€˜π‘)β€˜(𝑁 βˆ’ 2)))
Colors of variables: wff setvar class
Syntax hints:   β†’ wi 4   ↔ wb 205   ∧ w3a 1088   = wceq 1542   ∈ wcel 2107   class class class wbr 5149  β€˜cfv 6544  (class class class)co 7409  1st c1st 7973  2nd c2nd 7974  0cc0 11110  1c1 11111   + caddc 11113   ≀ cle 11249   βˆ’ cmin 11444  β„•cn 12212  2c2 12267  β„•0cn0 12472  β„€β‰₯cuz 12822  ...cfz 13484  ..^cfzo 13627  β™―chash 14290  Word cword 14464   prefix cpfx 14620  Vtxcvtx 28256  Walkscwlks 28853  ClWalkscclwlks 29027
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-un 7725  ax-cnex 11166  ax-resscn 11167  ax-1cn 11168  ax-icn 11169  ax-addcl 11170  ax-addrcl 11171  ax-mulcl 11172  ax-mulrcl 11173  ax-mulcom 11174  ax-addass 11175  ax-mulass 11176  ax-distr 11177  ax-i2m1 11178  ax-1ne0 11179  ax-1rid 11180  ax-rnegex 11181  ax-rrecex 11182  ax-cnre 11183  ax-pre-lttri 11184  ax-pre-lttrn 11185  ax-pre-ltadd 11186  ax-pre-mulgt0 11187
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-ifp 1063  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-int 4952  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-riota 7365  df-ov 7412  df-oprab 7413  df-mpo 7414  df-om 7856  df-1st 7975  df-2nd 7976  df-frecs 8266  df-wrecs 8297  df-recs 8371  df-rdg 8410  df-1o 8466  df-er 8703  df-map 8822  df-en 8940  df-dom 8941  df-sdom 8942  df-fin 8943  df-card 9934  df-pnf 11250  df-mnf 11251  df-xr 11252  df-ltxr 11253  df-le 11254  df-sub 11446  df-neg 11447  df-nn 12213  df-2 12275  df-n0 12473  df-z 12559  df-uz 12823  df-fz 13485  df-fzo 13628  df-hash 14291  df-word 14465  df-substr 14591  df-pfx 14621  df-wlks 28856  df-clwlks 29028
This theorem is referenced by:  dlwwlknondlwlknonf1o  29618
  Copyright terms: Public domain W3C validator