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

Theorem codir 6112
Description: Two ways of saying a relation is directed. (Contributed by Mario Carneiro, 22-Nov-2013.)
Assertion
Ref Expression
codir ((𝐴 × 𝐵) ⊆ (◡𝑅 ∘ 𝑅) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝐵,𝑦,𝑧   𝑥,𝑅,𝑦,𝑧

Proof of Theorem codir
StepHypRef Expression
1 opelxp 5687 . . . 4 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵))
2 df-br 5104 . . . . 5 (𝑥(◡𝑅 ∘ 𝑅)𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ (◡𝑅 ∘ 𝑅))
3 brcodir 6111 . . . . . 6 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥(◡𝑅 ∘ 𝑅)𝑦 ↔ ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧)))
43el2v 3458 . . . . 5 (𝑥(◡𝑅 ∘ 𝑅)𝑦 ↔ ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧))
52, 4bitr3i 280 . . . 4 (⟨𝑥, 𝑦⟩ ∈ (◡𝑅 ∘ 𝑅) ↔ ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧))
61, 5imbi12i 353 . . 3 ((⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ⟨𝑥, 𝑦⟩ ∈ (◡𝑅 ∘ 𝑅)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧)))
762albii 1853 . 2 (∀𝑥∀𝑦(⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ⟨𝑥, 𝑦⟩ ∈ (◡𝑅 ∘ 𝑅)) ↔ ∀𝑥∀𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧)))
8 relxp 5669 . . 3 Rel (𝐴 × 𝐵)
9 ssrel 5759 . . 3 (Rel (𝐴 × 𝐵) → ((𝐴 × 𝐵) ⊆ (◡𝑅 ∘ 𝑅) ↔ ∀𝑥∀𝑦(⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ⟨𝑥, 𝑦⟩ ∈ (◡𝑅 ∘ 𝑅))))
108, 9ax-mp 5 . 2 ((𝐴 × 𝐵) ⊆ (◡𝑅 ∘ 𝑅) ↔ ∀𝑥∀𝑦(⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ⟨𝑥, 𝑦⟩ ∈ (◡𝑅 ∘ 𝑅)))
11 r2al 3199 . 2 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧) ↔ ∀𝑥∀𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧)))
127, 10, 113bitr4i 306 1 ((𝐴 × 𝐵) ⊆ (◡𝑅 ∘ 𝑅) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∃𝑧(𝑥𝑅𝑧 ∧ 𝑦𝑅𝑧))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1568  ∃wex 1812   ∈ wcel 2145  ∀wral 3077  Vcvv 3451   ⊆ wss 3899  ⟨cop 4590   class class class wbr 5103   × cxp 5649  ◡ccnv 5650   ∘ ccom 5655  Rel wrel 5656
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-br 5104  df-opab 5168  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660
This theorem is used by:  dirge  18757  filnetlem3  37138
  Copyright terms: Public domain W3C validator