@@ -41,7 +41,7 @@ theorem cos_eq_zero_iff {θ : ℂ} : cos θ = 0 ↔ ∃ k : ℤ, θ = (2 * k + 1
4141 ring
4242
4343theorem cos_ne_zero_iff {θ : ℂ} : cos θ ≠ 0 ↔ ∀ k : ℤ, θ ≠ (2 * k + 1 ) * π / 2 := by
44- rw [← not_exists, not_iff_not, cos_eq_zero_iff]
44+ contrapose!; exact cos_eq_zero_iff
4545
4646theorem sin_eq_zero_iff {θ : ℂ} : sin θ = 0 ↔ ∃ k : ℤ, θ = k * π := by
4747 rw [← Complex.cos_sub_pi_div_two, cos_eq_zero_iff]
@@ -56,7 +56,7 @@ theorem sin_eq_zero_iff {θ : ℂ} : sin θ = 0 ↔ ∃ k : ℤ, θ = k * π :=
5656 ring
5757
5858theorem sin_ne_zero_iff {θ : ℂ} : sin θ ≠ 0 ↔ ∀ k : ℤ, θ ≠ k * π := by
59- rw [← not_exists, not_iff_not, sin_eq_zero_iff]
59+ contrapose!; exact sin_eq_zero_iff
6060
6161/-- The tangent of a complex number is equal to zero
6262iff this number is equal to `k * π / 2` for an integer `k`.
@@ -69,7 +69,7 @@ theorem tan_eq_zero_iff {θ : ℂ} : tan θ = 0 ↔ ∃ k : ℤ, k * π / 2 = θ
6969 simp [field, mul_comm, eq_comm]
7070
7171theorem tan_ne_zero_iff {θ : ℂ} : tan θ ≠ 0 ↔ ∀ k : ℤ, (k * π / 2 : ℂ) ≠ θ := by
72- rw [← not_exists, not_iff_not, tan_eq_zero_iff]
72+ contrapose!; exact tan_eq_zero_iff
7373
7474theorem tan_int_mul_pi_div_two (n : ℤ) : tan (n * π / 2 ) = 0 :=
7575 tan_eq_zero_iff.mpr (by use n)
0 commit comments