Skip to content

Limits of sequences in metric spaces #1378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

malarbol
Copy link
Collaborator

@malarbol malarbol commented Mar 24, 2025

This PR formalizes a few definitions and results about limits in (pre|pseudo|)metric spaces.
It introduces the following modules:

  • metric-spaces.sequences-premetric-spaces:

    • sequences in premetric spaces.
  • metric-spaces.limits-sequences-premetric-spaces:

    • limits of sequences in premetric spaces;
    • short maps preserve limits.
  • metric-spaces.sequences-pseudometric-spaces:

    • sequences in pseudometric spaces.
  • metric-spaces.limits-sequences-pseudometric-spaces:

    • limits of sequences in pseudometric spaces;
    • indistinguishability of limits of a sequence in a pseudometric space.
  • metric-spaces.sequences-metric-spaces:

    • the metric space of sequences in a metric space.
  • metric-spaces.limits-sequences-metric-spaces:

    • limits of sequences in metric spaces;
    • unicity of the limit of a sequence in a metric space.
  • metric-spaces.convergent-sequences-metric-spaces:

    • sequences in a metric space that have a limit;
    • short maps between metric spaces preserve convergent sequences.
  • metric-spaces.metric-space-of-convergent-sequences-in-a-metric-space:

    • the metric space of convergent sequences in a metric space.

@malarbol malarbol mentioned this pull request Apr 29, 2025
8 tasks
@malarbol
Copy link
Collaborator Author

malarbol commented May 1, 2025

It feels like the for module

open import metric-spaces.limits-of-cauchy-approximations-in-premetric-spaces public
open import metric-spaces.limits-sequences-metric-spaces public
open import metric-spaces.limits-sequences-premetric-spaces public
open import metric-spaces.limits-sequences-pseudometric-spaces public

should be renamed

open import metric-spaces.limits-of-cauchy-approximations-premetric-spaces public
open import metric-spaces.limits-of-sequences-metric-spaces public
open import metric-spaces.limits-of-sequences-premetric-spaces public
open import metric-spaces.limits-of-sequences-pseudometric-spaces public

(remove some -in and add some -of).
Do you agree?

@fredrik-bakke
Copy link
Collaborator

By the way (this is outside the scope of this PR), I might also suggest using the term "indiscernible" for what you currently call "indistinguishable". This fits with the principle of Identity of indiscernibles. Personally, I actually first learned about this principle in the context of metric spaces! This also meshes with the terminology of the book The Univalence Principle, which coincidentally I was following for #1419.

@fredrik-bakke
Copy link
Collaborator

It feels like the for module

open import metric-spaces.limits-of-cauchy-approximations-in-premetric-spaces public
open import metric-spaces.limits-sequences-metric-spaces public
open import metric-spaces.limits-sequences-premetric-spaces public
open import metric-spaces.limits-sequences-pseudometric-spaces public

should be renamed

open import metric-spaces.limits-of-cauchy-approximations-premetric-spaces public
open import metric-spaces.limits-of-sequences-metric-spaces public
open import metric-spaces.limits-of-sequences-premetric-spaces public
open import metric-spaces.limits-of-sequences-pseudometric-spaces public

(remove some -in and add some -of). Do you agree?

Yes, this seems reasonable

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.

Thank you for this excellent addition!

@malarbol
Copy link
Collaborator Author

malarbol commented May 1, 2025

If the content is ok, I think maybe we could add some ## See also between some modules
(e.g. limits-of-sequences --> convergent-sequences --> metric-space-of-convergent-sequences).
Also, I guess we could add some references (e.g. https://en.wikipedia.org/wiki/Limit_of_a_sequence) and Wikidata entries.

@fredrik-bakke
Copy link
Collaborator

Oh, sure, please do. Let me know when you are done with those final additions

@malarbol
Copy link
Collaborator Author

malarbol commented May 1, 2025

By the way (this is outside the scope of this PR), I might also suggest using the term "indiscernible" for what you currently call "indistinguishable". This fits with the principle of Identity of indiscernibles. Personally, I actually first learned about this principle in the context of metric spaces! This also meshes with the terminology of the book The Univalence Principle, which coincidentally I was following for #1419.

One problem is that, even if it's defined for premetric spaces in general, you need at least a pseudometric structure to make it an equivalence relation. so "indiscernible" doesn't seem right for premetric spaces. I'll open an Issue to discuss renaming/refactoring the metric-spaces module as we discussed already and we can talk about it.
I'm starting to think the hierarchy premetric -> pseudometric -> metric is a bit too much and we could do with only premetric (what we call pseudometric now) and metric, a premetric space where "indiscernible" elements are equal.

@malarbol
Copy link
Collaborator Author

malarbol commented May 1, 2025

Oh, sure, please do. Let me know when you are done with those final additions

That's done.

@malarbol malarbol mentioned this pull request May 1, 2025
2 tasks
@malarbol
Copy link
Collaborator Author

malarbol commented May 1, 2025

Thank you for this excellent addition!

Thanks. I still haven't proved (r < 1)ⁿ → 0, I took the long way I guess, but I hope this proves useful in the future.

@fredrik-bakke fredrik-bakke merged commit 3b9b9f6 into UniMath:master May 1, 2025
4 checks passed
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.

4 participants