Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >   Mathboxes  >  bj-charfunbi Unicode version

Theorem bj-charfunbi 15303
Description: In an ambient set  X, if membership in  A is stable, then it is decidable if and only if  A has a characteristic function.

This characterization can be applied to singletons when the set  X has stable equality, which is the case as soon as it has a tight apartness relation. (Contributed by BJ, 6-Aug-2024.)

Hypotheses
Ref Expression
bj-charfunbi.ex  |-  ( ph  ->  X  e.  V )
bj-charfunbi.st  |-  ( ph  ->  A. x  e.  X STAB  x  e.  A )
Assertion
Ref Expression
bj-charfunbi  |-  ( ph  ->  ( A. x  e.  X DECID  x  e.  A  <->  E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) ) ) )
Distinct variable groups:    A, f, x   
f, X, x    ph, f, x
Allowed substitution hints:    V( x, f)

Proof of Theorem bj-charfunbi
Dummy variables  g  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eleq1w 2254 . . . . 5  |-  ( x  =  z  ->  (
x  e.  A  <->  z  e.  A ) )
21dcbid 839 . . . 4  |-  ( x  =  z  ->  (DECID  x  e.  A  <-> DECID  z  e.  A )
)
32cbvralvw 2730 . . 3  |-  ( A. x  e.  X DECID  x  e.  A 
<-> 
A. z  e.  X DECID  z  e.  A )
4 eleq1w 2254 . . . . . . . . . . . 12  |-  ( z  =  x  ->  (
z  e.  A  <->  x  e.  A ) )
54ifbid 3578 . . . . . . . . . . 11  |-  ( z  =  x  ->  if ( z  e.  A ,  1o ,  (/) )  =  if ( x  e.  A ,  1o ,  (/) ) )
65cbvmptv 4125 . . . . . . . . . 10  |-  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  =  ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) )
76a1i 9 . . . . . . . . 9  |-  ( (
ph  /\  A. z  e.  X DECID  z  e.  A
)  ->  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  =  ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) ) )
83biimpri 133 . . . . . . . . . 10  |-  ( A. z  e.  X DECID  z  e.  A  ->  A. x  e.  X DECID  x  e.  A )
98adantl 277 . . . . . . . . 9  |-  ( (
ph  /\  A. z  e.  X DECID  z  e.  A
)  ->  A. x  e.  X DECID  x  e.  A
)
107, 9bj-charfundc 15300 . . . . . . . 8  |-  ( (
ph  /\  A. z  e.  X DECID  z  e.  A
)  ->  ( (
z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) : X --> 2o  /\  ( A. x  e.  ( X  i^i  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x )  =  (/) ) ) )
1110ex 115 . . . . . . 7  |-  ( ph  ->  ( A. z  e.  X DECID  z  e.  A  -> 
( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) : X --> 2o  /\  ( A. x  e.  ( X  i^i  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  (/) ) ) ) )
12 2on 6478 . . . . . . . . . . 11  |-  2o  e.  On
1312a1i 9 . . . . . . . . . 10  |-  ( ph  ->  2o  e.  On )
14 bj-charfunbi.ex . . . . . . . . . 10  |-  ( ph  ->  X  e.  V )
1513, 14elmapd 6716 . . . . . . . . 9  |-  ( ph  ->  ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  e.  ( 2o  ^m  X
)  <->  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) : X --> 2o ) )
1615biimprd 158 . . . . . . . 8  |-  ( ph  ->  ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) : X --> 2o  ->  (
z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  e.  ( 2o  ^m  X ) ) )
1716adantrd 279 . . . . . . 7  |-  ( ph  ->  ( ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) : X --> 2o  /\  ( A. x  e.  ( X  i^i  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x )  =  (/) ) )  ->  (
z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  e.  ( 2o  ^m  X ) ) )
1811, 17syld 45 . . . . . 6  |-  ( ph  ->  ( A. z  e.  X DECID  z  e.  A  -> 
( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  e.  ( 2o  ^m  X ) ) )
1918imp 124 . . . . 5  |-  ( (
ph  /\  A. z  e.  X DECID  z  e.  A
)  ->  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  e.  ( 2o  ^m  X ) )
20 fveq1 5553 . . . . . . . . 9  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( f `  x
)  =  ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x ) )
2120eqeq1d 2202 . . . . . . . 8  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( ( f `  x )  =  1o  <->  ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  1o ) )
2221ralbidv 2494 . . . . . . 7  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o  <->  A. x  e.  ( X  i^i  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  1o ) )
2320eqeq1d 2202 . . . . . . . 8  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( ( f `  x )  =  (/)  <->  (
( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  (/) ) )
2423ralbidv 2494 . . . . . . 7  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( A. x  e.  ( X  \  A
) ( f `  x )  =  (/)  <->  A. x  e.  ( X  \  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  (/) ) )
2522, 24anbi12d 473 . . . . . 6  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) )  <->  ( A. x  e.  ( X  i^i  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  1o  /\  A. x  e.  ( X  \  A
) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  (/) ) ) )
2625adantl 277 . . . . 5  |-  ( ( ( ph  /\  A. z  e.  X DECID  z  e.  A )  /\  f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) )  ->  ( ( A. x  e.  ( X  i^i  A ) ( f `
 x )  =  1o  /\  A. x  e.  ( X  \  A
) ( f `  x )  =  (/) ) 
<->  ( A. x  e.  ( X  i^i  A
) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  1o  /\  A. x  e.  ( X  \  A
) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  (/) ) ) )
2710simprd 114 . . . . 5  |-  ( (
ph  /\  A. z  e.  X DECID  z  e.  A
)  ->  ( A. x  e.  ( X  i^i  A ) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  1o  /\  A. x  e.  ( X  \  A
) ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x )  =  (/) ) )
2819, 26, 27rspcedvd 2870 . . . 4  |-  ( (
ph  /\  A. z  e.  X DECID  z  e.  A
)  ->  E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) ) )
2928ex 115 . . 3  |-  ( ph  ->  ( A. z  e.  X DECID  z  e.  A  ->  E. f  e.  ( 2o  ^m  X ) ( A. x  e.  ( X  i^i  A ) ( f `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( f `  x )  =  (/) ) ) )
303, 29biimtrid 152 . 2  |-  ( ph  ->  ( A. x  e.  X DECID  x  e.  A  ->  E. f  e.  ( 2o  ^m  X ) ( A. x  e.  ( X  i^i  A ) ( f `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( f `  x )  =  (/) ) ) )
31 omex 4625 . . . . . . . . 9  |-  om  e.  _V
32 2ssom 6577 . . . . . . . . 9  |-  2o  C_  om
33 mapss 6745 . . . . . . . . 9  |-  ( ( om  e.  _V  /\  2o  C_  om )  -> 
( 2o  ^m  X
)  C_  ( om  ^m  X ) )
3431, 32, 33mp2an 426 . . . . . . . 8  |-  ( 2o 
^m  X )  C_  ( om  ^m  X )
35 fveq1 5553 . . . . . . . . . . . . 13  |-  ( f  =  g  ->  (
f `  x )  =  ( g `  x ) )
3635eqeq1d 2202 . . . . . . . . . . . 12  |-  ( f  =  g  ->  (
( f `  x
)  =  1o  <->  ( g `  x )  =  1o ) )
3736ralbidv 2494 . . . . . . . . . . 11  |-  ( f  =  g  ->  ( A. x  e.  ( X  i^i  A ) ( f `  x )  =  1o  <->  A. x  e.  ( X  i^i  A
) ( g `  x )  =  1o ) )
3835eqeq1d 2202 . . . . . . . . . . . 12  |-  ( f  =  g  ->  (
( f `  x
)  =  (/)  <->  ( g `  x )  =  (/) ) )
3938ralbidv 2494 . . . . . . . . . . 11  |-  ( f  =  g  ->  ( A. x  e.  ( X  \  A ) ( f `  x )  =  (/)  <->  A. x  e.  ( X  \  A ) ( g `  x
)  =  (/) ) )
4037, 39anbi12d 473 . . . . . . . . . 10  |-  ( f  =  g  ->  (
( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) )  <->  ( A. x  e.  ( X  i^i  A ) ( g `
 x )  =  1o  /\  A. x  e.  ( X  \  A
) ( g `  x )  =  (/) ) ) )
4140cbvrexvw 2731 . . . . . . . . 9  |-  ( E. f  e.  ( 2o 
^m  X ) ( A. x  e.  ( X  i^i  A ) ( f `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( f `  x )  =  (/) )  <->  E. g  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( g `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( g `  x
)  =  (/) ) )
42 fveqeq2 5563 . . . . . . . . . . . . 13  |-  ( x  =  y  ->  (
( g `  x
)  =  1o  <->  ( g `  y )  =  1o ) )
4342cbvralvw 2730 . . . . . . . . . . . 12  |-  ( A. x  e.  ( X  i^i  A ) ( g `
 x )  =  1o  <->  A. y  e.  ( X  i^i  A ) ( g `  y
)  =  1o )
44 1n0 6485 . . . . . . . . . . . . . . . 16  |-  1o  =/=  (/)
4544neii 2366 . . . . . . . . . . . . . . 15  |-  -.  1o  =  (/)
46 eqeq1 2200 . . . . . . . . . . . . . . 15  |-  ( ( g `  y )  =  1o  ->  (
( g `  y
)  =  (/)  <->  1o  =  (/) ) )
4745, 46mtbiri 676 . . . . . . . . . . . . . 14  |-  ( ( g `  y )  =  1o  ->  -.  ( g `  y
)  =  (/) )
4847neqned 2371 . . . . . . . . . . . . 13  |-  ( ( g `  y )  =  1o  ->  (
g `  y )  =/=  (/) )
4948ralimi 2557 . . . . . . . . . . . 12  |-  ( A. y  e.  ( X  i^i  A ) ( g `
 y )  =  1o  ->  A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/) )
5043, 49sylbi 121 . . . . . . . . . . 11  |-  ( A. x  e.  ( X  i^i  A ) ( g `
 x )  =  1o  ->  A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/) )
