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

Theorem df1st2 7793
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 7709 . . . . . 6 1st :V–onto→V
2 fofn 6592 . . . . . 6 (1st :V–onto→V → 1st Fn V)
31, 2ax-mp 5 . . . . 5 1st Fn V
4 dffn5 6724 . . . . 5 (1st Fn V ↔ 1st = (𝑤 ∈ V ↦ (1st𝑤)))
53, 4mpbi 232 . . . 4 1st = (𝑤 ∈ V ↦ (1st𝑤))
6 mptv 5171 . . . 4 (𝑤 ∈ V ↦ (1st𝑤)) = {⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)}
75, 6eqtri 2844 . . 3 1st = {⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)}
87reseq1i 5849 . 2 (1st ↾ (V × V)) = ({⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)} ↾ (V × V))
9 resopab 5902 . 2 ({⟨𝑤, 𝑧⟩ ∣ 𝑧 = (1st𝑤)} ↾ (V × V)) = {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (V × V) ∧ 𝑧 = (1st𝑤))}
10 vex 3497 . . . . 5 𝑥 ∈ V
11 vex 3497 . . . . 5 𝑦 ∈ V
1210, 11op1std 7699 . . . 4 (𝑤 = ⟨𝑥, 𝑦⟩ → (1st𝑤) = 𝑥)
1312eqeq2d 2832 . . 3 (𝑤 = ⟨𝑥, 𝑦⟩ → (𝑧 = (1st𝑤) ↔ 𝑧 = 𝑥))
1413dfoprab3 7752 . 2 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (V × V) ∧ 𝑧 = (1st𝑤))} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥}
158, 9, 143eqtrri 2849 1 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝑧 = 𝑥} = (1st ↾ (V × V))
Colors of variables: wff setvar class
Syntax hints:  wa 398   = wceq 1537  wcel 2114  Vcvv 3494  cop 4573  {copab 5128  cmpt 5146   × cxp 5553  cres 5557   Fn wfn 6350  ontowfo 6353  cfv 6355  {coprab 7157  1st c1st 7687
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  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 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-fo 6361  df-fv 6363  df-oprab 7160  df-1st 7689  df-2nd 7690
This theorem is referenced by:  df1stres  30439
  Copyright terms: Public domain W3C validator