Skip to content

Conversation

@malarbol
Copy link
Collaborator

@malarbol malarbol commented Nov 22, 2025

This PR introduces the concept of metric extension of pseudometric spaces: a metric space with an isometry from the pseudometric space into it.

@malarbol malarbol marked this pull request as ready for review November 22, 2025 20:54
@fredrik-bakke
Copy link
Collaborator

Thank you for splitting up your other PR unprompted! It was a bit daunting to begin reviewing it 😅

Copy link
Collaborator

@fredrik-bakke fredrik-bakke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the naming choices and structuring of your code is very good. I can see that you've taken extra care to comply with library guidelines this time around, thank you for spending the extra effort on that!

malarbol and others added 7 commits November 23, 2025 15:44
…dometric-spaces.lagda.md

Co-authored-by: Fredrik Bakke <fredrbak@gmail.com>
…dometric-spaces.lagda.md

Co-authored-by: Fredrik Bakke <fredrbak@gmail.com>
…dometric-spaces.lagda.md

Co-authored-by: Fredrik Bakke <fredrbak@gmail.com>
…dometric-spaces.lagda.md

Co-authored-by: Fredrik Bakke <fredrbak@gmail.com>
( f : isometry-Metric-Extension P M N)
where

isometry-metric-space-isometry-Metric-Extension :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize it is not clear how to extend this to metric extensions of metric spaces, wouldn't that be called the same thing? Perhaps Metric-Extension-Of-Pseudometric-Space is better?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, that would be called extension-Metric-Space, or Extension-Metric-Space I presume

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then perhaps the better name to use here is Metric-Extension-Pseudometric-Space?

Copy link
Collaborator Author

@malarbol malarbol Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then perhaps the better name to use here is Metric-Extension-Pseudometric-Space?

I was afraid we might come to this but I find this name too long and verbose.

I think to extend this to metric extensions of metric spaces, extension-Metric-Space would be better; we're staying in the realm of metric spaces unlike the case introduced here. Moreover, metric spaces and isometries form a category so the same construction between metric spaces could also be understood as a coslice in this category (modulo Level problems) so this might as well be called coslice-isometry-Metric-Space. Either way, I don't think Metric-Extension-Metric-Space would be a good name, and neither Metric-Extension-Pseudometric-Space.

Now, this would not be the first time I'm wrong about names. If you really think Metric-Extension-Pseudometric-Space and Metric-Extension-Metric-Space are better, I'll abide.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more I work with the concept (see #1726 or #1729) the more it feels like a new namespace between Pseudometric-Space and Metric-Space instead of something that should be declined as Metric-Extension-Pseudometric-Space and Metric-Extension-Metric-Space. I'm not sure how the name should extend to metric extensions of metric spaces but neither I am that we really need to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this file should be called isometries-metric-extensions.lagda.md to follow the names of isometries-metric-spaces.lagda.md and isometries-pseudometric-spaces.lagda.md, etc. Then we'd have "the category of metric extensions and isometries" and stuff like that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe the type Metric-Extension is wrong and the definition should be

module _
  {l1 l2 l3 l4 : Level}
  (P : Pseudometric-Space l1 l2)
  (M : Metric-Space l3 l4)
  where

  Metric-Extension : UU (l1 ⊔ l2 ⊔ l3 ⊔ l4)
  Metric-Extension =
    isometry-Pseudometric-Space P (pseudometric-Metric-Space M)

and then consider the types Metric-Extension P for a given (P : Pseudometric-Space l1 l2), etc.?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my suggestion of #1724 (comment) is actually better. I'm closing this PR and try this new way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants