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

Theorem ssrelrel 5143
Description: A subclass relationship determined by ordered triples. Use relrelss 5576 to express the antecedent in terms of the relation predicate. (Contributed by NM, 17-Dec-2008.) (Proof shortened by Andrew Salmon, 27-Aug-2011.)
Assertion
Ref Expression
ssrelrel (𝐴 ⊆ ((V × V) × V) → (𝐴𝐵 ↔ ∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵)))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝐵,𝑦,𝑧

Proof of Theorem ssrelrel
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 ssel 3562 . . . 4 (𝐴𝐵 → (⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵))
21alrimiv 1842 . . 3 (𝐴𝐵 → ∀𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵))
32alrimivv 1843 . 2 (𝐴𝐵 → ∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵))
4 elvvv 5101 . . . . . . . 8 (𝑤 ∈ ((V × V) × V) ↔ ∃𝑥𝑦𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩)
5 eleq1 2676 . . . . . . . . . . . . . 14 (𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴 ↔ ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴))
6 eleq1 2676 . . . . . . . . . . . . . 14 (𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐵 ↔ ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵))
75, 6imbi12d 333 . . . . . . . . . . . . 13 (𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → ((𝑤𝐴𝑤𝐵) ↔ (⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵)))
87biimprcd 239 . . . . . . . . . . . 12 ((⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
98alimi 1730 . . . . . . . . . . 11 (∀𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → ∀𝑧(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
10 19.23v 1889 . . . . . . . . . . 11 (∀𝑧(𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)) ↔ (∃𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
119, 10sylib 207 . . . . . . . . . 10 (∀𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (∃𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
12112alimi 1731 . . . . . . . . 9 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → ∀𝑥𝑦(∃𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
13 19.23vv 1890 . . . . . . . . 9 (∀𝑥𝑦(∃𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)) ↔ (∃𝑥𝑦𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
1412, 13sylib 207 . . . . . . . 8 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (∃𝑥𝑦𝑧 𝑤 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ → (𝑤𝐴𝑤𝐵)))
154, 14syl5bi 231 . . . . . . 7 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (𝑤 ∈ ((V × V) × V) → (𝑤𝐴𝑤𝐵)))
1615com23 84 . . . . . 6 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (𝑤𝐴 → (𝑤 ∈ ((V × V) × V) → 𝑤𝐵)))
1716a2d 29 . . . . 5 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → ((𝑤𝐴𝑤 ∈ ((V × V) × V)) → (𝑤𝐴𝑤𝐵)))
1817alimdv 1832 . . . 4 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (∀𝑤(𝑤𝐴𝑤 ∈ ((V × V) × V)) → ∀𝑤(𝑤𝐴𝑤𝐵)))
19 dfss2 3557 . . . 4 (𝐴 ⊆ ((V × V) × V) ↔ ∀𝑤(𝑤𝐴𝑤 ∈ ((V × V) × V)))
20 dfss2 3557 . . . 4 (𝐴𝐵 ↔ ∀𝑤(𝑤𝐴𝑤𝐵))
2118, 19, 203imtr4g 284 . . 3 (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → (𝐴 ⊆ ((V × V) × V) → 𝐴𝐵))
2221com12 32 . 2 (𝐴 ⊆ ((V × V) × V) → (∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵) → 𝐴𝐵))
233, 22impbid2 215 1 (𝐴 ⊆ ((V × V) × V) → (𝐴𝐵 ↔ ∀𝑥𝑦𝑧(⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐴 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∈ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wal 1473   = wceq 1475  wex 1695  wcel 1977  Vcvv 3173  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-rab 2905  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:  eqrelrel  5144
  Copyright terms: Public domain W3C validator