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

Theorem mapdhval 39738
Description: Lemmma for ~? mapdh . (Contributed by NM, 3-Apr-2015.) (Revised by Mario Carneiro, 6-May-2015.)
Hypotheses
Ref Expression
mapdh.q 𝑄 = (0g𝐶)
mapdh.i 𝐼 = (𝑥 ∈ V ↦ if((2nd𝑥) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)})))))
mapdh.x (𝜑𝑋𝐴)
mapdh.f (𝜑𝐹𝐵)
mapdh.y (𝜑𝑌𝐸)
Assertion
Ref Expression
mapdhval (𝜑 → (𝐼‘⟨𝑋, 𝐹, 𝑌⟩) = if(𝑌 = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)})))))
Distinct variable groups:   𝑥,𝐷   𝑥,,𝐹   𝑥,𝐽   𝑥,𝑀   𝑥,𝑁   𝑥, 0   𝑥,𝑄   𝑥,𝑅   𝑥,   ,𝑋,𝑥   ,𝑌,𝑥   𝜑,
Allowed substitution hints:   𝜑(𝑥)   𝐴(𝑥,)   𝐵(𝑥,)   𝐶(𝑥,)   𝐷()   𝑄()   𝑅()   𝐸(𝑥,)   𝐼(𝑥,)   𝐽()   𝑀()   ()   𝑁()   0 ()

