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

Theorem wwlksonvtx 28605
Description: If a word 𝑊 represents a walk of length 2 on two classes 𝐴 and 𝐶, these classes are vertices. (Contributed by AV, 14-Mar-2022.)
Hypothesis
Ref Expression
wwlksonvtx.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
wwlksonvtx (𝑊 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐶) → (𝐴𝑉𝐶𝑉))

Proof of Theorem wwlksonvtx
Dummy variables 𝑎 𝑏 𝑔 𝑛 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fvex 6851 . . . . 5 (Vtx‘𝑔) ∈ V
21, 1pm3.2i 472 . . . 4 ((Vtx‘𝑔) ∈ V ∧ (Vtx‘𝑔) ∈ V)
32rgen2w 3068 . . 3 𝑛 ∈ ℕ0𝑔 ∈ V ((Vtx‘𝑔) ∈ V ∧ (Vtx‘𝑔) ∈ V)
4 df-wwlksnon 28582 . . . 4 WWalksNOn = (𝑛 ∈ ℕ0, 𝑔 ∈ V ↦ (𝑎 ∈ (Vtx‘𝑔), 𝑏 ∈ (Vtx‘𝑔) ↦ {𝑤 ∈ (𝑛 WWalksN 𝑔) ∣ ((𝑤‘0) = 𝑎 ∧ (𝑤𝑛) = 𝑏)}))
5 fveq2 6838 . . . . . 6 (𝑔 = 𝐺 → (Vtx‘𝑔) = (Vtx‘𝐺))
65, 5jca 513 . . . . 5 (𝑔 = 𝐺 → ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (Vtx‘𝑔) = (Vtx‘𝐺)))
76adantl 483 . . . 4 ((𝑛 = 𝑁𝑔 = 𝐺) → ((Vtx‘𝑔) = (Vtx‘𝐺) ∧ (Vtx‘𝑔) = (Vtx‘𝐺)))
84, 7el2mpocl 8007 . . 3 (∀𝑛 ∈ ℕ0𝑔 ∈ V ((Vtx‘𝑔) ∈ V ∧ (Vtx‘𝑔) ∈ V) → (𝑊 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐶) → ((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)))))
93, 8ax-mp 5 . 2 (𝑊 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐶) → ((𝑁 ∈ ℕ0𝐺 ∈ V) ∧ (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺))))
10 wwlksonvtx.v . . . . 5 𝑉 = (Vtx‘𝐺)
1110eleq2i 2830 . . . 4 (𝐴𝑉𝐴 ∈ (Vtx‘𝐺))
1210eleq2i 2830 . . . 4 (𝐶𝑉𝐶 ∈ (Vtx‘𝐺))
1311, 12anbi12i 628 . . 3 ((𝐴𝑉𝐶𝑉) ↔ (𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)))
1413biimpri 227 . 2 ((𝐴 ∈ (Vtx‘𝐺) ∧ 𝐶 ∈ (Vtx‘𝐺)) → (𝐴𝑉𝐶𝑉))
159, 14simpl2im 505 1 (𝑊 ∈ (𝐴(𝑁 WWalksNOn 𝐺)𝐶) → (𝐴𝑉𝐶𝑉))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1542  wcel 2107  wral 3063  {crab 3406  Vcvv 3444  cfv 6492  (class class class)co 7350  0cc0 10985  0cn0 12347  Vtxcvtx 27752   WWalksN cwwlksn 28576   WWalksNOn cwwlksnon 28577
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 2709  ax-rep 5241  ax-sep 5255  ax-nul 5262  ax-pow 5319  ax-pr 5383  ax-un 7663
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2888  df-ne 2943  df-ral 3064  df-rex 3073  df-reu 3353  df-rab 3407  df-v 3446  df-sbc 3739  df-csb 3855  df-dif 3912  df-un 3914  df-in 3916  df-ss 3926  df-nul 4282  df-if 4486  df-pw 4561  df-sn 4586  df-pr 4588  df-op 4592  df-uni 4865  df-iun 4955  df-br 5105  df-opab 5167  df-mpt 5188  df-id 5529  df-xp 5637  df-rel 5638  df-cnv 5639  df-co 5640  df-dm 5641  df-rn 5642  df-res 5643  df-ima 5644  df-iota 6444  df-fun 6494  df-fn 6495  df-f 6496  df-f1 6497  df-fo 6498  df-f1o 6499  df-fv 6500  df-ov 7353  df-oprab 7354  df-mpo 7355  df-1st 7912  df-2nd 7913  df-wwlksnon 28582
This theorem is referenced by:  iswspthsnon  28606  wwlks2onv  28703  elwwlks2ons3im  28704
  Copyright terms: Public domain W3C validator