Commit 2020-09-14 12:41 e35e287b
View on Github →refactor(data/nat/*): cleanup data.nat.basic, split data.nat.choose (#4135)
This PR rearranges data.nat.basic so the lemmas are now in (hopefully appropriately-named) markdown sections. It also moves several sections (mostly ones that introduced new defs) into new files:
data.nat.factdata.nat.psub(maybe this could be nameddata.nat.partial?)data.nat.logdata.nat.with_botdata.nat.choosehas been split into a directory:- The definition of
nat.chooseand basic lemmas about it have been moved fromdata.nat.basicintodata.nat.choose.basic - The binomial theorem and related lemmas involving sums are now in
data.nat.choose.sum; the following lemmas are now in thenatnamespace:sum_range_choosesum_range_choose_halfwaychoose_middle_le_pow
- Divisibility properties of binomial coefficients are now in
data.nat.choose.dvd. Other changes: - added
nat.pow_two_sub_pow_twotodata.nat.basic. - module docs & doc strings for
data.nat.sqrt