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

Theorem ssrnres 6070
Description: Two ways to express surjectivity of a restricted and corestricted binary relation (intersection of a binary relation with a Cartesian product): the LHS expresses inclusion in the range of the restricted relation, while the RHS expresses equality with the range of the restricted and corestricted relation. (Contributed by NM, 16-Jan-2006.) (Proof shortened by Peter Mazsa, 2-Oct-2022.)
Assertion
Ref Expression
ssrnres (𝐵 ⊆ ran (𝐶𝐴) ↔ ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵)

Proof of Theorem ssrnres
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 inss2 4160 . . . . 5 (𝐶 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
21rnssi 5838 . . . 4 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐴 × 𝐵)
3 rnxpss 6064 . . . 4 ran (𝐴 × 𝐵) ⊆ 𝐵
42, 3sstri 3926 . . 3 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ 𝐵
5 eqss 3932 . . 3 (ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵))))
64, 5mpbiran 705 . 2 (ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)))
7 inxpssres 5597 . . . . 5 (𝐶 ∩ (𝐴 × 𝐵)) ⊆ (𝐶𝐴)
87rnssi 5838 . . . 4 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐶𝐴)
9 sstr 3925 . . . 4 ((𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) ∧ ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐶𝐴)) → 𝐵 ⊆ ran (𝐶𝐴))
108, 9mpan2 687 . . 3 (𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) → 𝐵 ⊆ ran (𝐶𝐴))
11 ssel 3910 . . . . . . 7 (𝐵 ⊆ ran (𝐶𝐴) → (𝑦𝐵𝑦 ∈ ran (𝐶𝐴)))
12 vex 3426 . . . . . . . 8 𝑦 ∈ V
1312elrn2 5790 . . . . . . 7 (𝑦 ∈ ran (𝐶𝐴) ↔ ∃𝑥𝑥, 𝑦⟩ ∈ (𝐶𝐴))
1411, 13syl6ib 250 . . . . . 6 (𝐵 ⊆ ran (𝐶𝐴) → (𝑦𝐵 → ∃𝑥𝑥, 𝑦⟩ ∈ (𝐶𝐴)))
1514ancld 550 . . . . 5 (𝐵 ⊆ ran (𝐶𝐴) → (𝑦𝐵 → (𝑦𝐵 ∧ ∃𝑥𝑥, 𝑦⟩ ∈ (𝐶𝐴))))
1612elrn2 5790 . . . . . 6 (𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)))
17 opelinxp 5657 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
1812opelresi 5888 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝐶𝐴) ↔ (𝑥𝐴 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
1918bianassc 639 . . . . . . . 8 ((𝑦𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶𝐴)) ↔ ((𝑥𝐴𝑦𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
2017, 19bitr4i 277 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ (𝑦𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶𝐴)))
2120exbii 1851 . . . . . 6 (∃𝑥𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥(𝑦𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶𝐴)))
22 19.42v 1958 . . . . . 6 (∃𝑥(𝑦𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶𝐴)) ↔ (𝑦𝐵 ∧ ∃𝑥𝑥, 𝑦⟩ ∈ (𝐶𝐴)))
2316, 21, 223bitri 296 . . . . 5 (𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ (𝑦𝐵 ∧ ∃𝑥𝑥, 𝑦⟩ ∈ (𝐶𝐴)))
2415, 23syl6ibr 251 . . . 4 (𝐵 ⊆ ran (𝐶𝐴) → (𝑦𝐵𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵))))
2524ssrdv 3923 . . 3 (𝐵 ⊆ ran (𝐶𝐴) → 𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)))
2610, 25impbii 208 . 2 (𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ 𝐵 ⊆ ran (𝐶𝐴))
276, 26bitr2i 275 1 (𝐵 ⊆ ran (𝐶𝐴) ↔ ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  cin 3882  wss 3883  cop 4564   × cxp 5578  ran crn 5581  cres 5582
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
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-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-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-cnv 5588  df-dm 5590  df-rn 5591  df-res 5592
This theorem is referenced by:  rninxp  6071
  Copyright terms: Public domain W3C validator