Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  coskpi2 Structured version   Visualization version   GIF version

Theorem coskpi2 44097
Description: The cosine of an integer multiple of negative π is either 1 or negative 1. (Contributed by Glauco Siliprandi, 11-Dec-2019.)
Assertion
Ref Expression
coskpi2 (𝐾 ∈ ℤ → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))

Proof of Theorem coskpi2
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 2z 12535 . . . . 5 2 ∈ ℤ
2 divides 16138 . . . . 5 ((2 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾))
31, 2mpan 688 . . . 4 (𝐾 ∈ ℤ → (2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾))
43biimpa 477 . . 3 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾)
5 zcn 12504 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
6 2cnd 12231 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → 2 ∈ ℂ)
7 picn 25816 . . . . . . . . . . . . . . 15 π ∈ ℂ
87a1i 11 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → π ∈ ℂ)
95, 6, 8mulassd 11178 . . . . . . . . . . . . 13 (𝑛 ∈ ℤ → ((𝑛 · 2) · π) = (𝑛 · (2 · π)))
109eqcomd 2742 . . . . . . . . . . . 12 (𝑛 ∈ ℤ → (𝑛 · (2 · π)) = ((𝑛 · 2) · π))
1110adantr 481 . . . . . . . . . . 11 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (𝑛 · (2 · π)) = ((𝑛 · 2) · π))
12 oveq1 7364 . . . . . . . . . . . 12 ((𝑛 · 2) = 𝐾 → ((𝑛 · 2) · π) = (𝐾 · π))
1312adantl 482 . . . . . . . . . . 11 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → ((𝑛 · 2) · π) = (𝐾 · π))
1411, 13eqtr2d 2777 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (𝐾 · π) = (𝑛 · (2 · π)))
1514fveq2d 6846 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · π)) = (cos‘(𝑛 · (2 · π))))
16 cos2kpi 25841 . . . . . . . . . 10 (𝑛 ∈ ℤ → (cos‘(𝑛 · (2 · π))) = 1)
1716adantr 481 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝑛 · (2 · π))) = 1)
1815, 17eqtrd 2776 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · π)) = 1)
19183adant1 1130 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · π)) = 1)
20 iftrue 4492 . . . . . . . . 9 (2 ∥ 𝐾 → if(2 ∥ 𝐾, 1, -1) = 1)
2120eqcomd 2742 . . . . . . . 8 (2 ∥ 𝐾 → 1 = if(2 ∥ 𝐾, 1, -1))
22213ad2ant1 1133 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → 1 = if(2 ∥ 𝐾, 1, -1))
2319, 22eqtrd 2776 . . . . . 6 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))
24233exp 1119 . . . . 5 (2 ∥ 𝐾 → (𝑛 ∈ ℤ → ((𝑛 · 2) = 𝐾 → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))))
2524adantl 482 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (𝑛 ∈ ℤ → ((𝑛 · 2) = 𝐾 → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))))
2625rexlimdv 3150 . . 3 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾 → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1)))
274, 26mpd 15 . 2 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))
28 odd2np1 16223 . . . 4 (𝐾 ∈ ℤ → (¬ 2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾))
2928biimpa 477 . . 3 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾)
306, 5mulcld 11175 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → (2 · 𝑛) ∈ ℂ)
31 1cnd 11150 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → 1 ∈ ℂ)
3230, 31, 8adddird 11180 . . . . . . . . . . . . 13 (𝑛 ∈ ℤ → (((2 · 𝑛) + 1) · π) = (((2 · 𝑛) · π) + (1 · π)))
336, 5mulcomd 11176 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ℤ → (2 · 𝑛) = (𝑛 · 2))
3433oveq1d 7372 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℤ → ((2 · 𝑛) · π) = ((𝑛 · 2) · π))
3534, 9eqtrd 2776 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → ((2 · 𝑛) · π) = (𝑛 · (2 · π)))
367mulid2i 11160 . . . . . . . . . . . . . . 15 (1 · π) = π
3736a1i 11 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → (1 · π) = π)
3835, 37oveq12d 7375 . . . . . . . . . . . . 13 (𝑛 ∈ ℤ → (((2 · 𝑛) · π) + (1 · π)) = ((𝑛 · (2 · π)) + π))
39 2cn 12228 . . . . . . . . . . . . . . . . 17 2 ∈ ℂ
4039, 7mulcli 11162 . . . . . . . . . . . . . . . 16 (2 · π) ∈ ℂ
4140a1i 11 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℤ → (2 · π) ∈ ℂ)
425, 41mulcld 11175 . . . . . . . . . . . . . 14 (𝑛 ∈ ℤ → (𝑛 · (2 · π)) ∈ ℂ)
4342, 8addcomd 11357 . . . . . . . . . . . . 13 (𝑛 ∈ ℤ → ((𝑛 · (2 · π)) + π) = (π + (𝑛 · (2 · π))))
4432, 38, 433eqtrrd 2781 . . . . . . . . . . . 12 (𝑛 ∈ ℤ → (π + (𝑛 · (2 · π))) = (((2 · 𝑛) + 1) · π))
4544adantr 481 . . . . . . . . . . 11 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (π + (𝑛 · (2 · π))) = (((2 · 𝑛) + 1) · π))
46 oveq1 7364 . . . . . . . . . . . 12 (((2 · 𝑛) + 1) = 𝐾 → (((2 · 𝑛) + 1) · π) = (𝐾 · π))
4746adantl 482 . . . . . . . . . . 11 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (((2 · 𝑛) + 1) · π) = (𝐾 · π))
4845, 47eqtr2d 2777 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · π) = (π + (𝑛 · (2 · π))))
4948fveq2d 6846 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · π)) = (cos‘(π + (𝑛 · (2 · π)))))
50 cosper 25839 . . . . . . . . . . 11 ((π ∈ ℂ ∧ 𝑛 ∈ ℤ) → (cos‘(π + (𝑛 · (2 · π)))) = (cos‘π))
517, 50mpan 688 . . . . . . . . . 10 (𝑛 ∈ ℤ → (cos‘(π + (𝑛 · (2 · π)))) = (cos‘π))
5251adantr 481 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(π + (𝑛 · (2 · π)))) = (cos‘π))
53 cospi 25829 . . . . . . . . . 10 (cos‘π) = -1
5453a1i 11 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘π) = -1)
5549, 52, 543eqtrd 2780 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · π)) = -1)
56553adant1 1130 . . . . . . 7 ((¬ 2 ∥ 𝐾𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · π)) = -1)
57 iffalse 4495 . . . . . . . . 9 (¬ 2 ∥ 𝐾 → if(2 ∥ 𝐾, 1, -1) = -1)
5857eqcomd 2742 . . . . . . . 8 (¬ 2 ∥ 𝐾 → -1 = if(2 ∥ 𝐾, 1, -1))
59583ad2ant1 1133 . . . . . . 7 ((¬ 2 ∥ 𝐾𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → -1 = if(2 ∥ 𝐾, 1, -1))
6056, 59eqtrd 2776 . . . . . 6 ((¬ 2 ∥ 𝐾𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))
61603exp 1119 . . . . 5 (¬ 2 ∥ 𝐾 → (𝑛 ∈ ℤ → (((2 · 𝑛) + 1) = 𝐾 → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))))
6261adantl 482 . . . 4 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (𝑛 ∈ ℤ → (((2 · 𝑛) + 1) = 𝐾 → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))))
6362rexlimdv 3150 . . 3 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾 → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1)))
6429, 63mpd 15 . 2 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))
6527, 64pm2.61dan 811 1 (𝐾 ∈ ℤ → (cos‘(𝐾 · π)) = if(2 ∥ 𝐾, 1, -1))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1087   = wceq 1541  wcel 2106  wrex 3073  ifcif 4486   class class class wbr 5105  cfv 6496  (class class class)co 7357  cc 11049  1c1 11052   + caddc 11054   · cmul 11056  -cneg 11386  2c2 12208  cz 12499  cosccos 15947  πcpi 15949  cdvds 16136
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2707  ax-rep 5242  ax-sep 5256  ax-nul 5263  ax-pow 5320  ax-pr 5384  ax-un 7672  ax-inf2 9577  ax-cnex 11107  ax-resscn 11108  ax-1cn 11109  ax-icn 11110  ax-addcl 11111  ax-addrcl 11112  ax-mulcl 11113  ax-mulrcl 11114  ax-mulcom 11115  ax-addass 11116  ax-mulass 11117  ax-distr 11118  ax-i2m1 11119  ax-1ne0 11120  ax-1rid 11121  ax-rnegex 11122  ax-rrecex 11123  ax-cnre 11124  ax-pre-lttri 11125  ax-pre-lttrn 11126  ax-pre-ltadd 11127  ax-pre-mulgt0 11128  ax-pre-sup 11129  ax-addf 11130  ax-mulf 11131
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3065  df-rex 3074  df-rmo 3353  df-reu 3354  df-rab 3408  df-v 3447  df-sbc 3740  df-csb 3856  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-pss 3929  df-nul 4283  df-if 4487  df-pw 4562  df-sn 4587  df-pr 4589  df-tp 4591  df-op 4593  df-uni 4866  df-int 4908  df-iun 4956  df-iin 4957  df-br 5106  df-opab 5168  df-mpt 5189  df-tr 5223  df-id 5531  df-eprel 5537  df-po 5545  df-so 5546  df-fr 5588  df-se 5589  df-we 5590  df-xp 5639  df-rel 5640  df-cnv 5641  df-co 5642  df-dm 5643  df-rn 5644  df-res 5645  df-ima 5646  df-pred 6253  df-ord 6320  df-on 6321  df-lim 6322  df-suc 6323  df-iota 6448  df-fun 6498  df-fn 6499  df-f 6500  df-f1 6501  df-fo 6502  df-f1o 6503  df-fv 6504  df-isom 6505  df-riota 7313  df-ov 7360  df-oprab 7361  df-mpo 7362  df-of 7617  df-om 7803  df-1st 7921  df-2nd 7922  df-supp 8093  df-frecs 8212  df-wrecs 8243  df-recs 8317  df-rdg 8356  df-1o 8412  df-2o 8413  df-er 8648  df-map 8767  df-pm 8768  df-ixp 8836  df-en 8884  df-dom 8885  df-sdom 8886  df-fin 8887  df-fsupp 9306  df-fi 9347  df-sup 9378  df-inf 9379  df-oi 9446  df-card 9875  df-pnf 11191  df-mnf 11192  df-xr 11193  df-ltxr 11194  df-le 11195  df-sub 11387  df-neg 11388  df-div 11813  df-nn 12154  df-2 12216  df-3 12217  df-4 12218  df-5 12219  df-6 12220  df-7 12221  df-8 12222  df-9 12223  df-n0 12414  df-z 12500  df-dec 12619  df-uz 12764  df-q 12874  df-rp 12916  df-xneg 13033  df-xadd 13034  df-xmul 13035  df-ioo 13268  df-ioc 13269  df-ico 13270  df-icc 13271  df-fz 13425  df-fzo 13568  df-fl 13697  df-seq 13907  df-exp 13968  df-fac 14174  df-bc 14203  df-hash 14231  df-shft 14952  df-cj 14984  df-re 14985  df-im 14986  df-sqrt 15120  df-abs 15121  df-limsup 15353  df-clim 15370  df-rlim 15371  df-sum 15571  df-ef 15950  df-sin 15952  df-cos 15953  df-pi 15955  df-dvds 16137  df-struct 17019  df-sets 17036  df-slot 17054  df-ndx 17066  df-base 17084  df-ress 17113  df-plusg 17146  df-mulr 17147  df-starv 17148  df-sca 17149  df-vsca 17150  df-ip 17151  df-tset 17152  df-ple 17153  df-ds 17155  df-unif 17156  df-hom 17157  df-cco 17158  df-rest 17304  df-topn 17305  df-0g 17323  df-gsum 17324  df-topgen 17325  df-pt 17326  df-prds 17329  df-xrs 17384  df-qtop 17389  df-imas 17390  df-xps 17392  df-mre 17466  df-mrc 17467  df-acs 17469  df-mgm 18497  df-sgrp 18546  df-mnd 18557  df-submnd 18602  df-mulg 18873  df-cntz 19097  df-cmn 19564  df-psmet 20788  df-xmet 20789  df-met 20790  df-bl 20791  df-mopn 20792  df-fbas 20793  df-fg 20794  df-cnfld 20797  df-top 22243  df-topon 22260  df-topsp 22282  df-bases 22296  df-cld 22370  df-ntr 22371  df-cls 22372  df-nei 22449  df-lp 22487  df-perf 22488  df-cn 22578  df-cnp 22579  df-haus 22666  df-tx 22913  df-hmeo 23106  df-fil 23197  df-fm 23289  df-flim 23290  df-flf 23291  df-xms 23673  df-ms 23674  df-tms 23675  df-cncf 24241  df-limc 25230  df-dv 25231
This theorem is referenced by:  sqwvfourb  44460
  Copyright terms: Public domain W3C validator