How long does a Mathlib deprecation warning last?
A median of 6 releases. After that, the old name is an unknown identifier and the compiler no longer says what replaced it.
Scan your project Look up a name
Of 10,241 deprecated aliases first seen between v4.0.0 and v4.27.0, 10,240 have since been deleted. 19% were gone within 5 releases, 95% within 8; the middle half lived 6 to 7 releases. Counted from Mathlib's own history across all 37 releases up to v4.36.0 (15,339 aliases in all).
If you bump from an older pin, how much of the trail is gone?
Take every name Mathlib deprecated after your pin and up to v4.36.0. The last column is the share whose alias has already been deleted: for those names the compiler gives you no replacement to follow.
| Your pin | Releases behind | Names deprecated since | Alias already deleted | Share |
|---|---|---|---|---|
v4.35.0 | 1 | 1,255 | 0 | 0% |
v4.34.0 | 2 | 1,611 | 0 | 0% |
v4.33.0 | 3 | 2,029 | 1 | 0% |
v4.32.0 | 4 | 2,671 | 3 | 0% |
v4.31.0 | 5 | 3,092 | 39 | 1% |
v4.30.0 | 6 | 3,737 | 57 | 2% |
v4.29.0 | 7 | 4,403 | 626 | 14% |
v4.28.0 | 8 | 4,858 | 1,071 | 22% |
v4.27.0 | 9 | 5,098 | 1,311 | 26% |
v4.26.0 | 10 | 5,778 | 1,991 | 34% |
v4.25.0 | 11 | 6,134 | 2,347 | 38% |
v4.24.0 | 12 | 6,610 | 2,823 | 43% |
v4.23.0 | 13 | 6,960 | 3,173 | 46% |
v4.22.0 | 14 | 7,392 | 3,605 | 49% |
v4.21.0 | 15 | 7,944 | 4,157 | 52% |
v4.20.0 | 16 | 8,110 | 4,323 | 53% |
v4.19.0 | 17 | 9,008 | 5,221 | 58% |
v4.18.0 | 18 | 9,461 | 5,674 | 60% |
v4.17.0 | 19 | 9,982 | 6,195 | 62% |
v4.16.0 | 20 | 10,507 | 6,719 | 64% |
v4.15.0 | 21 | 10,928 | 7,140 | 65% |
v4.14.0 | 22 | 11,476 | 7,688 | 67% |
v4.13.0 | 23 | 12,310 | 8,522 | 69% |
v4.12.0 | 24 | 13,224 | 9,436 | 71% |
Alias lifetime in releases
Aliases first seen up to v4.27.0 (all of these have had time to be deleted).
| Releases the alias lived | Aliases | Cumulative |
|---|---|---|
| 1 | 219 | 2.1% |
| 2 | 76 | 2.9% |
| 3 | 48 | 3.3% |
| 4 | 234 | 5.6% |
| 5 | 1,337 | 18.7% |
| 6 | 3,242 | 50.4% |
| 7 | 2,926 | 78.9% |
| 8 | 1,631 | 94.9% |
| 9 | 442 | 99.2% |
| 10 | 79 | 99.9% |
What to do with it
Within a few releases of your pin the deprecation warnings still name the replacement. Past that window, the rename has to come from Mathlib's history. Leanbump reads that history: paste your repository and it lists every line using a renamed name, with the new name beside it and the exact renames as one diff you can apply.
Method: kind = alias rows of the Leanbump rename map, built from the deprecated attributes in the Mathlib git history at each v4.X.0 tag. Lifetime is the number of releases between the first release holding the alias and the first release without it. Names removed with no alias are not counted here. Recomputed from the map by bench/alias_lifespan.py.