Proof of Theorem mapdhval
StepHypRef Expression
1 otex 5380 . . 3 𝑋, 𝐹, 𝑌⟩ ∈ V
2 fveq2 6774 . . . . . 6 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (2nd𝑥) = (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))
32eqeq1d 2740 . . . . 5 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((2nd𝑥) = 0 ↔ (2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 ))
42sneqd 4573 . . . . . . . . 9 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → {(2nd𝑥)} = {(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})
54fveq2d 6778 . . . . . . . 8 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝑁‘{(2nd𝑥)}) = (𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)}))
65fveqeq2d 6782 . . . . . . 7 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ↔ (𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{})))
7 fveq2 6774 . . . . . . . . . . . . 13 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (1st𝑥) = (1st ‘⟨𝑋, 𝐹, 𝑌⟩))
87fveq2d 6778 . . . . . . . . . . . 12 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (1st ‘(1st𝑥)) = (1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)))
98, 2oveq12d 7293 . . . . . . . . . . 11 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((1st ‘(1st𝑥)) (2nd𝑥)) = ((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩)))
109sneqd 4573 . . . . . . . . . 10 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → {((1st ‘(1st𝑥)) (2nd𝑥))} = {((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})
1110fveq2d 6778 . . . . . . . . 9 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))}) = (𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))}))
1211fveq2d 6778 . . . . . . . 8 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})))
137fveq2d 6778 . . . . . . . . . . 11 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (2nd ‘(1st𝑥)) = (2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)))
1413oveq1d 7290 . . . . . . . . . 10 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((2nd ‘(1st𝑥))𝑅) = ((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅))
1514sneqd 4573 . . . . . . . . 9 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → {((2nd ‘(1st𝑥))𝑅)} = {((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})
1615fveq2d 6778 . . . . . . . 8 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝐽‘{((2nd ‘(1st𝑥))𝑅)}) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))
1712, 16eqeq12d 2754 . . . . . . 7 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)}) ↔ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))
186, 17anbi12d 631 . . . . . 6 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)})) ↔ ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))))
1918riotabidv 7234 . . . . 5 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝐷 ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)}))) = (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))))
203, 19ifbieq2d 4485 . . . 4 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → if((2nd𝑥) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)})))) = if((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))))
21 mapdh.i . . . 4 𝐼 = (𝑥 ∈ V ↦ if((2nd𝑥) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)})))))
22 mapdh.q . . . . . 6 𝑄 = (0g𝐶)
2322fvexi 6788 . . . . 5 𝑄 ∈ V
24 riotaex 7236 . . . . 5 (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))) ∈ V
2523, 24ifex 4509 . . . 4 if((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))) ∈ V
2620, 21, 25fvmpt 6875 . . 3 (⟨𝑋, 𝐹, 𝑌⟩ ∈ V → (𝐼‘⟨𝑋, 𝐹, 𝑌⟩) = if((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))))
271, 26mp1i 13 . 2 (𝜑 → (𝐼‘⟨𝑋, 𝐹, 𝑌⟩) = if((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))))
28 mapdh.y . . . . 5 (𝜑𝑌𝐸)
29 ot3rdg 7847 . . . . 5 (𝑌𝐸 → (2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 𝑌)
3028, 29syl 17 . . . 4 (𝜑 → (2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 𝑌)
3130eqeq1d 2740 . . 3 (𝜑 → ((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0𝑌 = 0 ))
3230sneqd 4573 . . . . . . 7 (𝜑 → {(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)} = {𝑌})
3332fveq2d 6778 . . . . . 6 (𝜑 → (𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)}) = (𝑁‘{𝑌}))
3433fveqeq2d 6782 . . . . 5 (𝜑 → ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ↔ (𝑀‘(𝑁‘{𝑌})) = (𝐽‘{})))
35 mapdh.x . . . . . . . . . . 11 (𝜑𝑋𝐴)
36 mapdh.f . . . . . . . . . . 11 (𝜑𝐹𝐵)
37 ot1stg 7845 . . . . . . . . . . 11 ((𝑋𝐴𝐹𝐵𝑌𝐸) → (1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝑋)
3835, 36, 28, 37syl3anc 1370 . . . . . . . . . 10 (𝜑 → (1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝑋)
3938, 30oveq12d 7293 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩)) = (𝑋 𝑌))
4039sneqd 4573 . . . . . . . 8 (𝜑 → {((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))} = {(𝑋 𝑌)})
4140fveq2d 6778 . . . . . . 7 (𝜑 → (𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))}) = (𝑁‘{(𝑋 𝑌)}))
4241fveq2d 6778 . . . . . 6 (𝜑 → (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝑀‘(𝑁‘{(𝑋 𝑌)})))
43 ot2ndg 7846 . . . . . . . . . 10 ((𝑋𝐴𝐹𝐵𝑌𝐸) → (2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝐹)
4435, 36, 28, 43syl3anc 1370 . . . . . . . . 9 (𝜑 → (2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝐹)
4544oveq1d 7290 . . . . . . . 8 (𝜑 → ((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅) = (𝐹𝑅))
4645sneqd 4573 . . . . . . 7 (𝜑 → {((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)} = {(𝐹𝑅)})
4746fveq2d 6778 . . . . . 6 (𝜑 → (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}) = (𝐽‘{(𝐹𝑅)}))
4842, 47eqeq12d 2754 . . . . 5 (𝜑 → ((𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}) ↔ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)})))
4934, 48anbi12d 631 . . . 4 (𝜑 → (((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})) ↔ ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)}))))
5049riotabidv 7234 . . 3 (𝜑 → (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))) = (𝐷 ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)}))))
5131, 50ifbieq2d 4485 . 2 (𝜑 → if((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))) = if(𝑌 = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)})))))
5227, 51eqtrd 2778 1 (𝜑 → (𝐼‘⟨𝑋, 𝐹, 𝑌⟩) = if(𝑌 = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)})))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wcel 2106  Vcvv 3432  ifcif 4459  {csn 4561  cotp 4569  cmpt 5157  cfv 6433  crio 7231  (class class class)co 7275  1st c1st 7829  2nd c2nd 7830  0gc0g 17150
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-ot 4570  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-iota 6391  df-fun 6435  df-fv 6441  df-riota 7232  df-ov 7278  df-1st 7831  df-2nd 7832
This theorem is referenced by:  mapdhval0  39739  mapdhval2  39740  hdmap1valc  39817
  Copyright terms: Public domain W3C validator