Skip to content

Commit 8c0c6d4

Browse files
committed
More fixes
1 parent 21e9731 commit 8c0c6d4

File tree

81 files changed

+105
-105
lines changed

Some content is hidden

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

81 files changed

+105
-105
lines changed

Mathlib/Algebra/Algebra/Spectrum/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ lemma spectrum.units_conjugate {a : A} {u : Aˣ} :
440440
simp [mul_assoc]
441441
intro a u μ hμ
442442
rw [spectrum.mem_iff] at hμ ⊢
443-
contrapose!
443+
contrapose hμ
444444
simpa [mul_sub, sub_mul, Algebra.right_comm] using u.isUnit.mul hμ |>.mul u⁻¹.isUnit
445445

446446
/-- Conjugation by a unit preserves the spectrum, inverse on left. -/

Mathlib/Algebra/GCDMonoid/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ noncomputable def gcdMonoidOfGCD [DecidableEq α] (gcd : α → α → α)
10131013
· rfl
10141014
have h := (Classical.choose_spec ((gcd_dvd_left a 0).trans (Dvd.intro 0 rfl))).symm
10151015
have a0' : gcd a 00 := by
1016-
contrapose! a0
1016+
contrapose a0
10171017
rw [← associated_zero_iff_eq_zero, ← a0]
10181018
exact associated_of_dvd_dvd (dvd_gcd (dvd_refl a) (dvd_zero a)) (gcd_dvd_left _ _)
10191019
apply Or.resolve_left (mul_eq_zero.1 _) a0'
@@ -1051,7 +1051,7 @@ noncomputable def normalizedGCDMonoidOfGCD [NormalizationMonoid α] [DecidableEq
10511051
· rw [hl, zero_mul]
10521052
have h1 : gcd a b ≠ 0 := by
10531053
have hab : a * b ≠ 0 := mul_ne_zero a0 hb
1054-
contrapose! hab
1054+
contrapose hab
10551055
rw [← normalize_eq_zero, ← this, hab, zero_mul]
10561056
have h2 : normalize (gcd a b * l) = gcd a b * l := by rw [this, normalize_idem]
10571057
rw [← normalize_gcd] at this

Mathlib/Algebra/Group/Irreducible/Indecomposable.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ lemma Submonoid.closure_image_isMulIndecomposable_baseOf [Finite ι]
102102
have ⟨(hi₀ : 1 < f (v i)), (hi₁ : v i ∉ _)⟩ : i ∈ s := hi.prop
103103
have hi₂ (k : ι) (hk₀ : 1 < f (v k)) (hk₁ : f (v k) < f (v i)) : v k ∈ closure (v '' t) := by
104104
by_contra hk₂; exact not_le.mpr hk₁ <| hi.le_of_le ⟨hk₀, hk₂⟩ hk₁.le
105-
have hi₃ : i ∉ t := by contrapose! hi₁; exact subset_closure <| mem_image_of_mem v hi₁
105+
have hi₃ : i ∉ t := by contrapose hi₁; exact subset_closure <| mem_image_of_mem v hi₁
106106
obtain ⟨j, k, hj, hk, hjk⟩ : ∃ (j k : ι) (hj : 1 < f (v j)) (hk : 1 < f (v k)),
107107
v i = v j * v k := by
108108
grind [IsMulIndecomposable]

Mathlib/Algebra/Group/UniqueProds/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ theorem of_mulOpposite (h : TwoUniqueProds Gᵐᵒᵖ) : TwoUniqueProds G where
560560
simp_rw [mem_product] at h1 h2 ⊢
561561
refine ⟨(_, _), ⟨?_, ?_⟩, (_, _), ⟨?_, ?_⟩, ?_, hu1.of_mulOpposite, hu2.of_mulOpposite⟩
562562
pick_goal 5
563-
· contrapose! hne; rw [Prod.ext_iff] at hne ⊢
563+
· contrapose hne; rw [Prod.ext_iff] at hne ⊢
564564
exact ⟨unop_injective hne.2, unop_injective hne.1
565565
all_goals apply (mem_map' f).mp
566566
exacts [h1.2, h1.1, h2.2, h2.1]

Mathlib/Algebra/GroupWithZero/Associated.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ theorem Associated.of_pow_associated_of_prime' [CommMonoidWithZero M] [IsCancelM
338338
lemma Irreducible.isRelPrime_iff_not_dvd [Monoid M] {p n : M} (hp : Irreducible p) :
339339
IsRelPrime p n ↔ ¬ p ∣ n := by
340340
refine ⟨fun h contra ↦ hp.not_isUnit (h dvd_rfl contra), fun hpn d hdp hdn ↦ ?_⟩
341-
contrapose! hpn
341+
contrapose hpn
342342
suffices Associated p d from this.dvd.trans hdn
343343
exact (hp.dvd_iff.mp hdp).resolve_left hpn
344344

@@ -669,7 +669,7 @@ theorem dvdNotUnit_of_lt {a b : Associates M} (hlt : a < b) : DvdNotUnit a b :=
669669
apply dvd_zero
670670
rcases hlt with ⟨⟨x, rfl⟩, ndvd⟩
671671
refine ⟨x, ?_, rfl⟩
672-
contrapose! ndvd
672+
contrapose ndvd
673673
rcases ndvd with ⟨u, rfl⟩
674674
simp
675675

Mathlib/Algebra/Lie/Semisimple/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ instance : LieModule.IsIrreducible R L L := by
8686
suffices Nontrivial (LieIdeal R L) from ⟨IsSimple.eq_bot_or_eq_top⟩
8787
rw [LieSubmodule.nontrivial_iff, ← not_subsingleton_iff_nontrivial]
8888
have _i : ¬ IsLieAbelian L := IsSimple.non_abelian R
89-
contrapose! _i
89+
contrapose _i
9090
infer_instance
9191

9292
protected lemma isAtom_top : IsAtom (⊤ : LieIdeal R L) := isAtom_top
@@ -185,7 +185,7 @@ lemma isSimple_of_isAtom (I : LieIdeal R L) (hI : IsAtom I) : IsSimple R I where
185185
exact x.2
186186
-- So we need to show `J ≠ I` as ideals of `L`.
187187
-- This follows from our assumption that `J ≠ ⊤` as ideals of `I`.
188-
contrapose! hJ
188+
contrapose hJ
189189
rw [eq_top_iff]
190190
rintro ⟨x, hx⟩ -
191191
rw [← hJ] at hx
@@ -260,7 +260,7 @@ lemma finitelyAtomistic : ∀ s : Finset (LieIdeal R L), ↑s ⊆ {I : LieIdeal
260260
exact LieSubmodule.lie_mem_lie j.2 hx
261261
-- Indeed `J ⊓ I = ⊥`, since `J` is an atom that is not contained in `I`.
262262
apply ((hs hJs).le_iff.mp _).resolve_right
263-
· contrapose! hJI
263+
· contrapose hJI
264264
rw [← hJI]
265265
exact inf_le_right
266266
exact inf_le_left

Mathlib/Algebra/Lie/Sl2.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ lemma lie_lie_smul_f (t : IsSl2Triple h e f) : ⁅h, f⁆ = -((2 : R) • f) :=
6565

6666
lemma e_ne_zero (t : IsSl2Triple h e f) : e ≠ 0 := by
6767
have := t.h_ne_zero
68-
contrapose! this
68+
contrapose this
6969
simpa [this] using t.lie_e_f.symm
7070

7171
lemma f_ne_zero (t : IsSl2Triple h e f) : f ≠ 0 := by
7272
have := t.h_ne_zero
73-
contrapose! this
73+
contrapose this
7474
simpa [this] using t.lie_e_f.symm
7575

7676
variable {R}

Mathlib/Algebra/MvPolynomial/Eval.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ theorem constantCoeff_comp_map (f : R →+* S₁) :
456456
theorem support_map_subset (p : MvPolynomial σ R) : (map f p).support ⊆ p.support := by
457457
simp only [Finset.subset_iff, mem_support_iff]
458458
intro x hx
459-
contrapose! hx
459+
contrapose hx
460460
rw [coeff_map, hx, map_zero]
461461

462462
theorem support_map_of_injective (p : MvPolynomial σ R) {f : R →+* S₁} (hf : Injective f) :
@@ -465,7 +465,7 @@ theorem support_map_of_injective (p : MvPolynomial σ R) {f : R →+* S₁} (hf
465465
· exact MvPolynomial.support_map_subset _ _
466466
simp only [Finset.subset_iff, mem_support_iff]
467467
intro x hx
468-
contrapose! hx
468+
contrapose hx
469469
rw [coeff_map, ← f.map_zero] at hx
470470
exact hf hx
471471

Mathlib/Algebra/MvPolynomial/NoZeroDivisors.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ theorem degreeOf_C_mul (j : σ) (c : R) (hc : c ∈ R⁰) : degreeOf j (C c * p)
124124
exact hp (rename_injective _ (Equiv.injective _) (by simpa using h))
125125
simp_rw [ne_eq, renameEquiv_apply, algHom_C, algebraMap_eq, optionEquivLeft_C,
126126
Polynomial.leadingCoeff_C]
127-
contrapose! hp'
127+
contrapose hp'
128128
ext m
129129
apply hc.1
130130
simpa using congr_arg (coeff m) hp'

Mathlib/Algebra/Polynomial/Coeff.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ theorem support_smul [SMulZeroClass S R] (r : S) (p : R[X]) :
5353
support (r • p) ⊆ support p := by
5454
intro i hi
5555
rw [mem_support_iff] at hi ⊢
56-
contrapose! hi
56+
contrapose hi
5757
simp [hi]
5858

5959
open scoped Pointwise in

0 commit comments

Comments
 (0)