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

Theorem wlkl1loop 27579
Description: A walk of length 1 from a vertex to itself is a loop. (Contributed by AV, 23-Apr-2021.)
Assertion
Ref Expression
wlkl1loop (((Fun (iEdg‘𝐺) ∧ 𝐹(Walks‘𝐺)𝑃) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} ∈ (Edg‘𝐺))

Proof of Theorem wlkl1loop
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 wlkv 27554 . . . . 5 (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V))
2 simp3l 1202 . . . . . . . . 9 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → Fun (iEdg‘𝐺))
3 simp2 1138 . . . . . . . . 9 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → 𝐹(Walks‘𝐺)𝑃)
4 c0ex 10714 . . . . . . . . . . . . 13 0 ∈ V
54snid 4553 . . . . . . . . . . . 12 0 ∈ {0}
6 oveq2 7179 . . . . . . . . . . . . 13 ((♯‘𝐹) = 1 → (0..^(♯‘𝐹)) = (0..^1))
7 fzo01 13211 . . . . . . . . . . . . 13 (0..^1) = {0}
86, 7eqtrdi 2789 . . . . . . . . . . . 12 ((♯‘𝐹) = 1 → (0..^(♯‘𝐹)) = {0})
95, 8eleqtrrid 2840 . . . . . . . . . . 11 ((♯‘𝐹) = 1 → 0 ∈ (0..^(♯‘𝐹)))
109ad2antrl 728 . . . . . . . . . 10 ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → 0 ∈ (0..^(♯‘𝐹)))
11103ad2ant3 1136 . . . . . . . . 9 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → 0 ∈ (0..^(♯‘𝐹)))
12 eqid 2738 . . . . . . . . . 10 (iEdg‘𝐺) = (iEdg‘𝐺)
1312iedginwlk 27578 . . . . . . . . 9 ((Fun (iEdg‘𝐺) ∧ 𝐹(Walks‘𝐺)𝑃 ∧ 0 ∈ (0..^(♯‘𝐹))) → ((iEdg‘𝐺)‘(𝐹‘0)) ∈ ran (iEdg‘𝐺))
142, 3, 11, 13syl3anc 1372 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → ((iEdg‘𝐺)‘(𝐹‘0)) ∈ ran (iEdg‘𝐺))
15 eqid 2738 . . . . . . . . . . 11 (Vtx‘𝐺) = (Vtx‘𝐺)
1615, 12iswlkg 27555 . . . . . . . . . 10 (𝐺 ∈ V → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))))))
178raleqdv 3316 . . . . . . . . . . . . . . 15 ((♯‘𝐹) = 1 → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ ∀𝑘 ∈ {0}if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))))
18 oveq1 7178 . . . . . . . . . . . . . . . . . 18 (𝑘 = 0 → (𝑘 + 1) = (0 + 1))
19 0p1e1 11839 . . . . . . . . . . . . . . . . . 18 (0 + 1) = 1
2018, 19eqtrdi 2789 . . . . . . . . . . . . . . . . 17 (𝑘 = 0 → (𝑘 + 1) = 1)
21 wkslem2 27550 . . . . . . . . . . . . . . . . 17 ((𝑘 = 0 ∧ (𝑘 + 1) = 1) → (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0)))))
2220, 21mpdan 687 . . . . . . . . . . . . . . . 16 (𝑘 = 0 → (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0)))))
234, 22ralsn 4573 . . . . . . . . . . . . . . 15 (∀𝑘 ∈ {0}if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0))))
2417, 23bitrdi 290 . . . . . . . . . . . . . 14 ((♯‘𝐹) = 1 → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0)))))
2524ad2antrl 728 . . . . . . . . . . . . 13 ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) ↔ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0)))))
26 ifptru 1075 . . . . . . . . . . . . . . . . 17 ((𝑃‘0) = (𝑃‘1) → (if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0))) ↔ ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}))
2726biimpa 480 . . . . . . . . . . . . . . . 16 (((𝑃‘0) = (𝑃‘1) ∧ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0)))) → ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)})
2827eqcomd 2744 . . . . . . . . . . . . . . 15 (((𝑃‘0) = (𝑃‘1) ∧ if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0)))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0)))
2928ex 416 . . . . . . . . . . . . . 14 ((𝑃‘0) = (𝑃‘1) → (if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0))))
3029ad2antll 729 . . . . . . . . . . . . 13 ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → (if-((𝑃‘0) = (𝑃‘1), ((iEdg‘𝐺)‘(𝐹‘0)) = {(𝑃‘0)}, {(𝑃‘0), (𝑃‘1)} ⊆ ((iEdg‘𝐺)‘(𝐹‘0))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0))))
3125, 30sylbid 243 . . . . . . . . . . . 12 ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0))))
3231com12 32 . . . . . . . . . . 11 (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘))) → ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0))))
33323ad2ant3 1136 . . . . . . . . . 10 ((𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹𝑘)))) → ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0))))
3416, 33syl6bi 256 . . . . . . . . 9 (𝐺 ∈ V → (𝐹(Walks‘𝐺)𝑃 → ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0)))))
35343imp 1112 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → {(𝑃‘0)} = ((iEdg‘𝐺)‘(𝐹‘0)))
36 edgval 26994 . . . . . . . . 9 (Edg‘𝐺) = ran (iEdg‘𝐺)
3736a1i 11 . . . . . . . 8 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → (Edg‘𝐺) = ran (iEdg‘𝐺))
3814, 35, 373eltr4d 2848 . . . . . . 7 ((𝐺 ∈ V ∧ 𝐹(Walks‘𝐺)𝑃 ∧ (Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)))) → {(𝑃‘0)} ∈ (Edg‘𝐺))
39383exp 1120 . . . . . 6 (𝐺 ∈ V → (𝐹(Walks‘𝐺)𝑃 → ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} ∈ (Edg‘𝐺))))
40393ad2ant1 1134 . . . . 5 ((𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V) → (𝐹(Walks‘𝐺)𝑃 → ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} ∈ (Edg‘𝐺))))
411, 40mpcom 38 . . . 4 (𝐹(Walks‘𝐺)𝑃 → ((Fun (iEdg‘𝐺) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} ∈ (Edg‘𝐺)))
4241expd 419 . . 3 (𝐹(Walks‘𝐺)𝑃 → (Fun (iEdg‘𝐺) → (((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)) → {(𝑃‘0)} ∈ (Edg‘𝐺))))
4342impcom 411 . 2 ((Fun (iEdg‘𝐺) ∧ 𝐹(Walks‘𝐺)𝑃) → (((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1)) → {(𝑃‘0)} ∈ (Edg‘𝐺)))
4443imp 410 1 (((Fun (iEdg‘𝐺) ∧ 𝐹(Walks‘𝐺)𝑃) ∧ ((♯‘𝐹) = 1 ∧ (𝑃‘0) = (𝑃‘1))) → {(𝑃‘0)} ∈ (Edg‘𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  if-wif 1062  w3a 1088   = wceq 1542  wcel 2113  wral 3053  Vcvv 3398  wss 3844  {csn 4517  {cpr 4519   class class class wbr 5031  dom cdm 5526  ran crn 5527  Fun wfun 6334  wf 6336  cfv 6340  (class class class)co 7171  0cc0 10616  1c1 10617   + caddc 10619  ...cfz 12982  ..^cfzo 13125  chash 13783  Word cword 13956  Vtxcvtx 26941  iEdgciedg 26942  Edgcedg 26992  Walkscwlks 27538
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1916  ax-6 1974  ax-7 2019  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2161  ax-12 2178  ax-ext 2710  ax-rep 5155  ax-sep 5168  ax-nul 5175  ax-pow 5233  ax-pr 5297  ax-un 7480  ax-cnex 10672  ax-resscn 10673  ax-1cn 10674  ax-icn 10675  ax-addcl 10676  ax-addrcl 10677  ax-mulcl 10678  ax-mulrcl 10679  ax-mulcom 10680  ax-addass 10681  ax-mulass 10682  ax-distr 10683  ax-i2m1 10684  ax-1ne0 10685  ax-1rid 10686  ax-rnegex 10687  ax-rrecex 10688  ax-cnre 10689  ax-pre-lttri 10690  ax-pre-lttrn 10691  ax-pre-ltadd 10692  ax-pre-mulgt0 10693
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-ifp 1063  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2074  df-mo 2540  df-eu 2570  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-nel 3039  df-ral 3058  df-rex 3059  df-reu 3060  df-rab 3062  df-v 3400  df-sbc 3683  df-csb 3792  df-dif 3847  df-un 3849  df-in 3851  df-ss 3861  df-pss 3863  df-nul 4213  df-if 4416  df-pw 4491  df-sn 4518  df-pr 4520  df-tp 4522  df-op 4524  df-uni 4798  df-int 4838  df-iun 4884  df-br 5032  df-opab 5094  df-mpt 5112  df-tr 5138  df-id 5430  df-eprel 5435  df-po 5443  df-so 5444  df-fr 5484  df-we 5486  df-xp 5532  df-rel 5533  df-cnv 5534  df-co 5535  df-dm 5536  df-rn 5537  df-res 5538  df-ima 5539  df-pred 6130  df-ord 6176  df-on 6177  df-lim 6178  df-suc 6179  df-iota 6298  df-fun 6342  df-fn 6343  df-f 6344  df-f1 6345  df-fo 6346  df-f1o 6347  df-fv 6348  df-riota 7128  df-ov 7174  df-oprab 7175  df-mpo 7176  df-om 7601  df-1st 7715  df-2nd 7716  df-wrecs 7977  df-recs 8038  df-rdg 8076  df-1o 8132  df-er 8321  df-map 8440  df-pm 8441  df-en 8557  df-dom 8558  df-sdom 8559  df-fin 8560  df-card 9442  df-pnf 10756  df-mnf 10757  df-xr 10758  df-ltxr 10759  df-le 10760  df-sub 10951  df-neg 10952  df-nn 11718  df-n0 11978  df-z 12064  df-uz 12326  df-fz 12983  df-fzo 13126  df-hash 13784  df-word 13957  df-edg 26993  df-wlks 27541
This theorem is referenced by:  clwlkl1loop  27724  loop1cycl  32670
  Copyright terms: Public domain W3C validator