51 fveqeq2 5563 . . . . . . . . . . . . 13  |-  ( x  =  y  ->  (
( g `  x
)  =  (/)  <->  ( g `  y )  =  (/) ) )
5251cbvralvw 2730 . . . . . . . . . . . 12  |-  ( A. x  e.  ( X  \  A ) ( g `
 x )  =  (/) 
<-> 
A. y  e.  ( X  \  A ) ( g `  y
)  =  (/) )
5352biimpi 120 . . . . . . . . . . 11  |-  ( A. x  e.  ( X  \  A ) ( g `
 x )  =  (/)  ->  A. y  e.  ( X  \  A ) ( g `  y
)  =  (/) )
5450, 53anim12i 338 . . . . . . . . . 10  |-  ( ( A. x  e.  ( X  i^i  A ) ( g `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( g `  x )  =  (/) )  ->  ( A. y  e.  ( X  i^i  A ) ( g `  y )  =/=  (/)  /\  A. y  e.  ( X  \  A
) ( g `  y )  =  (/) ) )
5554reximi 2591 . . . . . . . . 9  |-  ( E. g  e.  ( 2o 
^m  X ) ( A. x  e.  ( X  i^i  A ) ( g `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( g `  x )  =  (/) )  ->  E. g  e.  ( 2o  ^m  X
) ( A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/)  /\  A. y  e.  ( X  \  A ) ( g `
 y )  =  (/) ) )
5641, 55sylbi 121 . . . . . . . 8  |-  ( E. f  e.  ( 2o 
^m  X ) ( A. x  e.  ( X  i^i  A ) ( f `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( f `  x )  =  (/) )  ->  E. g  e.  ( 2o  ^m  X
) ( A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/)  /\  A. y  e.  ( X  \  A ) ( g `
 y )  =  (/) ) )
