You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,30 @@ One of the easiest ways to contribute is to find a missing proof and complete it
64
64
declaration documents statements that have been identified as being useful, but that have not yet
65
65
been proven.
66
66
67
-
In contrast to mathlib, `batteries` uses pull requests from forks of this repository. Hence, no special permissions on this repository are required for new contributors.
67
+
In contrast to Mathlib, Batteries uses pull requests from forks of this repository. Hence, no special permissions on this repository are required for new contributors.
68
68
69
69
You can change the labels on PRs by commenting one of `awaiting-review`, `awaiting-author`, or `WIP`. This is helpful for triage.
70
+
71
+
### Mathlib Adaptations
72
+
73
+
Batteries PRs often affect Mathlib, a key component of the Lean ecosystem.
74
+
When Batteries changes in a significant way, Mathlib must adapt promptly.
75
+
When necessary, Batteries contributors are expected to either create an adaptation PR on Mathlib, or ask for assistance for and to collaborate with this necessary process.
76
+
77
+
Every Batteries PR has an automatically created Mathlib branch called `batteries-pr-testing-N` where `N` is the number of the Batteries PR.
78
+
This is a clone of Mathlib where the Batteries requirement points to the Batteries PR branch instead of the main branch.
79
+
Batteries uses this branch to check whether the Batteries PR needs Mathlib adaptations.
80
+
A tag `builds-mathlib` will be issued when this branch needs no adaptation; a tag `breaks-mathlib` will be issued when the branch does need an adaptation.
81
+
82
+
The first step in creating an adaptation PR is to switch to the `batteries-pr-testing-N` branch and push changes to that branch until the Mathlib CI process works.
83
+
Changes to the Batteries PR will be integrated automatically as you work on this process.
84
+
Do not redirect the Batteries requirement to main until the Batteries PR is merged.
85
+
Please ask questions to Batteries and Mathlib maintainers if you run into issues with this process.
86
+
87
+
When everything works, create an adaptation PR on Mathlib from the `batteries-pr-testing-N` branch.
88
+
You may need to ping a Mathlib maintainer to review the PR, ask if you don't know who to ping.
89
+
Once the Mathlib adaptation PR and the original Batteries PR have been reviewed and accepted, the Batteries PR will be merged first. Then, the Mathlib PR's lakefile needs to be repointed to the Batteries main branch: change the Batteries line to
0 commit comments