Learn
Ways to Contribute
Choose a way to help that fits your background. You can write Lean code, explain existing results, record physics in plain English, or help the community.
No setup needed
Spread the Word
The easiest way to contribute is to promote the project, either by word of mouth or by sharing it on social media.
Join the Discussion
There are a number of discussions on the Physlib Zulip, some of which contain questions you may be able to help with.
If you know the physics
Write an API Map
API maps are Markdown guides that explain a topic and link to the relevant Lean declarations. If you know the physics and are new to Lean, you can start with one.
Add Informal Results
If you have a background in physics and don't have the time or skills to formalize results into Lean, you can contribute by adding informal results — definitions and theorems — written in English, placed within the project.
Review a Pull Request
Anyone can review a pull request. If you know the physics, read an open one and check that the physics is right.
If you write Lean
Document or Golf a File
Golfing is the process of making the code more concise and readable, whilst documentation is the process of adding comments and explanations to the code.
Pick Up a TODO
The TODO list contains unfinished work marked in the Lean files. This includes informal lemmas and definitions waiting to be formalized, and relatively small tasks like renaming lemmas.
Help with an Issue
You can contribute by helping with open issues. These range from suggested formalizations, to infrastructure changes needed, to Lean metaprogramming tasks.
Start a Mini-Project
There is a list of mini-projects on the Project Ideas page. If you want to get your teeth really stuck into formalizing physics, these are a great place for ideas.
If you work with AI tools
Draft in PhyslibAlpha
PhyslibAlpha is a downstream staging ground for formalizations, where AI-generated code is allowed and the review process is less strict. First drafts of theorems can go there, and a human can then use them as inspiration to produce higher quality code in Physlib.
Questions?
Need Help?
Join our community discussions or reach out for help on the Physlib channel within the Lean Zulip.
Join Discussion