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

Theorem 1st2val 7699
Description: Value of an alternate definition of the 1st function. (Contributed by NM, 14-Oct-2004.) (Revised by Mario Carneiro, 30-Dec-2014.)
Assertion
Ref Expression
1st2val ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴)
Distinct variable group:   𝑥,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑥,𝑦,𝑧)

Proof of Theorem 1st2val
Dummy variables 𝑤 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elvv 5590 . . 3 (𝐴 ∈ (V × V) ↔ ∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩)
2 fveq2 6645 . . . . . 6 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘⟨𝑤, 𝑣⟩))
3 df-ov 7138 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}𝑣) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘⟨𝑤, 𝑣⟩)
4 simpl 486 . . . . . . . . 9 ((𝑥 = 𝑤𝑦 = 𝑣) → 𝑥 = 𝑤)
5 mpov 7243 . . . . . . . . . 10 (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑥) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}
65eqcomi 2807 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑥)
7 vex 3444 . . . . . . . . 9 𝑤 ∈ V
84, 6, 7ovmpoa 7284 . . . . . . . 8 ((𝑤 ∈ V ∧ 𝑣 ∈ V) → (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}𝑣) = 𝑤)
98el2v 3448 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}𝑣) = 𝑤
103, 9eqtr3i 2823 . . . . . 6 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘⟨𝑤, 𝑣⟩) = 𝑤
112, 10eqtrdi 2849 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = 𝑤)
12 vex 3444 . . . . . 6 𝑣 ∈ V
137, 12op1std 7681 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → (1st𝐴) = 𝑤)
1411, 13eqtr4d 2836 . . . 4 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
1514exlimivv 1933 . . 3 (∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
161, 15sylbi 220 . 2 (𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
17 vex 3444 . . . . . . . . . 10 𝑥 ∈ V
18 vex 3444 . . . . . . . . . 10 𝑦 ∈ V
1917, 18pm3.2i 474 . . . . . . . . 9 (𝑥 ∈ V ∧ 𝑦 ∈ V)
20 ax6ev 1972 . . . . . . . . 9 𝑧 𝑧 = 𝑥
2119, 202th 267 . . . . . . . 8 ((𝑥 ∈ V ∧ 𝑦 ∈ V) ↔ ∃𝑧 𝑧 = 𝑥)
2221opabbii 5097 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑥}
23 df-xp 5525 . . . . . . 7 (V × V) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)}
24 dmoprab 7234 . . . . . . 7 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑥}
2522, 23, 243eqtr4ri 2832 . . . . . 6 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (V × V)
2625eleq2i 2881 . . . . 5 (𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} ↔ 𝐴 ∈ (V × V))
27 ndmfv 6675 . . . . 5 𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = ∅)
2826, 27sylnbir 334 . . . 4 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = ∅)
29 dmsnn0 6031 . . . . . . . 8 (𝐴 ∈ (V × V) ↔ dom {𝐴} ≠ ∅)
3029biimpri 231 . . . . . . 7 (dom {𝐴} ≠ ∅ → 𝐴 ∈ (V × V))
3130necon1bi 3015 . . . . . 6 𝐴 ∈ (V × V) → dom {𝐴} = ∅)
3231unieqd 4814 . . . . 5 𝐴 ∈ (V × V) → dom {𝐴} = ∅)
33 uni0 4828 . . . . 5 ∅ = ∅
3432, 33eqtrdi 2849 . . . 4 𝐴 ∈ (V × V) → dom {𝐴} = ∅)
3528, 34eqtr4d 2836 . . 3 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = dom {𝐴})
36 1stval 7673 . . 3 (1st𝐴) = dom {𝐴}
3735, 36eqtr4di 2851 . 2 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
3816, 37pm2.61i 185 1 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 399   = wceq 1538  wex 1781  wcel 2111  wne 2987  Vcvv 3441  c0 4243  {csn 4525  cop 4531   cuni 4800  {copab 5092   × cxp 5517  dom cdm 5519  cfv 6324  (class class class)co 7135  {coprab 7136  cmpo 7137  1st c1st 7669
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-iota 6283  df-fun 6326  df-fv 6332  df-ov 7138  df-oprab 7139  df-mpo 7140  df-1st 7671
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator