Zulip Chat Archive

Stream: LftCM22

Topic: geometric group theory


Jim Fowler (Jul 13 2022 at 04:06):

As a first project for myself, I would like to turn groups into metric_spaces via the word metric.

Jim Fowler (Jul 13 2022 at 04:06):

An initial attempt is at
https://github.com/kisonecat/word-metric/blob/main/src/word_metric.lean

Jim Fowler (Jul 13 2022 at 04:07):

But there are various things I do not understand: in https://github.com/kisonecat/word-metric/blob/main/src/word_metric.lean#L12-L30 I define enat' := with_top nat to avoid using part_enat, but surely there is a better way to tell Lean that enat' is well-ordered.

Jim Fowler (Jul 13 2022 at 04:09):

Also emetric_spaces use ennreal but all the code I wrote using with_top nat, so it would be nice if there were a not too painful way to wrap these functions to translate enat to ennreal.

Jim Fowler (Jul 13 2022 at 04:12):

And I am doing a lot of terrible things with unfold.

Oliver Nash (Jul 13 2022 at 13:14):

This is great, thanks for doing it! With regard to the enat pain, IIUC @Yury G. Kudryashov is currently in the process of carrying out a refactor that should resolve your issues.

Oliver Nash (Jul 13 2022 at 13:14):

See e.g., https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/enat.20pain/near/287893054

Oliver Nash (Jul 13 2022 at 13:15):

(Judging from #15245 this refactor is currently underway.)

Yury G. Kudryashov (Jul 13 2022 at 13:18):

@Laurent Bartholdi is also interested in this metric.

Yury G. Kudryashov (Jul 13 2022 at 13:19):

I'm going to add enat := with_top nat with basic lemmas in the next few days.


Last updated: Dec 20 2023 at 11:08 UTC