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

Theorem 2nd2val 7195
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 5177 . . 3 (𝐴 ∈ (V × V) ↔ ∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩)
2 fveq2 6191 . . . . . 6 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩))
3 df-ov 6653 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩)
4 vex 3203 . . . . . . . 8 𝑤 ∈ V
5 vex 3203 . . . . . . . 8 𝑣 ∈ V
6 simpr 477 . . . . . . . . 9 ((𝑥 = 𝑤𝑦 = 𝑣) → 𝑦 = 𝑣)
7 mpt2v 6750 . . . . . . . . . 10 (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}
87eqcomi 2631 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦)
96, 8, 5ovmpt2a 6791 . . . . . . . 8 ((𝑤 ∈ V ∧ 𝑣 ∈ V) → (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣)
104, 5, 9mp2an 708 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣
113, 10eqtr3i 2646 . . . . . 6 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩) = 𝑣
122, 11syl6eq 2672 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = 𝑣)
134, 5op2ndd 7179 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → (2nd𝐴) = 𝑣)
1412, 13eqtr4d 2659 . . . 4 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
1514exlimivv 1860 . . 3 (∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
161, 15sylbi 207 . 2 (𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
17 vex 3203 . . . . . . . . . 10 𝑥 ∈ V
18 vex 3203 . . . . . . . . . 10 𝑦 ∈ V
1917, 18pm3.2i 471 . . . . . . . . 9 (𝑥 ∈ V ∧ 𝑦 ∈ V)
20 ax6ev 1890 . . . . . . . . 9 𝑧 𝑧 = 𝑦
2119, 202th 254 . . . . . . . 8 ((𝑥 ∈ V ∧ 𝑦 ∈ V) ↔ ∃𝑧 𝑧 = 𝑦)
2221opabbii 4717 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
23 df-xp 5120 . . . . . . 7 (V × V) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)}
24 dmoprab 6741 . . . . . . 7 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
2522, 23, 243eqtr4ri 2655 . . . . . 6 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (V × V)
2625eleq2i 2693 . . . . 5 (𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} ↔ 𝐴 ∈ (V × V))
27 ndmfv 6218 . . . . 5 𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
2826, 27sylnbir 321 . . . 4 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
29 rnsnn0 5601 . . . . . . . 8 (𝐴 ∈ (V × V) ↔ ran {𝐴} ≠ ∅)
3029biimpri 218 . . . . . . 7 (ran {𝐴} ≠ ∅ → 𝐴 ∈ (V × V))
3130necon1bi 2822 . . . . . 6 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3231unieqd 4446 . . . . 5 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
33 uni0 4465 . . . . 5 ∅ = ∅
3432, 33syl6eq 2672 . . . 4 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3528, 34eqtr4d 2659 . . 3 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ran {𝐴})
36 2ndval 7171 . . 3 (2nd𝐴) = ran {𝐴}
3735, 36syl6eqr 2674 . 2 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
3816, 37pm2.61i 176 1 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 384   = wceq 1483  wex 1704  wcel 1990  wne 2794  Vcvv 3200  c0 3915  {csn 4177  cop 4183   cuni 4436  {copab 4712   × cxp 5112  dom cdm 5114  ran crn 5115  cfv 5888  (class class class)co 6650  {coprab 6651  cmpt2 6652  2nd c2nd 7167
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-iota 5851  df-fun 5890  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-2nd 7169
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator