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

Theorem nn0o 11452
Description: An alternate characterization of an odd nonnegative integer. (Contributed by AV, 28-May-2020.) (Proof shortened by AV, 2-Jun-2020.)
Assertion
Ref Expression
nn0o  |-  ( ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )  ->  ( ( N  - 
1 )  /  2
)  e.  NN0 )

Proof of Theorem nn0o
StepHypRef Expression
1 nn0o1gt2 11450 . 2  |-  ( ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )  ->  ( N  =  1  \/  2  <  N
) )
2 1m1e0 8699 . . . . . . . 8  |-  ( 1  -  1 )  =  0
32oveq1i 5738 . . . . . . 7  |-  ( ( 1  -  1 )  /  2 )  =  ( 0  /  2
)
4 2cn 8701 . . . . . . . 8  |-  2  e.  CC
5 2ap0 8723 . . . . . . . 8  |-  2 #  0
64, 5div0api 8419 . . . . . . 7  |-  ( 0  /  2 )  =  0
73, 6eqtri 2135 . . . . . 6  |-  ( ( 1  -  1 )  /  2 )  =  0
8 0nn0 8896 . . . . . 6  |-  0  e.  NN0
97, 8eqeltri 2187 . . . . 5  |-  ( ( 1  -  1 )  /  2 )  e. 
NN0
10 oveq1 5735 . . . . . . . 8  |-  ( N  =  1  ->  ( N  -  1 )  =  ( 1  -  1 ) )
1110oveq1d 5743 . . . . . . 7  |-  ( N  =  1  ->  (
( N  -  1 )  /  2 )  =  ( ( 1  -  1 )  / 
2 ) )
1211eleq1d 2183 . . . . . 6  |-  ( N  =  1  ->  (
( ( N  - 
1 )  /  2
)  e.  NN0  <->  ( (
1  -  1 )  /  2 )  e. 
NN0 ) )
1312adantr 272 . . . . 5  |-  ( ( N  =  1  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  ( (
( N  -  1 )  /  2 )  e.  NN0  <->  ( ( 1  -  1 )  / 
2 )  e.  NN0 ) )
149, 13mpbiri 167 . . . 4  |-  ( ( N  =  1  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  ( ( N  -  1 )  /  2 )  e. 
NN0 )
1514ex 114 . . 3  |-  ( N  =  1  ->  (
( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )  ->  ( ( N  - 
1 )  /  2
)  e.  NN0 )
)
16 2z 8986 . . . . . . . 8  |-  2  e.  ZZ
1716a1i 9 . . . . . . 7  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  2  e.  ZZ )
18 nn0z 8978 . . . . . . . 8  |-  ( N  e.  NN0  ->  N  e.  ZZ )
1918ad2antrl 479 . . . . . . 7  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  N  e.  ZZ )
20 2re 8700 . . . . . . . . . 10  |-  2  e.  RR
21 nn0re 8890 . . . . . . . . . 10  |-  ( N  e.  NN0  ->  N  e.  RR )
22 ltle 7774 . . . . . . . . . 10  |-  ( ( 2  e.  RR  /\  N  e.  RR )  ->  ( 2  <  N  ->  2  <_  N )
)
2320, 21, 22sylancr 408 . . . . . . . . 9  |-  ( N  e.  NN0  ->  ( 2  <  N  ->  2  <_  N ) )
2423adantr 272 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )  ->  ( 2  <  N  ->  2  <_  N )
)
2524impcom 124 . . . . . . 7  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  2  <_  N )
26 eluz2 9234 . . . . . . 7  |-  ( N  e.  ( ZZ>= `  2
)  <->  ( 2  e.  ZZ  /\  N  e.  ZZ  /\  2  <_  N ) )
2717, 19, 25, 26syl3anbrc 1148 . . . . . 6  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  N  e.  ( ZZ>= `  2 )
)
28 simprr 504 . . . . . 6  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  ( ( N  +  1 )  /  2 )  e. 
NN0 )
2927, 28jca 302 . . . . 5  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  ( N  e.  ( ZZ>= `  2 )  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)
30 nno 11451 . . . . 5  |-  ( ( N  e.  ( ZZ>= ` 
2 )  /\  (
( N  +  1 )  /  2 )  e.  NN0 )  -> 
( ( N  - 
1 )  /  2
)  e.  NN )
31 nnnn0 8888 . . . . 5  |-  ( ( ( N  -  1 )  /  2 )  e.  NN  ->  (
( N  -  1 )  /  2 )  e.  NN0 )
3229, 30, 313syl 17 . . . 4  |-  ( ( 2  <  N  /\  ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )
)  ->  ( ( N  -  1 )  /  2 )  e. 
NN0 )
3332ex 114 . . 3  |-  ( 2  <  N  ->  (
( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )  ->  ( ( N  - 
1 )  /  2
)  e.  NN0 )
)
3415, 33jaoi 688 . 2  |-  ( ( N  =  1  \/  2  <  N )  ->  ( ( N  e.  NN0  /\  (
( N  +  1 )  /  2 )  e.  NN0 )  -> 
( ( N  - 
1 )  /  2
)  e.  NN0 )
)
351, 34mpcom 36 1  |-  ( ( N  e.  NN0  /\  ( ( N  + 
1 )  /  2
)  e.  NN0 )  ->  ( ( N  - 
1 )  /  2
)  e.  NN0 )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 680    = wceq 1314    e. wcel 1463   class class class wbr 3895   ` cfv 5081  (class class class)co 5728   RRcr 7546   0cc0 7547   1c1 7548    + caddc 7550    < clt 7724    <_ cle 7725    - cmin 7856    / cdiv 8345   NNcn 8630   2c2 8681   NN0cn0 8881   ZZcz 8958   ZZ>=cuz 9228
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 586  ax-in2 587  ax-io 681  ax-5 1406  ax-7 1407  ax-gen 1408  ax-ie1 1452  ax-ie2 1453  ax-8 1465  ax-10 1466  ax-11 1467  ax-i12 1468  ax-bndl 1469  ax-4 1470  ax-13 1474  ax-14 1475  ax-17 1489  ax-i9 1493  ax-ial 1497  ax-i5r 1498  ax-ext 2097  ax-sep 4006  ax-pow 4058  ax-pr 4091  ax-un 4315  ax-setind 4412  ax-cnex 7636  ax-resscn 7637  ax-1cn 7638  ax-1re 7639  ax-icn 7640  ax-addcl 7641  ax-addrcl 7642  ax-mulcl 7643  ax-mulrcl 7644  ax-addcom 7645  ax-mulcom 7646  ax-addass 7647  ax-mulass 7648  ax-distr 7649  ax-i2m1 7650  ax-0lt1 7651  ax-1rid 7652  ax-0id 7653  ax-rnegex 7654  ax-precex 7655  ax-cnre 7656  ax-pre-ltirr 7657  ax-pre-ltwlin 7658  ax-pre-lttrn 7659  ax-pre-apti 7660  ax-pre-ltadd 7661  ax-pre-mulgt0 7662  ax-pre-mulext 7663
This theorem depends on definitions:  df-bi 116  df-3or 946  df-3an 947  df-tru 1317  df-fal 1320  df-nf 1420  df-sb 1719  df-eu 1978  df-mo 1979  df-clab 2102  df-cleq 2108  df-clel 2111  df-nfc 2244  df-ne 2283  df-nel 2378  df-ral 2395  df-rex 2396  df-reu 2397  df-rmo 2398  df-rab 2399  df-v 2659  df-sbc 2879  df-dif 3039  df-un 3041  df-in 3043  df-ss 3050  df-pw 3478  df-sn 3499  df-pr 3500  df-op 3502  df-uni 3703  df-int 3738  df-br 3896  df-opab 3950  df-mpt 3951  df-id 4175  df-po 4178  df-iso 4179  df-xp 4505  df-rel 4506  df-cnv 4507  df-co 4508  df-dm 4509  df-rn 4510  df-res 4511  df-ima 4512  df-iota 5046  df-fun 5083  df-fn 5084  df-f 5085  df-fv 5089  df-riota 5684  df-ov 5731  df-oprab 5732  df-mpo 5733  df-pnf 7726  df-mnf 7727  df-xr 7728  df-ltxr 7729  df-le 7730  df-sub 7858  df-neg 7859  df-reap 8255  df-ap 8262  df-div 8346  df-inn 8631  df-2 8689  df-3 8690  df-4 8691  df-n0 8882  df-z 8959  df-uz 9229
This theorem is referenced by:  nn0ob  11453
  Copyright terms: Public domain W3C validator