Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sgn3da Structured version   Unicode version

Theorem sgn3da 26872
Description: A conditional containing a signum is true if it is true in all three possible cases. (Contributed by Thierry Arnoux, 1-Oct-2018.)
Hypotheses
Ref Expression
sgn3da.0  |-  ( ph  ->  A  e.  RR* )
sgn3da.1  |-  ( (sgn
`  A )  =  0  ->  ( ps  <->  ch ) )
sgn3da.2  |-  ( (sgn
`  A )  =  1  ->  ( ps  <->  th ) )
sgn3da.3  |-  ( (sgn
`  A )  = 
-u 1  ->  ( ps 
<->  ta ) )
sgn3da.4  |-  ( (
ph  /\  A  = 
0 )  ->  ch )
sgn3da.5  |-  ( (
ph  /\  0  <  A )  ->  th )
sgn3da.6  |-  ( (
ph  /\  A  <  0 )  ->  ta )
Assertion
Ref Expression
sgn3da  |-  ( ph  ->  ps )

Proof of Theorem sgn3da
StepHypRef Expression
1 sgn3da.0 . . . . . . . . 9  |-  ( ph  ->  A  e.  RR* )
2 sgnval 12569 . . . . . . . . 9  |-  ( A  e.  RR*  ->  (sgn `  A )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) )
31, 2syl 16 . . . . . . . 8  |-  ( ph  ->  (sgn `  A )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) )
43eqeq2d 2448 . . . . . . 7  |-  ( ph  ->  ( 0  =  (sgn
`  A )  <->  0  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) ) )
54pm5.32i 637 . . . . . 6  |-  ( (
ph  /\  0  =  (sgn `  A ) )  <-> 
( ph  /\  0  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) ) )
6 sgn3da.1 . . . . . . . . 9  |-  ( (sgn
`  A )  =  0  ->  ( ps  <->  ch ) )
76eqcoms 2440 . . . . . . . 8  |-  ( 0  =  (sgn `  A
)  ->  ( ps  <->  ch ) )
87bicomd 201 . . . . . . 7  |-  ( 0  =  (sgn `  A
)  ->  ( ch  <->  ps ) )
98adantl 466 . . . . . 6  |-  ( (
ph  /\  0  =  (sgn `  A ) )  ->  ( ch  <->  ps )
)
105, 9sylbir 213 . . . . 5  |-  ( (
ph  /\  0  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) )  -> 
( ch  <->  ps )
)
1110expcom 435 . . . 4  |-  ( 0  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u
1 ,  1 ) )  ->  ( ph  ->  ( ch  <->  ps )
) )
1211pm5.74d 247 . . 3  |-  ( 0  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u
1 ,  1 ) )  ->  ( ( ph  ->  ch )  <->  ( ph  ->  ps ) ) )
133eqeq2d 2448 . . . . . . 7  |-  ( ph  ->  ( if ( A  <  0 ,  -u
1 ,  1 )  =  (sgn `  A
)  <->  if ( A  <  0 ,  -u 1 ,  1 )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) ) )
1413pm5.32i 637 . . . . . 6  |-  ( (
ph  /\  if ( A  <  0 ,  -u
1 ,  1 )  =  (sgn `  A
) )  <->  ( ph  /\  if ( A  <  0 ,  -u 1 ,  1 )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u 1 ,  1 ) ) ) )
15 eqeq1 2443 . . . . . . . . 9  |-  ( -u
1  =  if ( A  <  0 , 
-u 1 ,  1 )  ->  ( -u 1  =  (sgn `  A )  <->  if ( A  <  0 ,  -u 1 ,  1 )  =  (sgn `  A ) ) )
1615imbi1d 317 . . . . . . . 8  |-  ( -u
1  =  if ( A  <  0 , 
-u 1 ,  1 )  ->  ( ( -u 1  =  (sgn `  A )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) )  <->  ( if ( A  <  0 ,  -u 1 ,  1 )  =  (sgn `  A )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) ) ) )
17 eqeq1 2443 . . . . . . . . 9  |-  ( 1  =  if ( A  <  0 ,  -u
1 ,  1 )  ->  ( 1  =  (sgn `  A )  <->  if ( A  <  0 ,  -u 1 ,  1 )  =  (sgn `  A ) ) )
1817imbi1d 317 . . . . . . . 8  |-  ( 1  =  if ( A  <  0 ,  -u
1 ,  1 )  ->  ( ( 1  =  (sgn `  A
)  ->  ( (
( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  ps )
)  <->  ( if ( A  <  0 , 
-u 1 ,  1 )  =  (sgn `  A )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) ) ) )
19 sgn3da.6 . . . . . . . . . . . . . . 15  |-  ( (
ph  /\  A  <  0 )  ->  ta )
2019adantr 465 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  A  <  0 )  /\  ( A  <  0  ->  ta ) )  ->  ta )
21 simp2 989 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  A  <  0 )  /\  ta  /\  A  <  0 )  ->  ta )
22213expia 1189 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  A  <  0 )  /\  ta )  ->  ( A  <  0  ->  ta )
)
2320, 22impbida 828 . . . . . . . . . . . . 13  |-  ( (
ph  /\  A  <  0 )  ->  (
( A  <  0  ->  ta )  <->  ta )
)
24 pm3.24 877 . . . . . . . . . . . . . . . . 17  |-  -.  ( A  <  0  /\  -.  A  <  0 )
2524pm2.21i 131 . . . . . . . . . . . . . . . 16  |-  ( ( A  <  0  /\ 
-.  A  <  0
)  ->  th )
2625adantl 466 . . . . . . . . . . . . . . 15  |-  ( (
ph  /\  ( A  <  0  /\  -.  A  <  0 ) )  ->  th )
2726expr 615 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  A  <  0 )  ->  ( -.  A  <  0  ->  th ) )
28 tbtru 1379 . . . . . . . . . . . . . 14  |-  ( ( -.  A  <  0  ->  th )  <->  ( ( -.  A  <  0  ->  th )  <-> T.  )
)
2927, 28sylib 196 . . . . . . . . . . . . 13  |-  ( (
ph  /\  A  <  0 )  ->  (
( -.  A  <  0  ->  th )  <-> T.  ) )
3023, 29anbi12d 710 . . . . . . . . . . . 12  |-  ( (
ph  /\  A  <  0 )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ( ta  /\ T.  ) ) )
31 ancom 450 . . . . . . . . . . . . 13  |-  ( ( ta  /\ T.  )  <-> 
( T.  /\  ta ) )
32 truan 1386 . . . . . . . . . . . . 13  |-  ( ( T.  /\  ta )  <->  ta )
3331, 32bitri 249 . . . . . . . . . . . 12  |-  ( ( ta  /\ T.  )  <->  ta )
3430, 33syl6bb 261 . . . . . . . . . . 11  |-  ( (
ph  /\  A  <  0 )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ta ) )
35343adant3 1008 . . . . . . . . . 10  |-  ( (
ph  /\  A  <  0  /\  -u 1  =  (sgn
`  A ) )  ->  ( ( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  ta )
)
36 sgn3da.3 . . . . . . . . . . . 12  |-  ( (sgn
`  A )  = 
-u 1  ->  ( ps 
<->  ta ) )
3736eqcoms 2440 . . . . . . . . . . 11  |-  ( -u
1  =  (sgn `  A )  ->  ( ps 
<->  ta ) )
38373ad2ant3 1011 . . . . . . . . . 10  |-  ( (
ph  /\  A  <  0  /\  -u 1  =  (sgn
`  A ) )  ->  ( ps  <->  ta )
)
3935, 38bitr4d 256 . . . . . . . . 9  |-  ( (
ph  /\  A  <  0  /\  -u 1  =  (sgn
`  A ) )  ->  ( ( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  ps )
)
40393expia 1189 . . . . . . . 8  |-  ( (
ph  /\  A  <  0 )  ->  ( -u 1  =  (sgn `  A )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) ) )
41193adant2 1007 . . . . . . . . . . . . . . 15  |-  ( (
ph  /\  -.  A  <  0  /\  A  <  0 )  ->  ta )
42413expia 1189 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  -.  A  <  0 )  ->  ( A  <  0  ->  ta ) )
43 tbtru 1379 . . . . . . . . . . . . . 14  |-  ( ( A  <  0  ->  ta )  <->  ( ( A  <  0  ->  ta ) 
<-> T.  ) )
4442, 43sylib 196 . . . . . . . . . . . . 13  |-  ( (
ph  /\  -.  A  <  0 )  ->  (
( A  <  0  ->  ta )  <-> T.  )
)
45 pm3.35 587 . . . . . . . . . . . . . . 15  |-  ( ( -.  A  <  0  /\  ( -.  A  <  0  ->  th )
)  ->  th )
4645adantll 713 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  -.  A  <  0 )  /\  ( -.  A  <  0  ->  th ) )  ->  th )
47 simp2 989 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  -.  A  <  0 )  /\  th 
/\  -.  A  <  0 )  ->  th )
48473expia 1189 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  -.  A  <  0 )  /\  th )  ->  ( -.  A  <  0  ->  th )
)
4946, 48impbida 828 . . . . . . . . . . . . 13  |-  ( (
ph  /\  -.  A  <  0 )  ->  (
( -.  A  <  0  ->  th )  <->  th ) )
5044, 49anbi12d 710 . . . . . . . . . . . 12  |-  ( (
ph  /\  -.  A  <  0 )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ( T.  /\  th ) ) )
51 truan 1386 . . . . . . . . . . . 12  |-  ( ( T.  /\  th )  <->  th )
5250, 51syl6bb 261 . . . . . . . . . . 11  |-  ( (
ph  /\  -.  A  <  0 )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  th ) )
53523adant3 1008 . . . . . . . . . 10  |-  ( (
ph  /\  -.  A  <  0  /\  1  =  (sgn `  A )
)  ->  ( (
( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  th )
)
54 sgn3da.2 . . . . . . . . . . . 12  |-  ( (sgn
`  A )  =  1  ->  ( ps  <->  th ) )
5554eqcoms 2440 . . . . . . . . . . 11  |-  ( 1  =  (sgn `  A
)  ->  ( ps  <->  th ) )
56553ad2ant3 1011 . . . . . . . . . 10  |-  ( (
ph  /\  -.  A  <  0  /\  1  =  (sgn `  A )
)  ->  ( ps  <->  th ) )
5753, 56bitr4d 256 . . . . . . . . 9  |-  ( (
ph  /\  -.  A  <  0  /\  1  =  (sgn `  A )
)  ->  ( (
( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  ps )
)
58573expia 1189 . . . . . . . 8  |-  ( (
ph  /\  -.  A  <  0 )  ->  (
1  =  (sgn `  A )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) ) )
5916, 18, 40, 58ifbothda 3817 . . . . . . 7  |-  ( ph  ->  ( if ( A  <  0 ,  -u
1 ,  1 )  =  (sgn `  A
)  ->  ( (
( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  ps )
) )
6059imp 429 . . . . . 6  |-  ( (
ph  /\  if ( A  <  0 ,  -u
1 ,  1 )  =  (sgn `  A
) )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) )
6114, 60sylbir 213 . . . . 5  |-  ( (
ph  /\  if ( A  <  0 ,  -u
1 ,  1 )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 ,  -u
1 ,  1 ) ) )  ->  (
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
)  <->  ps ) )
6261expcom 435 . . . 4  |-  ( if ( A  <  0 ,  -u 1 ,  1 )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 , 
-u 1 ,  1 ) )  ->  ( ph  ->  ( ( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) )  <->  ps )
) )
6362pm5.74d 247 . . 3  |-  ( if ( A  <  0 ,  -u 1 ,  1 )  =  if ( A  =  0 ,  0 ,  if ( A  <  0 , 
-u 1 ,  1 ) )  ->  (
( ph  ->  ( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) ) )  <-> 
( ph  ->  ps )
) )
64 sgn3da.4 . . . . 5  |-  ( (
ph  /\  A  = 
0 )  ->  ch )
6564expcom 435 . . . 4  |-  ( A  =  0  ->  ( ph  ->  ch ) )
6665adantl 466 . . 3  |-  ( ( T.  /\  A  =  0 )  ->  ( ph  ->  ch ) )
6719ex 434 . . . . . . 7  |-  ( ph  ->  ( A  <  0  ->  ta ) )
6867adantr 465 . . . . . 6  |-  ( (
ph  /\  -.  A  =  0 )  -> 
( A  <  0  ->  ta ) )
69 simp1 988 . . . . . . . 8  |-  ( (
ph  /\  -.  A  =  0  /\  -.  A  <  0 )  ->  ph )
70 df-ne 2602 . . . . . . . . . . . 12  |-  ( A  =/=  0  <->  -.  A  =  0 )
71 0xr 9422 . . . . . . . . . . . . 13  |-  0  e.  RR*
72 xrlttri2 11111 . . . . . . . . . . . . 13  |-  ( ( A  e.  RR*  /\  0  e.  RR* )  ->  ( A  =/=  0  <->  ( A  <  0  \/  0  < 
A ) ) )
731, 71, 72sylancl 662 . . . . . . . . . . . 12  |-  ( ph  ->  ( A  =/=  0  <->  ( A  <  0  \/  0  <  A ) ) )
7470, 73syl5bbr 259 . . . . . . . . . . 11  |-  ( ph  ->  ( -.  A  =  0  <->  ( A  <  0  \/  0  < 
A ) ) )
7574biimpa 484 . . . . . . . . . 10  |-  ( (
ph  /\  -.  A  =  0 )  -> 
( A  <  0  \/  0  <  A ) )
76 df-or 370 . . . . . . . . . 10  |-  ( ( A  <  0  \/  0  <  A )  <-> 
( -.  A  <  0  ->  0  <  A ) )
7775, 76sylib 196 . . . . . . . . 9  |-  ( (
ph  /\  -.  A  =  0 )  -> 
( -.  A  <  0  ->  0  <  A ) )
78773impia 1184 . . . . . . . 8  |-  ( (
ph  /\  -.  A  =  0  /\  -.  A  <  0 )  -> 
0  <  A )
79 sgn3da.5 . . . . . . . 8  |-  ( (
ph  /\  0  <  A )  ->  th )
8069, 78, 79syl2anc 661 . . . . . . 7  |-  ( (
ph  /\  -.  A  =  0  /\  -.  A  <  0 )  ->  th )
81803expia 1189 . . . . . 6  |-  ( (
ph  /\  -.  A  =  0 )  -> 
( -.  A  <  0  ->  th )
)
8268, 81jca 532 . . . . 5  |-  ( (
ph  /\  -.  A  =  0 )  -> 
( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th )
) )
8382expcom 435 . . . 4  |-  ( -.  A  =  0  -> 
( ph  ->  ( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) ) ) )
8483adantl 466 . . 3  |-  ( ( T.  /\  -.  A  =  0 )  -> 
( ph  ->  ( ( A  <  0  ->  ta )  /\  ( -.  A  <  0  ->  th ) ) ) )
8512, 63, 66, 84ifbothda 3817 . 2  |-  ( T. 
->  ( ph  ->  ps ) )
8685trud 1378 1  |-  ( ph  ->  ps )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    \/ wo 368    /\ wa 369    /\ w3a 965    = wceq 1369   T. wtru 1370    e. wcel 1756    =/= wne 2600   ifcif 3784   class class class wbr 4285   ` cfv 5411   0cc0 9274   1c1 9275   RR*cxr 9409    < clt 9410   -ucneg 9588  sgncsgn 12567
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2418  ax-sep 4406  ax-nul 4414  ax-pow 4463  ax-pr 4524  ax-un 6367  ax-cnex 9330  ax-resscn 9331  ax-1cn 9332  ax-icn 9333  ax-addcl 9334  ax-addrcl 9335  ax-mulcl 9336  ax-mulrcl 9337  ax-i2m1 9342  ax-1ne0 9343  ax-rnegex 9345  ax-rrecex 9346  ax-cnre 9347  ax-pre-lttri 9348  ax-pre-lttrn 9349
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2256  df-mo 2257  df-clab 2424  df-cleq 2430  df-clel 2433  df-nfc 2562  df-ne 2602  df-nel 2603  df-ral 2714  df-rex 2715  df-rab 2718  df-v 2968  df-sbc 3180  df-csb 3282  df-dif 3324  df-un 3326  df-in 3328  df-ss 3335  df-nul 3631  df-if 3785  df-pw 3855  df-sn 3871  df-pr 3873  df-op 3877  df-uni 4085  df-br 4286  df-opab 4344  df-mpt 4345  df-id 4628  df-po 4633  df-so 4634  df-xp 4838  df-rel 4839  df-cnv 4840  df-co 4841  df-dm 4842  df-rn 4843  df-res 4844  df-ima 4845  df-iota 5374  df-fun 5413  df-fn 5414  df-f 5415  df-f1 5416  df-fo 5417  df-f1o 5418  df-fv 5419  df-ov 6089  df-er 7093  df-en 7303  df-dom 7304  df-sdom 7305  df-pnf 9412  df-mnf 9413  df-xr 9414  df-ltxr 9415  df-neg 9590  df-sgn 12568
This theorem is referenced by:  sgnmul  26873  sgnsub  26875  sgnnbi  26876  sgnpbi  26877  sgn0bi  26878  sgnsgn  26879
  Copyright terms: Public domain W3C validator