Skip to content

Commit 1932ef2

Browse files
committed
chore: rename "Pempty" to "PEmpty" in two definitions (leanprover-community#34971)
The previous names were simply wrong. Reported on zulip.
1 parent dde8dbf commit 1932ef2

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Mathlib/RingTheory/FreeCommRing.lean

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,18 +400,24 @@ def freeCommRingEquivMvPolynomialInt : FreeCommRing α ≃+* MvPolynomial α ℤ
400400
(by ext <;> simp) (by ext; simp)
401401

402402
/-- The free commutative ring on the empty type is isomorphic to `ℤ`. -/
403-
def freeCommRingPemptyEquivInt : FreeCommRing PEmpty.{u + 1} ≃+* ℤ :=
403+
def freeCommRingPEmptyEquivInt : FreeCommRing PEmpty.{u + 1} ≃+* ℤ :=
404404
RingEquiv.trans (freeCommRingEquivMvPolynomialInt _) (MvPolynomial.isEmptyRingEquiv _ PEmpty)
405405

406+
@[deprecated (since := "2026-02-08")]
407+
noncomputable alias freeCommRingPemptyEquivInt := freeCommRingPEmptyEquivInt
408+
406409
/-- The free commutative ring on a type with one term is isomorphic to `ℤ[X]`. -/
407410
def freeCommRingPunitEquivPolynomialInt : FreeCommRing PUnit.{u + 1} ≃+* ℤ[X] :=
408411
(freeCommRingEquivMvPolynomialInt _).trans (MvPolynomial.pUnitAlgEquiv ℤ).toRingEquiv
409412

410413
open FreeRing
411414

412415
/-- The free ring on the empty type is isomorphic to `ℤ`. -/
413-
def freeRingPemptyEquivInt : FreeRing PEmpty.{u + 1} ≃+* ℤ :=
414-
RingEquiv.trans (subsingletonEquivFreeCommRing _) freeCommRingPemptyEquivInt
416+
def freeRingPEmptyEquivInt : FreeRing PEmpty.{u + 1} ≃+* ℤ :=
417+
RingEquiv.trans (subsingletonEquivFreeCommRing _) freeCommRingPEmptyEquivInt
418+
419+
@[deprecated (since := "2026-02-08")]
420+
noncomputable alias freeRingPemptyEquivInt := freeRingPEmptyEquivInt
415421

416422
/-- The free ring on a type with one term is isomorphic to `ℤ[X]`. -/
417423
def freeRingPunitEquivPolynomialInt : FreeRing PUnit.{u + 1} ≃+* ℤ[X] :=

0 commit comments

Comments
 (0)