Zulip Chat Archive

Stream: mathlib4

Topic: defLemma failing when it seems it shouldn't


Thomas Murrills (Jan 14 2023 at 00:24):

When does the defLemma linter fail or not? For example, I have one definition whose return type is a structure with a single equality argument, and that's fine. But if the return type is a structure with one data field and one equality argument, that's not. Is this a relevant factor?

Thomas Murrills (Jan 14 2023 at 00:25):

If I replace theorem with def, I get a much scarier error:

unsupported Mathlib.Meta.NormNum.IsNat.casesOn application during code generation

Thomas Murrills (Jan 14 2023 at 00:27):

I'm wondering if this warrants a [nolint defLemma].

Johan Commelin (Jan 14 2023 at 03:56):

Could you please link to a line of code?

Thomas Murrills (Jan 14 2023 at 04:59):

This particular issue was worked around on mathlib4#1441, so I guess it doesn't matter anymore! :)


Last updated: Dec 20 2023 at 11:08 UTC