MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  2nd2val Structured version   Visualization version   GIF version

Theorem 2nd2val 7768
Description: Value of an alternate definition of the 2nd function. (Contributed by NM, 10-Aug-2006.) (Revised by Mario Carneiro, 30-Dec-2014.)
Assertion
Ref Expression
2nd2val ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴)
Distinct variable group:   𝑥,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑥,𝑦,𝑧)

Proof of Theorem 2nd2val
Dummy variables 𝑤 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elvv 5608 . . 3 (𝐴 ∈ (V × V) ↔ ∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩)
2 fveq2 6695 . . . . . 6 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩))
3 df-ov 7194 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩)
4 simpr 488 . . . . . . . . 9 ((𝑥 = 𝑤𝑦 = 𝑣) → 𝑦 = 𝑣)
5 mpov 7300 . . . . . . . . . 10 (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}
65eqcomi 2745 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦)
7 vex 3402 . . . . . . . . 9 𝑣 ∈ V
84, 6, 7ovmpoa 7342 . . . . . . . 8 ((𝑤 ∈ V ∧ 𝑣 ∈ V) → (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣)
98el2v 3406 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣
103, 9eqtr3i 2761 . . . . . 6 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩) = 𝑣
112, 10eqtrdi 2787 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = 𝑣)
12 vex 3402 . . . . . 6 𝑤 ∈ V
1312, 7op2ndd 7750 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → (2nd𝐴) = 𝑣)
1411, 13eqtr4d 2774 . . . 4 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
1514exlimivv 1940 . . 3 (∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
161, 15sylbi 220 . 2 (𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
17 vex 3402 . . . . . . . . . 10 𝑥 ∈ V
18 vex 3402 . . . . . . . . . 10 𝑦 ∈ V
1917, 18pm3.2i 474 . . . . . . . . 9 (𝑥 ∈ V ∧ 𝑦 ∈ V)
20 ax6ev 1978 . . . . . . . . 9 𝑧 𝑧 = 𝑦
2119, 202th 267 . . . . . . . 8 ((𝑥 ∈ V ∧ 𝑦 ∈ V) ↔ ∃𝑧 𝑧 = 𝑦)
2221opabbii 5106 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
23 df-xp 5542 . . . . . . 7 (V × V) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)}
24 dmoprab 7290 . . . . . . 7 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
2522, 23, 243eqtr4ri 2770 . . . . . 6 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (V × V)
2625eleq2i 2822 . . . . 5 (𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} ↔ 𝐴 ∈ (V × V))
27 ndmfv 6725 . . . . 5 𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
2826, 27sylnbir 334 . . . 4 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
29 rnsnn0 6051 . . . . . . . 8 (𝐴 ∈ (V × V) ↔ ran {𝐴} ≠ ∅)
3029biimpri 231 . . . . . . 7 (ran {𝐴} ≠ ∅ → 𝐴 ∈ (V × V))
3130necon1bi 2960 . . . . . 6 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3231unieqd 4819 . . . . 5 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
33 uni0 4835 . . . . 5 ∅ = ∅
3432, 33eqtrdi 2787 . . . 4 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3528, 34eqtr4d 2774 . . 3 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ran {𝐴})
36 2ndval 7742 . . 3 (2nd𝐴) = ran {𝐴}
3735, 36eqtr4di 2789 . 2 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
3816, 37pm2.61i 185 1 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 399   = wceq 1543  wex 1787  wcel 2112  wne 2932  Vcvv 3398  c0 4223  {csn 4527  cop 4533   cuni 4805  {copab 5101   × cxp 5534  dom cdm 5536  ran crn 5537  cfv 6358  (class class class)co 7191  {coprab 7192  cmpo 7193  2nd c2nd 7738
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2708  ax-sep 5177  ax-nul 5184  ax-pr 5307  ax-un 7501
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2728  df-clel 2809  df-nfc 2879  df-ne 2933  df-ral 3056  df-rex 3057  df-rab 3060  df-v 3400  df-sbc 3684  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-nul 4224  df-if 4426  df-sn 4528  df-pr 4530  df-op 4534  df-uni 4806  df-br 5040  df-opab 5102  df-mpt 5121  df-id 5440  df-xp 5542  df-rel 5543  df-cnv 5544  df-co 5545  df-dm 5546  df-rn 5547  df-iota 6316  df-fun 6360  df-fv 6366  df-ov 7194  df-oprab 7195  df-mpo 7196  df-2nd 7740
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator