Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Warning: since it changes the Lean and mathlib version, you will need to redownload the cache once you have merged this one, by doing
lake exe cache get
(and if this one fails, then erase your.lake
folder and dolake exe cache get
again).The main change in the new Lean version is that the rule for variables inclusion has changed (see leanprover/lean4#4814). The short version is that variables that are not mentioned in the statement of a theorem are not included by default (so you need to do
to make sure that
h_indep
is available in the proof), and that all typeclasses about objects in the statement are included by default (so sometimes spurious typeclasses are included, which can be avoided by reorganizing things if desired, or one can live with the spurious typeclasses). This is a big change, that increases predictability (before that, what variables were included in a theorem could depend on the proof of the theorem, so changing a proof could change the statement of the theorem, which has bitten us prety badly several times).