Commit 2025-11-28 14:12 5971034f
View on Github →feat(LinearAlgebra/Span): improve R ∙ x notation precedence and printing (#32108)
This PR makes 2 changes to the R ∙ x notation.
- The precedence is improved. On the one hand, we want to write
R ∙ x ⊔ R ∙ y/R ∙ x ⊓ R ∙ ywithout brackets, so the precedence should be least70. On the other hand we want to be able to writeR ∙ a * bwithout brackets, so the precedence should be at most70. As a result, the notationℝ ∙ (v - w)now does require brackets, but I think this is reasonable. - An
app_unexpanderhas been added to pretty print the notation. This unexpander needs to be defined by hand because we need to explicitly tell it that the{_}notation that is used is the«term{_}»notation. This PR also removes a bunch of unneeded brackets.