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

Theorem ssrnres 6169
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 4134 . . . . 5 (𝐶 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
21rnssi 5921 . . . 4 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐴 × 𝐵)
3 rnxpss 6163 . . . 4 ran (𝐴 × 𝐵) ⊆ 𝐵
42, 3sstri 3917 . . 3 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ 𝐵
5 eqss 3923 . . 3 (ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ 𝐵 ∧ 𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵))))
64, 5mpbiran 722 . 2 (ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ 𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)))
7 inxpssres 5667 . . . . 5 (𝐶 ∩ (𝐴 × 𝐵)) ⊆ (𝐶 ↾ 𝐴)
87rnssi 5921 . . . 4 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐶 ↾ 𝐴)
9 sstr 3916 . . . 4 ((𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) ∧ ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐶 ↾ 𝐴)) → 𝐵 ⊆ ran (𝐶 ↾ 𝐴))
108, 9mpan2 704 . . 3 (𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) → 𝐵 ⊆ ran (𝐶 ↾ 𝐴))
11 ssel 3902 . . . . . . 7 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → 𝑦 ∈ ran (𝐶 ↾ 𝐴)))
12 vex 3454 . . . . . . . 8 𝑦 ∈ V
1312elrn2 5873 . . . . . . 7 (𝑦 ∈ ran (𝐶 ↾ 𝐴) ↔ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴))
1411, 13imbitrdi 254 . . . . . 6 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
1514ancld 560 . . . . 5 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → (𝑦 ∈ 𝐵 ∧ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴))))
1612elrn2 5873 . . . . . 6 (𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)))
17 opelinxp 5730 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
1812opelresi 5977 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴) ↔ (𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
1918bianassc 656 . . . . . . . 8 ((𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
2017, 19bitr4i 281 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ (𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
2120exbii 1880 . . . . . 6 (∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥(𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
22 19.42v 1985 . . . . . 6 (∃𝑥(𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)) ↔ (𝑦 ∈ 𝐵 ∧ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
2316, 21, 223bitri 300 . . . . 5 (𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ (𝑦 ∈ 𝐵 ∧ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
2415, 23imbitrrdi 255 . . . 4 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → 𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵))))
2524ssrdv 3914 . . 3 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → 𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)))
2610, 25impbii 212 . 2 (𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ 𝐵 ⊆ ran (𝐶 ↾ 𝐴))
276, 26bitr2i 279 1 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) ↔ ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144   ⊆ wss 3895   ∩ cin 4089  ⟨cop 4834   × cxp 5648  ran crn 5651   ↾ cres 5652
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-br 5103  df-opab 5167  df-xp 5656  df-rel 5657  df-cnv 5658  df-dm 5660  df-rn 5661  df-res 5662
This theorem is used by:  rninxp  6170
  Copyright terms: Public domain W3C validator