ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  ssrel2 GIF version

Theorem ssrel2 4430
Description: A subclass relationship depends only on a relation's ordered pairs. This version of ssrel 4428 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 2939 . . . 4 (𝑅𝑆 → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆))
21a1d 22 . . 3 (𝑅𝑆 → ((𝑥𝐴𝑦𝐵) → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
32ralrimivv 2400 . 2 (𝑅𝑆 → ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆))
4 eleq1 2100 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
5 eleq1 2100 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑆 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑆))
64, 5imbi12d 223 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝑧𝑅𝑧𝑆) ↔ (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
76biimprcd 149 . . . . . . . . . 10 ((⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
87ralimi 2384 . . . . . . . . 9 (∀𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ∀𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
98ralimi 2384 . . . . . . . 8 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
10 r19.23v 2425 . . . . . . . . . 10 (∀𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1110ralbii 2330 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ ∀𝑥𝐴 (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
12 r19.23v 2425 . . . . . . . . 9 (∀𝑥𝐴 (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1311, 12bitri 173 . . . . . . . 8 (∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
149, 13sylib 127 . . . . . . 7 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1514com23 72 . . . . . 6 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑧𝑅 → (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → 𝑧𝑆)))
1615a2d 23 . . . . 5 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ((𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩) → (𝑧𝑅𝑧𝑆)))
1716alimdv 1759 . . . 4 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩) → ∀𝑧(𝑧𝑅𝑧𝑆)))
18 dfss2 2934 . . . . 5 (𝑅 ⊆ (𝐴 × 𝐵) ↔ ∀𝑧(𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)))
19 elxp2 4363 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) ↔ ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩)
2019imbi2i 215 . . . . . 6 ((𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)) ↔ (𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
2120albii 1359 . . . . 5 (∀𝑧(𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)) ↔ ∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
2218, 21bitri 173 . . . 4 (𝑅 ⊆ (𝐴 × 𝐵) ↔ ∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
23 dfss2 2934 . . . 4 (𝑅𝑆 ↔ ∀𝑧(𝑧𝑅𝑧𝑆))
2417, 22, 233imtr4g 194 . . 3 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑅 ⊆ (𝐴 × 𝐵) → 𝑅𝑆))
2524com12 27 . 2 (𝑅 ⊆ (𝐴 × 𝐵) → (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → 𝑅𝑆))
263, 25impbid2 131 1 (𝑅 ⊆ (𝐴 × 𝐵) → (𝑅𝑆 ↔ ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 97  wb 98  wal 1241   = wceq 1243  wcel 1393  wral 2306  wrex 2307  wss 2917  cop 3378   × cxp 4343
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-14 1405  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-sep 3875  ax-pow 3927  ax-pr 3944
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-ral 2311  df-rex 2312  df-v 2559  df-un 2922  df-in 2924  df-ss 2931  df-pw 3361  df-sn 3381  df-pr 3382  df-op 3384  df-opab 3819  df-xp 4351
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator