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

Theorem bj-charfundcALT 13691
Description: Alternate proof of bj-charfundc 13690. It was expected to be much shorter since it uses bj-charfun 13689 for the main part of the proof and the rest is basic computations, but these turn out to be lengthy, maybe because of the limited library of available lemmas. (Contributed by BJ, 15-Aug-2024.) (Proof modification is discouraged.) (New usage is discouraged.)
Hypotheses
Ref Expression
bj-charfundc.1  |-  ( ph  ->  F  =  ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) ) )
bj-charfundc.dc  |-  ( ph  ->  A. x  e.  X DECID  x  e.  A )
Assertion
Ref Expression
bj-charfundcALT  |-  ( ph  ->  ( F : X --> 2o  /\  ( A. x  e.  ( X  i^i  A
) ( F `  x )  =  1o 
/\  A. x  e.  ( X  \  A ) ( F `  x
)  =  (/) ) ) )
Distinct variable groups:    ph, x    x, X    x, A    x, F

Proof of Theorem bj-charfundcALT
StepHypRef Expression
1 bj-charfundc.1 . . 3  |-  ( ph  ->  F  =  ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) ) )
21bj-charfun 13689 . 2  |-  ( ph  ->  ( ( F : X
--> ~P 1o  /\  ( F  |`  ( ( X  i^i  A )  u.  ( X  \  A
) ) ) : ( ( X  i^i  A )  u.  ( X 
\  A ) ) --> 2o )  /\  ( A. x  e.  ( X  i^i  A ) ( F `  x )  =  1o  /\  A. x  e.  ( X  \  A ) ( F `
 x )  =  (/) ) ) )
3 difin 3359 . . . . . . . . . . . 12  |-  ( X 
\  ( X  i^i  A ) )  =  ( X  \  A )
43eqcomi 2169 . . . . . . . . . . 11  |-  ( X 
\  A )  =  ( X  \  ( X  i^i  A ) )
54a1i 9 . . . . . . . . . 10  |-  ( ph  ->  ( X  \  A
)  =  ( X 
\  ( X  i^i  A ) ) )
65uneq2d 3276 . . . . . . . . 9  |-  ( ph  ->  ( ( X  i^i  A )  u.  ( X 
\  A ) )  =  ( ( X  i^i  A )  u.  ( X  \  ( X  i^i  A ) ) ) )
7 inss1 3342 . . . . . . . . . . 11  |-  ( X  i^i  A )  C_  X
87a1i 9 . . . . . . . . . 10  |-  ( ph  ->  ( X  i^i  A
)  C_  X )
9 bj-charfundc.dc . . . . . . . . . . 11  |-  ( ph  ->  A. x  e.  X DECID  x  e.  A )
10 elin 3305 . . . . . . . . . . . . . 14  |-  ( x  e.  ( X  i^i  A )  <->  ( x  e.  X  /\  x  e.  A ) )
1110baibr 910 . . . . . . . . . . . . 13  |-  ( x  e.  X  ->  (
x  e.  A  <->  x  e.  ( X  i^i  A ) ) )
1211dcbid 828 . . . . . . . . . . . 12  |-  ( x  e.  X  ->  (DECID  x  e.  A  <-> DECID  x  e.  ( X  i^i  A ) ) )
1312ralbiia 2480 . . . . . . . . . . 11  |-  ( A. x  e.  X DECID  x  e.  A 
<-> 
A. x  e.  X DECID  x  e.  ( X  i^i  A
) )
149, 13sylib 121 . . . . . . . . . 10  |-  ( ph  ->  A. x  e.  X DECID  x  e.  ( X  i^i  A
) )
15 undifdcss 6888 . . . . . . . . . 10  |-  ( X  =  ( ( X  i^i  A )  u.  ( X  \  ( X  i^i  A ) ) )  <->  ( ( X  i^i  A )  C_  X  /\  A. x  e.  X DECID  x  e.  ( X  i^i  A ) ) )
168, 14, 15sylanbrc 414 . . . . . . . . 9  |-  ( ph  ->  X  =  ( ( X  i^i  A )  u.  ( X  \ 
( X  i^i  A
) ) ) )
176, 16eqtr4d 2201 . . . . . . . 8  |-  ( ph  ->  ( ( X  i^i  A )  u.  ( X 
\  A ) )  =  X )
1817reseq2d 4884 . . . . . . 7  |-  ( ph  ->  ( F  |`  (
( X  i^i  A
)  u.  ( X 
\  A ) ) )  =  ( F  |`  X ) )
19 ssidd 3163 . . . . . . . . 9  |-  ( ph  ->  X  C_  X )
2019resmptd 4935 . . . . . . . 8  |-  ( ph  ->  ( ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) )  |`  X )  =  ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) ) )
211reseq1d 4883 . . . . . . . 8  |-  ( ph  ->  ( F  |`  X )  =  ( ( x  e.  X  |->  if ( x  e.  A ,  1o ,  (/) ) )  |`  X ) )
2220, 21, 13eqtr4d 2208 . . . . . . 7  |-  ( ph  ->  ( F  |`  X )  =  F )
2318, 22eqtrd 2198 . . . . . 6  |-  ( ph  ->  ( F  |`  (
( X  i^i  A
)  u.  ( X 
\  A ) ) )  =  F )
2423, 17feq12d 5327 . . . . 5  |-  ( ph  ->  ( ( F  |`  ( ( X  i^i  A )  u.  ( X 
\  A ) ) ) : ( ( X  i^i  A )  u.  ( X  \  A ) ) --> 2o  <->  F : X --> 2o ) )
2524biimpd 143 . . . 4  |-  ( ph  ->  ( ( F  |`  ( ( X  i^i  A )  u.  ( X 
\  A ) ) ) : ( ( X  i^i  A )  u.  ( X  \  A ) ) --> 2o 
->  F : X --> 2o ) )
2625adantld 276 . . 3  |-  ( ph  ->  ( ( F : X
--> ~P 1o  /\  ( F  |`  ( ( X  i^i  A )  u.  ( X  \  A
) ) ) : ( ( X  i^i  A )  u.  ( X 
\  A ) ) --> 2o )  ->  F : X --> 2o ) )
2726anim1d 334 . 2  |-  ( ph  ->  ( ( ( F : X --> ~P 1o  /\  ( F  |`  (
( X  i^i  A
)  u.  ( X 
\  A ) ) ) : ( ( X  i^i  A )  u.  ( X  \  A ) ) --> 2o )  /\  ( A. x  e.  ( X  i^i  A ) ( F `
 x )  =  1o  /\  A. x  e.  ( X  \  A
) ( F `  x )  =  (/) ) )  ->  ( F : X --> 2o  /\  ( A. x  e.  ( X  i^i  A ) ( F `  x
)  =  1o  /\  A. x  e.  ( X 
\  A ) ( F `  x )  =  (/) ) ) ) )
282, 27mpd 13 1  |-  ( ph  ->  ( F : X --> 2o  /\  ( 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:    -> wi 4    /\ wa 103  DECID wdc 824    = wceq 1343    e. wcel 2136   A.wral 2444    \ cdif 3113    u. cun 3114    i^i cin 3115    C_ wss 3116   (/)c0 3409   ifcif 3520   ~Pcpw 3559    |-> cmpt 4043    |` cres 4606   -->wf 5184   ` cfv 5188   1oc1o 6377   2oc2o 6378
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-fv 5196  df-1o 6384  df-2o 6385
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator