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

Theorem isdir 17232
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 5201 . . . 4 (𝑟 = 𝑅 → (Rel 𝑟 ↔ Rel 𝑅))
2 unieq 4444 . . . . . . . 8 (𝑟 = 𝑅 𝑟 = 𝑅)
32unieqd 4446 . . . . . . 7 (𝑟 = 𝑅 𝑟 = 𝑅)
4 isdir.1 . . . . . . 7 𝐴 = 𝑅
53, 4syl6eqr 2674 . . . . . 6 (𝑟 = 𝑅 𝑟 = 𝐴)
65reseq2d 5396 . . . . 5 (𝑟 = 𝑅 → ( I ↾ 𝑟) = ( I ↾ 𝐴))
7 id 22 . . . . 5 (𝑟 = 𝑅𝑟 = 𝑅)
86, 7sseq12d 3634 . . . 4 (𝑟 = 𝑅 → (( I ↾ 𝑟) ⊆ 𝑟 ↔ ( I ↾ 𝐴) ⊆ 𝑅))
91, 8anbi12d 747 . . 3 (𝑟 = 𝑅 → ((Rel 𝑟 ∧ ( I ↾ 𝑟) ⊆ 𝑟) ↔ (Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅)))
107, 7coeq12d 5286 . . . . 5 (𝑟 = 𝑅 → (𝑟𝑟) = (𝑅𝑅))
1110, 7sseq12d 3634 . . . 4 (𝑟 = 𝑅 → ((𝑟𝑟) ⊆ 𝑟 ↔ (𝑅𝑅) ⊆ 𝑅))
125sqxpeqd 5141 . . . . 5 (𝑟 = 𝑅 → ( 𝑟 × 𝑟) = (𝐴 × 𝐴))
13 cnveq 5296 . . . . . 6 (𝑟 = 𝑅𝑟 = 𝑅)
1413, 7coeq12d 5286 . . . . 5 (𝑟 = 𝑅 → (𝑟𝑟) = (𝑅𝑅))
1512, 14sseq12d 3634 . . . 4 (𝑟 = 𝑅 → (( 𝑟 × 𝑟) ⊆ (𝑟𝑟) ↔ (𝐴 × 𝐴) ⊆ (𝑅𝑅)))
1611, 15anbi12d 747 . . 3 (𝑟 = 𝑅 → (((𝑟𝑟) ⊆ 𝑟 ∧ ( 𝑟 × 𝑟) ⊆ (𝑟𝑟)) ↔ ((𝑅𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (𝑅𝑅))))
179, 16anbi12d 747 . 2 (𝑟 = 𝑅 → (((Rel 𝑟 ∧ ( I ↾ 𝑟) ⊆ 𝑟) ∧ ((𝑟𝑟) ⊆ 𝑟 ∧ ( 𝑟 × 𝑟) ⊆ (𝑟𝑟))) ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (𝑅𝑅)))))
18 df-dir 17230 . 2 DirRel = {𝑟 ∣ ((Rel 𝑟 ∧ ( I ↾ 𝑟) ⊆ 𝑟) ∧ ((𝑟𝑟) ⊆ 𝑟 ∧ ( 𝑟 × 𝑟) ⊆ (𝑟𝑟)))}
1917, 18elab2g 3353 1 (𝑅𝑉 → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (𝑅𝑅)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1483  wcel 1990  wss 3574   cuni 4436   I cid 5023   × cxp 5112  ccnv 5113  cres 5116  ccom 5118  Rel wrel 5119  DirRelcdir 17228
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-rex 2918  df-v 3202  df-in 3581  df-ss 3588  df-uni 4437  df-br 4654  df-opab 4713  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-res 5126  df-dir 17230
This theorem is referenced by:  reldir  17233  dirdm  17234  dirref  17235  dirtr  17236  dirge  17237  tsrdir  17238  filnetlem3  32375
  Copyright terms: Public domain W3C validator