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

Theorem 2nd2val 7712
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 5620 . . 3 (𝐴 ∈ (V × V) ↔ ∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩)
2 fveq2 6664 . . . . . 6 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩))
3 df-ov 7153 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩)
4 simpr 487 . . . . . . . . 9 ((𝑥 = 𝑤𝑦 = 𝑣) → 𝑦 = 𝑣)
5 mpov 7258 . . . . . . . . . 10 (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}
65eqcomi 2830 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦)
7 vex 3497 . . . . . . . . 9 𝑣 ∈ V
84, 6, 7ovmpoa 7299 . . . . . . . 8 ((𝑤 ∈ V ∧ 𝑣 ∈ V) → (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣)
98el2v 3501 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣
103, 9eqtr3i 2846 . . . . . 6 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩) = 𝑣
112, 10syl6eq 2872 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = 𝑣)
12 vex 3497 . . . . . 6 𝑤 ∈ V
1312, 7op2ndd 7694 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → (2nd𝐴) = 𝑣)
1411, 13eqtr4d 2859 . . . 4 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
1514exlimivv 1929 . . 3 (∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
161, 15sylbi 219 . 2 (𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
17 vex 3497 . . . . . . . . . 10 𝑥 ∈ V
18 vex 3497 . . . . . . . . . 10 𝑦 ∈ V
1917, 18pm3.2i 473 . . . . . . . . 9 (𝑥 ∈ V ∧ 𝑦 ∈ V)
20 ax6ev 1968 . . . . . . . . 9 𝑧 𝑧 = 𝑦
2119, 202th 266 . . . . . . . 8 ((𝑥 ∈ V ∧ 𝑦 ∈ V) ↔ ∃𝑧 𝑧 = 𝑦)
2221opabbii 5125 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
23 df-xp 5555 . . . . . . 7 (V × V) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)}
24 dmoprab 7249 . . . . . . 7 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
2522, 23, 243eqtr4ri 2855 . . . . . 6 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (V × V)
2625eleq2i 2904 . . . . 5 (𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} ↔ 𝐴 ∈ (V × V))
27 ndmfv 6694 . . . . 5 𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
2826, 27sylnbir 333 . . . 4 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
29 rnsnn0 6059 . . . . . . . 8 (𝐴 ∈ (V × V) ↔ ran {𝐴} ≠ ∅)
3029biimpri 230 . . . . . . 7 (ran {𝐴} ≠ ∅ → 𝐴 ∈ (V × V))
3130necon1bi 3044 . . . . . 6 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3231unieqd 4841 . . . . 5 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
33 uni0 4858 . . . . 5 ∅ = ∅
3432, 33syl6eq 2872 . . . 4 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3528, 34eqtr4d 2859 . . 3 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ran {𝐴})
36 2ndval 7686 . . 3 (2nd𝐴) = ran {𝐴}
3735, 36syl6eqr 2874 . 2 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
3816, 37pm2.61i 184 1 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 398   = wceq 1533  wex 1776  wcel 2110  wne 3016  Vcvv 3494  c0 4290  {csn 4560  cop 4566   cuni 4831  {copab 5120   × cxp 5547  dom cdm 5549  ran crn 5550  cfv 6349  (class class class)co 7150  {coprab 7151  cmpo 7152  2nd c2nd 7682
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-iota 6308  df-fun 6351  df-fv 6357  df-ov 7153  df-oprab 7154  df-mpo 7155  df-2nd 7684
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator