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

Theorem nn0o 11445
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 ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ0)

Proof of Theorem nn0o
StepHypRef Expression
1 nn0o1gt2 11443 . 2 ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → (𝑁 = 1 ∨ 2 < 𝑁))
2 1m1e0 8692 . . . . . . . 8 (1 − 1) = 0
32oveq1i 5736 . . . . . . 7 ((1 − 1) / 2) = (0 / 2)
4 2cn 8694 . . . . . . . 8 2 ∈ ℂ
5 2ap0 8716 . . . . . . . 8 2 # 0
64, 5div0api 8412 . . . . . . 7 (0 / 2) = 0
73, 6eqtri 2133 . . . . . 6 ((1 − 1) / 2) = 0
8 0nn0 8889 . . . . . 6 0 ∈ ℕ0
97, 8eqeltri 2185 . . . . 5 ((1 − 1) / 2) ∈ ℕ0
10 oveq1 5733 . . . . . . . 8 (𝑁 = 1 → (𝑁 − 1) = (1 − 1))
1110oveq1d 5741 . . . . . . 7 (𝑁 = 1 → ((𝑁 − 1) / 2) = ((1 − 1) / 2))
1211eleq1d 2181 . . . . . 6 (𝑁 = 1 → (((𝑁 − 1) / 2) ∈ ℕ0 ↔ ((1 − 1) / 2) ∈ ℕ0))
1312adantr 272 . . . . 5 ((𝑁 = 1 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → (((𝑁 − 1) / 2) ∈ ℕ0 ↔ ((1 − 1) / 2) ∈ ℕ0))
149, 13mpbiri 167 . . . 4 ((𝑁 = 1 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → ((𝑁 − 1) / 2) ∈ ℕ0)
1514ex 114 . . 3 (𝑁 = 1 → ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ0))
16 2z 8979 . . . . . . . 8 2 ∈ ℤ
1716a1i 9 . . . . . . 7 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → 2 ∈ ℤ)
18 nn0z 8971 . . . . . . . 8 (𝑁 ∈ ℕ0𝑁 ∈ ℤ)
1918ad2antrl 479 . . . . . . 7 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → 𝑁 ∈ ℤ)
20 2re 8693 . . . . . . . . . 10 2 ∈ ℝ
21 nn0re 8883 . . . . . . . . . 10 (𝑁 ∈ ℕ0𝑁 ∈ ℝ)
22 ltle 7767 . . . . . . . . . 10 ((2 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (2 < 𝑁 → 2 ≤ 𝑁))
2320, 21, 22sylancr 408 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (2 < 𝑁 → 2 ≤ 𝑁))
2423adantr 272 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → (2 < 𝑁 → 2 ≤ 𝑁))
2524impcom 124 . . . . . . 7 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → 2 ≤ 𝑁)
26 eluz2 9227 . . . . . . 7 (𝑁 ∈ (ℤ‘2) ↔ (2 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 2 ≤ 𝑁))
2717, 19, 25, 26syl3anbrc 1146 . . . . . 6 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → 𝑁 ∈ (ℤ‘2))
28 simprr 504 . . . . . 6 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → ((𝑁 + 1) / 2) ∈ ℕ0)
2927, 28jca 302 . . . . 5 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → (𝑁 ∈ (ℤ‘2) ∧ ((𝑁 + 1) / 2) ∈ ℕ0))
30 nno 11444 . . . . 5 ((𝑁 ∈ (ℤ‘2) ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ)
31 nnnn0 8881 . . . . 5 (((𝑁 − 1) / 2) ∈ ℕ → ((𝑁 − 1) / 2) ∈ ℕ0)
3229, 30, 313syl 17 . . . 4 ((2 < 𝑁 ∧ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0)) → ((𝑁 − 1) / 2) ∈ ℕ0)
3332ex 114 . . 3 (2 < 𝑁 → ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ0))
3415, 33jaoi 688 . 2 ((𝑁 = 1 ∨ 2 < 𝑁) → ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ0))
351, 34mpcom 36 1 ((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ0)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  wo 680   = wceq 1312  wcel 1461   class class class wbr 3893  cfv 5079  (class class class)co 5726  cr 7539  0cc0 7540  1c1 7541   + caddc 7543   < clt 7717  cle 7718  cmin 7849   / cdiv 8338  cn 8623  2c2 8674  0cn0 8874  cz 8951  cuz 9221
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 1404  ax-7 1405  ax-gen 1406  ax-ie1 1450  ax-ie2 1451  ax-8 1463  ax-10 1464  ax-11 1465  ax-i12 1466  ax-bndl 1467  ax-4 1468  ax-13 1472  ax-14 1473  ax-17 1487  ax-i9 1491  ax-ial 1495  ax-i5r 1496  ax-ext 2095  ax-sep 4004  ax-pow 4056  ax-pr 4089  ax-un 4313  ax-setind 4410  ax-cnex 7629  ax-resscn 7630  ax-1cn 7631  ax-1re 7632  ax-icn 7633  ax-addcl 7634  ax-addrcl 7635  ax-mulcl 7636  ax-mulrcl 7637  ax-addcom 7638  ax-mulcom 7639  ax-addass 7640  ax-mulass 7641  ax-distr 7642  ax-i2m1 7643  ax-0lt1 7644  ax-1rid 7645  ax-0id 7646  ax-rnegex 7647  ax-precex 7648  ax-cnre 7649  ax-pre-ltirr 7650  ax-pre-ltwlin 7651  ax-pre-lttrn 7652  ax-pre-apti 7653  ax-pre-ltadd 7654  ax-pre-mulgt0 7655  ax-pre-mulext 7656
This theorem depends on definitions:  df-bi 116  df-3or 944  df-3an 945  df-tru 1315  df-fal 1318  df-nf 1418  df-sb 1717  df-eu 1976  df-mo 1977  df-clab 2100  df-cleq 2106  df-clel 2109  df-nfc 2242  df-ne 2281  df-nel 2376  df-ral 2393  df-rex 2394  df-reu 2395  df-rmo 2396  df-rab 2397  df-v 2657  df-sbc 2877  df-dif 3037  df-un 3039  df-in 3041  df-ss 3048  df-pw 3476  df-sn 3497  df-pr 3498  df-op 3500  df-uni 3701  df-int 3736  df-br 3894  df-opab 3948  df-mpt 3949  df-id 4173  df-po 4176  df-iso 4177  df-xp 4503  df-rel 4504  df-cnv 4505  df-co 4506  df-dm 4507  df-rn 4508  df-res 4509  df-ima 4510  df-iota 5044  df-fun 5081  df-fn 5082  df-f 5083  df-fv 5087  df-riota 5682  df-ov 5729  df-oprab 5730  df-mpo 5731  df-pnf 7719  df-mnf 7720  df-xr 7721  df-ltxr 7722  df-le 7723  df-sub 7851  df-neg 7852  df-reap 8248  df-ap 8255  df-div 8339  df-inn 8624  df-2 8682  df-3 8683  df-4 8684  df-n0 8875  df-z 8952  df-uz 9222
This theorem is referenced by:  nn0ob  11446
  Copyright terms: Public domain W3C validator