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

Theorem ssrnres 6192
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 4139 . . . . 5 (𝐶 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
21rnssi 5937 . . . 4 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐴 × 𝐵)
3 rnxpss 6186 . . . 4 ran (𝐴 × 𝐵) ⊆ 𝐵
42, 3sstri 3924 . . 3 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ 𝐵
5 eqss 3930 . . 3 (ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ 𝐵 ∧ 𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵))))
64, 5mpbiran 722 . 2 (ran (𝐶 ∩ (𝐴 × 𝐵)) = 𝐵 ↔ 𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)))
7 inxpssres 5678 . . . . 5 (𝐶 ∩ (𝐴 × 𝐵)) ⊆ (𝐶 ↾ 𝐴)
87rnssi 5937 . . . 4 ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐶 ↾ 𝐴)
9 sstr 3923 . . . 4 ((𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) ∧ ran (𝐶 ∩ (𝐴 × 𝐵)) ⊆ ran (𝐶 ↾ 𝐴)) → 𝐵 ⊆ ran (𝐶 ↾ 𝐴))
108, 9mpan2 704 . . 3 (𝐵 ⊆ ran (𝐶 ∩ (𝐴 × 𝐵)) → 𝐵 ⊆ ran (𝐶 ↾ 𝐴))
11 ssel 3909 . . . . . . 7 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → 𝑦 ∈ ran (𝐶 ↾ 𝐴)))
12 vex 3460 . . . . . . . 8 𝑦 ∈ V
1312elrn2 5889 . . . . . . 7 (𝑦 ∈ ran (𝐶 ↾ 𝐴) ↔ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴))
1411, 13imbitrdi 254 . . . . . 6 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
1514ancld 560 . . . . 5 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → (𝑦 ∈ 𝐵 ∧ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴))))
1612elrn2 5889 . . . . . 6 (𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)))
17 opelinxp 5742 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
1812opelresi 5997 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴) ↔ (𝑥 ∈ 𝐴 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
1918bianassc 656 . . . . . . . 8 ((𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐶))
2017, 19bitr4i 281 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ (𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
2120exbii 1883 . . . . . 6 (∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ∩ (𝐴 × 𝐵)) ↔ ∃𝑥(𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
22 19.42v 1990 . . . . . 6 (∃𝑥(𝑦 ∈ 𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)) ↔ (𝑦 ∈ 𝐵 ∧ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
2316, 21, 223bitri 300 . . . . 5 (𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵)) ↔ (𝑦 ∈ 𝐵 ∧ ∃𝑥⟨𝑥, 𝑦⟩ ∈ (𝐶 ↾ 𝐴)))
2415, 23imbitrrdi 255 . . . 4 (𝐵 ⊆ ran (𝐶 ↾ 𝐴) → (𝑦 ∈ 𝐵 → 𝑦 ∈ ran (𝐶 ∩ (𝐴 × 𝐵))))
2524ssrdv 3921 . . 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 1572  ∃wex 1814   ∈ wcel 2151   ⊆ wss 3902   ∩ cin 4094  ⟨cop 4843   × cxp 5659  ran crn 5662   ↾ cres 5663
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741  ax-sep 5258  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-br 5112  df-opab 5177  df-xp 5667  df-rel 5668  df-cnv 5669  df-dm 5671  df-rn 5672  df-res 5673
This theorem is used by:  rninxp  6193
  Copyright terms: Public domain W3C validator