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

Theorem isdir 18772
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 5753 . . . 4 (𝑟 = 𝑅 → (Rel 𝑟 ↔ Rel 𝑅))
2 unieq 4878 . . . . . . . 8 (𝑟 = 𝑅 → ∪ 𝑟 = ∪ 𝑅)
32unieqd 4880 . . . . . . 7 (𝑟 = 𝑅 → ∪ ∪ 𝑟 = ∪ ∪ 𝑅)
4 isdir.1 . . . . . . 7 𝐴 = ∪ ∪ 𝑅
53, 4eqtr4di 2814 . . . . . 6 (𝑟 = 𝑅 → ∪ ∪ 𝑟 = 𝐴)
65reseq2d 5970 . . . . 5 (𝑟 = 𝑅 → ( I ↾ ∪ ∪ 𝑟) = ( I ↾ 𝐴))
7 id 23 . . . . 5 (𝑟 = 𝑅 → 𝑟 = 𝑅)
86, 7sseq12d 3964 . . . 4 (𝑟 = 𝑅 → (( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟 ↔ ( I ↾ 𝐴) ⊆ 𝑅))
91, 8anbi12d 644 . . 3 (𝑟 = 𝑅 → ((Rel 𝑟 ∧ ( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟) ↔ (Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅)))
107, 7coeq12d 5842 . . . . 5 (𝑟 = 𝑅 → (𝑟 ∘ 𝑟) = (𝑅 ∘ 𝑅))
1110, 7sseq12d 3964 . . . 4 (𝑟 = 𝑅 → ((𝑟 ∘ 𝑟) ⊆ 𝑟 ↔ (𝑅 ∘ 𝑅) ⊆ 𝑅))
125sqxpeqd 5683 . . . . 5 (𝑟 = 𝑅 → (∪ ∪ 𝑟 × ∪ ∪ 𝑟) = (𝐴 × 𝐴))
13 cnveq 5851 . . . . . 6 (𝑟 = 𝑅 → ◡𝑟 = ◡𝑅)
1413, 7coeq12d 5842 . . . . 5 (𝑟 = 𝑅 → (◡𝑟 ∘ 𝑟) = (◡𝑅 ∘ 𝑅))
1512, 14sseq12d 3964 . . . 4 (𝑟 = 𝑅 → ((∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟) ↔ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))
1611, 15anbi12d 644 . . 3 (𝑟 = 𝑅 → (((𝑟 ∘ 𝑟) ⊆ 𝑟 ∧ (∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟)) ↔ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅))))
179, 16anbi12d 644 . 2 (𝑟 = 𝑅 → (((Rel 𝑟 ∧ ( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟) ∧ ((𝑟 ∘ 𝑟) ⊆ 𝑟 ∧ (∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟))) ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))))
18 df-dir 18770 . 2 DirRel = {𝑟 ∣ ((Rel 𝑟 ∧ ( I ↾ ∪ ∪ 𝑟) ⊆ 𝑟) ∧ ((𝑟 ∘ 𝑟) ⊆ 𝑟 ∧ (∪ ∪ 𝑟 × ∪ ∪ 𝑟) ⊆ (◡𝑟 ∘ 𝑟)))}
1917, 18elab2g 3634 1 (𝑅 ∈ 𝑉 → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅 ∘ 𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (◡𝑅 ∘ 𝑅)))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ⊆ wss 3899  ∪ cuni 4867   I cid 5545   × cxp 5649  ◡ccnv 5650   ↾ cres 5653   ∘ ccom 5655  Rel wrel 5656  DirRelcdir 18768
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
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1573  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-rab 3414  df-v 3453  df-in 3906  df-ss 3916  df-uni 4868  df-br 5104  df-opab 5168  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-res 5663  df-dir 18770
This theorem is used by:  reldir  18773  dirdm  18774  dirref  18775  dirtr  18776  dirge  18777  tsrdir  18778  filnetlem3  37168
  Copyright terms: Public domain W3C validator