Skip to content

Commit fa73e3a

Browse files
committed
chore(Data/Setoid/Basic): add deprecation after renaming ker_lift_injective and rename quotientKerEquivRangeKerLift
1 parent 7c60b4a commit fa73e3a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Mathlib/Data/Setoid/Basic.lean

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,20 @@ theorem lift_unique {r : Setoid α} {f : α → β} (H : r ≤ ker f) (g : Quoti
320320
/-- Given a function `f`, lift it to the quotient by its kernel. -/
321321
abbrev kerLift (f : α → β) : Quotient (ker f) → β := Quotient.lift f fun _ _ => id
322322

323-
@[simp] theorem kerLift_mk (f : α → β) (x : α) : kerLift f ⟦x⟧ = f x := rfl
323+
@[simp]
324+
theorem kerLift_mk (f : α → β) (x : α) : kerLift f ⟦x⟧ = f x := rfl
324325

325326
theorem kerLift_eq_apply_out (f : α → β) (q : Quotient (ker f)) : kerLift f q = f q.out := by
326327
nth_rw 1 [← q.out_eq]
327328
rfl
328329

329330
/-- Given a map `f` from `α` to `β`, the natural map from the quotient of `α` by the kernel of `f`
330331
is injective. -/
331-
theorem kerLift_injective (f : α → β) : Injective (kerLift f) :=
332+
theorem kerLift_injective (f : α → β) : Injective <| kerLift f :=
332333
fun x y => Quotient.inductionOn₂' x y fun _ _ h => Quotient.sound' h
333334

335+
@[deprecated (since := "2025-09-23")] alias ker_lift_injective := kerLift_injective
336+
334337
/-- Given a map `f` from `α` to `β`, the kernel of `f` is the unique equivalence relation on `α`
335338
whose induced map from the quotient of `α` to `β` is injective. -/
336339
theorem ker_eq_lift_of_injective {r : Setoid α} (f : α → β) (H : r ≤ ker f)
@@ -348,13 +351,13 @@ theorem kerLift_range_eq_range : Set.range (kerLift f) = Set.range f :=
348351

349352
/-- The quotient of `α` by the kernel of a function `f`
350353
bijects with the image of `f` lifted to the quotient. -/
351-
noncomputable def quotientKerEquivRangeKerLift : Quotient (ker f) ≃ Set.range (kerLift f) :=
354+
noncomputable def quotientKerEquivKerLiftRange : Quotient (ker f) ≃ Set.range (kerLift f) :=
352355
Equiv.ofInjective _ (kerLift_injective _)
353356

354357
/-- The first isomorphism theorem for sets: the quotient of `α` by the kernel of a function `f`
355358
bijects with `f`'s image. -/
356359
noncomputable def quotientKerEquivRange : Quotient (ker f) ≃ Set.range f :=
357-
(quotientKerEquivRangeKerLift _).trans (.setCongr (kerLift_range_eq_range _))
360+
(quotientKerEquivKerLiftRange _).trans (.setCongr (kerLift_range_eq_range _))
358361

359362
/-- If `f` has a computable right-inverse, then the quotient by its kernel is equivalent to its
360363
domain. -/

0 commit comments

Comments
 (0)