Skip to content

Commit a7e757e

Browse files
committed
chore: remove June 2025 deprecated declarations (leanprover-community#33429)
The first commit is the result of running ```lean import Mathlib import Archive import Counterexamples #clear_deprecations "2025-06-01" "2025-06-30" really ``` For the two removed files in the second commit I argue that they effectively _were_ `deprecated_module`s on the same day as their last deprecation was added; they consist entirely of deprecated declarations more than 6 months old, so there is no need to add a module deprecation. Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
1 parent fa0ba71 commit a7e757e

91 files changed

Lines changed: 1 addition & 1127 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ public import Mathlib.Algebra.GroupWithZero.Hom
497497
public import Mathlib.Algebra.GroupWithZero.Idempotent
498498
public import Mathlib.Algebra.GroupWithZero.Indicator
499499
public import Mathlib.Algebra.GroupWithZero.InjSurj
500-
public import Mathlib.Algebra.GroupWithZero.Int
501500
public import Mathlib.Algebra.GroupWithZero.Invertible
502501
public import Mathlib.Algebra.GroupWithZero.Nat
503502
public import Mathlib.Algebra.GroupWithZero.NeZero
@@ -4050,7 +4049,6 @@ public import Mathlib.Deprecated.Aliases
40504049
public import Mathlib.Deprecated.Estimator
40514050
public import Mathlib.Deprecated.MLList.BestFirst
40524051
public import Mathlib.Deprecated.Order
4053-
public import Mathlib.Deprecated.RingHom
40544052
public import Mathlib.Deprecated.Sort
40554053
public import Mathlib.Dynamics.BirkhoffSum.Average
40564054
public import Mathlib.Dynamics.BirkhoffSum.Basic

Mathlib/Algebra/BigOperators/Group/Finset/Basic.lean

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,6 @@ theorem prod_disjSum (s : Finset ι) (t : Finset κ) (f : ι ⊕ κ → M) :
200200
rw [← map_inl_disjUnion_map_inr, prod_disjUnion, prod_map, prod_map]
201201
rfl
202202

203-
@[deprecated (since := "2025-06-11")]
204-
alias sum_disj_sum := sum_disjSum
205-
206-
@[to_additive existing, deprecated (since := "2025-06-11")]
207-
alias prod_disj_sum := prod_disjSum
208-
209203
@[to_additive]
210204
lemma prod_sum_eq_prod_toLeft_mul_prod_toRight (s : Finset (ι ⊕ κ)) (f : ι ⊕ κ → M) :
211205
∏ x ∈ s, f x = (∏ x ∈ s.toLeft, f (Sum.inl x)) * ∏ x ∈ s.toRight, f (Sum.inr x) := by

Mathlib/Algebra/Category/Grp/ForgetCorepresentable.lean

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ def uliftZMultiplesHom (G : Type u) [AddGroup G] : G ≃ (ULift.{u} ℤ →+ G)
4040
def uliftZPowersHom (G : Type u) [Group G] : G ≃ (ULift.{u} (Multiplicative ℤ) →* G) :=
4141
(zpowersHom _).trans MulEquiv.ulift.symm.monoidHomCongrLeftEquiv
4242

43-
namespace MonoidHom
44-
45-
end MonoidHom
46-
47-
namespace AddMonoidHom
48-
49-
end AddMonoidHom
50-
5143
/-- The forget functor `GrpCat.{u} ⥤ Type u` is corepresentable. -/
5244
def GrpCat.coyonedaObjIsoForget :
5345
coyoneda.obj (op (of (ULift.{u} (Multiplicative ℤ)))) ≅ forget GrpCat.{u} :=

Mathlib/Algebra/Category/MonCat/ForgetCorepresentable.lean

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ of `Multiplicative.ofAdd 1`. -/
4545
def uliftPowersHom (M : Type u) [Monoid M] : M ≃ (ULift.{u} (Multiplicative ℕ) →* M) :=
4646
(powersHom _).trans MulEquiv.ulift.symm.monoidHomCongrLeftEquiv
4747

48-
namespace MonoidHom
49-
50-
end MonoidHom
51-
52-
namespace AddMonoidHom
53-
54-
end AddMonoidHom
55-
5648
/-- The forgetful functor `MonCat.{u} ⥤ Type u` is corepresentable. -/
5749
def MonCat.coyonedaObjIsoForget :
5850
coyoneda.obj (op (of (ULift.{u} (Multiplicative ℕ)))) ≅ forget MonCat.{u} :=

Mathlib/Algebra/Group/Irreducible/Defs.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ structure Irreducible (p : M) : Prop where
4747
/-- If an irreducible element factors, then one factor is a unit. -/
4848
isUnit_or_isUnit ⦃a b : M⦄ : p = a * b → IsUnit a ∨ IsUnit b
4949

50-
namespace Irreducible
51-
52-
end Irreducible
53-
5450
@[to_additive] lemma irreducible_iff :
5551
Irreducible p ↔ ¬IsUnit p ∧ ∀ ⦃a b⦄, p = a * b → IsUnit a ∨ IsUnit b where
5652
mp hp := ⟨hp.not_isUnit, hp.isUnit_or_isUnit⟩

Mathlib/Algebra/Group/Units/Defs.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ theorem ext {u v : αˣ} (huv : u.val = v.val) : u = v := val_injective huv
121121
theorem val_inj {a b : αˣ} : (a : α) = b ↔ a = b :=
122122
val_injective.eq_iff
123123

124-
@[to_additive (attr := deprecated val_inj (since := "2025-06-21"))] alias eq_iff := val_inj
125-
126124
/-- Units have decidable equality if the base `Monoid` has decidable equality. -/
127125
@[to_additive /-- Additive units have decidable equality
128126
if the base `AddMonoid` has decidable equality. -/]

Mathlib/Algebra/GroupWithZero/Int.lean

Lines changed: 0 additions & 23 deletions
This file was deleted.

Mathlib/Algebra/Module/Submodule/Map.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,6 @@ variable {σ₁₂ : R →+* R₂} {σ₂₁ : R₂ →+* R}
687687
variable {re₁₂ : RingHomInvPair σ₁₂ σ₂₁} {re₂₁ : RingHomInvPair σ₂₁ σ₁₂}
688688
variable (e : M ≃ₛₗ[σ₁₂] M₂)
689689

690-
@[deprecated (since := "2025-06-18")] alias map_eq_comap := Submodule.map_equiv_eq_comap_symm
691-
692690
/-- A linear equivalence of two modules restricts to a linear equivalence from any submodule
693691
`p` of the domain onto the image of that submodule.
694692

Mathlib/Algebra/Module/Submodule/Range.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,6 @@ def MapSubtype.orderIso : Submodule R p ≃o { p' : Submodule R M // p' ≤ p }
346346
rw [map_le_iff_le_comap,
347347
comap_map_eq_of_injective (show Injective p.subtype from Subtype.coe_injective) p₂]
348348

349-
@[deprecated (since := "2025-06-03")] alias MapSubtype.relIso := MapSubtype.orderIso
350-
351349
/-- If `p ⊆ M` is a submodule, the ordering of submodules of `p` is embedded in the ordering of
352350
submodules of `M`. -/
353351
def MapSubtype.orderEmbedding : Submodule R p ↪o Submodule R M :=

Mathlib/Algebra/Order/Module/Rat.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ variable [AddCommGroup α] [LinearOrder α] [IsOrderedAddMonoid α]
3939
obtain ha | ha := le_total a 0 <;>
4040
simp [*, abs_of_nonneg, abs_of_nonpos, smul_nonneg, smul_nonpos_of_nonneg_of_nonpos]
4141

42-
@[deprecated abs_smul (since := "2025-06-24")]
43-
lemma abs_qsmul [Module ℚ α] [PosSMulMono ℚ α] (q : ℚ) (a : α) :
44-
|q • a| = |q| • |a| := abs_smul q a
45-
4642
end LinearOrderedAddCommGroup
4743

4844
section LinearOrderedSemifield

0 commit comments

Comments
 (0)