Zulip Chat Archive
Stream: Is there code for X?
Topic: Chicken Mcnugget/Frobenius coin
Alex Zhao (Jul 30 2021 at 01:09):
Chicken Mcnugget theorem: smallest number you can "build" from nonnegative multiples of m, n in naturals is m*n-m-n. Is this in Mathlib yet?
Johan Commelin (Jul 30 2021 at 05:24):
Nope, I don't think so.
Kevin Buzzard (Jul 30 2021 at 06:14):
I think that's the largest number you can't build :-) and it should be a nice exercise in Lean.
Damiano Testa (Jul 30 2021 at 06:53):
Also, I encourage you to assume that m
and n
are relatively prime!
Alex Zhao (Jul 30 2021 at 16:05):
sorry yes, largest number you cant build assume coprimality my bad
Aaron Anderson (Sep 06 2021 at 22:41):
I’ve been advising @Alex Zhao on this, and now he has a nearly-PR-able version. Do we have any thoughts as to where this could belong in mathlib, perhaps in archive
?
Scott Morrison (Sep 06 2021 at 23:37):
I think it should just go in mathlib proper.
Scott Morrison (Sep 06 2021 at 23:38):
Presumably in the form of an implication x > m * n - m - n
implies \exists ...
.
Mario Carneiro (Sep 06 2021 at 23:39):
that's the easy direction, isn't it?
Scott Morrison (Sep 06 2021 at 23:41):
oh yes :-)
Scott Morrison (Sep 06 2021 at 23:42):
and I guess just \forall a b, a * m + b * n \ne m * n - m - n
.
Scott Morrison (Sep 06 2021 at 23:43):
(The point I was attempting to make is that one shouldn't state this theorem as the sup of a set.)
Scott Morrison (Sep 06 2021 at 23:45):
and it could just go in mathlib as early as the import structure allows.
Last updated: Dec 20 2023 at 11:08 UTC