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

Theorem nneoor 9355
Description: A positive integer is even or odd. (Contributed by Jim Kingdon, 15-Mar-2020.)
Assertion
Ref Expression
nneoor (𝑁 ∈ ℕ → ((𝑁 / 2) ∈ ℕ ∨ ((𝑁 + 1) / 2) ∈ ℕ))

Proof of Theorem nneoor
Dummy variables 𝑗 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq1 5882 . . . . . 6 (𝑗 = 1 → (𝑗 + 1) = (1 + 1))
21oveq1d 5890 . . . . 5 (𝑗 = 1 → ((𝑗 + 1) / 2) = ((1 + 1) / 2))
32eleq1d 2246 . . . 4 (𝑗 = 1 → (((𝑗 + 1) / 2) ∈ ℕ ↔ ((1 + 1) / 2) ∈ ℕ))
4 oveq1 5882 . . . . 5 (𝑗 = 1 → (𝑗 / 2) = (1 / 2))
54eleq1d 2246 . . . 4 (𝑗 = 1 → ((𝑗 / 2) ∈ ℕ ↔ (1 / 2) ∈ ℕ))
63, 5orbi12d 793 . . 3 (𝑗 = 1 → ((((𝑗 + 1) / 2) ∈ ℕ ∨ (𝑗 / 2) ∈ ℕ) ↔ (((1 + 1) / 2) ∈ ℕ ∨ (1 / 2) ∈ ℕ)))
7 oveq1 5882 . . . . . 6 (𝑗 = 𝑘 → (𝑗 + 1) = (𝑘 + 1))
87oveq1d 5890 . . . . 5 (𝑗 = 𝑘 → ((𝑗 + 1) / 2) = ((𝑘 + 1) / 2))
98eleq1d 2246 . . . 4 (𝑗 = 𝑘 → (((𝑗 + 1) / 2) ∈ ℕ ↔ ((𝑘 + 1) / 2) ∈ ℕ))
10 oveq1 5882 . . . . 5 (𝑗 = 𝑘 → (𝑗 / 2) = (𝑘 / 2))
1110eleq1d 2246 . . . 4 (𝑗 = 𝑘 → ((𝑗 / 2) ∈ ℕ ↔ (𝑘 / 2) ∈ ℕ))
129, 11orbi12d 793 . . 3 (𝑗 = 𝑘 → ((((𝑗 + 1) / 2) ∈ ℕ ∨ (𝑗 / 2) ∈ ℕ) ↔ (((𝑘 + 1) / 2) ∈ ℕ ∨ (𝑘 / 2) ∈ ℕ)))
13 oveq1 5882 . . . . . 6 (𝑗 = (𝑘 + 1) → (𝑗 + 1) = ((𝑘 + 1) + 1))
1413oveq1d 5890 . . . . 5 (𝑗 = (𝑘 + 1) → ((𝑗 + 1) / 2) = (((𝑘 + 1) + 1) / 2))
1514eleq1d 2246 . . . 4 (𝑗 = (𝑘 + 1) → (((𝑗 + 1) / 2) ∈ ℕ ↔ (((𝑘 + 1) + 1) / 2) ∈ ℕ))
16 oveq1 5882 . . . . 5 (𝑗 = (𝑘 + 1) → (𝑗 / 2) = ((𝑘 + 1) / 2))
1716eleq1d 2246 . . . 4 (𝑗 = (𝑘 + 1) → ((𝑗 / 2) ∈ ℕ ↔ ((𝑘 + 1) / 2) ∈ ℕ))
1815, 17orbi12d 793 . . 3 (𝑗 = (𝑘 + 1) → ((((𝑗 + 1) / 2) ∈ ℕ ∨ (𝑗 / 2) ∈ ℕ) ↔ ((((𝑘 + 1) + 1) / 2) ∈ ℕ ∨ ((𝑘 + 1) / 2) ∈ ℕ)))
19 oveq1 5882 . . . . . 6 (𝑗 = 𝑁 → (𝑗 + 1) = (𝑁 + 1))
2019oveq1d 5890 . . . . 5 (𝑗 = 𝑁 → ((𝑗 + 1) / 2) = ((𝑁 + 1) / 2))
2120eleq1d 2246 . . . 4 (𝑗 = 𝑁 → (((𝑗 + 1) / 2) ∈ ℕ ↔ ((𝑁 + 1) / 2) ∈ ℕ))
22 oveq1 5882 . . . . 5 (𝑗 = 𝑁 → (𝑗 / 2) = (𝑁 / 2))
2322eleq1d 2246 . . . 4 (𝑗 = 𝑁 → ((𝑗 / 2) ∈ ℕ ↔ (𝑁 / 2) ∈ ℕ))
2421, 23orbi12d 793 . . 3 (𝑗 = 𝑁 → ((((𝑗 + 1) / 2) ∈ ℕ ∨ (𝑗 / 2) ∈ ℕ) ↔ (((𝑁 + 1) / 2) ∈ ℕ ∨ (𝑁 / 2) ∈ ℕ)))
25 df-2 8978 . . . . . . 7 2 = (1 + 1)
2625oveq1i 5885 . . . . . 6 (2 / 2) = ((1 + 1) / 2)
27 2div2e1 9051 . . . . . 6 (2 / 2) = 1
2826, 27eqtr3i 2200 . . . . 5 ((1 + 1) / 2) = 1
29 1nn 8930 . . . . 5 1 ∈ ℕ
3028, 29eqeltri 2250 . . . 4 ((1 + 1) / 2) ∈ ℕ
3130orci 731 . . 3 (((1 + 1) / 2) ∈ ℕ ∨ (1 / 2) ∈ ℕ)
32 peano2nn 8931 . . . . . 6 ((𝑘 / 2) ∈ ℕ → ((𝑘 / 2) + 1) ∈ ℕ)
33 nncn 8927 . . . . . . . 8 (𝑘 ∈ ℕ → 𝑘 ∈ ℂ)
34 add1p1 9168 . . . . . . . . . 10 (𝑘 ∈ ℂ → ((𝑘 + 1) + 1) = (𝑘 + 2))
3534oveq1d 5890 . . . . . . . . 9 (𝑘 ∈ ℂ → (((𝑘 + 1) + 1) / 2) = ((𝑘 + 2) / 2))
36 2cn 8990 . . . . . . . . . . 11 2 ∈ ℂ
37 2ap0 9012 . . . . . . . . . . . 12 2 # 0
3836, 37pm3.2i 272 . . . . . . . . . . 11 (2 ∈ ℂ ∧ 2 # 0)
39 divdirap 8654 . . . . . . . . . . 11 ((𝑘 ∈ ℂ ∧ 2 ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 # 0)) → ((𝑘 + 2) / 2) = ((𝑘 / 2) + (2 / 2)))
4036, 38, 39mp3an23 1329 . . . . . . . . . 10 (𝑘 ∈ ℂ → ((𝑘 + 2) / 2) = ((𝑘 / 2) + (2 / 2)))
4127oveq2i 5886 . . . . . . . . . 10 ((𝑘 / 2) + (2 / 2)) = ((𝑘 / 2) + 1)
4240, 41eqtrdi 2226 . . . . . . . . 9 (𝑘 ∈ ℂ → ((𝑘 + 2) / 2) = ((𝑘 / 2) + 1))
4335, 42eqtrd 2210 . . . . . . . 8 (𝑘 ∈ ℂ → (((𝑘 + 1) + 1) / 2) = ((𝑘 / 2) + 1))
4433, 43syl 14 . . . . . . 7 (𝑘 ∈ ℕ → (((𝑘 + 1) + 1) / 2) = ((𝑘 / 2) + 1))
4544eleq1d 2246 . . . . . 6 (𝑘 ∈ ℕ → ((((𝑘 + 1) + 1) / 2) ∈ ℕ ↔ ((𝑘 / 2) + 1) ∈ ℕ))
4632, 45imbitrrid 156 . . . . 5 (𝑘 ∈ ℕ → ((𝑘 / 2) ∈ ℕ → (((𝑘 + 1) + 1) / 2) ∈ ℕ))
4746orim2d 788 . . . 4 (𝑘 ∈ ℕ → ((((𝑘 + 1) / 2) ∈ ℕ ∨ (𝑘 / 2) ∈ ℕ) → (((𝑘 + 1) / 2) ∈ ℕ ∨ (((𝑘 + 1) + 1) / 2) ∈ ℕ)))
48 orcom 728 . . . 4 ((((𝑘 + 1) / 2) ∈ ℕ ∨ (((𝑘 + 1) + 1) / 2) ∈ ℕ) ↔ ((((𝑘 + 1) + 1) / 2) ∈ ℕ ∨ ((𝑘 + 1) / 2) ∈ ℕ))
4947, 48imbitrdi 161 . . 3 (𝑘 ∈ ℕ → ((((𝑘 + 1) / 2) ∈ ℕ ∨ (𝑘 / 2) ∈ ℕ) → ((((𝑘 + 1) + 1) / 2) ∈ ℕ ∨ ((𝑘 + 1) / 2) ∈ ℕ)))
506, 12, 18, 24, 31, 49nnind 8935 . 2 (𝑁 ∈ ℕ → (((𝑁 + 1) / 2) ∈ ℕ ∨ (𝑁 / 2) ∈ ℕ))
5150orcomd 729 1 (𝑁 ∈ ℕ → ((𝑁 / 2) ∈ ℕ ∨ ((𝑁 + 1) / 2) ∈ ℕ))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wo 708   = wceq 1353  wcel 2148   class class class wbr 4004  (class class class)co 5875  cc 7809  0cc0 7811  1c1 7812   + caddc 7814   # cap 8538   / cdiv 8629  cn 8919  2c2 8970
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-13 2150  ax-14 2151  ax-ext 2159  ax-sep 4122  ax-pow 4175  ax-pr 4210  ax-un 4434  ax-setind 4537  ax-cnex 7902  ax-resscn 7903  ax-1cn 7904  ax-1re 7905  ax-icn 7906  ax-addcl 7907  ax-addrcl 7908  ax-mulcl 7909  ax-mulrcl 7910  ax-addcom 7911  ax-mulcom 7912  ax-addass 7913  ax-mulass 7914  ax-distr 7915  ax-i2m1 7916  ax-0lt1 7917  ax-1rid 7918  ax-0id 7919  ax-rnegex 7920  ax-precex 7921  ax-cnre 7922  ax-pre-ltirr 7923  ax-pre-ltwlin 7924  ax-pre-lttrn 7925  ax-pre-apti 7926  ax-pre-ltadd 7927  ax-pre-mulgt0 7928  ax-pre-mulext 7929
This theorem depends on definitions:  df-bi 117  df-3an 980  df-tru 1356  df-fal 1359  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-nel 2443  df-ral 2460  df-rex 2461  df-reu 2462  df-rmo 2463  df-rab 2464  df-v 2740  df-sbc 2964  df-dif 3132  df-un 3134  df-in 3136  df-ss 3143  df-pw 3578  df-sn 3599  df-pr 3600  df-op 3602  df-uni 3811  df-int 3846  df-br 4005  df-opab 4066  df-id 4294  df-po 4297  df-iso 4298  df-xp 4633  df-rel 4634  df-cnv 4635  df-co 4636  df-dm 4637  df-iota 5179  df-fun 5219  df-fv 5225  df-riota 5831  df-ov 5878  df-oprab 5879  df-mpo 5880  df-pnf 7994  df-mnf 7995  df-xr 7996  df-ltxr 7997  df-le 7998  df-sub 8130  df-neg 8131  df-reap 8532  df-ap 8539  df-div 8630  df-inn 8920  df-2 8978
This theorem is referenced by:  nneo  9356  zeo  9358
  Copyright terms: Public domain W3C validator