Skip to content

Commit 21e9731

Browse files
committed
Fix more
1 parent 019179b commit 21e9731

89 files changed

Lines changed: 126 additions & 126 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Mathlib/Algebra/Module/Submodule/Union.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ lemma Submodule.iUnion_ssubset_of_forall_ne_top_of_card_lt (s : Finset ι) (p :
4343
· simpa using h₁ j
4444
replace h₂ : s.card + 1 < ENat.card K := by simpa [Finset.card_insert_of_notMem hj] using h₂
4545
specialize hj' (lt_trans ENat.natCast_lt_succ h₂)
46-
contrapose! hj'
46+
contrapose hj'
4747
replace hj' : (p j : Set M) ∪ (⋃ i ∈ s, p i) = univ := by
4848
simpa only [Finset.mem_insert, iUnion_iUnion_eq_or_left] using hj'
4949
suffices (p j : Set M) ⊆ ⋃ i ∈ s, p i by rwa [union_eq_right.mpr this] at hj'

Mathlib/Algebra/Module/ZLattice/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ theorem ZLattice.rank [hs : IsZLattice K L] : finrank ℤ L = finrank K E := by
568568
rwa [h_card, ← topEquiv.finrank_eq, ← h_spanE, ← ht_span, finrank_span_set_eq_card ht_lin]
569569
-- Assume that `e ∪ {v}` is not `ℤ`-linear independent then we get the contradiction
570570
suffices ¬ LinearIndepOn ℤ id (insert v (Set.range e)) by
571-
contrapose! this
571+
contrapose this
572572
refine this.mono ?_
573573
exact Set.insert_subset (Set.mem_of_mem_diff hv) (by simp [e, ht_inc])
574574
-- We prove finally that `e ∪ {v}` is not ℤ-linear independent or, equivalently,

Mathlib/Algebra/Order/Archimedean/Hom.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ instance OrderRingHom.subsingleton [IsStrictOrderedRing β] [Archimedean β] :
2828
Subsingleton (α →+*o β) :=
2929
fun f g => by
3030
ext x
31-
by_contra! h' : f x ≠ g x
31+
by_contra h' : f x ≠ g x
3232
wlog h : f x < g x with h₂
3333
· exact h₂ g f x (Ne.symm h') (h'.lt_or_gt.resolve_left h)
3434
obtain ⟨q, hf, hg⟩ := exists_rat_btwn h

Mathlib/Algebra/Order/Module/HahnEmbedding.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ theorem eval_smul [IsOrderedAddMonoid R] [Archimedean R] (k : K) (x : M) :
609609
exact Submodule.smul_mem _ _ hy
610610
simp [f.evalCoeff_eq hy, f.evalCoeff_eq hy', LinearPMap.map_smul]
611611
have h' : ¬∃ y : f.val.domain, y.val - k • x ∈ ball K c := by
612-
contrapose! h
612+
contrapose h
613613
obtain ⟨y, hy⟩ := h
614614
use k⁻¹ • y
615615
have heq : (k⁻¹ • y).val - x = k⁻¹ • (y.val - k • x) := by
@@ -644,7 +644,7 @@ theorem archimedeanClassMk_le_of_eval_eq [IsOrderedAddMonoid R] [Archimedean R]
644644

645645
set_option backward.isDefEq.respectTransparency false in
646646
theorem val_sub_ne_zero {x : M} (hx : x ∉ f.val.domain) (y : f.val.domain) : y.val - x ≠ 0 := by
647-
contrapose! hx
647+
contrapose hx
648648
obtain rfl : x = y.val := (sub_eq_zero.mp hx).symm
649649
simp
650650

@@ -781,7 +781,7 @@ set_option backward.isDefEq.respectTransparency false in
781781
theorem extendFun_strictMono [IsOrderedAddMonoid R] [Archimedean R] {x : M}
782782
(hx : x ∉ f.val.domain) : StrictMono (f.extendFun hx) := by
783783
have hx' {c : K} (hc : c ≠ 0) : -c • x ∉ f.val.domain := by
784-
contrapose! hx
784+
contrapose hx
785785
rwa [neg_smul, neg_mem_iff, Submodule.smul_mem_iff _ hc] at hx
786786
-- only need to prove `0 < f v` for `0 < v = z - y`
787787
intro y z hyz
@@ -848,7 +848,7 @@ theorem truncLT_eval_mem_range_extendFun [IsOrderedAddMonoid R] [Archimedean R]
848848
· rw [HahnSeries.coe_truncLTLinearMap, HahnSeries.coeff_truncLT_of_lt hdc]
849849
rw [HahnSeries.coe_truncLTLinearMap, HahnSeries.coeff_truncLT_of_le hdc, eval, ofLex_toLex]
850850
apply f.evalCoeff_eq_zero
851-
contrapose! h
851+
contrapose h
852852
obtain ⟨y, hy⟩ := h
853853
exact ⟨y, Set.mem_of_mem_of_subset hy (by simpa using (ball_strictAnti K).antitone hdc)⟩
854854

Mathlib/Algebra/Polynomial/CancelLeads.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ theorem natDegree_cancelLeads_lt_of_natDegree_le_natDegree_of_comm
6262
apply lt_of_le_of_ne
6363
· compute_degree!
6464
rwa [Nat.sub_add_cancel]
65-
· contrapose! h0
65+
· contrapose h0
6666
rw [← leadingCoeff_eq_zero, leadingCoeff, h0, mul_assoc, X_pow_mul, ← tsub_add_cancel_of_le h,
6767
add_comm _ p.natDegree]
6868
simp only [coeff_mul_X_pow, coeff_neg, coeff_C_mul, add_tsub_cancel_left, coeff_add]

Mathlib/Algebra/Polynomial/FieldDivision.lean

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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'`.
680680
theorem 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,

Mathlib/Algebra/Polynomial/OfFn.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ theorem ofFn_zero (n : ℕ) : ofFn n (0 : Fin n → R) = 0 := by simp
6060
theorem ofFn_zero' (v : Fin 0 → R) : ofFn 0 v = 0 := rfl
6161

6262
lemma ne_zero_of_ofFn_ne_zero {n : ℕ} {v : Fin n → R} (h : ofFn n v ≠ 0) : n ≠ 0 := by
63-
contrapose! h
63+
contrapose h
6464
subst h
6565
simp
6666

Mathlib/Algebra/Tropical/Lattice.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ instance [ConditionallyCompleteLinearOrder R] : ConditionallyCompleteLinearOrder
6868
have : Set.range untrop = (Set.univ : Set R) := Equiv.range_eq_univ tropEquiv.symm
6969
simp only [sSup, Set.image_empty, trop_inj_iff]
7070
apply csSup_of_not_bddAbove
71-
contrapose! hs
71+
contrapose hs
7272
change BddAbove (tropOrderIso.symm '' s) at hs
7373
exact tropOrderIso.symm.bddAbove_image.1 hs
7474
csInf_of_not_bddBelow := by
7575
intro s hs
7676
have : Set.range untrop = (Set.univ : Set R) := Equiv.range_eq_univ tropEquiv.symm
7777
simp only [sInf, Set.image_empty, trop_inj_iff]
7878
apply csInf_of_not_bddBelow
79-
contrapose! hs
79+
contrapose hs
8080
change BddBelow (tropOrderIso.symm '' s) at hs
8181
exact tropOrderIso.symm.bddBelow_image.1 hs }

Mathlib/AlgebraicGeometry/EllipticCurve/Jacobian/Formula.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ lemma Y_ne_negY_of_Y_ne [NoZeroDivisors R] {P Q : Fin 3 → R} (hP : W'.Equation
139139
P y ≠ W'.negY P := by
140140
have hy' : P y * Q z ^ 3 - W'.negY Q * P z ^ 3 = 0 :=
141141
(mul_eq_zero.mp <| Y_sub_Y_mul_Y_sub_negY hP hQ hx).resolve_left <| sub_ne_zero_of_ne hy
142-
contrapose! hy
142+
contrapose hy
143143
linear_combination (norm := ring1) Y_sub_Y_add_Y_sub_negY hx + Q z ^ 3 * hy - hy'
144144

145145
lemma Y_ne_negY_of_Y_ne' [NoZeroDivisors R] {P Q : Fin 3 → R} (hP : W'.Equation P)
146146
(hQ : W'.Equation Q) (hx : P x * Q z ^ 2 = Q x * P z ^ 2)
147147
(hy : P y * Q z ^ 3 ≠ W'.negY Q * P z ^ 3) : P y ≠ W'.negY P := by
148148
have hy' : P y * Q z ^ 3 - Q y * P z ^ 3 = 0 :=
149149
(mul_eq_zero.mp <| Y_sub_Y_mul_Y_sub_negY hP hQ hx).resolve_right <| sub_ne_zero_of_ne hy
150-
contrapose! hy
150+
contrapose hy
151151
linear_combination (norm := ring1) Y_sub_Y_add_Y_sub_negY hx + Q z ^ 3 * hy - hy'
152152

153153
lemma Y_eq_negY_of_Y_eq [NoZeroDivisors R] {P Q : Fin 3 → R} (hQz : Q z ≠ 0)

Mathlib/AlgebraicGeometry/EllipticCurve/Projective/Formula.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ lemma Y_ne_negY_of_Y_ne [NoZeroDivisors R] {P Q : Fin 3 → R} (hP : W'.Equation
137137
(hQ : W'.Equation Q) (hPz : P z ≠ 0) (hQz : Q z ≠ 0) (hx : P x * Q z = Q x * P z)
138138
(hy : P y * Q z ≠ Q y * P z) : P y ≠ W'.negY P := by
139139
have hy' : P y * Q z - W'.negY Q * P z = 0 := sub_eq_zero.mpr <| Y_eq_of_Y_ne hP hQ hPz hQz hx hy
140-
contrapose! hy
140+
contrapose hy
141141
linear_combination (norm := ring1) Y_sub_Y_add_Y_sub_negY hx + Q z * hy - hy'
142142

143143
lemma Y_ne_negY_of_Y_ne' [NoZeroDivisors R] {P Q : Fin 3 → R} (hP : W'.Equation P)
144144
(hQ : W'.Equation Q) (hPz : P z ≠ 0) (hQz : Q z ≠ 0) (hx : P x * Q z = Q x * P z)
145145
(hy : P y * Q z ≠ W'.negY Q * P z) : P y ≠ W'.negY P := by
146146
have hy' : P y * Q z - Q y * P z = 0 := sub_eq_zero.mpr <| Y_eq_of_Y_ne' hP hQ hPz hQz hx hy
147-
contrapose! hy
147+
contrapose hy
148148
linear_combination (norm := ring1) Y_sub_Y_add_Y_sub_negY hx + Q z * hy - hy'
149149

150150
lemma Y_eq_negY_of_Y_eq [NoZeroDivisors R] {P Q : Fin 3 → R} (hQz : Q z ≠ 0)

0 commit comments

Comments
 (0)