Zulip Chat Archive

Stream: mathlib4

Topic: Strange condition on nat_mul_inj'


Jz Pan (May 31 2025 at 14:33):

docs#nat_mul_inj' requires NoZeroDivisors R and CharZero R. But I think it only requires NoZeroSMulDivisors ℕ R. Is it true?

Yaël Dillies (May 31 2025 at 14:48):

Yes: docs#nsmul_right_inj

Jz Pan (May 31 2025 at 15:09):

I've checked that IsAddTorsionFree instance cannot be synthesized correctly if without importing certain files. For example in here https://github.com/leanprover-community/mathlib4/pull/22620#discussion_r2117890558

So it seems that nsmul_right_inj requires more import than nat_mul_inj'.

Yaël Dillies (May 31 2025 at 15:11):

Aha, we should definitely fix this!

Jz Pan (May 31 2025 at 15:11):

(deleted)


Last updated: Dec 20 2025 at 21:32 UTC