Zulip Chat Archive

Stream: mathlib4

Topic: unit_closedBall or unitClosedBall


Eric Wieser (Jan 15 2024 at 10:27):

Which of these is the correct name for lemmas about closedBall (0 : E) 1? We also have closed_unit_ball and closedUnitBall, but those ones seems obviously wrong to me.

Eric Wieser (Jan 15 2024 at 10:28):

/poll Which names should be used in lemmas?

  • unit_ball, unit_closedBall, unit_sphere
  • unitBall, unitClosedBall, unitSphere

Eric Wieser (Jan 15 2024 at 10:43):

Is the winning answer right now indicative that we should introduce abbrev unitBall := ball 0 1 etc?

Oliver Nash (Jan 15 2024 at 10:44):

No, because I just changed my mind ;-)

Thomas Murrills (Jan 15 2024 at 10:46):

Wait, why does closedUnitBall seem obviously wrong? I think I’d only ever say “closed unit ball”, never “unit closed ball”…

Eric Wieser (Jan 15 2024 at 10:47):

Because closedUnitBall does not contain closedBall as a substring, which is what the #naming guide mandates

Eric Wieser (Jan 15 2024 at 10:48):

closedUnitBall would be fine if we had abbrev closedUnitBall

Eric Wieser (Jan 15 2024 at 10:49):

(/ vs \, whoops)

Eric Wieser (Jan 15 2024 at 10:50):

/poll Should we introduce abbrevs for unit balls, so that we can pick more natural names?

  • Yes
  • No

Thomas Murrills (Jan 15 2024 at 10:51):

Ah, obviously wrong on naming convention grounds (at present), not on sounding-right grounds, got it :)

Ruben Van de Velde (Jan 15 2024 at 12:40):

Hmm, couldn't ball_one apply to any ball with radius one, not just those centered at zero?

Kevin Buzzard (Jan 15 2024 at 12:44):

Can we not also have "the unit ball with centre P"?

Eric Wieser (Jan 18 2024 at 15:32):

Pinging this thread, since the vote is a bit split

Jireh Loreaux (Jan 18 2024 at 16:14):

Why I voted for unitBall and friends: in other places, we sometimes modify the actual name of a declaration as it appears in names of other declartions. When we do this, I think we often include the modification as part of the lowerCamelCase bit, not separated with _. I'm thinking of things like docs#LinearMap.IsSymmetric.invariant_orthogonalComplement_eigenspace where orthgonalComplement refers to Submodule.orthogonal.

Yaël Dillies (Dec 01 2024 at 09:20):

For people reading this thread, #9755 is now available for review


Last updated: May 02 2025 at 03:31 UTC