57 ssrexv 3244 . . . . . . . 8  |-  ( ( 2o  ^m  X ) 
C_  ( om  ^m  X )  ->  ( E. g  e.  ( 2o  ^m  X ) ( A. y  e.  ( X  i^i  A ) ( g `  y
)  =/=  (/)  /\  A. y  e.  ( X  \  A ) ( g `
 y )  =  (/) )  ->  E. g  e.  ( om  ^m  X
) ( A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/)  /\  A. y  e.  ( X  \  A ) ( g `
 y )  =  (/) ) ) )
5834, 56, 57mpsyl 65 . . . . . . 7  |-  ( E. f  e.  ( 2o 
^m  X ) ( A. x  e.  ( X  i^i  A ) ( f `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( f `  x )  =  (/) )  ->  E. g  e.  ( om  ^m  X
) ( A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/)  /\  A. y  e.  ( X  \  A ) ( g `
 y )  =  (/) ) )
5958adantl 277 . . . . . 6  |-  ( (
ph  /\  E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) ) )  ->  E. g  e.  ( om  ^m  X ) ( A. y  e.  ( X  i^i  A
) ( g `  y )  =/=  (/)  /\  A. y  e.  ( X  \  A ) ( g `
 y )  =  (/) ) )
6059bj-charfunr 15302 . . . . 5  |-  ( (
ph  /\  E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) ) )  ->  A. y  e.  X DECID  -.  y  e.  A )
6160ex 115 . . . 4  |-  ( ph  ->  ( E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) )  ->  A. y  e.  X DECID  -.  y  e.  A )
)
62 eleq1w 2254 . . . . . . 7  |-  ( x  =  y  ->  (
x  e.  A  <->  y  e.  A ) )
6362notbid 668 . . . . . 6  |-  ( x  =  y  ->  ( -.  x  e.  A  <->  -.  y  e.  A ) )
6463dcbid 839 . . . . 5  |-  ( x  =  y  ->  (DECID  -.  x  e.  A  <-> DECID  -.  y  e.  A
) )
6564cbvralvw 2730 . . . 4  |-  ( A. x  e.  X DECID  -.  x  e.  A  <->  A. y  e.  X DECID  -.  y  e.  A )
6661, 65imbitrrdi 162 . . 3  |-  ( ph  ->  ( E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) )  ->  A. x  e.  X DECID  -.  x  e.  A )
)
67 bj-charfunbi.st . . . . . 6  |-  ( ph  ->  A. x  e.  X STAB  x  e.  A )
6867r19.21bi 2582 . . . . 5  |-  ( (
ph  /\  x  e.  X )  -> STAB  x  e.  A )
69 stdcn 848 . . . . 5  |-  (STAB  x  e.  A  <->  (DECID  -.  x  e.  A  -> DECID  x  e.  A ) )
7068, 69sylib 122 . . . 4  |-  ( (
ph  /\  x  e.  X )  ->  (DECID  -.  x  e.  A  -> DECID  x  e.  A ) )
7170ralimdva 2561 . . 3  |-  ( ph  ->  ( A. x  e.  X DECID 
-.  x  e.  A  ->  A. x  e.  X DECID  x  e.  A ) )
7266, 71syld 45 . 2  |-  ( ph  ->  ( E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) )  ->  A. x  e.  X DECID  x  e.  A ) )
7330, 72impbid 129 1  |-  ( ph  ->  ( A. x  e.  X DECID  x  e.  A  <->  E. f  e.  ( 2o  ^m  X
) ( A. x  e.  ( X  i^i  A
) ( f `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( f `  x
)  =  (/) ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 104    <-> wb 105  STAB wstab 831  DECID wdc 835    = wceq 1364    e. wcel 2164    =/= wne 2364   A.wral 2472   E.wrex 2473   _Vcvv 2760    \ cdif 3150    i^i cin 3152    C_ wss 3153   (/)c0 3446   ifcif 3557    |-> cmpt 4090   Oncon0 4394   omcom 4622   -->wf 5250   ` cfv 5254  (class class class)co 5918   1oc1o 6462   2oc2o 6463    ^m cmap 6702
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2166  ax-14 2167  ax-ext 2175  ax-sep 4147  ax-nul 4155  ax-pow 4203  ax-pr 4238  ax-un 4464  ax-setind 4569  ax-iinf 4620
This theorem depends on definitions:  df-bi 117  df-stab 832  df-dc 836  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2045  df-mo 2046  df-clab 2180  df-cleq 2186  df-clel 2189  df-nfc 2325  df-ne 2365  df-ral 2477  df-rex 2478  df-rab 2481  df-v 2762  df-sbc 2986  df-csb 3081  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3447  df-if 3558  df-pw 3603  df-sn 3624  df-pr 3625  df-op 3627  df-uni 3836  df-int 3871  df-br 4030  df-opab 4091  df-mpt 4092  df-tr 4128  df-id 4324  df-iord 4397  df-on 4399  df-suc 4402  df-iom 4623  df-xp 4665  df-rel 4666  df-cnv 4667  df-co 4668  df-dm 4669  df-rn 4670  df-res 4671  df-ima 4672  df-iota 5215  df-fun 5256  df-fn 5257  df-f 5258  df-fv 5262  df-ov 5921  df-oprab 5922  df-mpo 5923  df-1o 6469  df-2o 6470  df-map 6704
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator