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

Theorem cotrg 6005
Description: Two ways of saying that the composition of two relations is included in a third relation. See its special instance cotr 6006 for the main application. (Contributed by NM, 27-Dec-1996.) (Proof shortened by Andrew Salmon, 27-Aug-2011.) Generalized from its special instance cotr 6006. (Revised by Richard Penner, 24-Dec-2019.)
Assertion
Ref Expression
cotrg ((𝐴𝐵) ⊆ 𝐶 ↔ ∀𝑥𝑦𝑧((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝐵,𝑦,𝑧   𝑥,𝐶,𝑦,𝑧

Proof of Theorem cotrg
StepHypRef Expression
1 df-co 5589 . . . 4 (𝐴𝐵) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥𝐵𝑦𝑦𝐴𝑧)}
21relopabiv 5719 . . 3 Rel (𝐴𝐵)
3 ssrel 5683 . . 3 (Rel (𝐴𝐵) → ((𝐴𝐵) ⊆ 𝐶 ↔ ∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶)))
42, 3ax-mp 5 . 2 ((𝐴𝐵) ⊆ 𝐶 ↔ ∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶))
5 vex 3426 . . . . . . . 8 𝑥 ∈ V
6 vex 3426 . . . . . . . 8 𝑧 ∈ V
75, 6opelco 5769 . . . . . . 7 (⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) ↔ ∃𝑦(𝑥𝐵𝑦𝑦𝐴𝑧))
8 df-br 5071 . . . . . . . 8 (𝑥𝐶𝑧 ↔ ⟨𝑥, 𝑧⟩ ∈ 𝐶)
98bicomi 223 . . . . . . 7 (⟨𝑥, 𝑧⟩ ∈ 𝐶𝑥𝐶𝑧)
107, 9imbi12i 350 . . . . . 6 ((⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶) ↔ (∃𝑦(𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
11 19.23v 1946 . . . . . 6 (∀𝑦((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧) ↔ (∃𝑦(𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
1210, 11bitr4i 277 . . . . 5 ((⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶) ↔ ∀𝑦((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
1312albii 1823 . . . 4 (∀𝑧(⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶) ↔ ∀𝑧𝑦((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
14 alcom 2158 . . . 4 (∀𝑧𝑦((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧) ↔ ∀𝑦𝑧((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
1513, 14bitri 274 . . 3 (∀𝑧(⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶) ↔ ∀𝑦𝑧((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
1615albii 1823 . 2 (∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ (𝐴𝐵) → ⟨𝑥, 𝑧⟩ ∈ 𝐶) ↔ ∀𝑥𝑦𝑧((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
174, 16bitri 274 1 ((𝐴𝐵) ⊆ 𝐶 ↔ ∀𝑥𝑦𝑧((𝑥𝐵𝑦𝑦𝐴𝑧) → 𝑥𝐶𝑧))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1537  wex 1783  wcel 2108  wss 3883  cop 4564   class class class wbr 5070  ccom 5584  Rel wrel 5585
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-co 5589
This theorem is referenced by:  cotr  6006  cotr2g  14615
  Copyright terms: Public domain W3C validator