Zulip Chat Archive
Stream: general
Topic: sqr vs sq vs pow_two
Bryan Gin-ge Chen (Feb 03 2021 at 04:39):
(editing)
Bryan Gin-ge Chen (Feb 03 2021 at 04:42):
Examples: docs#real.sqrt_sqr, docs#sq_sub_sq, docs#pow_two
Bryan Gin-ge Chen (Feb 03 2021 at 04:53):
This came up in #5933. I'm split between pow_two
and sq
. I think we already have a ton of lemmas named using pow_two
and it fits the naming convention the best. On the other hand it's relatively long compared to sq
and potentially trickier for new users to find.
Yakov Pechersky (Feb 03 2021 at 05:27):
It's just a special case of pow_bit0
... :upside_down:
Bryan Gin-ge Chen (Feb 03 2021 at 16:14):
Looks like sq
is barely edging out pow_two
at the moment. Supposing we go with that, would it be better to add aliases to the existing pow_two
lemmas or just rename them?
Benjamin Davidson (Feb 04 2021 at 07:33):
There's also square
, as in docs#complex.cos_square.
Ryan Lahfa (Feb 04 2021 at 14:49):
(deleted)
Mario Carneiro (Feb 04 2021 at 18:43):
Aliases make sense to me, at least for the common theorems that people might have muscle memory for
Mario Carneiro (Feb 04 2021 at 18:44):
(Also because there seems to be a fairly large number of people who prefer this name anyway)
Benjamin Davidson (Apr 26 2021 at 17:44):
Sorry it took so long but I finally got around to doing this! #7368
Last updated: Dec 20 2023 at 11:08 UTC