Skip to content

Commit 886b340

Browse files
committed
chore: remove >9 month old deprecations (leanprover-community#20505)
1 parent ea41783 commit 886b340

File tree

125 files changed

+0
-847
lines changed

Some content is hidden

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

125 files changed

+0
-847
lines changed

Mathlib/Algebra/Algebra/Operations.lean

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ theorem smul_mono_left (h : I ≤ J) : I • N ≤ J • N :=
144144
instance : CovariantClass (Submodule R A) (Submodule R M) HSMul.hSMul LE.le :=
145145
fun _ _ => smul_mono le_rfl⟩
146146

147-
@[deprecated smul_mono_right (since := "2024-03-31")]
148-
protected theorem smul_mono_right (h : N ≤ P) : I • N ≤ I • P :=
149-
_root_.smul_mono_right I h
150-
151147
variable (I J N P)
152148

153149
@[simp]
@@ -180,10 +176,6 @@ protected theorem smul_assoc {B} [Semiring B] [Module R B] [Module A B] [Module
180176
(fun j hj n hn ↦ (smul_assoc r j n).symm ▸ smul_mem_smul (smul_mem_smul hr hj) hn)
181177
fun m₁ m₂ ↦ (smul_add r m₁ m₂) ▸ add_mem)
182178

183-
@[deprecated smul_inf_le (since := "2024-03-31")]
184-
protected theorem smul_inf_le (M₁ M₂ : Submodule R M) :
185-
I • (M₁ ⊓ M₂) ≤ I • M₁ ⊓ I • M₂ := smul_inf_le _ _ _
186-
187179
theorem smul_iSup {ι : Sort*} {I : Submodule R A} {t : ι → Submodule R M} :
188180
I • (⨆ i, t i)= ⨆ i, I • t i :=
189181
toAddSubmonoid_injective <| by
@@ -196,11 +188,6 @@ theorem iSup_smul {ι : Sort*} {t : ι → Submodule R A} {N : Submodule R M} :
196188
(by simp_rw [zero_smul]; apply zero_mem) fun x y ↦ by simp_rw [add_smul]; apply add_mem)
197189
(iSup_le fun i ↦ Submodule.smul_mono_left <| le_iSup _ i)
198190

199-
@[deprecated smul_iInf_le (since := "2024-03-31")]
200-
protected theorem smul_iInf_le {ι : Sort*} {I : Submodule R A} {t : ι → Submodule R M} :
201-
I • iInf t ≤ ⨅ i, I • t i :=
202-
smul_iInf_le
203-
204191
protected theorem one_smul : (1 : Submodule R A) • N = N := by
205192
refine le_antisymm (smul_le.mpr fun r hr m hm ↦ ?_) fun m hm ↦ ?_
206193
· obtain ⟨r, rfl⟩ := hr

Mathlib/Algebra/Associated/Basic.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ theorem mk_le_mk_of_dvd {a b : M} : a ∣ b → Associates.mk a ≤ Associates.m
581581

582582
theorem mk_le_mk_iff_dvd {a b : M} : Associates.mk a ≤ Associates.mk b ↔ a ∣ b := mk_dvd_mk
583583

584-
@[deprecated (since := "2024-03-16")] alias mk_le_mk_iff_dvd_iff := mk_le_mk_iff_dvd
585584

586585
@[simp]
587586
theorem isPrimal_mk {a : M} : IsPrimal (Associates.mk a) ↔ IsPrimal a := by
@@ -591,7 +590,6 @@ theorem isPrimal_mk {a : M} : IsPrimal (Associates.mk a) ↔ IsPrimal a := by
591590
exact ⟨a₁, a₂ * u, h₁, Units.mul_right_dvd.mpr h₂, mul_assoc _ _ _⟩
592591
· exact ⟨a₁, a₂, h₁, h₂, congr_arg _ eq⟩
593592

594-
@[deprecated (since := "2024-03-16")] alias isPrimal_iff := isPrimal_mk
595593

596594
@[simp]
597595
theorem decompositionMonoid_iff : DecompositionMonoid (Associates M) ↔ DecompositionMonoid M := by

