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

Theorem isdir 14370
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 4787 . . . 4  |-  ( r  =  R  ->  ( Rel  r  <->  Rel  R ) )
2 unieq 3852 . . . . . . . 8  |-  ( r  =  R  ->  U. r  =  U. R )
32unieqd 3854 . . . . . . 7  |-  ( r  =  R  ->  U. U. r  =  U. U. R
)
4 isdir.1 . . . . . . 7  |-  A  = 
U. U. R
53, 4syl6eqr 2346 . . . . . 6  |-  ( r  =  R  ->  U. U. r  =  A )
65reseq2d 4971 . . . . 5  |-  ( r  =  R  ->  (  _I  |`  U. U. r
)  =  (  _I  |`  A ) )
7 id 19 . . . . 5  |-  ( r  =  R  ->  r  =  R )
86, 7sseq12d 3220 . . . 4  |-  ( r  =  R  ->  (
(  _I  |`  U. U. r )  C_  r  <->  (  _I  |`  A )  C_  R ) )
91, 8anbi12d 691 . . 3  |-  ( r  =  R  ->  (
( Rel  r  /\  (  _I  |`  U. U. r )  C_  r
)  <->  ( Rel  R  /\  (  _I  |`  A ) 
C_  R ) ) )
107, 7coeq12d 4864 . . . . 5  |-  ( r  =  R  ->  (
r  o.  r )  =  ( R  o.  R ) )
1110, 7sseq12d 3220 . . . 4  |-  ( r  =  R  ->  (
( r  o.  r
)  C_  r  <->  ( R  o.  R )  C_  R
) )
125, 5xpeq12d 4730 . . . . 5  |-  ( r  =  R  ->  ( U. U. r  X.  U. U. r )  =  ( A  X.  A ) )
13 cnveq 4871 . . . . . 6  |-  ( r  =  R  ->  `' r  =  `' R
)
1413, 7coeq12d 4864 . . . . 5  |-  ( r  =  R  ->  ( `' r  o.  r
)  =  ( `' R  o.  R ) )
1512, 14sseq12d 3220 . . . 4  |-  ( r  =  R  ->  (
( U. U. r  X.  U. U. r ) 
C_  ( `' r  o.  r )  <->  ( A  X.  A )  C_  ( `' R  o.  R
) ) )
1611, 15anbi12d 691 . . 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 691 . 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 14368 . 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 2929 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 set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1632    e. wcel 1696    C_ wss 3165   U.cuni 3843    _I cid 4320    X. cxp 4703   `'ccnv 4704    |` cres 4707    o. ccom 4709   Rel wrel 4710   DirRelcdir 14366
This theorem is referenced by:  reldir  14371  dirdm  14372  dirref  14373  dirtr  14374  dirge  14375  tsrdir  14376  filnetlem3  26432
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-rex 2562  df-v 2803  df-in 3172  df-ss 3179  df-uni 3844  df-br 4040  df-opab 4094  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-res 4717  df-dir 14368
  Copyright terms: Public domain W3C validator