@@ -186,7 +186,7 @@ theorem isRoot_of_isRoot_of_dvd_derivative_mul [CharZero R] {f g : R[X]} (hf0 :
186186 (hfd : f ∣ f.derivative * g) {a : R} (haf : f.IsRoot a) : g.IsRoot a := by
187187 rcases hfd with ⟨r, hr⟩
188188 have hdf0 : derivative f ≠ 0 := by
189- contrapose! haf
189+ contrapose haf
190190 rw [eq_C_of_derivative_eq_zero haf] at hf0 ⊢
191191 exact not_isRoot_C _ _ <| C_ne_zero.mp hf0
192192 by_contra hg
@@ -423,13 +423,13 @@ lemma natDegree_mod_lt [Field k] (p : k[X]) {q : k[X]} (hq : q.natDegree ≠ 0)
423423 (p % q).natDegree < q.natDegree := by
424424 have hq' : q.leadingCoeff ≠ 0 := by
425425 rw [leadingCoeff_ne_zero]
426- contrapose! hq
426+ contrapose hq
427427 simp [hq]
428428 rw [mod_def]
429429 refine (natDegree_modByMonic_lt p ?_ ?_).trans_le ?_
430430 · refine monic_mul_C_of_leadingCoeff_mul_eq_one ?_
431431 rw [mul_inv_eq_one₀ hq']
432- · contrapose! hq
432+ · contrapose hq
433433 rw [← natDegree_mul_C_eq_of_mul_eq_one ((inv_mul_eq_one₀ hq').mpr rfl)]
434434 simp [hq]
435435 · exact natDegree_mul_C_le q q.leadingCoeff⁻¹
@@ -654,7 +654,7 @@ theorem isCoprime_of_is_root_of_eval_derivative_ne_zero {K : Type*} [Field K] (f
654654 refine Or.resolve_left
655655 (EuclideanDomain.dvd_or_coprime (X - C a) (f /ₘ (X - C a))
656656 (irreducible_of_degree_eq_one (Polynomial.degree_X_sub_C a))) ?_
657- contrapose! hf' with h
657+ contrapose hf' with h
658658 have : X - C a ∣ derivative f := X_sub_C_dvd_derivative_of_X_sub_C_dvd_divByMonic f h
659659 rw [← modByMonic_eq_zero_iff_dvd (monic_X_sub_C _), modByMonic_X_sub_C_eq_C_eval] at this
660660 rwa [← C_inj, C_0]
@@ -669,7 +669,7 @@ theorem irreducible_iff_degree_lt (p : R[X]) (hp0 : p ≠ 0) (hpu : ¬ IsUnit p)
669669 rw [← irreducible_mul_leadingCoeff_inv,
670670 (monic_mul_leadingCoeff_inv hp0).irreducible_iff_degree_lt]
671671 · simp [hp0, natDegree_mul_leadingCoeff_inv]
672- · contrapose! hpu
672+ · contrapose hpu
673673 exact .of_mul_eq_one _ hpu
674674
675675/-- To check a polynomial `p` over a field is irreducible, it suffices to check there are no
@@ -680,7 +680,7 @@ See also: `Polynomial.Monic.irreducible_iff_natDegree'`.
680680theorem irreducible_iff_lt_natDegree_lt {p : R[X]} (hp0 : p ≠ 0 ) (hpu : ¬ IsUnit p) :
681681 Irreducible p ↔ ∀ q, Monic q → natDegree q ∈ Finset.Ioc 0 (natDegree p / 2 ) → ¬ q ∣ p := by
682682 have : p * C (leadingCoeff p)⁻¹ ≠ 1 := by
683- contrapose! hpu
683+ contrapose hpu
684684 exact .of_mul_eq_one _ hpu
685685 rw [← irreducible_mul_leadingCoeff_inv,
686686 (monic_mul_leadingCoeff_inv hp0).irreducible_iff_lt_natDegree_lt this,
0 commit comments