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

Theorem ssrel2 4629
Description: A subclass relationship depends only on a relation's ordered pairs. This version of ssrel 4627 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 3091 . . . 4 (𝑅𝑆 → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆))
21a1d 22 . . 3 (𝑅𝑆 → ((𝑥𝐴𝑦𝐵) → (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
32ralrimivv 2513 . 2 (𝑅𝑆 → ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆))
4 eleq1 2202 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
5 eleq1 2202 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑆 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑆))
64, 5imbi12d 233 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝑧𝑅𝑧𝑆) ↔ (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
76biimprcd 159 . . . . . . . . . 10 ((⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
87ralimi 2495 . . . . . . . . 9 (∀𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ∀𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
98ralimi 2495 . . . . . . . 8 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
10 r19.23v 2541 . . . . . . . . . 10 (∀𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1110ralbii 2441 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ ∀𝑥𝐴 (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
12 r19.23v 2541 . . . . . . . . 9 (∀𝑥𝐴 (∃𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1311, 12bitri 183 . . . . . . . 8 (∀𝑥𝐴𝑦𝐵 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)) ↔ (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
149, 13sylib 121 . . . . . . 7 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧𝑅𝑧𝑆)))
1514com23 78 . . . . . 6 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑧𝑅 → (∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩ → 𝑧𝑆)))
1615a2d 26 . . . . 5 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → ((𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩) → (𝑧𝑅𝑧𝑆)))
1716alimdv 1851 . . . 4 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩) → ∀𝑧(𝑧𝑅𝑧𝑆)))
18 dfss2 3086 . . . . 5 (𝑅 ⊆ (𝐴 × 𝐵) ↔ ∀𝑧(𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)))
19 elxp2 4557 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) ↔ ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩)
2019imbi2i 225 . . . . . 6 ((𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)) ↔ (𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
2120albii 1446 . . . . 5 (∀𝑧(𝑧𝑅𝑧 ∈ (𝐴 × 𝐵)) ↔ ∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
2218, 21bitri 183 . . . 4 (𝑅 ⊆ (𝐴 × 𝐵) ↔ ∀𝑧(𝑧𝑅 → ∃𝑥𝐴𝑦𝐵 𝑧 = ⟨𝑥, 𝑦⟩))
23 dfss2 3086 . . . 4 (𝑅𝑆 ↔ ∀𝑧(𝑧𝑅𝑧𝑆))
2417, 22, 233imtr4g 204 . . 3 (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → (𝑅 ⊆ (𝐴 × 𝐵) → 𝑅𝑆))
2524com12 30 . 2 (𝑅 ⊆ (𝐴 × 𝐵) → (∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆) → 𝑅𝑆))
263, 25impbid2 142 1 (𝑅 ⊆ (𝐴 × 𝐵) → (𝑅𝑆 ↔ ∀𝑥𝐴𝑦𝐵 (⟨𝑥, 𝑦⟩ ∈ 𝑅 → ⟨𝑥, 𝑦⟩ ∈ 𝑆)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  wal 1329   = wceq 1331  wcel 1480  wral 2416  wrex 2417  wss 3071  cop 3530   × cxp 4537
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-sep 4046  ax-pow 4098  ax-pr 4131
This theorem depends on definitions:  df-bi 116  df-3an 964  df-tru 1334  df-nf 1437  df-sb 1736  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ral 2421  df-rex 2422  df-v 2688  df-un 3075  df-in 3077  df-ss 3084  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-opab 3990  df-xp 4545
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator