Skip to content

Commit 5ad5d52

Browse files
chore: delete deprecated declarations to the end of 2025 (leanprover-community#41178)
The automated commits were made by running ``` #clear_deprecations "2025-11-01" "2025-12-31" really ``` (I had to do this in multiple sessions because VS Code kept running out of memory.) Co-authored-by: Parcly Taxel <reddeloostw@gmail.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 3d71751 commit 5ad5d52

257 files changed

Lines changed: 0 additions & 2780 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.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,6 @@ public import Mathlib.Algebra.Order.CompleteField
953953
public import Mathlib.Algebra.Order.Disjointed
954954
public import Mathlib.Algebra.Order.Field.Basic
955955
public import Mathlib.Algebra.Order.Field.Canonical
956-
public import Mathlib.Algebra.Order.Field.Defs
957956
public import Mathlib.Algebra.Order.Field.GeomSum
958957
public import Mathlib.Algebra.Order.Field.Pi
959958
public import Mathlib.Algebra.Order.Field.Pointwise

Mathlib/Algebra/Algebra/Basic.lean

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,6 @@ theorem algebraMap_ofSubring {R : Type*} [CommRing R] (S : Subring R) :
117117
(algebraMap S R : S →+* R) = S.subtype :=
118118
rfl
119119

120-
@[deprecated coe_algebraMap_ofSubsemiring (since := "2025-11-23")]
121-
theorem coe_algebraMap_ofSubring {R : Type*} [CommRing R] (S : Subring R) :
122-
(algebraMap S R : S → R) = Subtype.val :=
123-
rfl
124-
125-
@[deprecated algebraMap_ofSubsemiring_apply (since := "2025-11-23")]
126-
theorem algebraMap_ofSubring_apply {R : Type*} [CommRing R] (S : Subring R) (x : S) :
127-
algebraMap S R x = x :=
128-
rfl
129-
130120
end SubsemiringAlgebra
131121

132122
/-- Explicit characterization of the submonoid map in the case of an algebra.

Mathlib/Algebra/Algebra/Bilinear.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ theorem _root_.Algebra.lmul_isUnit_iff {x : A} :
162162
theorem toSpanSingleton_one_eq_algebraLinearMap :
163163
toSpanSingleton R A 1 = Algebra.linearMap R A := by ext; simp
164164

165-
@[deprecated (since := "2025-12-30")] alias toSpanSingleton_eq_algebra_linearMap :=
166-
toSpanSingleton_one_eq_algebraLinearMap
167-
168165
variable (R A) in
169166
/-- The multiplication map on an `R`-algebra, as an `A`-linear map from `A ⊗[R] A` to `A`. -/
170167
@[simps!] def mul'' : A ⊗[R] A →ₗ[A] A where

Mathlib/Algebra/Algebra/Defs.lean

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,6 @@ variable {R A}
396396
@[simp] lemma algebraMap_self : algebraMap R R = .id _ := rfl
397397
lemma algebraMap_self_apply (x : R) : algebraMap R R x = x := rfl
398398

399-
namespace id
400-
401-
@[deprecated _root_.smul_eq_mul (since := "2025-12-02")]
402-
theorem smul_eq_mul (x y : R) : x • y = x * y :=
403-
rfl
404-
405-
end id
406-
407399
end Semiring
408400

409401
end Algebra

Mathlib/Algebra/Algebra/Equiv.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,6 @@ endomorphisms. -/
902902
__ := e.conjRingEquiv
903903
commutes' _ := by ext; change e.restrictScalars R _ = _; simp
904904

905-
@[deprecated (since := "2025-12-06")] alias algConj := conjAlgEquiv
906-
907905
theorem conjAlgEquiv_apply (e : M₁ ≃ₗ[S] M₂) (f : Module.End S M₁) :
908906
e.conjAlgEquiv R f = e.toLinearMap ∘ₗ f ∘ₗ e.symm.toLinearMap := rfl
909907

Mathlib/Algebra/BigOperators/Finsupp/Basic.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,6 @@ theorem support_finsetSum [DecidableEq β] [AddCommMonoid M] {s : Finset α} {f
306306

307307
@[deprecated (since := "2026-04-08")] alias support_finset_sum := support_finsetSum
308308

309-
@[deprecated sum_fun_zero (since := "2025-12-19")]
310-
theorem sum_zero [Zero M] [AddCommMonoid N] {f : α →₀ M} : (f.sum fun _ _ => (0 : N)) = 0 :=
311-
Finset.sum_const_zero
312-
313309
theorem sum_eq_one_iff (d : α →₀ ℕ) : sum d (fun _ n ↦ n) = 1 ↔ ∃ a, d = single a 1 := by
314310
classical
315311
refine ⟨fun h1 ↦ ?_, ?_⟩

Mathlib/Algebra/Category/FGModuleCat/Basic.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ variable (R : Type u) [Ring R]
8585

8686
@[simp] lemma hom_hom_id (A : FGModuleCat.{v} R) : (𝟙 A : A ⟶ A).hom.hom = LinearMap.id := rfl
8787

88-
@[deprecated (since := "2025-12-18")] alias hom_comp := hom_hom_comp
89-
@[deprecated (since := "2025-12-18")] alias hom_id := hom_hom_id
90-
9188
instance : Inhabited (FGModuleCat.{v} R) :=
9289
⟨⟨ModuleCat.of R PUnit, by unfold ModuleCat.isFG; infer_instance⟩⟩
9390

Mathlib/Algebra/Category/Ring/FinitePresentation.lean

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,28 +161,18 @@ lemma CommRingCat.preservesColimit_coyoneda_of_finitePresentation
161161
f₁.right (Under.w f₁) f₂.right (Under.w f₂) congr($(e).right)
162162
exact ⟨k, hik, hjk, Under.UnderMorphism.ext e⟩
163163

164-
@[deprecated (since := "2025-12-19")]
165-
alias preservesColimit_coyoneda_of_finitePresentation :=
166-
CommRingCat.preservesColimit_coyoneda_of_finitePresentation
167-
168164
/-- If `S` is a finitely presented `R`-algebra, then `Hom_R(S, -)` preserves filtered colimits. -/
169165
lemma CommRingCat.preservesFilteredColimits_coyoneda (S : Under R)
170166
(hS : S.hom.hom.FinitePresentation) :
171167
PreservesFilteredColimits (coyoneda.obj (.op S)) :=
172168
fun _ _ _ ↦ ⟨preservesColimit_coyoneda_of_finitePresentation R S hS _⟩⟩
173169

174-
@[deprecated (since := "2025-12-19")]
175-
alias preservesFilteredColimits_coyoneda := CommRingCat.preservesFilteredColimits_coyoneda
176-
177170
/-- If `S` is a finitely presented `R`-algebra, `S : Under R` is finitely presentable. -/
178171
lemma CommRingCat.isFinitelyPresentable_under (S : Under R) (hS : S.hom.hom.FinitePresentation) :
179172
IsFinitelyPresentable.{u} S := by
180173
rw [isFinitelyPresentable_iff_preservesFilteredColimits]
181174
exact preservesFilteredColimits_coyoneda R S hS
182175

183-
@[deprecated (since := "2025-12-19")]
184-
alias isFinitelyPresentable := CommRingCat.isFinitelyPresentable_under
185-
186176
variable {R} in
187177
lemma CommRingCat.isFinitelyPresentable_hom {S : CommRingCat.{u}} (f : R ⟶ S)
188178
(hf : f.hom.FinitePresentation) :

Mathlib/Algebra/DirectSum/Module.lean

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -577,43 +577,29 @@ def congrAddEquiv (u : (i : ι) → N i ≃+ P i) :
577577
left_inv x := by aesop
578578
right_inv y := by aesop
579579

580-
@[deprecated (since := "2025-12-01")] alias congr_addEquiv := congrAddEquiv
581-
582580
theorem coe_congrAddEquiv (u : (i : ι) → N i ≃+ P i) :
583581
⇑(congrAddEquiv u).toAddMonoidHom = ⇑(DirectSum.map fun i ↦ (u i).toAddMonoidHom) :=
584582
rfl
585583

586-
@[deprecated (since := "2025-12-01")] alias coe_congr_addEquiv := coe_congrAddEquiv
587-
588584
/-- Direct sums of isomorphic modules are isomorphic. -/
589585
def congrLinearEquiv (u : (i : ι) → N i ≃ₗ[R] P i) :
590586
(⨁ i, N i) ≃ₗ[R] ⨁ i, P i where
591587
toAddEquiv := congrAddEquiv (fun i ↦ (u i).toAddEquiv)
592588
map_smul' r x := by
593589
exact (DirectSum.lmap (fun i ↦ (u i).toLinearMap)).map_smul r x
594590

595-
@[deprecated (since := "2025-12-01")] alias congr_linearEquiv := congrLinearEquiv
596-
597591
theorem coe_congrLinearEquiv (u : (i : ι) → N i ≃ₗ[R] P i) :
598592
⇑(congrLinearEquiv u) = ⇑(DirectSum.lmap (fun i ↦ (u i).toLinearMap)) :=
599593
rfl
600594

601-
@[deprecated (since := "2025-12-01")] alias coe_congr_linearEquiv := coe_congrLinearEquiv
602-
603595
theorem congrLinearEquiv_toAddEquiv (u : (i : ι) → N i ≃ₗ[R] P i) :
604596
(congrLinearEquiv u).toAddEquiv = congrAddEquiv (fun i ↦ (u i).toAddEquiv) :=
605597
rfl
606598

607-
@[deprecated (since := "2025-12-01")]
608-
alias congr_linearEquiv_toAddEquiv := congrLinearEquiv_toAddEquiv
609-
610599
theorem congrLinearEquiv_toLinearMap (u : (i : ι) → N i ≃ₗ[R] P i) :
611600
(congrLinearEquiv u).toLinearMap = DirectSum.lmap (fun i ↦ (u i).toLinearMap) :=
612601
rfl
613602

614-
@[deprecated (since := "2025-12-01")]
615-
alias congr_linearEquiv_toLinearMap := congrLinearEquiv_toLinearMap
616-
617603
end Congr
618604

619605
end DirectSum

Mathlib/Algebra/Group/Action/Pointwise/Set/Basic.lean

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -272,21 +272,11 @@ theorem smul_inter_nonempty_iff {s t : Set α} {x : α} :
272272
· rintro ⟨a, b, ⟨ha, hb⟩, rfl⟩
273273
exact ⟨a, mem_inter (mem_smul_set.mpr ⟨b, hb, by simp⟩) ha⟩
274274

275-
@[to_additive (attr := deprecated smul_inter_nonempty_iff (since := "2025-12-10"))]
276-
theorem smul_inter_ne_empty_iff {s t : Set α} {x : α} :
277-
x • s ∩ t ≠ ∅ ↔ ∃ a b, (a ∈ t ∧ b ∈ s) ∧ a * b⁻¹ = x := by
278-
rw [← nonempty_iff_ne_empty, smul_inter_nonempty_iff]
279-
280275
@[to_additive]
281276
theorem smul_inter_nonempty_iff' {s t : Set α} {x : α} :
282277
(x • s ∩ t).Nonempty ↔ ∃ a b, (a ∈ t ∧ b ∈ s) ∧ a / b = x := by
283278
simp_rw [smul_inter_nonempty_iff, div_eq_mul_inv]
284279

285-
@[to_additive (attr := deprecated smul_inter_nonempty_iff' (since := "2025-12-10"))]
286-
theorem smul_inter_ne_empty_iff' {s t : Set α} {x : α} :
287-
x • s ∩ t ≠ ∅ ↔ ∃ a b, (a ∈ t ∧ b ∈ s) ∧ a / b = x := by
288-
rw [← nonempty_iff_ne_empty, smul_inter_nonempty_iff']
289-
290280
@[to_additive]
291281
theorem op_smul_inter_nonempty_iff {s t : Set α} {x : αᵐᵒᵖ} :
292282
(x • s ∩ t).Nonempty ↔ ∃ a b, (a ∈ s ∧ b ∈ t) ∧ a⁻¹ * b = MulOpposite.unop x := by
@@ -298,11 +288,6 @@ theorem op_smul_inter_nonempty_iff {s t : Set α} {x : αᵐᵒᵖ} :
298288
have : MulOpposite.op (a⁻¹ * b) = x := congr_arg MulOpposite.op H
299289
exact ⟨b, mem_inter (mem_smul_set.mpr ⟨a, ha, by simp [← this]⟩) hb⟩
300290

301-
@[to_additive (attr := deprecated op_smul_inter_nonempty_iff (since := "2025-12-10"))]
302-
theorem op_smul_inter_ne_empty_iff {s t : Set α} {x : αᵐᵒᵖ} :
303-
x • s ∩ t ≠ ∅ ↔ ∃ a b, (a ∈ s ∧ b ∈ t) ∧ a⁻¹ * b = MulOpposite.unop x := by
304-
rw [← nonempty_iff_ne_empty, op_smul_inter_nonempty_iff]
305-
306291
@[to_additive (attr := simp)]
307292
theorem iUnion_inv_smul : ⋃ g : α, g⁻¹ • s = ⋃ g : α, g • s :=
308293
(Function.Surjective.iSup_congr _ inv_surjective) fun _ ↦ rfl

0 commit comments

Comments
 (0)