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

Theorem bj-charfunbi 16406
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 2292 . . . . 5  |-  ( x  =  z  ->  (
x  e.  A  <->  z  e.  A ) )
21dcbid 845 . . . 4  |-  ( x  =  z  ->  (DECID  x  e.  A  <-> DECID  z  e.  A )
)
32cbvralvw 2771 . . 3  |-  ( A. x  e.  X DECID  x  e.  A 
<-> 
A. z  e.  X DECID  z  e.  A )
4 eleq1w 2292 . . . . . . . . . . . 12  |-  ( z  =  x  ->  (
z  e.  A  <->  x  e.  A ) )
54ifbid 3627 . . . . . . . . . . 11  |-  ( z  =  x  ->  if ( z  e.  A ,  1o ,  (/) )  =  if ( x  e.  A ,  1o ,  (/) ) )
65cbvmptv 4185 . . . . . . . . . 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 16403 . . . . . . . 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 6590 . . . . . . . . . . 11  |-  2o  e.  On
1312a1i 9 . . . . . . . . . 10  |-  ( ph  ->  2o  e.  On )
14 bj-charfunbi.ex . . . . . . . . . 10  |-  ( ph  ->  X  e.  V )
1513, 14elmapd 6830 . . . . . . . . 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 5638 . . . . . . . . 9  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( f `  x
)  =  ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `
 x ) )
2120eqeq1d 2240 . . . . . . . 8  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( ( f `  x )  =  1o  <->  ( ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  1o ) )
2221ralbidv 2532 . . . . . . 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 2240 . . . . . . . 8  |-  ( f  =  ( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) )  -> 
( ( f `  x )  =  (/)  <->  (
( z  e.  X  |->  if ( z  e.  A ,  1o ,  (/) ) ) `  x
)  =  (/) ) )
2423ralbidv 2532 . . . . . . 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 2916 . . . 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 4691 . . . . . . . . 9  |-  om  e.  _V
32 2ssom 6691 . . . . . . . . 9  |-  2o  C_  om
33 mapss 6859 . . . . . . . . 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 5638 . . . . . . . . . . . . 13  |-  ( f  =  g  ->  (
f `  x )  =  ( g `  x ) )
3635eqeq1d 2240 . . . . . . . . . . . 12  |-  ( f  =  g  ->  (
( f `  x
)  =  1o  <->  ( g `  x )  =  1o ) )
3736ralbidv 2532 . . . . . . . . . . 11  |-  ( f  =  g  ->  ( A. x  e.  ( X  i^i  A ) ( f `  x )  =  1o  <->  A. x  e.  ( X  i^i  A
) ( g `  x )  =  1o ) )
3835eqeq1d 2240 . . . . . . . . . . . 12  |-  ( f  =  g  ->  (
( f `  x
)  =  (/)  <->  ( g `  x )  =  (/) ) )
3938ralbidv 2532 . . . . . . . . . . 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 2772 . . . . . . . . 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 5648 . . . . . . . . . . . . 13  |-  ( x  =  y  ->  (
( g `  x
)  =  1o  <->  ( g `  y )  =  1o ) )
4342cbvralvw 2771 . . . . . . . . . . . 12  |-  ( A. x  e.  ( X  i^i  A ) ( g `
 x )  =  1o  <->  A. y  e.  ( X  i^i  A ) ( g `  y
)  =  1o )
44 1n0 6599 . . . . . . . . . . . . . . . 16  |-  1o  =/=  (/)
4544neii 2404 . . . . . . . . . . . . . . 15  |-  -.  1o  =  (/)
46 eqeq1 2238 . . . . . . . . . . . . . . 15  |-  ( ( g `  y )  =  1o  ->  (
( g `  y
)  =  (/)  <->  1o  =  (/) ) )
4745, 46mtbiri 681 . . . . . . . . . . . . . 14  |-  ( ( g `  y )  =  1o  ->  -.  ( g `  y
)  =  (/) )
4847neqned 2409 . . . . . . . . . . . . 13  |-  ( ( g `  y )  =  1o  ->  (
g `  y )  =/=  (/) )
4948ralimi 2595 . . . . . . . . . . . 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 5648 . . . . . . . . . . . . 13  |-  ( x  =  y  ->  (
( g `  x
)  =  (/)  <->  ( g `  y )  =  (/) ) )
5251cbvralvw 2771 . . . . . . . . . . . 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 2629 . . . . . . . . 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 3292 . . . . . . . 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 16405 . . . . 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 2292 . . . . . . 7  |-  ( x  =  y  ->  (
x  e.  A  <->  y  e.  A ) )
6362notbid 673 . . . . . 6  |-  ( x  =  y  ->  ( -.  x  e.  A  <->  -.  y  e.  A ) )
6463dcbid 845 . . . . 5  |-  ( x  =  y  ->  (DECID  -.  x  e.  A  <-> DECID  -.  y  e.  A
) )
6564cbvralvw 2771 . . . 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 2620 . . . . 5  |-  ( (
ph  /\  x  e.  X )  -> STAB  x  e.  A )
69 stdcn 854 . . . . 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 2599 . . 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 837  DECID wdc 841    = wceq 1397    e. wcel 2202    =/= wne 2402   A.wral 2510   E.wrex 2511   _Vcvv 2802    \ cdif 3197    i^i cin 3199    C_ wss 3200   (/)c0 3494   ifcif 3605    |-> cmpt 4150   Oncon0 4460   omcom 4688   -->wf 5322   ` cfv 5326  (class class class)co 6017   1oc1o 6574   2oc2o 6575    ^m cmap 6816
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 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-13 2204  ax-14 2205  ax-ext 2213  ax-sep 4207  ax-nul 4215  ax-pow 4264  ax-pr 4299  ax-un 4530  ax-setind 4635  ax-iinf 4686
This theorem depends on definitions:  df-bi 117  df-stab 838  df-dc 842  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1811  df-eu 2082  df-mo 2083  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2363  df-ne 2403  df-ral 2515  df-rex 2516  df-rab 2519  df-v 2804  df-sbc 3032  df-csb 3128  df-dif 3202  df-un 3204  df-in 3206  df-ss 3213  df-nul 3495  df-if 3606  df-pw 3654  df-sn 3675  df-pr 3676  df-op 3678  df-uni 3894  df-int 3929  df-br 4089  df-opab 4151  df-mpt 4152  df-tr 4188  df-id 4390  df-iord 4463  df-on 4465  df-suc 4468  df-iom 4689  df-xp 4731  df-rel 4732  df-cnv 4733  df-co 4734  df-dm 4735  df-rn 4736  df-res 4737  df-ima 4738  df-iota 5286  df-fun 5328  df-fn 5329  df-f 5330  df-fv 5334  df-ov 6020  df-oprab 6021  df-mpo 6022  df-1o 6581  df-2o 6582  df-map 6818
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator