Zulip Chat Archive
Stream: mathlib4
Topic: Naming of `Int` recursors
Jeremy Tan (Jun 07 2025 at 01:18):
https://github.com/leanprover-community/mathlib4/pull/25512#discussion_r2132112154 @Eric Wieser said that the induction principles for Int need better names than their current hz, hp, hn. But I am pretty sure those names are defined in core, but I can't find the exact location
Eric Wieser (Jun 07 2025 at 01:19):
show_term will find it for you
Jeremy Tan (Jun 07 2025 at 01:20):
/poll What should the new recursor names be?
zero, pos, neg
zero, toNat, negSucc
Notification Bot (Jun 07 2025 at 01:20):
This topic was moved here from #lean4 > Naming of `Int` recursors by Eric Wieser.
Aaron Liu (Jun 07 2025 at 01:22):
Found it, it's docs#Int.induction_on
Jeremy Tan (Jun 07 2025 at 01:23):
I opened a poll on the better names above
Jeremy Tan (Jun 07 2025 at 01:23):
wait, so it's in mathlib after all...
Jeremy Tan (Jun 07 2025 at 04:57):
#25555 fixes the branch names to zero, succ, pred
Last updated: Dec 20 2025 at 21:32 UTC