Zulip Chat Archive
Stream: general
Topic: euclidean division
Nicholas Scheel (Mar 26 2018 at 00:59):
Is there a proof of Euclidean division (divmod) in the libraries somewhere? I've been looking around for theorems with mod
in the core library and mathlib but couldn't find anything ...
Simon Hudon (Mar 26 2018 at 01:41):
Have you looked in init.data.nat.lemmas
in the core library?
https://github.com/leanprover/lean/blob/master/library/init/data/nat/lemmas.lean#L660-L740
Nicholas Scheel (Mar 26 2018 at 01:57):
ahh that makes sense now, thanks! I must have glossed over it earlier
Simon Hudon (Mar 26 2018 at 02:00):
No problems! The naming scheme is fairly regular so if you search for _mod_
in the core library or mathlib, it should give you a good list of available lemmas. If you miss any, they're usually close to the ones you do find
Last updated: Dec 20 2023 at 11:08 UTC