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 43062
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 6911 . . . . 5 (𝑥 = 𝑦 → (2nd ‘𝑥) = (2nd ‘𝑦))
32eqeq1d 2765 . . . 4 (𝑥 = 𝑦 → ((2nd ‘𝑥) = 0 ↔ (2nd ‘𝑦) = 0 ))
42sneqd 4596 . . . . . . . . 9 (𝑥 = 𝑦 → {(2nd ‘𝑥)} = {(2nd ‘𝑦)})
54fveq2d 6915 . . . . . . . 8 (𝑥 = 𝑦 → (𝑁‘{(2nd ‘𝑥)}) = (𝑁‘{(2nd ‘𝑦)}))
65fveq2d 6915 . . . . . . 7 (𝑥 = 𝑦 → (𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝑀‘(𝑁‘{(2nd ‘𝑦)})))
76eqeq1d 2765 . . . . . 6 (𝑥 = 𝑦 → ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ↔ (𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ})))
8 2fveq3 6916 . . . . . . . . . . 11 (𝑥 = 𝑦 → (1st ‘(1st ‘𝑥)) = (1st ‘(1st ‘𝑦)))
98, 2oveq12d 7464 . . . . . . . . . 10 (𝑥 = 𝑦 → ((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥)) = ((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦)))
109sneqd 4596 . . . . . . . . 9 (𝑥 = 𝑦 → {((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))} = {((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})
1110fveq2d 6915 . . . . . . . 8 (𝑥 = 𝑦 → (𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))}) = (𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))}))
1211fveq2d 6915 . . . . . . 7 (𝑥 = 𝑦 → (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})))
13 2fveq3 6916 . . . . . . . . . 10 (𝑥 = 𝑦 → (2nd ‘(1st ‘𝑥)) = (2nd ‘(1st ‘𝑦)))
1413oveq1d 7461 . . . . . . . . 9 (𝑥 = 𝑦 → ((2nd ‘(1st ‘𝑥))𝑅ℎ) = ((2nd ‘(1st ‘𝑦))𝑅ℎ))
1514sneqd 4596 . . . . . . . 8 (𝑥 = 𝑦 → {((2nd ‘(1st ‘𝑥))𝑅ℎ)} = {((2nd ‘(1st ‘𝑦))𝑅ℎ)})
1615fveq2d 6915 . . . . . . 7 (𝑥 = 𝑦 → (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))
1712, 16eqeq12d 2779 . . . . . 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 7405 . . . 4 (𝑥 = 𝑦 → (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)}))) = (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))
203, 19ifbieq2d 4512 . . 3 (𝑥 = 𝑦 → if((2nd ‘𝑥) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑥)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑥)) − (2nd ‘𝑥))})) = (𝐽‘{((2nd ‘(1st ‘𝑥))𝑅ℎ)})))) = if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)})))))
2120cbvmptv 5213 . 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 6915 . . . . . . 7 (ℎ = 𝑖 → (𝐽‘{ℎ}) = (𝐽‘{𝑖}))
2423eqeq2d 2774 . . . . . 6 (ℎ = 𝑖 → ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ↔ (𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖})))
25 oveq2 7454 . . . . . . . . 9 (ℎ = 𝑖 → ((2nd ‘(1st ‘𝑦))𝑅ℎ) = ((2nd ‘(1st ‘𝑦))𝑅𝑖))
2625sneqd 4596 . . . . . . . 8 (ℎ = 𝑖 → {((2nd ‘(1st ‘𝑦))𝑅ℎ)} = {((2nd ‘(1st ‘𝑦))𝑅𝑖)})
2726fveq2d 6915 . . . . . . 7 (ℎ = 𝑖 → (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)}))
2827eqeq2d 2774 . . . . . 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 7413 . . . 4 (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))) = (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))
31 ifeq2 4490 . . . 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 5205 . 2 (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩ℎ ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{ℎ}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅ℎ)}))))) = (𝑦 ∈ V ↦ if((2nd ‘𝑦) = 0 , 𝑄, (℩𝑖 ∈ 𝐷 ((𝑀‘(𝑁‘{(2nd ‘𝑦)})) = (𝐽‘{𝑖}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘𝑦)) − (2nd ‘𝑦))})) = (𝐽‘{((2nd ‘(1st ‘𝑦))𝑅𝑖)})))))
341, 21, 333eqtri 2790 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 3454  ifcif 4485  {csn 4588   ↦ cmpt 5190  ‘cfv 6561  ℩crio 7402  (class class class)co 7446  1st c1st 8026  2nd c2nd 8027
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735
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 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-iota 6515  df-fv 6569  df-riota 7403  df-ov 7449
This theorem is used by:  hdmap1valc  43063  hdmap1eu  43084  hdmap1euOLDN  43085
  Copyright terms: Public domain W3C validator