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

Theorem 1st2val 7832
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 5652 . . 3 (𝐴 ∈ (V × V) ↔ ∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩)
2 fveq2 6756 . . . . . 6 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘⟨𝑤, 𝑣⟩))
3 df-ov 7258 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}𝑣) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘⟨𝑤, 𝑣⟩)
4 simpl 482 . . . . . . . . 9 ((𝑥 = 𝑤𝑦 = 𝑣) → 𝑥 = 𝑤)
5 mpov 7364 . . . . . . . . . 10 (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑥) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}
65eqcomi 2747 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (𝑥 ∈ V, 𝑦 ∈ V ↦ 𝑥)
7 vex 3426 . . . . . . . . 9 𝑤 ∈ V
84, 6, 7ovmpoa 7406 . . . . . . . 8 ((𝑤 ∈ V ∧ 𝑣 ∈ V) → (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}𝑣) = 𝑤)
98el2v 3430 . . . . . . 7 (𝑤{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}𝑣) = 𝑤
103, 9eqtr3i 2768 . . . . . 6 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘⟨𝑤, 𝑣⟩) = 𝑤
112, 10eqtrdi 2795 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = 𝑤)
12 vex 3426 . . . . . 6 𝑣 ∈ V
137, 12op1std 7814 . . . . 5 (𝐴 = ⟨𝑤, 𝑣⟩ → (1st𝐴) = 𝑤)
1411, 13eqtr4d 2781 . . . 4 (𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
1514exlimivv 1936 . . 3 (∃𝑤𝑣 𝐴 = ⟨𝑤, 𝑣⟩ → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
161, 15sylbi 216 . 2 (𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
17 vex 3426 . . . . . . . . . 10 𝑥 ∈ V
18 vex 3426 . . . . . . . . . 10 𝑦 ∈ V
1917, 18pm3.2i 470 . . . . . . . . 9 (𝑥 ∈ V ∧ 𝑦 ∈ V)
20 ax6ev 1974 . . . . . . . . 9 𝑧 𝑧 = 𝑥
2119, 202th 263 . . . . . . . 8 ((𝑥 ∈ V ∧ 𝑦 ∈ V) ↔ ∃𝑧 𝑧 = 𝑥)
2221opabbii 5137 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑥}
23 df-xp 5586 . . . . . . 7 (V × V) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ V ∧ 𝑦 ∈ V)}
24 dmoprab 7354 . . . . . . 7 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧 𝑧 = 𝑥}
2522, 23, 243eqtr4ri 2777 . . . . . 6 dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (V × V)
2625eleq2i 2830 . . . . 5 (𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} ↔ 𝐴 ∈ (V × V))
27 ndmfv 6786 . . . . 5 𝐴 ∈ dom {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = ∅)
2826, 27sylnbir 330 . . . 4 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = ∅)
29 dmsnn0 6099 . . . . . . . 8 (𝐴 ∈ (V × V) ↔ dom {𝐴} ≠ ∅)
3029biimpri 227 . . . . . . 7 (dom {𝐴} ≠ ∅ → 𝐴 ∈ (V × V))
3130necon1bi 2971 . . . . . 6 𝐴 ∈ (V × V) → dom {𝐴} = ∅)
3231unieqd 4850 . . . . 5 𝐴 ∈ (V × V) → dom {𝐴} = ∅)
33 uni0 4866 . . . . 5 ∅ = ∅
3432, 33eqtrdi 2795 . . . 4 𝐴 ∈ (V × V) → dom {𝐴} = ∅)
3528, 34eqtr4d 2781 . . 3 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = dom {𝐴})
36 1stval 7806 . . 3 (1st𝐴) = dom {𝐴}
3735, 36eqtr4di 2797 . 2 𝐴 ∈ (V × V) → ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴))
3816, 37pm2.61i 182 1 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}‘𝐴) = (1st𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 395   = wceq 1539  wex 1783  wcel 2108  wne 2942  Vcvv 3422  c0 4253  {csn 4558  cop 4564   cuni 4836  {copab 5132   × cxp 5578  dom cdm 5580  cfv 6418  (class class class)co 7255  {coprab 7256  cmpo 7257  1st c1st 7802
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator