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

Theorem wkslem2 27389
Description: Lemma 2 for walks to substitute the index of the condition for vertices and edges in a walk. (Contributed by AV, 23-Apr-2021.)
Assertion
Ref Expression
wkslem2 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → (if-((𝑃𝐴) = (𝑃‘(𝐴 + 1)), (𝐼‘(𝐹𝐴)) = {(𝑃𝐴)}, {(𝑃𝐴), (𝑃‘(𝐴 + 1))} ⊆ (𝐼‘(𝐹𝐴))) ↔ if-((𝑃𝐵) = (𝑃𝐶), (𝐼‘(𝐹𝐵)) = {(𝑃𝐵)}, {(𝑃𝐵), (𝑃𝐶)} ⊆ (𝐼‘(𝐹𝐵)))))

Proof of Theorem wkslem2
StepHypRef Expression
1 fveq2 6669 . . . 4 (𝐴 = 𝐵 → (𝑃𝐴) = (𝑃𝐵))
21adantr 483 . . 3 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → (𝑃𝐴) = (𝑃𝐵))
3 fveq2 6669 . . . 4 ((𝐴 + 1) = 𝐶 → (𝑃‘(𝐴 + 1)) = (𝑃𝐶))
43adantl 484 . . 3 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → (𝑃‘(𝐴 + 1)) = (𝑃𝐶))
52, 4eqeq12d 2837 . 2 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → ((𝑃𝐴) = (𝑃‘(𝐴 + 1)) ↔ (𝑃𝐵) = (𝑃𝐶)))
6 2fveq3 6674 . . . 4 (𝐴 = 𝐵 → (𝐼‘(𝐹𝐴)) = (𝐼‘(𝐹𝐵)))
71sneqd 4578 . . . 4 (𝐴 = 𝐵 → {(𝑃𝐴)} = {(𝑃𝐵)})
86, 7eqeq12d 2837 . . 3 (𝐴 = 𝐵 → ((𝐼‘(𝐹𝐴)) = {(𝑃𝐴)} ↔ (𝐼‘(𝐹𝐵)) = {(𝑃𝐵)}))
98adantr 483 . 2 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → ((𝐼‘(𝐹𝐴)) = {(𝑃𝐴)} ↔ (𝐼‘(𝐹𝐵)) = {(𝑃𝐵)}))
102, 4preq12d 4676 . . 3 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → {(𝑃𝐴), (𝑃‘(𝐴 + 1))} = {(𝑃𝐵), (𝑃𝐶)})
116adantr 483 . . 3 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → (𝐼‘(𝐹𝐴)) = (𝐼‘(𝐹𝐵)))
1210, 11sseq12d 3999 . 2 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → ({(𝑃𝐴), (𝑃‘(𝐴 + 1))} ⊆ (𝐼‘(𝐹𝐴)) ↔ {(𝑃𝐵), (𝑃𝐶)} ⊆ (𝐼‘(𝐹𝐵))))
135, 9, 12ifpbi123d 1072 1 ((𝐴 = 𝐵 ∧ (𝐴 + 1) = 𝐶) → (if-((𝑃𝐴) = (𝑃‘(𝐴 + 1)), (𝐼‘(𝐹𝐴)) = {(𝑃𝐴)}, {(𝑃𝐴), (𝑃‘(𝐴 + 1))} ⊆ (𝐼‘(𝐹𝐴))) ↔ if-((𝑃𝐵) = (𝑃𝐶), (𝐼‘(𝐹𝐵)) = {(𝑃𝐵)}, {(𝑃𝐵), (𝑃𝐶)} ⊆ (𝐼‘(𝐹𝐵)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  if-wif 1057   = wceq 1533  wss 3935  {csn 4566  {cpr 4568  cfv 6354  (class class class)co 7155  1c1 10537   + caddc 10539
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ifp 1058  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-rab 3147  df-v 3496  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4838  df-br 5066  df-iota 6313  df-fv 6362
This theorem is referenced by:  wlkl1loop  27418  wlk1walk  27419  crctcshwlkn0lem6  27592  1wlkdlem4  27918
  Copyright terms: Public domain W3C validator