Mathlib/Algebra/CharP/Reduced.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,3 @@ theorem ExpChar.pow_prime_pow_mul_eq_one_iff (p k m : ℕ) [ExpChar R p] (x : R)
4444
rw [pow_mul']
4545
convert ← (iterateFrobenius_inj R p k).eq_iff
4646
apply map_one
47-
48-
@[deprecated (since := "2024-02-02")]
49-
alias CharP.pow_prime_pow_mul_eq_one_iff := ExpChar.pow_prime_pow_mul_eq_one_iff

Mathlib/Algebra/GCDMonoid/Basic.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,6 @@ theorem lcm_eq_of_associated_right [NormalizedGCDMonoid α] {m n : α} (h : Asso
805805

806806
end LCM
807807

808-
@[deprecated (since := "2024-02-12")] alias GCDMonoid.prime_of_irreducible := Irreducible.prime
809-
@[deprecated (since := "2024-02-12")] alias GCDMonoid.irreducible_iff_prime := irreducible_iff_prime
810-
811808
end GCDMonoid
812809

813810
section UniqueUnit

Mathlib/Algebra/Group/Basic.lean

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -797,14 +797,6 @@ theorem leftInverse_inv_mul_mul_right (c : G) :
797797
@[to_additive (attr := simp) natAbs_nsmul_eq_zero]
798798
lemma pow_natAbs_eq_one : a ^ n.natAbs = 1 ↔ a ^ n = 1 := by cases n <;> simp
799799

800-
set_option linter.existingAttributeWarning false in
801-
@[to_additive, deprecated pow_natAbs_eq_one (since := "2024-02-14")]
802-
lemma exists_pow_eq_one_of_zpow_eq_one (hn : n ≠ 0) (h : a ^ n = 1) :
803-
∃ n : ℕ, 0 < n ∧ a ^ n = 1 := ⟨_, Int.natAbs_pos.2 hn, pow_natAbs_eq_one.2 h⟩
804-
805-
attribute [deprecated natAbs_nsmul_eq_zero (since := "2024-02-14")]
806-
exists_nsmul_eq_zero_of_zsmul_eq_zero
807-
808800
@[to_additive sub_nsmul]
809801
lemma pow_sub (a : G) {m n : ℕ} (h : n ≤ m) : a ^ (m - n) = a ^ m * (a ^ n)⁻¹ :=
810802
eq_mul_inv_of_mul_eq <| by rw [← pow_add, Nat.sub_add_cancel h]
@@ -1041,15 +1033,5 @@ theorem multiplicative_of_isTotal (p : α → Prop) (hswap : ∀ {a b}, p a →
10411033

10421034
end multiplicative
10431035

1044-
@[deprecated (since := "2024-03-20")] alias div_mul_cancel' := div_mul_cancel
1045-
@[deprecated (since := "2024-03-20")] alias mul_div_cancel'' := mul_div_cancel_right
10461036
-- The name `add_sub_cancel` was reused
10471037
-- @[deprecated (since := "2024-03-20")] alias add_sub_cancel := add_sub_cancel_right
1048-
@[deprecated (since := "2024-03-20")] alias div_mul_cancel''' := div_mul_cancel_right
1049-
@[deprecated (since := "2024-03-20")] alias sub_add_cancel'' := sub_add_cancel_right
1050-
@[deprecated (since := "2024-03-20")] alias mul_div_cancel''' := mul_div_cancel_left
1051-
@[deprecated (since := "2024-03-20")] alias add_sub_cancel' := add_sub_cancel_left
1052-
@[deprecated (since := "2024-03-20")] alias mul_div_cancel'_right := mul_div_cancel
1053-
@[deprecated (since := "2024-03-20")] alias add_sub_cancel'_right := add_sub_cancel
1054-
@[deprecated (since := "2024-03-20")] alias div_mul_cancel'' := div_mul_cancel_left
1055-
@[deprecated (since := "2024-03-20")] alias sub_add_cancel' := sub_add_cancel_left

Mathlib/Algebra/Group/Defs.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,6 @@ theorem zpow_natCast (a : G) : ∀ n : ℕ, a ^ (n : ℤ) = a ^ n
886886
_ = a ^ n * a := congrArg (· * a) (zpow_natCast a n)
887887
_ = a ^ (n + 1) := (pow_succ _ _).symm
888888

889-
@[deprecated (since := "2024-03-20")] alias zpow_coe_nat := zpow_natCast
890-
@[deprecated (since := "2024-03-20")] alias coe_nat_zsmul := natCast_zsmul
891889

892890
@[to_additive ofNat_zsmul]
893891
lemma zpow_ofNat (a : G) (n : ℕ) : a ^ (ofNat(n) : ℤ) = a ^ OfNat.ofNat n :=

Mathlib/Algebra/Group/UniqueProds/Basic.lean

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -625,23 +625,6 @@ instance (priority := 100) of_covariant_left [IsLeftCancelMul G]
625625

626626
end TwoUniqueProds
627627

628-
@[deprecated (since := "2024-02-04")]
629-
alias UniqueProds.mulHom_image_of_injective := UniqueProds.of_injective_mulHom
630-
@[deprecated (since := "2024-02-04")]
631-
alias UniqueSums.addHom_image_of_injective := UniqueSums.of_injective_addHom
632-
@[deprecated (since := "2024-02-04")]
633-
alias UniqueProds.mulHom_image_iff := MulEquiv.uniqueProds_iff
634-
@[deprecated (since := "2024-02-04")]
635-
alias UniqueSums.addHom_image_iff := AddEquiv.uniqueSums_iff
636-
@[deprecated (since := "2024-02-04")]
637-
alias TwoUniqueProds.mulHom_image_of_injective := TwoUniqueProds.of_injective_mulHom
638-
@[deprecated (since := "2024-02-04")]
639-
alias TwoUniqueSums.addHom_image_of_injective := TwoUniqueSums.of_injective_addHom
640-
@[deprecated (since := "2024-02-04")]
641-
alias TwoUniqueProds.mulHom_image_iff := MulEquiv.twoUniqueProds_iff
642-
@[deprecated (since := "2024-02-04")]
643-
alias TwoUniqueSums.addHom_image_iff := AddEquiv.twoUniqueSums_iff
644-
645628
instance {ι} (G : ι → Type*) [∀ i, AddZeroClass (G i)] [∀ i, TwoUniqueSums (G i)] :
646629
TwoUniqueSums (Π₀ i, G i) :=
647630
TwoUniqueSums.of_injective_addHom

Mathlib/Algebra/Group/Units/Basic.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,5 +474,3 @@ attribute [deprecated sub_add_cancel_left (since := "2024-03-20")] IsAddUnit.sub
474474
-- @[deprecated (since := "2024-03-20")] alias IsUnit.mul_div_cancel := IsUnit.mul_div_cancel_right
475475
-- @[deprecated (since := "2024-03-20")]
476476
-- alias IsAddUnit.add_sub_cancel := IsAddUnit.add_sub_cancel_right
477-
@[deprecated (since := "2024-03-20")] alias IsUnit.mul_div_cancel' := IsUnit.mul_div_cancel
478-
@[deprecated (since := "2024-03-20")] alias IsAddUnit.add_sub_cancel' := IsAddUnit.add_sub_cancel

Mathlib/Algebra/GroupWithZero/Units/Basic.lean

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,6 @@ lemma div_eq_one_iff_eq (hb : b ≠ 0) : a / b = 1 ↔ a = b := hb.isUnit.div_eq
315315
lemma div_mul_cancel_right₀ (hb : b ≠ 0) (a : G₀) : b / (a * b) = a⁻¹ :=
316316
hb.isUnit.div_mul_cancel_right _
317317

318-
set_option linter.deprecated false in
319-
@[deprecated div_mul_cancel_right₀ (since := "2024-03-20")]
320-
lemma div_mul_left (hb : b ≠ 0) : b / (a * b) = 1 / a := hb.isUnit.div_mul_left
321-
322318
lemma mul_div_mul_right (a b : G₀) (hc : c ≠ 0) : a * c / (b * c) = a / b :=
323319
hc.isUnit.mul_div_mul_right _ _
324320

@@ -415,10 +411,6 @@ instance (priority := 100) CommGroupWithZero.toDivisionCommMonoid :
415411
lemma div_mul_cancel_left₀ (ha : a ≠ 0) (b : G₀) : a / (a * b) = b⁻¹ :=
416412
ha.isUnit.div_mul_cancel_left _
417413

418-
@[deprecated div_mul_cancel_left₀ (since := "2024-03-22")]
419-
lemma div_mul_right (b : G₀) (ha : a ≠ 0) : a / (a * b) = 1 / b := by
420-
simp [div_mul_cancel_left₀ ha]
421-
422414
lemma mul_div_cancel_left_of_imp (h : a = 0 → b = 0) : a * b / a = b := by
423415
rw [mul_comm, mul_div_cancel_of_imp h]
424416

@@ -485,5 +477,3 @@ noncomputable def commGroupWithZeroOfIsUnitOrEqZero [hM : CommMonoidWithZero M]
485477
{ groupWithZeroOfIsUnitOrEqZero h, hM with }
486478

487479
end NoncomputableDefs
488-
489-
@[deprecated (since := "2024-03-20")] alias mul_div_cancel' := mul_div_cancel₀

Mathlib/Algebra/Module/Submodule/Pointwise.lean

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,6 @@ instance : CovariantClass (Set S) (Submodule R M) HSMul.hSMul LE.le :=
347347
fun _ _ _ le => set_smul_le _ _ _ fun _ _ hr hm => mem_set_smul_of_mem_mem (mem1 := hr)
348348
(mem2 := le hm)⟩
349349

350-
@[deprecated smul_mono_right (since := "2024-03-31")]
351-
theorem set_smul_mono_right {p q : Submodule R M} (le : p ≤ q) :
352-
s • p ≤ s • q :=
353-
smul_mono_right s le
354-
355350
lemma set_smul_mono_left {s t : Set S} (le : s ≤ t) :
356351
s • N ≤ t • N :=
357352
set_smul_le _ _ _ fun _ _ hr hm => mem_set_smul_of_mem_mem (mem1 := le hr)

0 commit comments

Comments
 (0)