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

Theorem isdir 17844
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 5653 . . . 4 (𝑟 = 𝑅 → (Rel 𝑟 ↔ Rel 𝑅))
2 unieq 4851 . . . . . . . 8 (𝑟 = 𝑅 𝑟 = 𝑅)
32unieqd 4854 . . . . . . 7 (𝑟 = 𝑅 𝑟 = 𝑅)
4 isdir.1 . . . . . . 7 𝐴 = 𝑅
53, 4syl6eqr 2876 . . . . . 6 (𝑟 = 𝑅 𝑟 = 𝐴)
65reseq2d 5855 . . . . 5 (𝑟 = 𝑅 → ( I ↾ 𝑟) = ( I ↾ 𝐴))
7 id 22 . . . . 5 (𝑟 = 𝑅𝑟 = 𝑅)
86, 7sseq12d 4002 . . . 4 (𝑟 = 𝑅 → (( I ↾ 𝑟) ⊆ 𝑟 ↔ ( I ↾ 𝐴) ⊆ 𝑅))
91, 8anbi12d 632 . . 3 (𝑟 = 𝑅 → ((Rel 𝑟 ∧ ( I ↾ 𝑟) ⊆ 𝑟) ↔ (Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅)))
107, 7coeq12d 5737 . . . . 5 (𝑟 = 𝑅 → (𝑟𝑟) = (𝑅𝑅))
1110, 7sseq12d 4002 . . . 4 (𝑟 = 𝑅 → ((𝑟𝑟) ⊆ 𝑟 ↔ (𝑅𝑅) ⊆ 𝑅))
125sqxpeqd 5589 . . . . 5 (𝑟 = 𝑅 → ( 𝑟 × 𝑟) = (𝐴 × 𝐴))
13 cnveq 5746 . . . . . 6 (𝑟 = 𝑅𝑟 = 𝑅)
1413, 7coeq12d 5737 . . . . 5 (𝑟 = 𝑅 → (𝑟𝑟) = (𝑅𝑅))
1512, 14sseq12d 4002 . . . 4 (𝑟 = 𝑅 → (( 𝑟 × 𝑟) ⊆ (𝑟𝑟) ↔ (𝐴 × 𝐴) ⊆ (𝑅𝑅)))
1611, 15anbi12d 632 . . 3 (𝑟 = 𝑅 → (((𝑟𝑟) ⊆ 𝑟 ∧ ( 𝑟 × 𝑟) ⊆ (𝑟𝑟)) ↔ ((𝑅𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (𝑅𝑅))))
179, 16anbi12d 632 . 2 (𝑟 = 𝑅 → (((Rel 𝑟 ∧ ( I ↾ 𝑟) ⊆ 𝑟) ∧ ((𝑟𝑟) ⊆ 𝑟 ∧ ( 𝑟 × 𝑟) ⊆ (𝑟𝑟))) ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (𝑅𝑅)))))
18 df-dir 17842 . 2 DirRel = {𝑟 ∣ ((Rel 𝑟 ∧ ( I ↾ 𝑟) ⊆ 𝑟) ∧ ((𝑟𝑟) ⊆ 𝑟 ∧ ( 𝑟 × 𝑟) ⊆ (𝑟𝑟)))}
1917, 18elab2g 3670 1 (𝑅𝑉 → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝐴) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ (𝐴 × 𝐴) ⊆ (𝑅𝑅)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  wss 3938   cuni 4840   I cid 5461   × cxp 5555  ccnv 5556  cres 5559  ccom 5561  Rel wrel 5562  DirRelcdir 17840
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-rab 3149  df-v 3498  df-in 3945  df-ss 3954  df-uni 4841  df-br 5069  df-opab 5131  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-res 5569  df-dir 17842
This theorem is referenced by:  reldir  17845  dirdm  17846  dirref  17847  dirtr  17848  dirge  17849  tsrdir  17850  filnetlem3  33730
  Copyright terms: Public domain W3C validator