Users' Mathboxes Mathbox for Norm Megill < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  hdmap1cbv Structured version   Visualization version   GIF version

Theorem hdmap1cbv 42953
Description: Frequently used lemma to change bound variables in 𝐿 hypothesis. (Contributed by NM, 15-May-2015.)
Hypothesis
Ref Expression
hdmap1cbv.l 𝐿 = (𝑥 ∈ V ↦ if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)})))))
Assertion
Ref Expression
hdmap1cbv 𝐿 = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))))
Distinct variable groups:   ℎ,𝑖,𝑥,𝑦,𝐷   ℎ,𝐽,𝑖,𝑥,𝑦   ℎ,𝑀,𝑖,𝑥,𝑦   ℎ,𝑁,𝑖,𝑥,𝑦   𝑥, 0 ,𝑦   𝑥,𝑄,𝑦   𝑅,ℎ,𝑖,𝑥,𝑦   − ,ℎ,𝑖,𝑥,𝑦
Allowed substitution hints:   𝑄(ℎ, 𝑖)   𝐿(𝑥, 𝑦, ℎ, 𝑖)   0 (ℎ, 𝑖)

Proof of Theorem hdmap1cbv
StepHypRef Expression
1 hdmap1cbv.l . 2 𝐿 = (𝑥 ∈ V ↦ if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)})))))
2 fveq2 6886 . . . . 5 (𝑥 = 𝑦 → (2nd ‘𝑥) = (2nd ‘𝑦))
32eqeq1d 2762 . . . 4 (𝑥 = 𝑦 → ((2nd ‘𝑥) = 0 ↔ (2nd ‘𝑦) = 0 ))
42sneqd 4592 . . . . . . . . 9 (𝑥 = 𝑦 → {(2nd ‘𝑥)} = {(2nd ‘𝑦)})
54fveq2d 6890 . . . . . . . 8 (𝑥 = 𝑦 → (𝑁‘{(2nd ‘𝑥)}) = (𝑁‘{(2nd ‘𝑦)}))
65fveq2d 6890 . . . . . . 7 (𝑥 = 𝑦 → (𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝑀‘(𝑁‘{(2nd ‘𝑦)})))
76eqeq1d 2762 . . . . . 6 (𝑥 = 𝑦 → ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ↔ (𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ})))
8 2fveq3 6891 . . . . . . . . . . 11 (𝑥 = 𝑦 → (1st ‘(1st ‘𝑥)) = (1st ‘(1st ‘𝑦)))
98, 2oveq12d 7439 . . . . . . . . . 10 (𝑥 = 𝑦 → ((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥)) = ((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦)))
109sneqd 4592 . . . . . . . . 9 (𝑥 = 𝑦 → {((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))} = {((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})
1110fveq2d 6890 . . . . . . . 8 (𝑥 = 𝑦 → (𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))}) = (𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))}))
1211fveq2d 6890 . . . . . . 7 (𝑥 = 𝑦 → (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})))
13 2fveq3 6891 . . . . . . . . . 10 (𝑥 = 𝑦 → (2nd ‘(1st ‘𝑥)) = (2nd ‘(1st ‘𝑦)))
1413oveq1d 7436 . . . . . . . . 9 (𝑥 = 𝑦 → ((2nd ‘(1st ‘𝑥))𝑅ℎ) = ((2nd ‘(1st ‘𝑦))𝑅ℎ))
1514sneqd 4592 . . . . . . . 8 (𝑥 = 𝑦 → {((2nd ‘(1st ‘𝑥))𝑅ℎ)} = {((2nd ‘(1st ‘𝑦))𝑅ℎ)})
1615fveq2d 6890 . . . . . . 7 (𝑥 = 𝑦 → (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))
1712, 16eqeq12d 2776 . . . . . 6 (𝑥 = 𝑦 → ((𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}) ↔ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))
187, 17anbi12d 644 . . . . 5 (𝑥 = 𝑦 → (((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)})) ↔ ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))
1918riotabidv 7380 . . . 4 (𝑥 = 𝑦 → (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}))) = (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))
203, 19ifbieq2d 4508 . . 3 (𝑥 = 𝑦 → if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)})))) = if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))))
2120cbvmptv 5208 . 2 (𝑥 ∈ V ↦ if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}))))) = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))))
22 sneq 4590 . . . . . . . 8 (ℎ = 𝑖 → {ℎ} = {𝑖})
2322fveq2d 6890 . . . . . . 7 (ℎ = 𝑖 → (𝐽‘{ℎ}) = (𝐽‘{𝑖}))
2423eqeq2d 2771 . . . . . 6 (ℎ = 𝑖 → ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ↔ (𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖})))
25 oveq2 7429 . . . . . . . . 9 (ℎ = 𝑖 → ((2nd ‘(1st ‘𝑦))𝑅ℎ) = ((2nd ‘(1st ‘𝑦))𝑅𝑖))
2625sneqd 4592 . . . . . . . 8 (ℎ = 𝑖 → {((2nd ‘(1st ‘𝑦))𝑅ℎ)} = {((2nd ‘(1st ‘𝑦))𝑅𝑖)})
2726fveq2d 6890 . . . . . . 7 (ℎ = 𝑖 → (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)}))
2827eqeq2d 2771 . . . . . 6 (ℎ = 𝑖 → ((𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}) ↔ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))
2924, 28anbi12d 644 . . . . 5 (ℎ = 𝑖 → (((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})) ↔ ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)}))))
3029cbvriotavw 7388 . . . 4 (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))) = (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))
31 ifeq2 4486 . . . 4 ((℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))) = (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)}))) → if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))) = if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))))
3230, 31ax-mp 5 . . 3 if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))) = if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)}))))
3332mpteq2i 5200 . 2 (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))) = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))))
341, 21, 333eqtri 2787 1 𝐿 = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1569  Vcvv 3450  ifcif 4481  {csn 4584   ↦ cmpt 5185  ‘cfv 6539  ℩crio 7377  (class class class)co 7421  1st c1st 8000  2nd c2nd 8001
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-iota 6494  df-fv 6547  df-riota 7378  df-ov 7424
This theorem is used by:  hdmap1valc  42954  hdmap1eu  42975  hdmap1euOLDN  42976
  Copyright terms: Public domain W3C validator