Zulip Chat Archive
Stream: new members
Topic: mathlib contributions
James Arthur (Aug 14 2020 at 12:55):
Hello!
I was chatting to people on the Xena Project discord about starting to contribute to mathlib. They suggested going through and editing the docstrings on files to make them more descriptive. Could I start doing this?
Shing Tak Lam (Aug 14 2020 at 12:59):
@James Arthur 's GitHub username is jamesa9283
Scott Morrison (Aug 15 2020 at 04:57):
@James Arthur, I've just sent you an invitation giving you the ability to create and push non-master branches of the mathlib repository. Looking forwards to some docstrings! :-)
James Arthur (Aug 15 2020 at 09:16):
Thankyou :D
James Arthur (Aug 15 2020 at 11:39):
Just to clarify, am I to create my own branch to edit docstrings or use the ones already there?
Johan Commelin (Aug 15 2020 at 11:42):
Nope, please start a new branch
Johan Commelin (Aug 15 2020 at 11:42):
git checkout -b algebra-docstrings
or something like that
Johan Commelin (Aug 15 2020 at 11:42):
(Change algebra
to whatever you're working on :wink:)
James Arthur (Aug 15 2020 at 11:59):
Brilliant! (Is that a subtle note that algebra needs looking at?)
Johan Commelin (Aug 15 2020 at 12:01):
No, just a random example
James Arthur (Aug 15 2020 at 12:01):
Fair enough, thankyou
Rob Lewis (Aug 15 2020 at 12:01):
There's an official list of files/declarations that need docs: https://github.com/leanprover-community/mathlib/blob/master/scripts/nolints.txt
Rob Lewis (Aug 15 2020 at 12:02):
If you're looking for a random place to dive in, find a file on that list with a lot of entries, it's probably a good place to start.
Rob Lewis (Aug 15 2020 at 12:03):
(These are declaration doc strings, not the module docs at the top, but there's a correlation between missing decl docs and missing/small module docs.)
Johan Commelin (Aug 15 2020 at 12:04):
Otoh, I suggest starting with a small file
Johan Commelin (Aug 15 2020 at 12:04):
To get a feel for the PR/review process
Johan Commelin (Aug 15 2020 at 12:04):
A first PR with just 5 docstrings is totally fine
Johan Commelin (Aug 15 2020 at 14:54):
@James Arthur Small note: def
s are now required to have docstrings, but lemma
s don't. However, there are still a lot of old defs from before the requirement, that don't have docstrings. So doccing def
s is considered more worthwile practice than lemmas. (Even though good docstrings on important theorems is certainly encouraged.)
James Arthur (Aug 15 2020 at 15:24):
OK I shall look for defs next time :)
Bryan Gin-ge Chen (Aug 15 2020 at 17:17):
Johan Commelin said:
A first PR with just 5 docstrings is totally fine
Even a PR adding 1 docstring can be fine too. Small PRs are easy to review and can get merged more quickly. (There's a tradeoff here of course, one bigger PR fixing a bunch of related docstrings in the same file is probably better than a chain of tiny PRs.)
James Arthur (Aug 15 2020 at 17:28):
I did four. It was a good time to get some experience with the whole process
Chase Fleming (Apr 04 2022 at 03:02):
Hi all, I'm a third year PhD student at University of South Carolina focusing in set theory and topology. I'm interested in contributing to mathlib - specifically working on expanding the ordinal topology section. Can anyone orient me here with getting set up to contribute?
Johan Commelin (Apr 04 2022 at 06:12):
@Chase Fleming Welcome. Have you see https://leanprover-community.github.io/contribute/index.html?
Johan Commelin (Apr 04 2022 at 06:12):
Does that answer (most of) your questions?
Chase Fleming (Apr 04 2022 at 16:21):
@Johan Commelin Yep! I missed that page from the Lean4 documentation. Thank you so much!
Matias Heikkilä (Apr 15 2022 at 19:49):
thanks for a nice experience with my first PR :pray:
Last updated: Dec 20 2023 at 11:08 UTC