An unofficial, read-only Hacker News reader. Join the beta →

The algebra of dependent types (2025) (opens external site)

113 points by todsacerdoti 4 days ago | dotat.at | 26 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. > it’s also isomorphic to its ordinary dual, it’s not naturally so

    So they say, but no one seems to know how to formalise that! It's repeated so often you would think such an claim could be trivially refuted, but it turns out not.

    * https://mathoverflow.net/questions/345136/is-a-vector-space-...

    * https://h2.jaguarpaw.co.uk/posts/vector-space-naturally-isom...

    Replies (2)
    1. Here's a formalization of the equivalence[1] and the naturality[2] of the equivalence between a module and its double dual, though I couldn't find it formalized in category theoretic lingo yet.

      [1] https://leanprover-community.github.io/mathlib4_docs/Mathlib...

      [2] https://leanprover-community.github.io/mathlib4_docs/Mathlib...

      Replies (1)
      1. The difficult part (and so far unknown, I believe) is to show that no isomorphism to the (single) dual is natural.
    2. Vector spaces are naturally isomorphic to their dual as per my sibling comment. The issue is that pople generally want more out of their duals than just the bare construction as functionals, which is the only thing you get with Vect, the category of vector spaces with linear maps.

      If you instead work with functionals rather than bare vector spaces, then there isn't even a functor to the duals, much less an isomorphism. This category is a richer version of Vect, since you can embed Vect into it fully faithfully via the normal double dual map, and it does a better job of capturing all the linear algebra you see with duals.

      Replies (1)
      1. > Vector spaces are naturally isomorphic to their dual as per my sibling comment.

        If you really believe that then you could go to the Mathoverflow question I linked, state that you agree with the claim and vote to reopen. Pretty much no one shares that point of view (not that that should imply you're wrong!).

        > If you instead work with functionals rather than bare vector spaces

        I don't follow. What does it mean to "work with functionals"?