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

Theorem fo1stres 7830
Description: Onto mapping of a restriction of the 1st (first member of an ordered pair) function. (Contributed by NM, 14-Dec-2008.)
Assertion
Ref Expression
fo1stres (𝐵 ≠ ∅ → (1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐴)

Proof of Theorem fo1stres
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 n0 4277 . . . . . . 7 (𝐵 ≠ ∅ ↔ ∃𝑦 𝑦𝐵)
2 opelxp 5616 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
3 fvres 6775 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((1st ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) = (1st ‘⟨𝑥, 𝑦⟩))
4 vex 3426 . . . . . . . . . . . . 13 𝑥 ∈ V
5 vex 3426 . . . . . . . . . . . . 13 𝑦 ∈ V
64, 5op1st 7812 . . . . . . . . . . . 12 (1st ‘⟨𝑥, 𝑦⟩) = 𝑥
73, 6eqtr2di 2796 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑥 = ((1st ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩))
8 f1stres 7828 . . . . . . . . . . . . 13 (1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐴
9 ffn 6584 . . . . . . . . . . . . 13 ((1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐴 → (1st ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵))
108, 9ax-mp 5 . . . . . . . . . . . 12 (1st ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵)
11 fnfvelrn 6940 . . . . . . . . . . . 12 (((1st ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)) → ((1st ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (1st ↾ (𝐴 × 𝐵)))
1210, 11mpan 686 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((1st ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (1st ↾ (𝐴 × 𝐵)))
137, 12eqeltrd 2839 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑥 ∈ ran (1st ↾ (𝐴 × 𝐵)))
142, 13sylbir 234 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → 𝑥 ∈ ran (1st ↾ (𝐴 × 𝐵)))
1514expcom 413 . . . . . . . 8 (𝑦𝐵 → (𝑥𝐴𝑥 ∈ ran (1st ↾ (𝐴 × 𝐵))))
1615exlimiv 1934 . . . . . . 7 (∃𝑦 𝑦𝐵 → (𝑥𝐴𝑥 ∈ ran (1st ↾ (𝐴 × 𝐵))))
171, 16sylbi 216 . . . . . 6 (𝐵 ≠ ∅ → (𝑥𝐴𝑥 ∈ ran (1st ↾ (𝐴 × 𝐵))))
1817ssrdv 3923 . . . . 5 (𝐵 ≠ ∅ → 𝐴 ⊆ ran (1st ↾ (𝐴 × 𝐵)))
19 frn 6591 . . . . . 6 ((1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐴 → ran (1st ↾ (𝐴 × 𝐵)) ⊆ 𝐴)
208, 19ax-mp 5 . . . . 5 ran (1st ↾ (𝐴 × 𝐵)) ⊆ 𝐴
2118, 20jctil 519 . . . 4 (𝐵 ≠ ∅ → (ran (1st ↾ (𝐴 × 𝐵)) ⊆ 𝐴𝐴 ⊆ ran (1st ↾ (𝐴 × 𝐵))))
22 eqss 3932 . . . 4 (ran (1st ↾ (𝐴 × 𝐵)) = 𝐴 ↔ (ran (1st ↾ (𝐴 × 𝐵)) ⊆ 𝐴𝐴 ⊆ ran (1st ↾ (𝐴 × 𝐵))))
2321, 22sylibr 233 . . 3 (𝐵 ≠ ∅ → ran (1st ↾ (𝐴 × 𝐵)) = 𝐴)
2423, 8jctil 519 . 2 (𝐵 ≠ ∅ → ((1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐴 ∧ ran (1st ↾ (𝐴 × 𝐵)) = 𝐴))
25 dffo2 6676 . 2 ((1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐴 ↔ ((1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐴 ∧ ran (1st ↾ (𝐴 × 𝐵)) = 𝐴))
2624, 25sylibr 233 1 (𝐵 ≠ ∅ → (1st ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wex 1783  wcel 2108  wne 2942  wss 3883  c0 4253  cop 4564   × cxp 5578  ran crn 5581  cres 5582   Fn wfn 6413  wf 6414  ontowfo 6416  cfv 6418  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-csb 3829  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-iun 4923  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-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fo 6424  df-fv 6426  df-1st 7804
This theorem is referenced by:  1stconst  7911  txcmpb  22703
  Copyright terms: Public domain W3C validator