ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  xnn0xadd0 Unicode version

Theorem xnn0xadd0 9824
Description: The sum of two extended nonnegative integers is  0 iff each of the two extended nonnegative integers is 
0. (Contributed by AV, 14-Dec-2020.)
Assertion
Ref Expression
xnn0xadd0  |-  ( ( A  e. NN0*  /\  B  e. NN0* )  ->  ( ( A +e B )  =  0  <->  ( A  =  0  /\  B  =  0 ) ) )

Proof of Theorem xnn0xadd0
StepHypRef Expression
1 elxnn0 9200 . . . 4  |-  ( A  e. NN0* 
<->  ( A  e.  NN0  \/  A  = +oo )
)
2 elxnn0 9200 . . . . . . 7  |-  ( B  e. NN0* 
<->  ( B  e.  NN0  \/  B  = +oo )
)
3 nn0re 9144 . . . . . . . . . . . . 13  |-  ( A  e.  NN0  ->  A  e.  RR )
4 nn0re 9144 . . . . . . . . . . . . 13  |-  ( B  e.  NN0  ->  B  e.  RR )
5 rexadd 9809 . . . . . . . . . . . . 13  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A +e
B )  =  ( A  +  B ) )
63, 4, 5syl2an 287 . . . . . . . . . . . 12  |-  ( ( A  e.  NN0  /\  B  e.  NN0 )  -> 
( A +e
B )  =  ( A  +  B ) )
76eqeq1d 2179 . . . . . . . . . . 11  |-  ( ( A  e.  NN0  /\  B  e.  NN0 )  -> 
( ( A +e B )  =  0  <->  ( A  +  B )  =  0 ) )
8 nn0ge0 9160 . . . . . . . . . . . . 13  |-  ( A  e.  NN0  ->  0  <_  A )
93, 8jca 304 . . . . . . . . . . . 12  |-  ( A  e.  NN0  ->  ( A  e.  RR  /\  0  <_  A ) )
10 nn0ge0 9160 . . . . . . . . . . . . 13  |-  ( B  e.  NN0  ->  0  <_  B )
114, 10jca 304 . . . . . . . . . . . 12  |-  ( B  e.  NN0  ->  ( B  e.  RR  /\  0  <_  B ) )
12 add20 8393 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  0  <_  A )  /\  ( B  e.  RR  /\  0  <_  B )
)  ->  ( ( A  +  B )  =  0  <->  ( A  =  0  /\  B  =  0 ) ) )
139, 11, 12syl2an 287 . . . . . . . . . . 11  |-  ( ( A  e.  NN0  /\  B  e.  NN0 )  -> 
( ( A  +  B )  =  0  <-> 
( A  =  0  /\  B  =  0 ) ) )
147, 13bitrd 187 . . . . . . . . . 10  |-  ( ( A  e.  NN0  /\  B  e.  NN0 )  -> 
( ( A +e B )  =  0  <->  ( A  =  0  /\  B  =  0 ) ) )
1514biimpd 143 . . . . . . . . 9  |-  ( ( A  e.  NN0  /\  B  e.  NN0 )  -> 
( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) )
1615expcom 115 . . . . . . . 8  |-  ( B  e.  NN0  ->  ( A  e.  NN0  ->  ( ( A +e B )  =  0  -> 
( A  =  0  /\  B  =  0 ) ) ) )
17 oveq2 5861 . . . . . . . . . . . . 13  |-  ( B  = +oo  ->  ( A +e B )  =  ( A +e +oo ) )
1817eqeq1d 2179 . . . . . . . . . . . 12  |-  ( B  = +oo  ->  (
( A +e
B )  =  0  <-> 
( A +e +oo )  =  0
) )
1918adantr 274 . . . . . . . . . . 11  |-  ( ( B  = +oo  /\  A  e.  NN0 )  -> 
( ( A +e B )  =  0  <->  ( A +e +oo )  =  0 ) )
20 nn0xnn0 9202 . . . . . . . . . . . . . 14  |-  ( A  e.  NN0  ->  A  e. NN0*
)
21 xnn0xrnemnf 9210 . . . . . . . . . . . . . 14  |-  ( A  e. NN0*  ->  ( A  e. 
RR*  /\  A  =/= -oo ) )
22 xaddpnf1 9803 . . . . . . . . . . . . . 14  |-  ( ( A  e.  RR*  /\  A  =/= -oo )  ->  ( A +e +oo )  = +oo )
2320, 21, 223syl 17 . . . . . . . . . . . . 13  |-  ( A  e.  NN0  ->  ( A +e +oo )  = +oo )
2423adantl 275 . . . . . . . . . . . 12  |-  ( ( B  = +oo  /\  A  e.  NN0 )  -> 
( A +e +oo )  = +oo )
2524eqeq1d 2179 . . . . . . . . . . 11  |-  ( ( B  = +oo  /\  A  e.  NN0 )  -> 
( ( A +e +oo )  =  0  <-> +oo  =  0 ) )
2619, 25bitrd 187 . . . . . . . . . 10  |-  ( ( B  = +oo  /\  A  e.  NN0 )  -> 
( ( A +e B )  =  0  <-> +oo  =  0 ) )
27 0re 7920 . . . . . . . . . . . . 13  |-  0  e.  RR
28 renepnf 7967 . . . . . . . . . . . . 13  |-  ( 0  e.  RR  ->  0  =/= +oo )
2927, 28ax-mp 5 . . . . . . . . . . . 12  |-  0  =/= +oo
3029nesymi 2386 . . . . . . . . . . 11  |-  -. +oo  =  0
3130pm2.21i 641 . . . . . . . . . 10  |-  ( +oo  =  0  ->  ( A  =  0  /\  B  =  0 ) )
3226, 31syl6bi 162 . . . . . . . . 9  |-  ( ( B  = +oo  /\  A  e.  NN0 )  -> 
( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) )
3332ex 114 . . . . . . . 8  |-  ( B  = +oo  ->  ( A  e.  NN0  ->  (
( A +e
B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) ) )
3416, 33jaoi 711 . . . . . . 7  |-  ( ( B  e.  NN0  \/  B  = +oo )  ->  ( A  e.  NN0  ->  ( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) ) )
352, 34sylbi 120 . . . . . 6  |-  ( B  e. NN0*  ->  ( A  e. 
NN0  ->  ( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) ) )
3635com12 30 . . . . 5  |-  ( A  e.  NN0  ->  ( B  e. NN0*  ->  ( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) ) )
37 oveq1 5860 . . . . . . . . 9  |-  ( A  = +oo  ->  ( A +e B )  =  ( +oo +e B ) )
3837eqeq1d 2179 . . . . . . . 8  |-  ( A  = +oo  ->  (
( A +e
B )  =  0  <-> 
( +oo +e B )  =  0 ) )
39 xnn0xrnemnf 9210 . . . . . . . . . 10  |-  ( B  e. NN0*  ->  ( B  e. 
RR*  /\  B  =/= -oo ) )
40 xaddpnf2 9804 . . . . . . . . . 10  |-  ( ( B  e.  RR*  /\  B  =/= -oo )  ->  ( +oo +e B )  = +oo )
4139, 40syl 14 . . . . . . . . 9  |-  ( B  e. NN0*  ->  ( +oo +e B )  = +oo )
4241eqeq1d 2179 . . . . . . . 8  |-  ( B  e. NN0*  ->  ( ( +oo +e B )  =  0  <-> +oo  =  0 ) )
4338, 42sylan9bb 459 . . . . . . 7  |-  ( ( A  = +oo  /\  B  e. NN0* )  ->  ( ( A +e
B )  =  0  <-> +oo  =  0 ) )
4443, 31syl6bi 162 . . . . . 6  |-  ( ( A  = +oo  /\  B  e. NN0* )  ->  ( ( A +e
B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) )
4544ex 114 . . . . 5  |-  ( A  = +oo  ->  ( B  e. NN0*  ->  ( ( A +e B )  =  0  -> 
( A  =  0  /\  B  =  0 ) ) ) )
4636, 45jaoi 711 . . . 4  |-  ( ( A  e.  NN0  \/  A  = +oo )  ->  ( B  e. NN0*  ->  ( ( A +e
B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) ) )
471, 46sylbi 120 . . 3  |-  ( A  e. NN0*  ->  ( B  e. NN0* 
->  ( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) ) )
4847imp 123 . 2  |-  ( ( A  e. NN0*  /\  B  e. NN0* )  ->  ( ( A +e B )  =  0  ->  ( A  =  0  /\  B  =  0 ) ) )
49 oveq12 5862 . . 3  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( A +e B )  =  ( 0 +e 0 ) )
50 0xr 7966 . . . 4  |-  0  e.  RR*
51 xaddid1 9819 . . . 4  |-  ( 0  e.  RR*  ->  ( 0 +e 0 )  =  0 )
5250, 51ax-mp 5 . . 3  |-  ( 0 +e 0 )  =  0
5349, 52eqtrdi 2219 . 2  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( A +e B )  =  0 )
5448, 53impbid1 141 1  |-  ( ( A  e. NN0*  /\  B  e. NN0* )  ->  ( ( A +e B )  =  0  <->  ( A  =  0  /\  B  =  0 ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 703    = wceq 1348    e. wcel 2141    =/= wne 2340   class class class wbr 3989  (class class class)co 5853   RRcr 7773   0cc0 7774    + caddc 7777   +oocpnf 7951   -oocmnf 7952   RR*cxr 7953    <_ cle 7955   NN0cn0 9135  NN0*cxnn0 9198   +ecxad 9727
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 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-addass 7876  ax-i2m1 7879  ax-0lt1 7880  ax-0id 7882  ax-rnegex 7883  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-rab 2457  df-v 2732  df-sbc 2956  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-if 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-br 3990  df-opab 4051  df-id 4278  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-iota 5160  df-fun 5200  df-fv 5206  df-ov 5856  df-oprab 5857  df-mpo 5858  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-inn 8879  df-n0 9136  df-xnn0 9199  df-xadd 9730
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator