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

Theorem numclwwlk3lem2lem 28166
 Description: Lemma for numclwwlk3lem2 28167: The set of closed vertices of a fixed length 𝑁 on a fixed vertex 𝑉 is the union of the set of closed walks of length 𝑁 at 𝑉 with the last but one vertex being 𝑉 and the set of closed walks of length 𝑁 at 𝑉 with the last but one vertex not being 𝑉. (Contributed by AV, 1-May-2022.)
Hypotheses
Ref Expression
numclwwlk3lem2.c 𝐶 = (𝑣𝑉, 𝑛 ∈ (ℤ‘2) ↦ {𝑤 ∈ (𝑣(ClWWalksNOn‘𝐺)𝑛) ∣ (𝑤‘(𝑛 − 2)) = 𝑣})
numclwwlk3lem2.h 𝐻 = (𝑣𝑉, 𝑛 ∈ (ℤ‘2) ↦ {𝑤 ∈ (𝑣(ClWWalksNOn‘𝐺)𝑛) ∣ (𝑤‘(𝑛 − 2)) ≠ 𝑣})
Assertion
Ref Expression
numclwwlk3lem2lem ((𝑋𝑉𝑁 ∈ (ℤ‘2)) → (𝑋(ClWWalksNOn‘𝐺)𝑁) = ((𝑋𝐻𝑁) ∪ (𝑋𝐶𝑁)))
Distinct variable groups:   𝑛,𝐺,𝑣,𝑤   𝑛,𝑁,𝑣,𝑤   𝑛,𝑉,𝑣   𝑛,𝑋,𝑣,𝑤
Allowed substitution hints:   𝐶(𝑤,𝑣,𝑛)   𝐻(𝑤,𝑣,𝑛)   𝑉(𝑤)

Proof of Theorem numclwwlk3lem2lem
StepHypRef Expression
1 numclwwlk3lem2.h . . . 4 𝐻 = (𝑣𝑉, 𝑛 ∈ (ℤ‘2) ↦ {𝑤 ∈ (𝑣(ClWWalksNOn‘𝐺)𝑛) ∣ (𝑤‘(𝑛 − 2)) ≠ 𝑣})
21numclwwlkovh0 28155 . . 3 ((𝑋𝑉𝑁 ∈ (ℤ‘2)) → (𝑋𝐻𝑁) = {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) ≠ 𝑋})
3 numclwwlk3lem2.c . . . 4 𝐶 = (𝑣𝑉, 𝑛 ∈ (ℤ‘2) ↦ {𝑤 ∈ (𝑣(ClWWalksNOn‘𝐺)𝑛) ∣ (𝑤‘(𝑛 − 2)) = 𝑣})
432clwwlk 28130 . . 3 ((𝑋𝑉𝑁 ∈ (ℤ‘2)) → (𝑋𝐶𝑁) = {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) = 𝑋})
52, 4uneq12d 4115 . 2 ((𝑋𝑉𝑁 ∈ (ℤ‘2)) → ((𝑋𝐻𝑁) ∪ (𝑋𝐶𝑁)) = ({𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) ≠ 𝑋} ∪ {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) = 𝑋}))
6 unrab 4248 . . 3 ({𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) ≠ 𝑋} ∪ {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) = 𝑋}) = {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ ((𝑤‘(𝑁 − 2)) ≠ 𝑋 ∨ (𝑤‘(𝑁 − 2)) = 𝑋)}
7 exmidne 3021 . . . . . 6 ((𝑤‘(𝑁 − 2)) = 𝑋 ∨ (𝑤‘(𝑁 − 2)) ≠ 𝑋)
8 orcom 867 . . . . . 6 (((𝑤‘(𝑁 − 2)) ≠ 𝑋 ∨ (𝑤‘(𝑁 − 2)) = 𝑋) ↔ ((𝑤‘(𝑁 − 2)) = 𝑋 ∨ (𝑤‘(𝑁 − 2)) ≠ 𝑋))
97, 8mpbir 234 . . . . 5 ((𝑤‘(𝑁 − 2)) ≠ 𝑋 ∨ (𝑤‘(𝑁 − 2)) = 𝑋)
109a1i 11 . . . 4 (𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) → ((𝑤‘(𝑁 − 2)) ≠ 𝑋 ∨ (𝑤‘(𝑁 − 2)) = 𝑋))
1110rabeqc 3653 . . 3 {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ ((𝑤‘(𝑁 − 2)) ≠ 𝑋 ∨ (𝑤‘(𝑁 − 2)) = 𝑋)} = (𝑋(ClWWalksNOn‘𝐺)𝑁)
126, 11eqtri 2845 . 2 ({𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) ≠ 𝑋} ∪ {𝑤 ∈ (𝑋(ClWWalksNOn‘𝐺)𝑁) ∣ (𝑤‘(𝑁 − 2)) = 𝑋}) = (𝑋(ClWWalksNOn‘𝐺)𝑁)
135, 12syl6req 2874 1 ((𝑋𝑉𝑁 ∈ (ℤ‘2)) → (𝑋(ClWWalksNOn‘𝐺)𝑁) = ((𝑋𝐻𝑁) ∪ (𝑋𝐶𝑁)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   ∨ wo 844   = wceq 1538   ∈ wcel 2114   ≠ wne 3011  {crab 3134   ∪ cun 3906  ‘cfv 6334  (class class class)co 7140   ∈ cmpo 7142   − cmin 10859  2c2 11680  ℤ≥cuz 12231  ClWWalksNOncclwwlknon 27870 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2178  ax-ext 2794  ax-sep 5179  ax-nul 5186  ax-pr 5307 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2622  df-eu 2653  df-clab 2801  df-cleq 2815  df-clel 2894  df-nfc 2962  df-ne 3012  df-ral 3135  df-rex 3136  df-rab 3139  df-v 3471  df-sbc 3748  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-nul 4266  df-if 4440  df-sn 4540  df-pr 4542  df-op 4546  df-uni 4814  df-br 5043  df-opab 5105  df-id 5437  df-xp 5538  df-rel 5539  df-cnv 5540  df-co 5541  df-dm 5542  df-iota 6293  df-fun 6336  df-fv 6342  df-ov 7143  df-oprab 7144  df-mpo 7145 This theorem is referenced by:  numclwwlk3lem2  28167
 Copyright terms: Public domain W3C validator