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

Theorem 2nd2val 7086
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 5100 . . 3 (𝐴 ∈ (V × V) ↔ ∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩)
2 fveq2 6103 . . . . . 6 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩))
3 df-ov 6552 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩)
4 vex 3176 . . . . . . . 8 𝑤 ∈ V
5 vex 3176 . . . . . . . 8 𝑣 ∈ V
6 simpr 476 . . . . . . . . 9 ((𝑥 = 𝑤𝑦 = 𝑣) → 𝑦 = 𝑣)
7 mpt2v 6648 . . . . . . . . . 10 (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}
87eqcomi 2619 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑦)
96, 8, 5ovmpt2a 6689 . . . . . . . 8 ((𝑤 ∈ V ∧ 𝑣 ∈ V) → (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣)
104, 5, 9mp2an 704 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}𝑣) = 𝑣
113, 10eqtr3i 2634 . . . . . 6 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘⟨𝑤, 𝑣⟩) = 𝑣
122, 11syl6eq 2660 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = 𝑣)
134, 5op2ndd 7070 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → (2nd𝐴) = 𝑣)
1412, 13eqtr4d 2647 . . . 4 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
1514exlimivv 1847 . . 3 (∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
161, 15sylbi 206 . 2 (𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
17 vex 3176 . . . . . . . . . 10 𝑥 ∈ V
18 vex 3176 . . . . . . . . . 10 𝑦 ∈ V
1917, 18pm3.2i 470 . . . . . . . . 9 (𝑥 ∈ V ∧ 𝑦 ∈ V)
20 ax6ev 1877 . . . . . . . . 9 𝑧 𝑧 = 𝑦
2119, 202th 253 . . . . . . . 8 ((𝑥 ∈ V ∧ 𝑦 ∈ V) ↔ ∃𝑧 𝑧 = 𝑦)
2221opabbii 4649 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
23 df-xp 5044 . . . . . . 7 (V × V) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)}
24 dmoprab 6639 . . . . . . 7 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑦}
2522, 23, 243eqtr4ri 2643 . . . . . 6 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} = (V × V)
2625eleq2i 2680 . . . . 5 (𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} ↔ 𝐴 ∈ (V × V))
27 ndmfv 6128 . . . . 5 𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦} → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
2826, 27sylnbir 320 . . . 4 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ∅)
29 rnsnn0 5519 . . . . . . . 8 (𝐴 ∈ (V × V) ↔ ran {𝐴} ≠ ∅)
3029biimpri 217 . . . . . . 7 (ran {𝐴} ≠ ∅ → 𝐴 ∈ (V × V))
3130necon1bi 2810 . . . . . 6 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3231unieqd 4382 . . . . 5 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
33 uni0 4401 . . . . 5 ∅ = ∅
3432, 33syl6eq 2660 . . . 4 𝐴 ∈ (V × V) → ran {𝐴} = ∅)
3528, 34eqtr4d 2647 . . 3 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = ran {𝐴})
36 2ndval 7062 . . 3 (2nd𝐴) = ran {𝐴}
3735, 36syl6eqr 2662 . 2 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴))
3816, 37pm2.61i 175 1 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑦}‘𝐴) = (2nd𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 383   = wceq 1475  wex 1695  wcel 1977  wne 2780  Vcvv 3173  c0 3874  {csn 4125  cop 4131   cuni 4372  {copab 4642   × cxp 5036  dom cdm 5038  ran crn 5039  cfv 5804  (class class class)co 6549  {coprab 6550  cmpt2 6551  2nd c2nd 7058
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-iota 5768  df-fun 5806  df-fv 5812  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-2nd 7060
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator