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

Theorem cosknegpi 42170
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
cosknegpi (𝐾 ∈ ℤ → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))

Proof of Theorem cosknegpi
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 simpr 487 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → 2 ∥ 𝐾)
2 2z 12015 . . . . 5 2 ∈ ℤ
3 simpl 485 . . . . 5 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → 𝐾 ∈ ℤ)
4 divides 15609 . . . . 5 ((2 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾))
52, 3, 4sylancr 589 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾))
61, 5mpbid 234 . . 3 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾)
7 zcn 11987 . . . . . . . . . . . 12 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
8 negcl 10886 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → -𝑛 ∈ ℂ)
9 2cn 11713 . . . . . . . . . . . . . . . . 17 2 ∈ ℂ
10 picn 25045 . . . . . . . . . . . . . . . . 17 π ∈ ℂ
119, 10mulcli 10648 . . . . . . . . . . . . . . . 16 (2 · π) ∈ ℂ
1211a1i 11 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → (2 · π) ∈ ℂ)
138, 12mulcld 10661 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → (-𝑛 · (2 · π)) ∈ ℂ)
1413addid2d 10841 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (0 + (-𝑛 · (2 · π))) = (-𝑛 · (2 · π)))
15 2cnd 11716 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → 2 ∈ ℂ)
1610a1i 11 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → π ∈ ℂ)
178, 15, 16mulassd 10664 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → ((-𝑛 · 2) · π) = (-𝑛 · (2 · π)))
1817eqcomd 2827 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (-𝑛 · (2 · π)) = ((-𝑛 · 2) · π))
19 id 22 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → 𝑛 ∈ ℂ)
2019, 15mulneg1d 11093 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → (-𝑛 · 2) = -(𝑛 · 2))
2120oveq1d 7171 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → ((-𝑛 · 2) · π) = (-(𝑛 · 2) · π))
2214, 18, 213eqtrd 2860 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (0 + (-𝑛 · (2 · π))) = (-(𝑛 · 2) · π))
237, 22syl 17 . . . . . . . . . . 11 (𝑛 ∈ ℤ → (0 + (-𝑛 · (2 · π))) = (-(𝑛 · 2) · π))
2423adantr 483 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (0 + (-𝑛 · (2 · π))) = (-(𝑛 · 2) · π))
2519, 15mulcld 10661 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (𝑛 · 2) ∈ ℂ)
26 mulneg12 11078 . . . . . . . . . . . . 13 (((𝑛 · 2) ∈ ℂ ∧ π ∈ ℂ) → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
2725, 16, 26syl2anc 586 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
287, 27syl 17 . . . . . . . . . . 11 (𝑛 ∈ ℤ → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
2928adantr 483 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
30 oveq1 7163 . . . . . . . . . . 11 ((𝑛 · 2) = 𝐾 → ((𝑛 · 2) · -π) = (𝐾 · -π))
3130adantl 484 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → ((𝑛 · 2) · -π) = (𝐾 · -π))
3224, 29, 313eqtrrd 2861 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (𝐾 · -π) = (0 + (-𝑛 · (2 · π))))
3332fveq2d 6674 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(0 + (-𝑛 · (2 · π)))))
34333adant1 1126 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(0 + (-𝑛 · (2 · π)))))
35 0cnd 10634 . . . . . . . . 9 (𝑛 ∈ ℤ → 0 ∈ ℂ)
36 znegcl 12018 . . . . . . . . 9 (𝑛 ∈ ℤ → -𝑛 ∈ ℤ)
37 cosper 25068 . . . . . . . . 9 ((0 ∈ ℂ ∧ -𝑛 ∈ ℤ) → (cos‘(0 + (-𝑛 · (2 · π)))) = (cos‘0))
3835, 36, 37syl2anc 586 . . . . . . . 8 (𝑛 ∈ ℤ → (cos‘(0 + (-𝑛 · (2 · π)))) = (cos‘0))
39383ad2ant2 1130 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(0 + (-𝑛 · (2 · π)))) = (cos‘0))
40 iftrue 4473 . . . . . . . . 9 (2 ∥ 𝐾 → if(2 ∥ 𝐾, 1, -1) = 1)
41 cos0 15503 . . . . . . . . 9 (cos‘0) = 1
4240, 41syl6reqr 2875 . . . . . . . 8 (2 ∥ 𝐾 → (cos‘0) = if(2 ∥ 𝐾, 1, -1))
43423ad2ant1 1129 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘0) = if(2 ∥ 𝐾, 1, -1))
4434, 39, 433eqtrd 2860 . . . . . 6 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
45443exp 1115 . . . . 5 (2 ∥ 𝐾 → (𝑛 ∈ ℤ → ((𝑛 · 2) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))))
4645adantl 484 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (𝑛 ∈ ℤ → ((𝑛 · 2) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))))
4746rexlimdv 3283 . . 3 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1)))
486, 47mpd 15 . 2 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
49 odd2np1 15690 . . . 4 (𝐾 ∈ ℤ → (¬ 2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾))
5049biimpa 479 . . 3 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾)
51 oveq1 7163 . . . . . . . . . . 11 (((2 · 𝑛) + 1) = 𝐾 → (((2 · 𝑛) + 1) · -π) = (𝐾 · -π))
5251eqcomd 2827 . . . . . . . . . 10 (((2 · 𝑛) + 1) = 𝐾 → (𝐾 · -π) = (((2 · 𝑛) + 1) · -π))
5352adantl 484 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · -π) = (((2 · 𝑛) + 1) · -π))
5415, 19mulcld 10661 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (2 · 𝑛) ∈ ℂ)
55 1cnd 10636 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → 1 ∈ ℂ)
56 negpicn 25048 . . . . . . . . . . . . 13 -π ∈ ℂ
5756a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → -π ∈ ℂ)
5854, 55, 57adddird 10666 . . . . . . . . . . 11 (𝑛 ∈ ℂ → (((2 · 𝑛) + 1) · -π) = (((2 · 𝑛) · -π) + (1 · -π)))
597, 58syl 17 . . . . . . . . . 10 (𝑛 ∈ ℤ → (((2 · 𝑛) + 1) · -π) = (((2 · 𝑛) · -π) + (1 · -π)))
6059adantr 483 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (((2 · 𝑛) + 1) · -π) = (((2 · 𝑛) · -π) + (1 · -π)))
61 mulneg12 11078 . . . . . . . . . . . . . . . 16 (((2 · 𝑛) ∈ ℂ ∧ π ∈ ℂ) → (-(2 · 𝑛) · π) = ((2 · 𝑛) · -π))
6254, 16, 61syl2anc 586 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → (-(2 · 𝑛) · π) = ((2 · 𝑛) · -π))
6362eqcomd 2827 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → ((2 · 𝑛) · -π) = (-(2 · 𝑛) · π))
6415, 19mulneg2d 11094 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ℂ → (2 · -𝑛) = -(2 · 𝑛))
6515, 8mulcomd 10662 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ℂ → (2 · -𝑛) = (-𝑛 · 2))
6664, 65eqtr3d 2858 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → -(2 · 𝑛) = (-𝑛 · 2))
6766oveq1d 7171 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → (-(2 · 𝑛) · π) = ((-𝑛 · 2) · π))
6863, 67, 173eqtrd 2860 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → ((2 · 𝑛) · -π) = (-𝑛 · (2 · π)))
6957mulid2d 10659 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (1 · -π) = -π)
7068, 69oveq12d 7174 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (((2 · 𝑛) · -π) + (1 · -π)) = ((-𝑛 · (2 · π)) + -π))
7113, 57addcomd 10842 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → ((-𝑛 · (2 · π)) + -π) = (-π + (-𝑛 · (2 · π))))
7270, 71eqtrd 2856 . . . . . . . . . . 11 (𝑛 ∈ ℂ → (((2 · 𝑛) · -π) + (1 · -π)) = (-π + (-𝑛 · (2 · π))))
737, 72syl 17 . . . . . . . . . 10 (𝑛 ∈ ℤ → (((2 · 𝑛) · -π) + (1 · -π)) = (-π + (-𝑛 · (2 · π))))
7473adantr 483 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (((2 · 𝑛) · -π) + (1 · -π)) = (-π + (-𝑛 · (2 · π))))
7553, 60, 743eqtrd 2860 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · -π) = (-π + (-𝑛 · (2 · π))))
76753adant1 1126 . . . . . . 7 ((𝐾 ∈ ℤ ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · -π) = (-π + (-𝑛 · (2 · π))))
7776fveq2d 6674 . . . . . 6 ((𝐾 ∈ ℤ ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(-π + (-𝑛 · (2 · π)))))
78773adant1r 1173 . . . . 5 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(-π + (-𝑛 · (2 · π)))))
79 cosper 25068 . . . . . . 7 ((-π ∈ ℂ ∧ -𝑛 ∈ ℤ) → (cos‘(-π + (-𝑛 · (2 · π)))) = (cos‘-π))
8056, 36, 79sylancr 589 . . . . . 6 (𝑛 ∈ ℤ → (cos‘(-π + (-𝑛 · (2 · π)))) = (cos‘-π))
81803ad2ant2 1130 . . . . 5 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(-π + (-𝑛 · (2 · π)))) = (cos‘-π))
82 iffalse 4476 . . . . . . . 8 (¬ 2 ∥ 𝐾 → if(2 ∥ 𝐾, 1, -1) = -1)
83 cosnegpi 42168 . . . . . . . 8 (cos‘-π) = -1
8482, 83syl6reqr 2875 . . . . . . 7 (¬ 2 ∥ 𝐾 → (cos‘-π) = if(2 ∥ 𝐾, 1, -1))
8584adantl 484 . . . . . 6 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (cos‘-π) = if(2 ∥ 𝐾, 1, -1))
86853ad2ant1 1129 . . . . 5 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘-π) = if(2 ∥ 𝐾, 1, -1))
8778, 81, 863eqtrd 2860 . . . 4 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
8887rexlimdv3a 3286 . . 3 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1)))
8950, 88mpd 15 . 2 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
9048, 89pm2.61dan 811 1 (𝐾 ∈ ℤ → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  w3a 1083   = wceq 1537  wcel 2114  wrex 3139  ifcif 4467   class class class wbr 5066  cfv 6355  (class class class)co 7156  cc 10535  0cc0 10537  1c1 10538   + caddc 10540   · cmul 10542  -cneg 10871  2c2 11693  cz 11982  cosccos 15418  πcpi 15420  cdvds 15607
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-rep 5190  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461  ax-inf2 9104  ax-cnex 10593  ax-resscn 10594  ax-1cn 10595  ax-icn 10596  ax-addcl 10597  ax-addrcl 10598  ax-mulcl 10599  ax-mulrcl 10600  ax-mulcom 10601  ax-addass 10602  ax-mulass 10603  ax-distr 10604  ax-i2m1 10605  ax-1ne0 10606  ax-1rid 10607  ax-rnegex 10608  ax-rrecex 10609  ax-cnre 10610  ax-pre-lttri 10611  ax-pre-lttrn 10612  ax-pre-ltadd 10613  ax-pre-mulgt0 10614  ax-pre-sup 10615  ax-addf 10616  ax-mulf 10617
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-fal 1550  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-tp 4572  df-op 4574  df-uni 4839  df-int 4877  df-iun 4921  df-iin 4922  df-br 5067  df-opab 5129  df-mpt 5147  df-tr 5173  df-id 5460  df-eprel 5465  df-po 5474  df-so 5475  df-fr 5514  df-se 5515  df-we 5516  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-pred 6148  df-ord 6194  df-on 6195  df-lim 6196  df-suc 6197  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363  df-isom 6364  df-riota 7114  df-ov 7159  df-oprab 7160  df-mpo 7161  df-of 7409  df-om 7581  df-1st 7689  df-2nd 7690  df-supp 7831  df-wrecs 7947  df-recs 8008  df-rdg 8046  df-1o 8102  df-2o 8103  df-oadd 8106  df-er 8289  df-map 8408  df-pm 8409  df-ixp 8462  df-en 8510  df-dom 8511  df-sdom 8512  df-fin 8513  df-fsupp 8834  df-fi 8875  df-sup 8906  df-inf 8907  df-oi 8974  df-card 9368  df-pnf 10677  df-mnf 10678  df-xr 10679  df-ltxr 10680  df-le 10681  df-sub 10872  df-neg 10873  df-div 11298  df-nn 11639  df-2 11701  df-3 11702  df-4 11703  df-5 11704  df-6 11705  df-7 11706  df-8 11707  df-9 11708  df-n0 11899  df-z 11983  df-dec 12100  df-uz 12245  df-q 12350  df-rp 12391  df-xneg 12508  df-xadd 12509  df-xmul 12510  df-ioo 12743  df-ioc 12744  df-ico 12745  df-icc 12746  df-fz 12894  df-fzo 13035  df-fl 13163  df-seq 13371  df-exp 13431  df-fac 13635  df-bc 13664  df-hash 13692  df-shft 14426  df-cj 14458  df-re 14459  df-im 14460  df-sqrt 14594  df-abs 14595  df-limsup 14828  df-clim 14845  df-rlim 14846  df-sum 15043  df-ef 15421  df-sin 15423  df-cos 15424  df-pi 15426  df-dvds 15608  df-struct 16485  df-ndx 16486  df-slot 16487  df-base 16489  df-sets 16490  df-ress 16491  df-plusg 16578  df-mulr 16579  df-starv 16580  df-sca 16581  df-vsca 16582  df-ip 16583  df-tset 16584  df-ple 16585  df-ds 16587  df-unif 16588  df-hom 16589  df-cco 16590  df-rest 16696  df-topn 16697  df-0g 16715  df-gsum 16716  df-topgen 16717  df-pt 16718  df-prds 16721  df-xrs 16775  df-qtop 16780  df-imas 16781  df-xps 16783  df-mre 16857  df-mrc 16858  df-acs 16860  df-mgm 17852  df-sgrp 17901  df-mnd 17912  df-submnd 17957  df-mulg 18225  df-cntz 18447  df-cmn 18908  df-psmet 20537  df-xmet 20538  df-met 20539  df-bl 20540  df-mopn 20541  df-fbas 20542  df-fg 20543  df-cnfld 20546  df-top 21502  df-topon 21519  df-topsp 21541  df-bases 21554  df-cld 21627  df-ntr 21628  df-cls 21629  df-nei 21706  df-lp 21744  df-perf 21745  df-cn 21835  df-cnp 21836  df-haus 21923  df-tx 22170  df-hmeo 22363  df-fil 22454  df-fm 22546  df-flim 22547  df-flf 22548  df-xms 22930  df-ms 22931  df-tms 22932  df-cncf 23486  df-limc 24464  df-dv 24465
This theorem is referenced by:  sqwvfourb  42534
  Copyright terms: Public domain W3C validator