Zulip Chat Archive

Stream: mathlib4

Topic: How to write repeated tensor products


Jason Rute (Aug 18 2024 at 01:32):

This PA.SX question is about how to naturally write things like g:A1AnBg : A_1 \otimes \cdots \otimes A_n \to B. While I could give some answer using List and foldr/foldl, I assume there might be a more canonical solution in this case.

Adam Topaz (Aug 18 2024 at 05:45):

We have docs#PiTensorProduct

Adam Topaz (Aug 18 2024 at 05:54):

I see now that the question is about tensor products in a monoidal category, and there is indeed no canonical way yet. The default would be to associate to the right, similarly to how products work at the type level.


Last updated: May 02 2025 at 03:31 UTC