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

Theorem ssrel2 5133
 Description: A subclass relationship depends only on a relation's ordered pairs. This version of ssrel 5130 is restricted to the relation's domain. (Contributed by Thierry Arnoux, 25-Jan-2018.)
Assertion
Ref Expression
ssrel2 (𝑅 ⊆ (𝐴 × 𝐵) → (𝑅𝑆 ↔ ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦   𝑥,𝑅,𝑦   𝑥,𝑆,𝑦

Proof of Theorem ssrel2
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 ssel 3562 . . . 4 (𝑅𝑆 → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆))
21a1d 25 . . 3 (𝑅𝑆 → ((𝑥𝐴𝑦𝐵) → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
32ralrimivv 2953 . 2 (𝑅𝑆 → ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆))
4 eleq1 2676 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
5 eleq1 2676 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑆 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑆))
64, 5imbi12d 333 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝑧𝑅𝑧𝑆) ↔ (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
76biimprcd 239 . . . . . . . . . 10 ((⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
87ralimi 2936 . . . . . . . . 9 (∀𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ∀𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
98ralimi 2936 . . . . . . . 8 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
10 r19.23v 3005 . . . . . . . . . 10 (∀𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1110ralbii 2963 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ ∀𝑥𝐴 (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
12 r19.23v 3005 . . . . . . . . 9 (∀𝑥𝐴 (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1311, 12bitri 263 . . . . . . . 8 (∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
149, 13sylib 207 . . . . . . 7 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1514com23 84 . . . . . 6 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑧𝑅 → (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → 𝑧𝑆)))
1615a2d 29 . . . . 5 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ((𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩) → (𝑧𝑅𝑧𝑆)))
1716alimdv 1832 . . . 4 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩) → ∀𝑧(𝑧𝑅𝑧𝑆)))
18 dfss2 3557 . . . . 5 (𝑅 ⊆ (𝐴 × 𝐵) ↔ ∀𝑧(𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)))
19 elxp2 5056 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) ↔ ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩)
2019imbi2i 325 . . . . . 6 ((𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)) ↔ (𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
2120albii 1737 . . . . 5 (∀𝑧(𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)) ↔ ∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
2218, 21bitri 263 . . . 4 (𝑅 ⊆ (𝐴 × 𝐵) ↔ ∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
23 dfss2 3557 . . . 4 (𝑅𝑆 ↔ ∀𝑧(𝑧𝑅𝑧𝑆))
2417, 22, 233imtr4g 284 . . 3 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑅 ⊆ (𝐴 × 𝐵) → 𝑅𝑆))
2524com12 32 . 2 (𝑅 ⊆ (𝐴 × 𝐵) → (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → 𝑅𝑆))
263, 25impbid2 215 1 (𝑅 ⊆ (𝐴 × 𝐵) → (𝑅𝑆 ↔ ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 195   ∧ wa 383  ∀wal 1473   = wceq 1475   ∈ wcel 1977  ∀wral 2896  ∃wrex 2897   ⊆ wss 3540  ⟨cop 4131   × cxp 5036 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-v 3175  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-opab 4644  df-xp 5044 This theorem is referenced by:  metuel2  22180  isarchi  29067
 Copyright terms: Public domain W3C validator