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 39665
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 5374 . . 3 𝑋, 𝐹, 𝑌⟩ ∈ V
2 fveq2 6756 . . . . . 6 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (2nd𝑥) = (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))
32eqeq1d 2740 . . . . 5 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((2nd𝑥) = 0 ↔ (2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 ))
42sneqd 4570 . . . . . . . . 9 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → {(2nd𝑥)} = {(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})
54fveq2d 6760 . . . . . . . 8 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝑁‘{(2nd𝑥)}) = (𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)}))
65fveqeq2d 6764 . . . . . . 7 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ↔ (𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{})))
7 fveq2 6756 . . . . . . . . . . . . 13 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (1st𝑥) = (1st ‘⟨𝑋, 𝐹, 𝑌⟩))
87fveq2d 6760 . . . . . . . . . . . 12 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (1st ‘(1st𝑥)) = (1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)))
98, 2oveq12d 7273 . . . . . . . . . . 11 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((1st ‘(1st𝑥)) (2nd𝑥)) = ((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩)))
109sneqd 4570 . . . . . . . . . 10 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → {((1st ‘(1st𝑥)) (2nd𝑥))} = {((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})
1110fveq2d 6760 . . . . . . . . 9 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))}) = (𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))}))
1211fveq2d 6760 . . . . . . . 8 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})))
137fveq2d 6760 . . . . . . . . . . 11 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (2nd ‘(1st𝑥)) = (2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)))
1413oveq1d 7270 . . . . . . . . . 10 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((2nd ‘(1st𝑥))𝑅) = ((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅))
1514sneqd 4570 . . . . . . . . 9 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → {((2nd ‘(1st𝑥))𝑅)} = {((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})
1615fveq2d 6760 . . . . . . . 8 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝐽‘{((2nd ‘(1st𝑥))𝑅)}) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))
1712, 16eqeq12d 2754 . . . . . . 7 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → ((𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)}) ↔ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))
186, 17anbi12d 630 . . . . . 6 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)})) ↔ ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))))
1918riotabidv 7214 . . . . 5 (𝑥 = ⟨𝑋, 𝐹, 𝑌⟩ → (𝐷 ((𝑀‘(𝑁‘{(2nd𝑥)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st𝑥)) (2nd𝑥))})) = (𝐽‘{((2nd ‘(1st𝑥))𝑅)}))) = (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))))
203, 19ifbieq2d 4482 . . . 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 6770 . . . . 5 𝑄 ∈ V
24 riotaex 7216 . . . . 5 (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))) ∈ V
2523, 24ifex 4506 . . . 4 if((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0 , 𝑄, (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})))) ∈ V
2620, 21, 25fvmpt 6857 . . 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 7820 . . . . 5 (𝑌𝐸 → (2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 𝑌)
3028, 29syl 17 . . . 4 (𝜑 → (2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 𝑌)
3130eqeq1d 2740 . . 3 (𝜑 → ((2nd ‘⟨𝑋, 𝐹, 𝑌⟩) = 0𝑌 = 0 ))
3230sneqd 4570 . . . . . . 7 (𝜑 → {(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)} = {𝑌})
3332fveq2d 6760 . . . . . 6 (𝜑 → (𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)}) = (𝑁‘{𝑌}))
3433fveqeq2d 6764 . . . . 5 (𝜑 → ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ↔ (𝑀‘(𝑁‘{𝑌})) = (𝐽‘{})))
35 mapdh.x . . . . . . . . . . 11 (𝜑𝑋𝐴)
36 mapdh.f . . . . . . . . . . 11 (𝜑𝐹𝐵)
37 ot1stg 7818 . . . . . . . . . . 11 ((𝑋𝐴𝐹𝐵𝑌𝐸) → (1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝑋)
3835, 36, 28, 37syl3anc 1369 . . . . . . . . . 10 (𝜑 → (1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝑋)
3938, 30oveq12d 7273 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩)) = (𝑋 𝑌))
4039sneqd 4570 . . . . . . . 8 (𝜑 → {((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))} = {(𝑋 𝑌)})
4140fveq2d 6760 . . . . . . 7 (𝜑 → (𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))}) = (𝑁‘{(𝑋 𝑌)}))
4241fveq2d 6760 . . . . . 6 (𝜑 → (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝑀‘(𝑁‘{(𝑋 𝑌)})))
43 ot2ndg 7819 . . . . . . . . . 10 ((𝑋𝐴𝐹𝐵𝑌𝐸) → (2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝐹)
4435, 36, 28, 43syl3anc 1369 . . . . . . . . 9 (𝜑 → (2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) = 𝐹)
4544oveq1d 7270 . . . . . . . 8 (𝜑 → ((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅) = (𝐹𝑅))
4645sneqd 4570 . . . . . . 7 (𝜑 → {((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)} = {(𝐹𝑅)})
4746fveq2d 6760 . . . . . 6 (𝜑 → (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}) = (𝐽‘{(𝐹𝑅)}))
4842, 47eqeq12d 2754 . . . . 5 (𝜑 → ((𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}) ↔ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)})))
4934, 48anbi12d 630 . . . 4 (𝜑 → (((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)})) ↔ ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)}))))
5049riotabidv 7214 . . 3 (𝜑 → (𝐷 ((𝑀‘(𝑁‘{(2nd ‘⟨𝑋, 𝐹, 𝑌⟩)})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{((1st ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩)) (2nd ‘⟨𝑋, 𝐹, 𝑌⟩))})) = (𝐽‘{((2nd ‘(1st ‘⟨𝑋, 𝐹, 𝑌⟩))𝑅)}))) = (𝐷 ((𝑀‘(𝑁‘{𝑌})) = (𝐽‘{}) ∧ (𝑀‘(𝑁‘{(𝑋 𝑌)})) = (𝐽‘{(𝐹𝑅)}))))
5131, 50ifbieq2d 4482 . 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 395   = wceq 1539  wcel 2108  Vcvv 3422  ifcif 4456  {csn 4558  cotp 4566  cmpt 5153  cfv 6418  crio 7211  (class class class)co 7255  1st c1st 7802  2nd c2nd 7803  0gc0g 17067
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-ot 4567  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-iota 6376  df-fun 6420  df-fv 6426  df-riota 7212  df-ov 7258  df-1st 7804  df-2nd 7805
This theorem is referenced by:  mapdhval0  39666  mapdhval2  39667  hdmap1valc  39744
  Copyright terms: Public domain W3C validator