MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  m1exp1 Structured version   Visualization version   GIF version

Theorem m1exp1 15466
Description: Exponentiation of negative one is one iff the exponent is even. (Contributed by AV, 20-Jun-2021.)
Assertion
Ref Expression
m1exp1 (𝑁 ∈ ℤ → ((-1↑𝑁) = 1 ↔ 2 ∥ 𝑁))

Proof of Theorem m1exp1
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 2z 11736 . . . . . 6 2 ∈ ℤ
2 divides 15358 . . . . . 6 ((2 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝑁))
31, 2mpan 683 . . . . 5 (𝑁 ∈ ℤ → (2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝑁))
4 oveq2 6912 . . . . . . . 8 (𝑁 = (𝑛 · 2) → (-1↑𝑁) = (-1↑(𝑛 · 2)))
54eqcoms 2832 . . . . . . 7 ((𝑛 · 2) = 𝑁 → (-1↑𝑁) = (-1↑(𝑛 · 2)))
6 zcn 11708 . . . . . . . . . 10 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
7 2cnd 11428 . . . . . . . . . 10 (𝑛 ∈ ℤ → 2 ∈ ℂ)
86, 7mulcomd 10377 . . . . . . . . 9 (𝑛 ∈ ℤ → (𝑛 · 2) = (2 · 𝑛))
98oveq2d 6920 . . . . . . . 8 (𝑛 ∈ ℤ → (-1↑(𝑛 · 2)) = (-1↑(2 · 𝑛)))
10 m1expeven 13200 . . . . . . . 8 (𝑛 ∈ ℤ → (-1↑(2 · 𝑛)) = 1)
119, 10eqtrd 2860 . . . . . . 7 (𝑛 ∈ ℤ → (-1↑(𝑛 · 2)) = 1)
125, 11sylan9eqr 2882 . . . . . 6 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝑁) → (-1↑𝑁) = 1)
1312rexlimiva 3236 . . . . 5 (∃𝑛 ∈ ℤ (𝑛 · 2) = 𝑁 → (-1↑𝑁) = 1)
143, 13syl6bi 245 . . . 4 (𝑁 ∈ ℤ → (2 ∥ 𝑁 → (-1↑𝑁) = 1))
1514impcom 398 . . 3 ((2 ∥ 𝑁𝑁 ∈ ℤ) → (-1↑𝑁) = 1)
16 simpl 476 . . 3 ((2 ∥ 𝑁𝑁 ∈ ℤ) → 2 ∥ 𝑁)
1715, 162thd 257 . 2 ((2 ∥ 𝑁𝑁 ∈ ℤ) → ((-1↑𝑁) = 1 ↔ 2 ∥ 𝑁))
18 ax-1ne0 10320 . . . . 5 1 ≠ 0
19 eqcom 2831 . . . . . 6 (-1 = 1 ↔ 1 = -1)
20 ax-1cn 10309 . . . . . . 7 1 ∈ ℂ
2120eqnegi 11079 . . . . . 6 (1 = -1 ↔ 1 = 0)
2219, 21bitri 267 . . . . 5 (-1 = 1 ↔ 1 = 0)
2318, 22nemtbir 3093 . . . 4 ¬ -1 = 1
24 odd2np1 15438 . . . . . . 7 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
25 oveq2 6912 . . . . . . . . . 10 (𝑁 = ((2 · 𝑛) + 1) → (-1↑𝑁) = (-1↑((2 · 𝑛) + 1)))
2625eqcoms 2832 . . . . . . . . 9 (((2 · 𝑛) + 1) = 𝑁 → (-1↑𝑁) = (-1↑((2 · 𝑛) + 1)))
27 neg1cn 11471 . . . . . . . . . . . 12 -1 ∈ ℂ
2827a1i 11 . . . . . . . . . . 11 (𝑛 ∈ ℤ → -1 ∈ ℂ)
29 neg1ne0 11473 . . . . . . . . . . . 12 -1 ≠ 0
3029a1i 11 . . . . . . . . . . 11 (𝑛 ∈ ℤ → -1 ≠ 0)
311a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℤ → 2 ∈ ℤ)
32 id 22 . . . . . . . . . . . 12 (𝑛 ∈ ℤ → 𝑛 ∈ ℤ)
3331, 32zmulcld 11815 . . . . . . . . . . 11 (𝑛 ∈ ℤ → (2 · 𝑛) ∈ ℤ)
3428, 30, 33expp1zd 13310 . . . . . . . . . 10 (𝑛 ∈ ℤ → (-1↑((2 · 𝑛) + 1)) = ((-1↑(2 · 𝑛)) · -1))
3510oveq1d 6919 . . . . . . . . . . 11 (𝑛 ∈ ℤ → ((-1↑(2 · 𝑛)) · -1) = (1 · -1))
3627mulid2i 10361 . . . . . . . . . . 11 (1 · -1) = -1
3735, 36syl6eq 2876 . . . . . . . . . 10 (𝑛 ∈ ℤ → ((-1↑(2 · 𝑛)) · -1) = -1)
3834, 37eqtrd 2860 . . . . . . . . 9 (𝑛 ∈ ℤ → (-1↑((2 · 𝑛) + 1)) = -1)
3926, 38sylan9eqr 2882 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝑁) → (-1↑𝑁) = -1)
4039rexlimiva 3236 . . . . . . 7 (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 → (-1↑𝑁) = -1)
4124, 40syl6bi 245 . . . . . 6 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 → (-1↑𝑁) = -1))
4241impcom 398 . . . . 5 ((¬ 2 ∥ 𝑁𝑁 ∈ ℤ) → (-1↑𝑁) = -1)
4342eqeq1d 2826 . . . 4 ((¬ 2 ∥ 𝑁𝑁 ∈ ℤ) → ((-1↑𝑁) = 1 ↔ -1 = 1))
4423, 43mtbiri 319 . . 3 ((¬ 2 ∥ 𝑁𝑁 ∈ ℤ) → ¬ (-1↑𝑁) = 1)
45 simpl 476 . . 3 ((¬ 2 ∥ 𝑁𝑁 ∈ ℤ) → ¬ 2 ∥ 𝑁)
4644, 452falsed 368 . 2 ((¬ 2 ∥ 𝑁𝑁 ∈ ℤ) → ((-1↑𝑁) = 1 ↔ 2 ∥ 𝑁))
4717, 46pm2.61ian 848 1 (𝑁 ∈ ℤ → ((-1↑𝑁) = 1 ↔ 2 ∥ 𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 198  wa 386   = wceq 1658  wcel 2166  wne 2998  wrex 3117   class class class wbr 4872  (class class class)co 6904  cc 10249  0cc0 10251  1c1 10252   + caddc 10254   · cmul 10256  -cneg 10585  2c2 11405  cz 11703  cexp 13153  cdvds 15356
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1896  ax-4 1910  ax-5 2011  ax-6 2077  ax-7 2114  ax-8 2168  ax-9 2175  ax-10 2194  ax-11 2209  ax-12 2222  ax-13 2390  ax-ext 2802  ax-sep 5004  ax-nul 5012  ax-pow 5064  ax-pr 5126  ax-un 7208  ax-cnex 10307  ax-resscn 10308  ax-1cn 10309  ax-icn 10310  ax-addcl 10311  ax-addrcl 10312  ax-mulcl 10313  ax-mulrcl 10314  ax-mulcom 10315  ax-addass 10316  ax-mulass 10317  ax-distr 10318  ax-i2m1 10319  ax-1ne0 10320  ax-1rid 10321  ax-rnegex 10322  ax-rrecex 10323  ax-cnre 10324  ax-pre-lttri 10325  ax-pre-lttrn 10326  ax-pre-ltadd 10327  ax-pre-mulgt0 10328
This theorem depends on definitions:  df-bi 199  df-an 387  df-or 881  df-3or 1114  df-3an 1115  df-tru 1662  df-ex 1881  df-nf 1885  df-sb 2070  df-mo 2604  df-eu 2639  df-clab 2811  df-cleq 2817  df-clel 2820  df-nfc 2957  df-ne 2999  df-nel 3102  df-ral 3121  df-rex 3122  df-reu 3123  df-rmo 3124  df-rab 3125  df-v 3415  df-sbc 3662  df-csb 3757  df-dif 3800  df-un 3802  df-in 3804  df-ss 3811  df-pss 3813  df-nul 4144  df-if 4306  df-pw 4379  df-sn 4397  df-pr 4399  df-tp 4401  df-op 4403  df-uni 4658  df-iun 4741  df-br 4873  df-opab 4935  df-mpt 4952  df-tr 4975  df-id 5249  df-eprel 5254  df-po 5262  df-so 5263  df-fr 5300  df-we 5302  df-xp 5347  df-rel 5348  df-cnv 5349  df-co 5350  df-dm 5351  df-rn 5352  df-res 5353  df-ima 5354  df-pred 5919  df-ord 5965  df-on 5966  df-lim 5967  df-suc 5968  df-iota 6085  df-fun 6124  df-fn 6125  df-f 6126  df-f1 6127  df-fo 6128  df-f1o 6129  df-fv 6130  df-riota 6865  df-ov 6907  df-oprab 6908  df-mpt2 6909  df-om 7326  df-2nd 7428  df-wrecs 7671  df-recs 7733  df-rdg 7771  df-er 8008  df-en 8222  df-dom 8223  df-sdom 8224  df-pnf 10392  df-mnf 10393  df-xr 10394  df-ltxr 10395  df-le 10396  df-sub 10586  df-neg 10587  df-div 11009  df-nn 11350  df-2 11413  df-n0 11618  df-z 11704  df-uz 11968  df-seq 13095  df-exp 13154  df-dvds 15357
This theorem is referenced by:  2lgs  25544  2lgsoddprm  25553
  Copyright terms: Public domain W3C validator