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

Theorem disjprg 4035
Description: A pair collection is disjoint iff the two sets in the family have empty intersection. (Contributed by Mario Carneiro, 14-Nov-2016.)
Hypotheses
Ref Expression
disjprg.1  |-  ( x  =  A  ->  C  =  D )
disjprg.2  |-  ( x  =  B  ->  C  =  E )
Assertion
Ref Expression
disjprg  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
(Disj  x  e.  { A ,  B } C  <->  ( D  i^i  E )  =  (/) ) )
Distinct variable groups:    x, A    x, B    x, D    x, E
Allowed substitution hints:    C( x)    V( x)

Proof of Theorem disjprg
Dummy variables  y 
z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqeq1 2302 . . . . . . 7  |-  ( y  =  A  ->  (
y  =  z  <->  A  =  z ) )
2 nfcv 2432 . . . . . . . . . 10  |-  F/_ x A
3 nfcv 2432 . . . . . . . . . 10  |-  F/_ x D
4 disjprg.1 . . . . . . . . . 10  |-  ( x  =  A  ->  C  =  D )
52, 3, 4csbhypf 3129 . . . . . . . . 9  |-  ( y  =  A  ->  [_ y  /  x ]_ C  =  D )
65ineq1d 3382 . . . . . . . 8  |-  ( y  =  A  ->  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  ( D  i^i  [_ z  /  x ]_ C ) )
76eqeq1d 2304 . . . . . . 7  |-  ( y  =  A  ->  (
( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/)  <->  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) )
81, 7orbi12d 690 . . . . . 6  |-  ( y  =  A  ->  (
( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) ) )
98ralbidv 2576 . . . . 5  |-  ( y  =  A  ->  ( A. z  e.  { A ,  B }  ( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) )  <->  A. z  e.  { A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) ) )
10 eqeq1 2302 . . . . . . 7  |-  ( y  =  B  ->  (
y  =  z  <->  B  =  z ) )
11 nfcv 2432 . . . . . . . . . 10  |-  F/_ x B
12 nfcv 2432 . . . . . . . . . 10  |-  F/_ x E
13 disjprg.2 . . . . . . . . . 10  |-  ( x  =  B  ->  C  =  E )
1411, 12, 13csbhypf 3129 . . . . . . . . 9  |-  ( y  =  B  ->  [_ y  /  x ]_ C  =  E )
1514ineq1d 3382 . . . . . . . 8  |-  ( y  =  B  ->  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  ( E  i^i  [_ z  /  x ]_ C ) )
1615eqeq1d 2304 . . . . . . 7  |-  ( y  =  B  ->  (
( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/)  <->  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) )
1710, 16orbi12d 690 . . . . . 6  |-  ( y  =  B  ->  (
( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) ) )
1817ralbidv 2576 . . . . 5  |-  ( y  =  B  ->  ( A. z  e.  { A ,  B }  ( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) )  <->  A. z  e.  { A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) ) )
199, 18ralprg 3695 . . . 4  |-  ( ( A  e.  V  /\  B  e.  V )  ->  ( A. y  e. 
{ A ,  B } A. z  e.  { A ,  B } 
( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( A. z  e. 
{ A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) )  /\  A. z  e. 
{ A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) ) ) )
20193adant3 975 . . 3  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( A. y  e. 
{ A ,  B } A. z  e.  { A ,  B } 
( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( A. z  e. 
{ A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) )  /\  A. z  e. 
{ A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) ) ) )
21 id 19 . . . . . . . . . 10  |-  ( z  =  A  ->  z  =  A )
2221eqcomd 2301 . . . . . . . . 9  |-  ( z  =  A  ->  A  =  z )
2322orcd 381 . . . . . . . 8  |-  ( z  =  A  ->  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) )
24 a1tru 1321 . . . . . . . 8  |-  ( z  =  A  ->  T.  )
2523, 242thd 231 . . . . . . 7  |-  ( z  =  A  ->  (
( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  T.  ) )
26 eqeq2 2305 . . . . . . . 8  |-  ( z  =  B  ->  ( A  =  z  <->  A  =  B ) )
2711, 12, 13csbhypf 3129 . . . . . . . . . 10  |-  ( z  =  B  ->  [_ z  /  x ]_ C  =  E )
2827ineq2d 3383 . . . . . . . . 9  |-  ( z  =  B  ->  ( D  i^i  [_ z  /  x ]_ C )  =  ( D  i^i  E ) )
2928eqeq1d 2304 . . . . . . . 8  |-  ( z  =  B  ->  (
( D  i^i  [_ z  /  x ]_ C )  =  (/)  <->  ( D  i^i  E )  =  (/) ) )
3026, 29orbi12d 690 . . . . . . 7  |-  ( z  =  B  ->  (
( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) )
3125, 30ralprg 3695 . . . . . 6  |-  ( ( A  e.  V  /\  B  e.  V )  ->  ( A. z  e. 
{ A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  (  T.  /\  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) ) )
32313adant3 975 . . . . 5  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( A. z  e. 
{ A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  (  T.  /\  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) ) )
33 simp3 957 . . . . . . . 8  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  ->  A  =/=  B )
3433neneqd 2475 . . . . . . 7  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  ->  -.  A  =  B
)
35 biorf 394 . . . . . . 7  |-  ( -.  A  =  B  -> 
( ( D  i^i  E )  =  (/)  <->  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) )
3634, 35syl 15 . . . . . 6  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( ( D  i^i  E )  =  (/)  <->  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) )
37 tru 1312 . . . . . . 7  |-  T.
3837biantrur 492 . . . . . 6  |-  ( ( A  =  B  \/  ( D  i^i  E )  =  (/) )  <->  (  T.  /\  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) )
3936, 38syl6bb 252 . . . . 5  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( ( D  i^i  E )  =  (/)  <->  (  T.  /\  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) ) )
4032, 39bitr4d 247 . . . 4  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( A. z  e. 
{ A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( D  i^i  E
)  =  (/) ) )
41 eqeq2 2305 . . . . . . . . 9  |-  ( z  =  A  ->  ( B  =  z  <->  B  =  A ) )
42 eqcom 2298 . . . . . . . . 9  |-  ( B  =  A  <->  A  =  B )
4341, 42syl6bb 252 . . . . . . . 8  |-  ( z  =  A  ->  ( B  =  z  <->  A  =  B ) )
442, 3, 4csbhypf 3129 . . . . . . . . . . 11  |-  ( z  =  A  ->  [_ z  /  x ]_ C  =  D )
4544ineq2d 3383 . . . . . . . . . 10  |-  ( z  =  A  ->  ( E  i^i  [_ z  /  x ]_ C )  =  ( E  i^i  D ) )
46 incom 3374 . . . . . . . . . 10  |-  ( E  i^i  D )  =  ( D  i^i  E
)
4745, 46syl6eq 2344 . . . . . . . . 9  |-  ( z  =  A  ->  ( E  i^i  [_ z  /  x ]_ C )  =  ( D  i^i  E ) )
4847eqeq1d 2304 . . . . . . . 8  |-  ( z  =  A  ->  (
( E  i^i  [_ z  /  x ]_ C )  =  (/)  <->  ( D  i^i  E )  =  (/) ) )
4943, 48orbi12d 690 . . . . . . 7  |-  ( z  =  A  ->  (
( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( A  =  B  \/  ( D  i^i  E )  =  (/) ) ) )
50 id 19 . . . . . . . . . 10  |-  ( z  =  B  ->  z  =  B )
5150eqcomd 2301 . . . . . . . . 9  |-  ( z  =  B  ->  B  =  z )
5251orcd 381 . . . . . . . 8  |-  ( z  =  B  ->  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) )
53 a1tru 1321 . . . . . . . 8  |-  ( z  =  B  ->  T.  )
5452, 532thd 231 . . . . . . 7  |-  ( z  =  B  ->  (
( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  T.  ) )
5549, 54ralprg 3695 . . . . . 6  |-  ( ( A  e.  V  /\  B  e.  V )  ->  ( A. z  e. 
{ A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( ( A  =  B  \/  ( D  i^i  E )  =  (/) )  /\  T.  )
) )
56553adant3 975 . . . . 5  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( A. z  e. 
{ A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( ( A  =  B  \/  ( D  i^i  E )  =  (/) )  /\  T.  )
) )
5737biantru 491 . . . . . 6  |-  ( ( A  =  B  \/  ( D  i^i  E )  =  (/) )  <->  ( ( A  =  B  \/  ( D  i^i  E )  =  (/) )  /\  T.  ) )
5836, 57syl6bb 252 . . . . 5  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( ( D  i^i  E )  =  (/)  <->  ( ( A  =  B  \/  ( D  i^i  E )  =  (/) )  /\  T.  ) ) )
5956, 58bitr4d 247 . . . 4  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( A. z  e. 
{ A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( D  i^i  E
)  =  (/) ) )
6040, 59anbi12d 691 . . 3  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( ( A. z  e.  { A ,  B }  ( A  =  z  \/  ( D  i^i  [_ z  /  x ]_ C )  =  (/) )  /\  A. z  e. 
{ A ,  B }  ( B  =  z  \/  ( E  i^i  [_ z  /  x ]_ C )  =  (/) ) )  <->  ( ( D  i^i  E )  =  (/)  /\  ( D  i^i  E )  =  (/) ) ) )
6120, 60bitrd 244 . 2  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
( A. y  e. 
{ A ,  B } A. z  e.  { A ,  B } 
( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) ) 
<->  ( ( D  i^i  E )  =  (/)  /\  ( D  i^i  E )  =  (/) ) ) )
62 disjors 4025 . 2  |-  (Disj  x  e.  { A ,  B } C  <->  A. y  e.  { A ,  B } A. z  e.  { A ,  B }  ( y  =  z  \/  ( [_ y  /  x ]_ C  i^i  [_ z  /  x ]_ C )  =  (/) ) )
63 pm4.24 624 . 2  |-  ( ( D  i^i  E )  =  (/)  <->  ( ( D  i^i  E )  =  (/)  /\  ( D  i^i  E )  =  (/) ) )
6461, 62, 633bitr4g 279 1  |-  ( ( A  e.  V  /\  B  e.  V  /\  A  =/=  B )  -> 
(Disj  x  e.  { A ,  B } C  <->  ( D  i^i  E )  =  (/) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    \/ wo 357    /\ wa 358    /\ w3a 934    T. wtru 1307    = wceq 1632    e. wcel 1696    =/= wne 2459   A.wral 2556   [_csb 3094    i^i cin 3164   (/)c0 3468   {cpr 3654  Disj wdisj 4009
This theorem is referenced by:  disjdifprg  23367  probun  23637
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-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-nul 3469  df-sn 3659  df-pr 3660  df-disj 4010
  Copyright terms: Public domain W3C validator