chore: adaptations for nightly-2024-04-07#11997
Conversation
| theorem eq_iff_eq_true_iff {a b : Bool} : a = b ↔ ((a = true) ↔ (b = true)) := by | ||
| cases a <;> cases b <;> simp | ||
|
|
||
| -- Porting note (#10756): new theorem |
There was a problem hiding this comment.
These have been upstreamed.
Mathlib/Data/Fin/Basic.lean
Outdated
| simp | ||
| #align fin.le_sub_one_iff Fin.le_sub_one_iff | ||
|
|
||
| @[simp] |
| rw [id_comp] | ||
| · obtain _ | _ | k := k | ||
| · simp at hjk | ||
| · simp [Nat.succ.injEq] at hjk |
There was a problem hiding this comment.
Something equivalent to this was removed from the default simp set because it was going haywire on numerals.
…nity/mathlib4 into bump/nightly-2024-04-07
2013e81 to
da393b3
Compare
Ruben-VandeVelde
left a comment
There was a problem hiding this comment.
The majority of the remaining changes seem to be:
- slowdowns / simpNF timeputs with notes
- #12233
- rfl-after-conv
- A few remaining
Ne.def/id.defchanges - updates for Std bump
Everything else seems an improvement or relatively inoffensive, so I think we should let #12233 merge, cherry-pick it to bump/v4.8.0 and then merge this.
| -- Adaptation note: at nightly-2024-03-27, | ||
| -- we had to increase `maxHeartbeats` here from 8000 to 16000. | ||
| -- Adaptation note: at nightly-2024-04-01, | ||
| -- we had to increase `maxHeartbeats` here from 16000 to 24000. | ||
| -- (Note: successive runs are faster, because of the `exact?` cache initialisation.) |
There was a problem hiding this comment.
Hmmm, I'm a bit sad about these. Do we have ideas about how to get the number down again?
There was a problem hiding this comment.
Unfortunately not yet. :-(
Co-authored-by: Johan Commelin <johan@commelin.net>
|
I've looked through the entire diff. Looks fine to me. bors d+ |
|
✌️ semorrison can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors merge |
|
bors r- |
|
Canceled. |
) These are changes from #11997, the latest adaptation PR for nightly-2024-04-07, which can be made directly on master. Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
) These are changes from #11997, the latest adaptation PR for nightly-2024-04-07, which can be made directly on master. Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
) These are changes from #11997, the latest adaptation PR for nightly-2024-04-07, which can be made directly on master. Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
This is the PR to
bump/v4.8.0, bringing us up fromnightly-2024-03-24tonightly-2024-04-07(so almost two weeks).Note that the release of v4.8.0-rc1 has been delayed because of remaining issues:
This PR contains a number of
set_option maxHeartbeats ...or@[nolint simpNF]which are required by heartbeats errors.These are due to changes to
IsDefEqfrom leanprover/lean4#3807.So far, the ones I've looked in detail have revealed some problems where we are probably abusing defeq a bit, so I would appreciate any available eyes on these to see which ones ought to be fixed in Mathlib, and which ones are problematic.
It's been a long road to keep
nightly-testingalive, and some big refactors have been landing onmaster, and I'm sure there are mistakes in how I've merged things here, so please be gentle if I've messed things up (and in particular feel free to revert changes that look like mistakes, as long as you test them!). :-)