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 42827
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 6877 . . . . 5 (𝑥 = 𝑦 → (2nd ‘𝑥) = (2nd ‘𝑦))
32eqeq1d 2763 . . . 4 (𝑥 = 𝑦 → ((2nd ‘𝑥) = 0 ↔ (2nd ‘𝑦) = 0 ))
42sneqd 4596 . . . . . . . . 9 (𝑥 = 𝑦 → {(2nd ‘𝑥)} = {(2nd ‘𝑦)})
54fveq2d 6881 . . . . . . . 8 (𝑥 = 𝑦 → (𝑁‘{(2nd ‘𝑥)}) = (𝑁‘{(2nd ‘𝑦)}))
65fveq2d 6881 . . . . . . 7 (𝑥 = 𝑦 → (𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝑀‘(𝑁‘{(2nd ‘𝑦)})))
76eqeq1d 2763 . . . . . 6 (𝑥 = 𝑦 → ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ↔ (𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ})))
8 2fveq3 6882 . . . . . . . . . . 11 (𝑥 = 𝑦 → (1st ‘(1st ‘𝑥)) = (1st ‘(1st ‘𝑦)))
98, 2oveq12d 7430 . . . . . . . . . 10 (𝑥 = 𝑦 → ((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥)) = ((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦)))
109sneqd 4596 . . . . . . . . 9 (𝑥 = 𝑦 → {((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))} = {((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})
1110fveq2d 6881 . . . . . . . 8 (𝑥 = 𝑦 → (𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))}) = (𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))}))
1211fveq2d 6881 . . . . . . 7 (𝑥 = 𝑦 → (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})))
13 2fveq3 6882 . . . . . . . . . 10 (𝑥 = 𝑦 → (2nd ‘(1st ‘𝑥)) = (2nd ‘(1st ‘𝑦)))
1413oveq1d 7427 . . . . . . . . 9 (𝑥 = 𝑦 → ((2nd ‘(1st ‘𝑥))𝑅ℎ) = ((2nd ‘(1st ‘𝑦))𝑅ℎ))
1514sneqd 4596 . . . . . . . 8 (𝑥 = 𝑦 → {((2nd ‘(1st ‘𝑥))𝑅ℎ)} = {((2nd ‘(1st ‘𝑦))𝑅ℎ)})
1615fveq2d 6881 . . . . . . 7 (𝑥 = 𝑦 → (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))
1712, 16eqeq12d 2777 . . . . . 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 7371 . . . 4 (𝑥 = 𝑦 → (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}))) = (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))
203, 19ifbieq2d 4509 . . 3 (𝑥 = 𝑦 → if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)})))) = if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))))
2120cbvmptv 5209 . 2 (𝑥 ∈ V ↦ if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}))))) = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))))
22 sneq 4594 . . . . . . . 8 (ℎ = 𝑖 → {ℎ} = {𝑖})
2322fveq2d 6881 . . . . . . 7 (ℎ = 𝑖 → (𝐽‘{ℎ}) = (𝐽‘{𝑖}))
2423eqeq2d 2772 . . . . . 6 (ℎ = 𝑖 → ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ↔ (𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖})))
25 oveq2 7420 . . . . . . . . 9 (ℎ = 𝑖 → ((2nd ‘(1st ‘𝑦))𝑅ℎ) = ((2nd ‘(1st ‘𝑦))𝑅𝑖))
2625sneqd 4596 . . . . . . . 8 (ℎ = 𝑖 → {((2nd ‘(1st ‘𝑦))𝑅ℎ)} = {((2nd ‘(1st ‘𝑦))𝑅𝑖)})
2726fveq2d 6881 . . . . . . 7 (ℎ = 𝑖 → (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)}))
2827eqeq2d 2772 . . . . . 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 7379 . . . 4 (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))) = (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))
31 ifeq2 4487 . . . 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 5201 . 2 (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))) = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))))
341, 21, 333eqtri 2788 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 1570  Vcvv 3451  ifcif 4482  {csn 4584   ↦ cmpt 5186  ‘cfv 6531  ℩crio 7368  (class class class)co 7412  1st c1st 7988  2nd c2nd 7989
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-iota 6487  df-fv 6539  df-riota 7369  df-ov 7415
This theorem is used by:  hdmap1valc  42828  hdmap1eu  42849  hdmap1euOLDN  42850
  Copyright terms: Public domain W3C validator