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

Theorem isdir 16064
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  |-  A  = 
U. U. R
Assertion
Ref Expression
isdir  |-  ( R  e.  V  ->  ( R  e.  DirRel  <->  ( ( Rel  R  /\  (  _I  |`  A )  C_  R
)  /\  ( ( R  o.  R )  C_  R  /\  ( A  X.  A )  C_  ( `' R  o.  R
) ) ) ) )

Proof of Theorem isdir
Dummy variable  r is distinct from all other variables.
StepHypRef Expression
1 releq 5073 . . . 4  |-  ( r  =  R  ->  ( Rel  r  <->  Rel  R ) )
2 unieq 4243 . . . . . . . 8  |-  ( r  =  R  ->  U. r  =  U. R )
32unieqd 4245 . . . . . . 7  |-  ( r  =  R  ->  U. U. r  =  U. U. R
)
4 isdir.1 . . . . . . 7  |-  A  = 
U. U. R
53, 4syl6eqr 2513 . . . . . 6  |-  ( r  =  R  ->  U. U. r  =  A )
65reseq2d 5262 . . . . 5  |-  ( r  =  R  ->  (  _I  |`  U. U. r
)  =  (  _I  |`  A ) )
7 id 22 . . . . 5  |-  ( r  =  R  ->  r  =  R )
86, 7sseq12d 3518 . . . 4  |-  ( r  =  R  ->  (
(  _I  |`  U. U. r )  C_  r  <->  (  _I  |`  A )  C_  R ) )
91, 8anbi12d 708 . . 3  |-  ( r  =  R  ->  (
( Rel  r  /\  (  _I  |`  U. U. r )  C_  r
)  <->  ( Rel  R  /\  (  _I  |`  A ) 
C_  R ) ) )
107, 7coeq12d 5156 . . . . 5  |-  ( r  =  R  ->  (
r  o.  r )  =  ( R  o.  R ) )
1110, 7sseq12d 3518 . . . 4  |-  ( r  =  R  ->  (
( r  o.  r
)  C_  r  <->  ( R  o.  R )  C_  R
) )
125sqxpeqd 5014 . . . . 5  |-  ( r  =  R  ->  ( U. U. r  X.  U. U. r )  =  ( A  X.  A ) )
13 cnveq 5165 . . . . . 6  |-  ( r  =  R  ->  `' r  =  `' R
)
1413, 7coeq12d 5156 . . . . 5  |-  ( r  =  R  ->  ( `' r  o.  r
)  =  ( `' R  o.  R ) )
1512, 14sseq12d 3518 . . . 4  |-  ( r  =  R  ->  (
( U. U. r  X.  U. U. r ) 
C_  ( `' r  o.  r )  <->  ( A  X.  A )  C_  ( `' R  o.  R
) ) )
1611, 15anbi12d 708 . . 3  |-  ( r  =  R  ->  (
( ( r  o.  r )  C_  r  /\  ( U. U. r  X.  U. U. r ) 
C_  ( `' r  o.  r ) )  <-> 
( ( R  o.  R )  C_  R  /\  ( A  X.  A
)  C_  ( `' R  o.  R )
) ) )
179, 16anbi12d 708 . 2  |-  ( r  =  R  ->  (
( ( Rel  r  /\  (  _I  |`  U. U. r )  C_  r
)  /\  ( (
r  o.  r ) 
C_  r  /\  ( U. U. r  X.  U. U. r )  C_  ( `' r  o.  r
) ) )  <->  ( ( Rel  R  /\  (  _I  |`  A )  C_  R
)  /\  ( ( R  o.  R )  C_  R  /\  ( A  X.  A )  C_  ( `' R  o.  R
) ) ) ) )
18 df-dir 16062 . 2  |-  DirRel  =  {
r  |  ( ( Rel  r  /\  (  _I  |`  U. U. r
)  C_  r )  /\  ( ( r  o.  r )  C_  r  /\  ( U. U. r  X.  U. U. r ) 
C_  ( `' r  o.  r ) ) ) }
1917, 18elab2g 3245 1  |-  ( R  e.  V  ->  ( R  e.  DirRel  <->  ( ( Rel  R  /\  (  _I  |`  A )  C_  R
)  /\  ( ( R  o.  R )  C_  R  /\  ( A  X.  A )  C_  ( `' R  o.  R
) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 367    = wceq 1398    e. wcel 1823    C_ wss 3461   U.cuni 4235    _I cid 4779    X. cxp 4986   `'ccnv 4987    |` cres 4990    o. ccom 4992   Rel wrel 4993   DirRelcdir 16060
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1623  ax-4 1636  ax-5 1709  ax-6 1752  ax-7 1795  ax-10 1842  ax-11 1847  ax-12 1859  ax-13 2004  ax-ext 2432
This theorem depends on definitions:  df-bi 185  df-or 368  df-an 369  df-tru 1401  df-ex 1618  df-nf 1622  df-sb 1745  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-rex 2810  df-v 3108  df-in 3468  df-ss 3475  df-uni 4236  df-br 4440  df-opab 4498  df-xp 4994  df-rel 4995  df-cnv 4996  df-co 4997  df-res 5000  df-dir 16062
This theorem is referenced by:  reldir  16065  dirdm  16066  dirref  16067  dirtr  16068  dirge  16069  tsrdir  16070  filnetlem3  30441
  Copyright terms: Public domain W3C validator