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

Theorem isdir 18784
Description: A condition for a relation to be a direction. (Contributed by Jeff Hankins, 25-Nov-2009.) (Revised by Mario Carneiro, 22-Nov-2013.)
Hypothesis
Ref Expression
isdir.1 𝐴 = ∪ ∪ 𝑅
Assertion
Ref Expression
isdir (𝑅 ∈ 𝑉 → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))))

Proof of Theorem isdir
Dummy variable 𝑟 is distinct from all other variables.
StepHypRef Expression
1 releq 5757 . . . 4 (𝑟 = 𝑅 → (Rel 𝑟 ↔ Rel 𝑅))
2 unieq 4880 . . . . . . . 8 (𝑟 = 𝑅 → ∪ 𝑟 = ∪ 𝑅)
32unieqd 4882 . . . . . . 7 (𝑟 = 𝑅 → ∪ ∪ 𝑟 = ∪ ∪ 𝑅)
4 isdir.1 . . . . . . 7 𝐴 = ∪ ∪ 𝑅
53, 4eqtr4di 2816 . . . . . 6 (𝑟 = 𝑅 → ∪ ∪ 𝑟 = 𝐴)
65reseq2d 5974 . . . . 5 (𝑟 = 𝑅 → ( I ↾ ∪ ∪ 𝑟) = ( I ↾ 𝐴))
7 id 23 . . . . 5 (𝑟 = 𝑅 → 𝑟 = 𝑅)
86, 7sseq12d 3945 . . . 4 (𝑟 = 𝑅 → (( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟 ↔ ( I ↾ 𝐴) ⊆ 𝑅))
91, 8anbi12d 644 . . 3 (𝑟 = 𝑅 → ((Rel 𝑟 ∧ ( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟) ↔ (Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅)))
107, 7coeq12d 5846 . . . . 5 (𝑟 = 𝑅 → (𝑟 ∘ 𝑟) = (𝑅 ∘ 𝑅))
1110, 7sseq12d 3945 . . . 4 (𝑟 = 𝑅 → ((𝑟 ∘ 𝑟) ⊆ 𝑟 ↔ (𝑅 ∘ 𝑅) ⊆ 𝑅))
125sqxpeqd 5686 . . . . 5 (𝑟 = 𝑅 → (∪ ∪ 𝑟 × ∪ ∪ 𝑟) = (𝐴 × 𝐴))
13 cnveq 5855 . . . . . 6 (𝑟 = 𝑅 → ◡𝑟 = ◡𝑅)
1413, 7coeq12d 5846 . . . . 5 (𝑟 = 𝑅 → (◡𝑟 ∘ 𝑟) = (◡𝑅 ∘ 𝑅))
1512, 14sseq12d 3945 . . . 4 (𝑟 = 𝑅 → ((∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟) ↔ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))
1611, 15anbi12d 644 . . 3 (𝑟 = 𝑅 → (((𝑟 ∘ 𝑟) ⊆ 𝑟 ∧ (∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟)) ↔ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅))))
179, 16anbi12d 644 . 2 (𝑟 = 𝑅 → (((Rel 𝑟 ∧ ( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟) ∧ ((𝑟 ∘ 𝑟) ⊆ 𝑟 ∧ (∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟))) ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))))
18 df-dir 18782 . 2 DirRel = {𝑟 ∣ ((Rel 𝑟 ∧ ( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟) ∧ ((𝑟 ∘ 𝑟) ⊆ 𝑟 ∧ (∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟)))}
1917, 18elab2g 3636 1 (𝑅 ∈ 𝑉 → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2146   ⊆ wss 3899  ∪ cuni 4869   I cid 5548   × cxp 5652  ◡ccnv 5653   ↾ cres 5656   ∘ ccom 5658  Rel wrel 5659  DirRelcdir 18780
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1572  df-ex 1812  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2838  df-rab 3416  df-v 3455  df-ss 3900  df-in 4093  df-uni 4870  df-br 5106  df-opab 5170  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-res 5666  df-dir 18782
This theorem is used by:  reldir  18785  dirdm  18786  dirref  18787  dirtr  18788  dirge  18789  tsrdir  18790  filnetlem3  37295
  Copyright terms: Public domain W3C validator