Skip to content

Commit 9ab11f2

Browse files
mathlib-nolints[bot]bryangingechenpre-commit-ci-lite[bot]
committed
chore: remove declarations deprecated between 2021-03-24 and 2025-09-24 (leanprover-community#37118)
I am happy to remove some deprecated declarations for you! Please check if there are any remaining stray comments or other issues before merging. Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 56a1462 commit 9ab11f2

210 files changed

Lines changed: 3 additions & 2043 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/BigOperators/Group/Finset/Basic.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,6 @@ lemma mem_sum {a : M} {s : Finset ι} {m : ι → Multiset M} :
10661066
a ∈ ∑ i ∈ s, m i ↔ ∃ i ∈ s, a ∈ m i := by
10671067
induction s using Finset.cons_induction with grind
10681068

1069-
@[deprecated Multiset.mem_sum (since := "2025-08-24")]
1070-
theorem _root_.Finset.mem_sum {f : ι → Multiset M} (s : Finset ι) (b : M) :
1071-
(b ∈ ∑ x ∈ s, f x) ↔ ∃ a ∈ s, b ∈ f a := Multiset.mem_sum
1072-
10731069
@[to_additive]
10741070
lemma prod_map_prod {α : Type*} [CommMonoid M] {m : Multiset ι} {s : Finset α} {f : ι → α → M} :
10751071
(m.map fun i ↦ ∏ a ∈ s, f i a).prod = ∏ a ∈ s, (m.map fun i ↦ f i a).prod := by

Mathlib/Algebra/Category/CommAlgCat/Basic.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ def algEquivOfIso (i : A ≅ B) : A ≃ₐ[R] B where
165165
left_inv x := by simp
166166
right_inv x := by simp
167167

168-
@[deprecated (since := "2025-08-22")] alias ofIso := algEquivOfIso
169-
170168
/-- Algebra equivalences between `Algebra`s are the same as isomorphisms in `CommAlgCat`. -/
171169
@[simps]
172170
def isoEquivAlgEquiv : (of R X ≅ of R Y) ≃ (X ≃ₐ[R] Y) where

Mathlib/Algebra/Field/Basic.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ variable [DivisionSemiring K] {a b c d : K}
3333

3434
theorem add_div (a b c : K) : (a + b) / c = a / c + b / c := by simp_rw [div_eq_mul_inv, add_mul]
3535

36-
@[deprecated add_div (since := "2025-08-25")]
37-
theorem div_add_div_same (a b c : K) : a / c + b / c = (a + b) / c :=
38-
(add_div _ _ _).symm
39-
4036
theorem same_add_div (h : b ≠ 0) : (b + a) / b = 1 + a / b := by rw [← div_self h, add_div]
4137

4238
theorem div_add_same (h : b ≠ 0) : (a + b) / b = a / b + 1 := by rw [← div_self h, add_div]

Mathlib/Algebra/Group/Action/Faithful.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ lemma RightCancelMonoid.faithfulSMul [RightCancelMonoid α] : FaithfulSMul α α
9292
lemma LeftCancelMonoid.to_faithfulSMul_mulOpposite [LeftCancelMonoid α] : FaithfulSMul αᵐᵒᵖ α :=
9393
inferInstance
9494

95-
@[deprecated (since := "2025-09-15")]
96-
alias LefttCancelMonoid.to_faithfulSMul_mulOpposite := LeftCancelMonoid.to_faithfulSMul_mulOpposite
97-
98-
9995
@[to_additive]
10096
lemma faithfulSMul_iff_injective_smul_one (R A : Type*)
10197
[MulOneClass A] [SMul R A] [IsScalarTower R A A] :

Mathlib/Algebra/Group/End.lean

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,6 @@ theorem mul_apply (f g : Perm α) (x) : (f * g) x = f (g x) :=
104104
theorem one_apply (x) : (1 : Perm α) x = x :=
105105
rfl
106106

107-
@[deprecated symm_apply_apply (since := "2025-08-16")]
108-
theorem inv_apply_self (f : Perm α) (x) : f⁻¹ (f x) = x :=
109-
f.symm_apply_apply x
110-
111-
@[deprecated apply_symm_apply (since := "2025-08-16")]
112-
theorem apply_inv_self (f : Perm α) (x) : f (f⁻¹ x) = x :=
113-
f.apply_symm_apply x
114-
115107
theorem one_def : (1 : Perm α) = Equiv.refl α :=
116108
rfl
117109

@@ -285,8 +277,6 @@ completely in terms of the group structure. -/
285277
theorem _root_.Equiv.permCongr_eq_mul (e p : Perm α) : e.permCongr p = e * p * e⁻¹ :=
286278
rfl
287279

288-
@[deprecated (since := "2025-08-29")] alias permCongr_eq_mul := Equiv.permCongr_eq_mul
289-
290280
@[simp]
291281
lemma _root_.Equiv.permCongr_mul (e : α ≃ β) (p q : Perm α) :
292282
e.permCongr (p * q) = e.permCongr p * e.permCongr q :=
@@ -299,8 +289,6 @@ def _root_.Equiv.permCongrHom (e : α ≃ β) : Perm α ≃* Perm β where
299289
attribute [inherit_doc Equiv.permCongr] Equiv.permCongrHom
300290
extend_docs Equiv.permCongrHom after "This is `Equiv.permCongr` as a `MulEquiv`."
301291

302-
@[deprecated (since := "2025-08-23")] alias permCongrHom := Equiv.permCongrHom
303-
304292
@[simp]
305293
theorem _root_.Equiv.permCongrHom_symm (e : α ≃ β) :
306294
e.permCongrHom.symm = e.symm.permCongrHom :=

Mathlib/Algebra/Group/Equiv/TypeTags.lean

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,11 @@ def AddEquiv.toMultiplicativeRight [MulOneClass G] [AddZeroClass H] :
7171
right_inv := f.right_inv
7272
map_add' := map_mul f }
7373

74-
@[deprecated (since := "2025-09-19")]
75-
alias AddEquiv.toMultiplicative' := AddEquiv.toMultiplicativeRight
76-
7774
/-- Reinterpret `G ≃* Multiplicative H` as `Additive G ≃+ H`. -/
7875
abbrev MulEquiv.toAdditiveLeft [MulOneClass G] [AddZeroClass H] :
7976
G ≃* Multiplicative H ≃ (Additive G ≃+ H) :=
8077
AddEquiv.toMultiplicativeRight.symm
8178

82-
@[deprecated (since := "2025-09-19")] alias MulEquiv.toAdditive' := MulEquiv.toAdditiveLeft
83-
8479
/-- Reinterpret `G ≃+ Additive H` as `Multiplicative G ≃* H`. -/
8580
@[simps]
8681
def AddEquiv.toMultiplicativeLeft [AddZeroClass G] [MulOneClass H] :
@@ -98,16 +93,11 @@ def AddEquiv.toMultiplicativeLeft [AddZeroClass G] [MulOneClass H] :
9893
right_inv := f.right_inv
9994
map_add' := map_mul f }
10095

101-
@[deprecated (since := "2025-09-19")]
102-
alias AddEquiv.toMultiplicative'' := AddEquiv.toMultiplicativeLeft
103-
10496
/-- Reinterpret `Multiplicative G ≃* H` as `G ≃+ Additive H` as. -/
10597
abbrev MulEquiv.toAdditiveRight [AddZeroClass G] [MulOneClass H] :
10698
Multiplicative G ≃* H ≃ (G ≃+ Additive H) :=
10799
AddEquiv.toMultiplicativeLeft.symm
108100

109-
@[deprecated (since := "2025-09-19")] alias MulEquiv.toAdditive'' := MulEquiv.toAdditiveRight
110-
111101
/-- The multiplicative version of an additivized monoid is mul-equivalent to itself. -/
112102
@[simps! apply symm_apply]
113103
def MulEquiv.toMultiplicative_toAdditive [MulOneClass G] :

Mathlib/Algebra/Group/Submonoid/Operations.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,6 @@ theorem submonoidMap_symm_apply (e : M ≃* N) (S : Submonoid M) (g : S.map (e :
10981098
(e.submonoidMap S).symm g = ⟨e.symm g, SetLike.mem_coe.1 <| Set.mem_image_equiv.1 g.2⟩ :=
10991099
rfl
11001100

1101-
@[deprecated (since := "2025-08-20")]
1102-
alias _root_.AddEquiv.add_submonoid_map_symm_apply := AddEquiv.addSubmonoidMap_symm_apply
1103-
11041101
end MulEquiv
11051102

11061103
@[to_additive (attr := simp)]

Mathlib/Algebra/Group/TypeTags/Hom.lean

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,31 +81,20 @@ def AddMonoidHom.toMultiplicativeRight [MulOneClass α] [AddZeroClass β] :
8181
map_zero' := f.map_one
8282
}
8383

84-
@[deprecated (since := "2025-09-19")]
85-
alias AddMonoidHom.toMultiplicative' := AddMonoidHom.toMultiplicativeRight
86-
8784
@[simp, norm_cast]
8885
lemma AddMonoidHom.coe_toMultiplicativeRight [MulOneClass α] [AddZeroClass β]
8986
(f : Additive α →+ β) : ⇑(toMultiplicativeRight f) = ofAdd ∘ f ∘ ofMul := rfl
9087

91-
@[deprecated (since := "2025-09-19")]
92-
alias AddMonoidHom.coe_toMultiplicative' := AddMonoidHom.coe_toMultiplicativeRight
93-
9488
/-- Reinterpret `α →* Multiplicative β` as `Additive α →+ β`. -/
9589
@[simps!]
9690
def MonoidHom.toAdditiveLeft [MulOneClass α] [AddZeroClass β] :
9791
(α →* Multiplicative β) ≃ (Additive α →+ β) :=
9892
AddMonoidHom.toMultiplicativeRight.symm
9993

100-
@[deprecated (since := "2025-09-19")] alias MonoidHom.toAdditive' := MonoidHom.toAdditiveLeft
101-
10294
@[simp, norm_cast]
10395
lemma MonoidHom.coe_toAdditiveLeft [MulOneClass α] [AddZeroClass β] (f : α →* Multiplicative β) :
10496
⇑(toAdditiveLeft f) = toAdd ∘ f ∘ toMul := rfl
10597

106-
@[deprecated (since := "2025-09-19")]
107-
alias MonoidHom.coe_toAdditive' := MonoidHom.coe_toAdditiveLeft
108-
10998
/-- Reinterpret `α →+ Additive β` as `Multiplicative α →* β`. -/
11099
@[simps]
111100
def AddMonoidHom.toMultiplicativeLeft [AddZeroClass α] [MulOneClass β] :
@@ -121,31 +110,20 @@ def AddMonoidHom.toMultiplicativeLeft [AddZeroClass α] [MulOneClass β] :
121110
map_zero' := f.map_one
122111
}
123112

124-
@[deprecated (since := "2025-09-19")]
125-
alias AddMonoidHom.toMultiplicative'' := AddMonoidHom.toMultiplicativeLeft
126-
127113
@[simp, norm_cast]
128114
lemma AddMonoidHom.coe_toMultiplicativeLeft [AddZeroClass α] [MulOneClass β] (f : α →+ Additive β) :
129115
⇑(toMultiplicativeLeft f) = toMul ∘ f ∘ toAdd := rfl
130116

131-
@[deprecated (since := "2025-09-19")]
132-
alias AddMonoidHom.coe_toMultiplicative'' := AddMonoidHom.coe_toMultiplicativeLeft
133-
134117
/-- Reinterpret `Multiplicative α →* β` as `α →+ Additive β`. -/
135118
@[simps!]
136119
def MonoidHom.toAdditiveRight [AddZeroClass α] [MulOneClass β] :
137120
(Multiplicative α →* β) ≃ (α →+ Additive β) :=
138121
AddMonoidHom.toMultiplicativeLeft.symm
139122

140-
@[deprecated (since := "2025-09-19")] alias MonoidHom.toAdditive'' := MonoidHom.toAdditiveRight
141-
142123
@[simp, norm_cast]
143124
lemma MonoidHom.coe_toAdditiveRight [AddZeroClass α] [MulOneClass β] (f : Multiplicative α →* β) :
144125
⇑(toAdditiveRight f) = ofMul ∘ f ∘ ofAdd := rfl
145126

146-
@[deprecated (since := "2025-09-19")]
147-
alias MonoidHom.coe_toAdditive'' := MonoidHom.coe_toAdditiveRight
148-
149127
/-- This ext lemma moves the type tag to the codomain, since most ext lemmas act on the domain.
150128
151129
WARNING: This has the potential to send `ext` into a loop if someone locally adds the inverse ext

Mathlib/Algebra/Group/Units/Defs.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,6 @@ theorem divp_one (a : α) : a /ₚ 1 = a :=
321321
theorem divp_assoc (a b : α) (u : αˣ) : a * b /ₚ u = a * (b /ₚ u) :=
322322
mul_assoc _ _ _
323323

324-
@[deprecated divp_assoc (since := "2025-08-25")]
325-
theorem divp_assoc' (x y : α) (u : αˣ) : x * (y /ₚ u) = x * y /ₚ u :=
326-
(divp_assoc _ _ _).symm
327-
328324
@[simp]
329325
theorem divp_inv (u : αˣ) : a /ₚ u⁻¹ = a * u :=
330326
rfl

Mathlib/Algebra/Group/WithOne/Basic.lean

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -97,61 +97,31 @@ theorem mapMulHom_id : mapMulHom (MulHom.id α) = MonoidHom.id (WithOne α) := b
9797
ext x
9898
induction x <;> rfl
9999

100-
@[deprecated (since := "2025-08-26")]
101-
alias map_id := mapMulHom_id
102-
@[deprecated (since := "2025-08-26")]
103-
alias _root_.WithZero.map_id := WithZero.mapAddHom_id
104-
105100
@[to_additive]
106101
theorem mapMulHom_injective {f : α →ₙ* β} (hf : Function.Injective f) :
107102
Function.Injective (mapMulHom f)
108103
| none, none, _ => rfl
109104
| (a₁ : α), (a₂ : α), H => by simpa [hf.eq_iff] using H
110105

111-
@[deprecated (since := "2025-08-26")]
112-
alias map_injective := mapMulHom_injective
113-
@[deprecated (since := "2025-08-26")]
114-
alias _root_.WithZero.map_injective := WithZero.mapAddHom_injective
115-
116106
@[to_additive]
117107
theorem mapMulHom_injective' :
118108
Function.Injective (WithOne.mapMulHom (α := α) (β := β)) :=
119109
fun f g h ↦ MulHom.ext fun x ↦ coe_injective <| by simp only [← mapMulHom_coe, h]
120110

121-
@[deprecated (since := "2025-08-26")]
122-
alias map_injective' := mapMulHom_injective'
123-
@[deprecated (since := "2025-08-26")]
124-
alias _root_.WithZero.map_injective' := WithZero.mapAddHom_injective'
125-
126111
@[to_additive (attr := simp)]
127112
theorem mapMulHom_inj {f g : α →ₙ* β} : mapMulHom f = mapMulHom g ↔ f = g :=
128113
mapMulHom_injective'.eq_iff
129114

130-
@[deprecated (since := "2025-08-26")]
131-
alias map_inj := mapMulHom_inj
132-
@[deprecated (since := "2025-08-26")]
133-
alias _root_.WithZero.map_inj := WithZero.mapAddHom_inj
134-
135115
@[to_additive]
136116
theorem mapMulHom_mapMulHom (f : α →ₙ* β) (g : β →ₙ* γ) (x) :
137117
mapMulHom g (mapMulHom f x) = mapMulHom (g.comp f) x := by
138118
induction x <;> rfl
139119

140-
@[deprecated (since := "2025-08-26")]
141-
alias map_map := mapMulHom_mapMulHom
142-
@[deprecated (since := "2025-08-26")]
143-
alias _root_.WithZero.map_map := WithZero.mapAddHom_mapAddHom
144-
145120
@[to_additive (attr := simp)]
146121
theorem mapMulHom_comp (f : α →ₙ* β) (g : β →ₙ* γ) :
147122
mapMulHom (g.comp f) = (mapMulHom g).comp (mapMulHom f) :=
148123
MonoidHom.ext fun x => (mapMulHom_mapMulHom f g x).symm
149124

150-
@[deprecated (since := "2025-08-26")]
151-
alias map_comp := mapMulHom_comp
152-
@[deprecated (since := "2025-08-26")]
153-
alias _root_.WithZero.map_comp := WithZero.mapAddHom_comp
154-
155125
/-- A version of `Equiv.optionCongr` for `WithOne`. -/
156126
@[to_additive (attr := simps apply) /-- A version of `Equiv.optionCongr` for `WithZero`. -/]
157127
def _root_.MulEquiv.withOneCongr (e : α ≃* β) : WithOne α ≃* WithOne β :=

0 commit comments

Comments
 (0)