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 44100
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 485 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → 2 ∥ 𝐾)
2 2z 12535 . . . . 5 2 ∈ ℤ
3 simpl 483 . . . . 5 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → 𝐾 ∈ ℤ)
4 divides 16138 . . . . 5 ((2 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾))
52, 3, 4sylancr 587 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾))
61, 5mpbid 231 . . 3 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → ∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾)
7 zcn 12504 . . . . . . . . . . . 12 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
8 negcl 11401 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → -𝑛 ∈ ℂ)
9 2cn 12228 . . . . . . . . . . . . . . . . 17 2 ∈ ℂ
10 picn 25816 . . . . . . . . . . . . . . . . 17 π ∈ ℂ
119, 10mulcli 11162 . . . . . . . . . . . . . . . 16 (2 · π) ∈ ℂ
1211a1i 11 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → (2 · π) ∈ ℂ)
138, 12mulcld 11175 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → (-𝑛 · (2 · π)) ∈ ℂ)
1413addid2d 11356 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (0 + (-𝑛 · (2 · π))) = (-𝑛 · (2 · π)))
15 2cnd 12231 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → 2 ∈ ℂ)
1610a1i 11 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → π ∈ ℂ)
178, 15, 16mulassd 11178 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → ((-𝑛 · 2) · π) = (-𝑛 · (2 · π)))
1817eqcomd 2742 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (-𝑛 · (2 · π)) = ((-𝑛 · 2) · π))
19 id 22 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → 𝑛 ∈ ℂ)
2019, 15mulneg1d 11608 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → (-𝑛 · 2) = -(𝑛 · 2))
2120oveq1d 7372 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → ((-𝑛 · 2) · π) = (-(𝑛 · 2) · π))
2214, 18, 213eqtrd 2780 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (0 + (-𝑛 · (2 · π))) = (-(𝑛 · 2) · π))
237, 22syl 17 . . . . . . . . . . 11 (𝑛 ∈ ℤ → (0 + (-𝑛 · (2 · π))) = (-(𝑛 · 2) · π))
2423adantr 481 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (0 + (-𝑛 · (2 · π))) = (-(𝑛 · 2) · π))
2519, 15mulcld 11175 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (𝑛 · 2) ∈ ℂ)
26 mulneg12 11593 . . . . . . . . . . . . 13 (((𝑛 · 2) ∈ ℂ ∧ π ∈ ℂ) → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
2725, 16, 26syl2anc 584 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
287, 27syl 17 . . . . . . . . . . 11 (𝑛 ∈ ℤ → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
2928adantr 481 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (-(𝑛 · 2) · π) = ((𝑛 · 2) · -π))
30 oveq1 7364 . . . . . . . . . . 11 ((𝑛 · 2) = 𝐾 → ((𝑛 · 2) · -π) = (𝐾 · -π))
3130adantl 482 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → ((𝑛 · 2) · -π) = (𝐾 · -π))
3224, 29, 313eqtrrd 2781 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (𝐾 · -π) = (0 + (-𝑛 · (2 · π))))
3332fveq2d 6846 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(0 + (-𝑛 · (2 · π)))))
34333adant1 1130 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(0 + (-𝑛 · (2 · π)))))
35 0cnd 11148 . . . . . . . . 9 (𝑛 ∈ ℤ → 0 ∈ ℂ)
36 znegcl 12538 . . . . . . . . 9 (𝑛 ∈ ℤ → -𝑛 ∈ ℤ)
37 cosper 25839 . . . . . . . . 9 ((0 ∈ ℂ ∧ -𝑛 ∈ ℤ) → (cos‘(0 + (-𝑛 · (2 · π)))) = (cos‘0))
3835, 36, 37syl2anc 584 . . . . . . . 8 (𝑛 ∈ ℤ → (cos‘(0 + (-𝑛 · (2 · π)))) = (cos‘0))
39383ad2ant2 1134 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(0 + (-𝑛 · (2 · π)))) = (cos‘0))
40 cos0 16032 . . . . . . . . 9 (cos‘0) = 1
41 iftrue 4492 . . . . . . . . 9 (2 ∥ 𝐾 → if(2 ∥ 𝐾, 1, -1) = 1)
4240, 41eqtr4id 2795 . . . . . . . 8 (2 ∥ 𝐾 → (cos‘0) = if(2 ∥ 𝐾, 1, -1))
43423ad2ant1 1133 . . . . . . 7 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘0) = if(2 ∥ 𝐾, 1, -1))
4434, 39, 433eqtrd 2780 . . . . . 6 ((2 ∥ 𝐾𝑛 ∈ ℤ ∧ (𝑛 · 2) = 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
45443exp 1119 . . . . 5 (2 ∥ 𝐾 → (𝑛 ∈ ℤ → ((𝑛 · 2) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))))
4645adantl 482 . . . 4 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (𝑛 ∈ ℤ → ((𝑛 · 2) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))))
4746rexlimdv 3150 . . 3 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (∃𝑛 ∈ ℤ (𝑛 · 2) = 𝐾 → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1)))
486, 47mpd 15 . 2 ((𝐾 ∈ ℤ ∧ 2 ∥ 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
49 odd2np1 16223 . . . 4 (𝐾 ∈ ℤ → (¬ 2 ∥ 𝐾 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾))
5049biimpa 477 . . 3 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝐾)
51 oveq1 7364 . . . . . . . . . . 11 (((2 · 𝑛) + 1) = 𝐾 → (((2 · 𝑛) + 1) · -π) = (𝐾 · -π))
5251eqcomd 2742 . . . . . . . . . 10 (((2 · 𝑛) + 1) = 𝐾 → (𝐾 · -π) = (((2 · 𝑛) + 1) · -π))
5352adantl 482 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · -π) = (((2 · 𝑛) + 1) · -π))
5415, 19mulcld 11175 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (2 · 𝑛) ∈ ℂ)
55 1cnd 11150 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → 1 ∈ ℂ)
56 negpicn 25819 . . . . . . . . . . . . 13 -π ∈ ℂ
5756a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → -π ∈ ℂ)
5854, 55, 57adddird 11180 . . . . . . . . . . 11 (𝑛 ∈ ℂ → (((2 · 𝑛) + 1) · -π) = (((2 · 𝑛) · -π) + (1 · -π)))
597, 58syl 17 . . . . . . . . . 10 (𝑛 ∈ ℤ → (((2 · 𝑛) + 1) · -π) = (((2 · 𝑛) · -π) + (1 · -π)))
6059adantr 481 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (((2 · 𝑛) + 1) · -π) = (((2 · 𝑛) · -π) + (1 · -π)))
61 mulneg12 11593 . . . . . . . . . . . . . . . 16 (((2 · 𝑛) ∈ ℂ ∧ π ∈ ℂ) → (-(2 · 𝑛) · π) = ((2 · 𝑛) · -π))
6254, 16, 61syl2anc 584 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → (-(2 · 𝑛) · π) = ((2 · 𝑛) · -π))
6362eqcomd 2742 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → ((2 · 𝑛) · -π) = (-(2 · 𝑛) · π))
6415, 19mulneg2d 11609 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ℂ → (2 · -𝑛) = -(2 · 𝑛))
6515, 8mulcomd 11176 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ℂ → (2 · -𝑛) = (-𝑛 · 2))
6664, 65eqtr3d 2778 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℂ → -(2 · 𝑛) = (-𝑛 · 2))
6766oveq1d 7372 . . . . . . . . . . . . . 14 (𝑛 ∈ ℂ → (-(2 · 𝑛) · π) = ((-𝑛 · 2) · π))
6863, 67, 173eqtrd 2780 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → ((2 · 𝑛) · -π) = (-𝑛 · (2 · π)))
6957mulid2d 11173 . . . . . . . . . . . . 13 (𝑛 ∈ ℂ → (1 · -π) = -π)
7068, 69oveq12d 7375 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → (((2 · 𝑛) · -π) + (1 · -π)) = ((-𝑛 · (2 · π)) + -π))
7113, 57addcomd 11357 . . . . . . . . . . . 12 (𝑛 ∈ ℂ → ((-𝑛 · (2 · π)) + -π) = (-π + (-𝑛 · (2 · π))))
7270, 71eqtrd 2776 . . . . . . . . . . 11 (𝑛 ∈ ℂ → (((2 · 𝑛) · -π) + (1 · -π)) = (-π + (-𝑛 · (2 · π))))
737, 72syl 17 . . . . . . . . . 10 (𝑛 ∈ ℤ → (((2 · 𝑛) · -π) + (1 · -π)) = (-π + (-𝑛 · (2 · π))))
7473adantr 481 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (((2 · 𝑛) · -π) + (1 · -π)) = (-π + (-𝑛 · (2 · π))))
7553, 60, 743eqtrd 2780 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · -π) = (-π + (-𝑛 · (2 · π))))
76753adant1 1130 . . . . . . 7 ((𝐾 ∈ ℤ ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (𝐾 · -π) = (-π + (-𝑛 · (2 · π))))
7776fveq2d 6846 . . . . . 6 ((𝐾 ∈ ℤ ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(-π + (-𝑛 · (2 · π)))))
78773adant1r 1177 . . . . 5 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · -π)) = (cos‘(-π + (-𝑛 · (2 · π)))))
79 cosper 25839 . . . . . . 7 ((-π ∈ ℂ ∧ -𝑛 ∈ ℤ) → (cos‘(-π + (-𝑛 · (2 · π)))) = (cos‘-π))
8056, 36, 79sylancr 587 . . . . . 6 (𝑛 ∈ ℤ → (cos‘(-π + (-𝑛 · (2 · π)))) = (cos‘-π))
81803ad2ant2 1134 . . . . 5 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(-π + (-𝑛 · (2 · π)))) = (cos‘-π))
82 cosnegpi 44098 . . . . . . . 8 (cos‘-π) = -1
83 iffalse 4495 . . . . . . . 8 (¬ 2 ∥ 𝐾 → if(2 ∥ 𝐾, 1, -1) = -1)
8482, 83eqtr4id 2795 . . . . . . 7 (¬ 2 ∥ 𝐾 → (cos‘-π) = if(2 ∥ 𝐾, 1, -1))
8584adantl 482 . . . . . 6 ((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) → (cos‘-π) = if(2 ∥ 𝐾, 1, -1))
86853ad2ant1 1133 . . . . 5 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘-π) = if(2 ∥ 𝐾, 1, -1))
8778, 81, 863eqtrd 2780 . . . 4 (((𝐾 ∈ ℤ ∧ ¬ 2 ∥ 𝐾) ∧ 𝑛 ∈ ℤ ∧ ((2 · 𝑛) + 1) = 𝐾) → (cos‘(𝐾 · -π)) = if(2 ∥ 𝐾, 1, -1))
8887rexlimdv3a 3156 . . 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 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  0cc0 11051  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