Zulip Chat Archive

Stream: mathlib4

Topic: Add note to help search similar thms


Yi.Yuan (Aug 20 2025 at 14:27):

here are two similar theorems (Int.le_induction_down) and (Nat.decreasingInduction'). Having different names for these two is not very convenient when searching for theorems. Should I add a note under Nat.decreasingInduction that says 'The version for Int, see Int.le_induction_down'?"

Aaron Liu (Aug 20 2025 at 14:28):

or maybe rename one of them

Yi.Yuan (Aug 20 2025 at 14:28):

If so, #27443 is my PR. Could someone please help review it?

Yi.Yuan (Aug 20 2025 at 14:30):

Aaron Liu said:

or maybe rename one of them

So, how can I find all the places where these theorems have appeared in mathlib?

Aaron Liu (Aug 20 2025 at 14:32):

deprecate one of the names and look at the build warnings

Yi.Yuan (Aug 20 2025 at 14:33):

So maybe I should change Int.le_induction_down to Int.decreasingInduction

Eric Wieser (Aug 20 2025 at 14:35):

The naming difference is because one is for Prop and the other Sort

Yi.Yuan (Aug 20 2025 at 14:38):

However, they are quite similar to each other.

Aaron Liu (Aug 20 2025 at 14:48):

Maybe we should generalize docs#Int.le_induction_down to be for Sort*

Ruben Van de Velde (Aug 20 2025 at 15:40):

Yes, that seems sensible


Last updated: Dec 20 2025 at 21:32 UTC