Zulip Chat Archive

Stream: mathlib4

Topic: eball vs emetricBall vs EMetric.ball


Yury G. Kudryashov (Jan 04 2026 at 03:11):

How should we name lemmas about docs#EMetric.ball and docs#EMetric.closedBall ? Some lemmas use eball, others use emetricBall or put lemmas in the EMetric namespace (sometimes, it's not an option).

Yaël Dillies (Jan 04 2026 at 05:47):

I personally think we could drop the EMetric namespace entirely, renaming each EMetric.foo to Metric.efoo

Yury G. Kudryashov (Jan 04 2026 at 06:44):

eclosedBall or closedEBall?

Yaël Dillies (Jan 04 2026 at 07:16):

I don't mind greatly, but maybe the latter?

Sébastien Gouëzel (Jan 04 2026 at 09:25):

I'd go for eball and closedEBall.

Snir Broshi (Jan 04 2026 at 14:23):

I vote for eclosedBall

Eric Wieser (Jan 04 2026 at 15:15):

Another datapoint is docs#EMetric.infEdist

Yury G. Kudryashov (Jan 04 2026 at 15:16):

... which should be called infEDist.

Eric Wieser (Jan 04 2026 at 15:16):

Perhaps

Yury G. Kudryashov (Jan 04 2026 at 15:16):

At least, that's what we do with EDist and ENNReal.

Yury G. Kudryashov (Jan 04 2026 at 20:23):

Let's start with #33558

Eric Wieser (Jan 04 2026 at 21:17):

Repeating what I wrote there; can you propose the full set of proposed new def names to be approved here first?

Eric Wieser (Jan 04 2026 at 21:17):

I agree that it's easier to actually rename them in separate PRs, but I think we should make and approve the decision globally first

Yury G. Kudryashov (Jan 04 2026 at 21:20):

  • EMetric.diam -> Metric.ediam
  • EMetric.ball -> Metric.eball
  • EMetric.closedBall -> Metric.closedEBall
  • EMetric.infEdist -> Metric.infEDist
  • EMetric.mem_nhds_iff etc -> Metric.mem_nhds_iff_eball or _iff_edist
  • same for Metric.mem_nhds_iff etc

Yury G. Kudryashov (Jan 04 2026 at 21:20):

What did I miss?

Eric Wieser (Jan 04 2026 at 21:40):

(docs#Metric.mem_nhds_iff for reference)

Yury G. Kudryashov (Jan 05 2026 at 17:29):

Should we go forward with renaming or wait a bit more? In the latter case, what's a good time to wait before merging the first PR?

Ruben Van de Velde (Jan 05 2026 at 17:55):

Maybe a few more days

Ruben Van de Velde (Jan 05 2026 at 17:55):

Flagging @maintainers if anyone wants to comment

Jireh Loreaux (Jan 05 2026 at 17:57):

I'm in favor.

Yury G. Kudryashov (Jan 05 2026 at 19:36):

@Ruben Van de Velde How many days is "a few"? I don't want to go against someone's objections, but I don't want the PR to rot.

Jireh Loreaux (Jan 05 2026 at 20:06):

@Yury G. Kudryashov, if no one objects before tomorrow morning, I'll merge it.

Yury G. Kudryashov (Jan 06 2026 at 15:16):

I've merged master and fixed build.

Jireh Loreaux (Jan 06 2026 at 15:18):

@Yury G. Kudryashov :bors:

Yury G. Kudryashov (Jan 08 2026 at 22:20):

Next: #33772

Yury G. Kudryashov (Jan 08 2026 at 23:18):

I wrote a script to print all non-autodecl names with deprecation info, then compared the output on master and on that branch to

  • make sure that all previously deprecated names are still there with the same date & newName;
  • every old name except for a few instance names didn't go away; instead, it's deprecated with date 2026-01-08.

Yury G. Kudryashov (Jan 11 2026 at 19:47):

I'm a bit afraid that #33772 will rot.

Matteo Cipollina (Jan 21 2026 at 14:52):

during the review of #34202 @Michael Rothgang raised the question of whether should EMetric.annulus/i proposed in the PR be called Metric.eannulus instead, by analogy with Metric.eball and friends. I suspect the consensus is for a 'yes' but please let me know if any suggestion

Yury G. Kudryashov (Jan 21 2026 at 15:06):

I think, yes.

Yury G. Kudryashov (Jan 24 2026 at 20:16):

Next in line: #34379

Yury G. Kudryashov (Jan 24 2026 at 20:17):

I've left lemmas like docs#EMetric.isOpen_iff for another PR to make it a bit easier to review this one.

Yury G. Kudryashov (Jan 24 2026 at 20:19):

I've tested that

  • all newly deprecated names use date 2026-01-24;
  • all newly deprecated names exist as non-deprecated names on master;
  • no name disappeared, all of them were deprecated instead.

Yury G. Kudryashov (Jan 24 2026 at 20:19):

One deprecation change the "target": Emetric.exists_smooth_forall_closedBall_subset.

Yury G. Kudryashov (Jan 31 2026 at 17:59):

#34379 regularly gets merge conflicts. I would appreciate a review.


Last updated: Feb 28 2026 at 14:05 UTC