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

Theorem df1st2 7792
Description: An alternate possible definition of the 1st function. (Contributed by NM, 14-Oct-2004.) (Revised by Mario Carneiro, 31-Aug-2015.)
Assertion
Ref Expression
df1st2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (1st ↾ (V × V))
Distinct variable group:   𝑥,𝑦,𝑧

Proof of Theorem df1st2
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 fo1st 7708 . . . . . 6 1st :V–onto→V
2 fofn 6591 . . . . . 6 (1st :V–onto→V → 1st Fn V)
31, 2ax-mp 5 . . . . 5 1st Fn V
4 dffn5 6723 . . . . 5 (1st Fn V ↔ 1st = (𝑤 ∈ V ↦ (1st𝑤)))
53, 4mpbi 232 . . . 4 1st = (𝑤 ∈ V ↦ (1st𝑤))
6 mptv 5170 . . . 4 (𝑤 ∈ V ↦ (1st𝑤)) = {⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)}
75, 6eqtri 2844 . . 3 1st = {⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)}
87reseq1i 5848 . 2 (1st ↾ (V × V)) = ({⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)} ↾ (V × V))
9 resopab 5901 . 2 ({⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)} ↾ (V × V)) = {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (V × V) ∧ 𝑧 = (1st𝑤))}
10 vex 3497 . . . . 5 𝑥 ∈ V
11 vex 3497 . . . . 5 𝑦 ∈ V
1210, 11op1std 7698 . . . 4 (𝑤 = ⟨𝑥, 𝑦⟩ → (1st𝑤) = 𝑥)
1312eqeq2d 2832 . . 3 (𝑤 = ⟨𝑥, 𝑦⟩ → (𝑧 = (1st𝑤) ↔ 𝑧 = 𝑥))
1413dfoprab3 7751 . 2 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (V × V) ∧ 𝑧 = (1st𝑤))} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}
158, 9, 143eqtrri 2849 1 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (1st ↾ (V × V))
Colors of variables: wff setvar class
Syntax hints:  wa 398   = wceq 1533  wcel 2110  Vcvv 3494  cop 4572  {copab 5127  cmpt 5145   × cxp 5552  cres 5556   Fn wfn 6349  ontowfo 6352  cfv 6354  {coprab 7156  1st c1st 7686
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 5202  ax-nul 5209  ax-pow 5265  ax-pr 5329  ax-un 7460
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-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 4567  df-pr 4569  df-op 4573  df-uni 4838  df-br 5066  df-opab 5128  df-mpt 5146  df-id 5459  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-fo 6360  df-fv 6362  df-oprab 7159  df-1st 7688  df-2nd 7689
This theorem is referenced by:  df1stres  30438
  Copyright terms: Public domain W3C validator