Zulip Chat Archive
Stream: mathlib4
Topic: naming for `left` and `right`
Nailin Guan (Nov 27 2025 at 15:56):
Is there a reason why add_le_add_left and add_le_add_right swap? Since I think left and rght should be the side differing from add_le_add?
Damiano Testa (Nov 27 2025 at 15:59):
Is this before or after #30242?
Nailin Guan (Nov 27 2025 at 16:03):
Exactly in 30242
Damiano Testa (Nov 27 2025 at 16:14):
I think that this is uniformising towards the convention at the end of Injectivity: left and right refer to what changes.
Damiano Testa (Nov 27 2025 at 16:17):
I am happy that there is some convention, but regardless of what the convention is, my algorithm is usually to try left first and, if I get a type mismatch, then I try right instead.
Nailin Guan (Nov 27 2025 at 16:19):
The only problem is when updating, never mind.
Last updated: Dec 20 2025 at 21:32 UTC