Physlib

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.

New to Lean and Physlib? Check out our Getting Started page, then follow the GitHub Guide when you are ready to submit a change. If you use AI tools, read the AI Resources first.
Which describes you?

No setup needed

01

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.

02

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

03

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.

04

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.

05

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

06

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.

07

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.

08

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.

09

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

10

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