Zulip Chat Archive

Stream: mathlib4

Topic: Wrong name? isInitialPunit : IsInitial PEmpty


IntGrah (Feb 08 2026 at 03:25):

/-- The initial object in `Type u` is `PEmpty`. -/
CategoryTheory.Limits.Types.isInitialPunit.{u} : IsInitial PEmpty.{u + 1}

Aaron Liu (Feb 08 2026 at 03:40):

definitely wrong name

Aaron Liu (Feb 08 2026 at 03:40):

docs#CategoryTheory.Limits.Types.isInitialPunit

IntGrah (Feb 08 2026 at 04:02):

https://github.com/leanprover-community/mathlib4/pull/34964

IntGrah (Feb 08 2026 at 04:05):

I also notice the dual theorem is named isTerminalPunit. The lowercase u in Punit is bugging me. More generally, there are 17 hits for Punit and 1315 hits for PUnit. Also 3 hits for Pempty and 280 hits for PEmpty.

Yury G. Kudryashov (Feb 08 2026 at 04:53):

I guess, these Punits and Pemptys came from mathport. Do you have time to prepare a PR fixing all these names and adding all non-instance theorems/definitions back as deprecated aliases?

IntGrah (Feb 08 2026 at 06:01):

Probably not, I'm afraid someone else will have to do it.

IntGrah (Feb 08 2026 at 06:02):

There's also def pUnitFoo and def punitFoo

Ruben Van de Velde (Feb 08 2026 at 09:39):

Would you mind filing an issue, in that case?

Michael Rothgang (Feb 08 2026 at 10:28):

I'm working on the two remaining "Pempty"s.

Michael Rothgang (Feb 08 2026 at 10:31):

#34971

Michael Rothgang (Feb 08 2026 at 10:36):

#34972 is a WIP PR for the Punits (update: should pass CI now)

Christian Merten (Feb 08 2026 at 10:38):

You beat me (#34973) :D

Christian Merten (Feb 08 2026 at 10:39):

I thought this is a good test case for the commit verification CI step, but apparently it is failing in the "Post or update comment" step. (https://github.com/leanprover-community/mathlib4/actions/runs/21796757425/job/62885536927?pr=34973)

IntGrah (Feb 08 2026 at 17:55):

Thanks guys

IntGrah (Feb 08 2026 at 17:58):

There's also Ulift ULift which also affects import names...


Last updated: Feb 28 2026 at 14:05 UTC