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.
This PR fixes all
decreasing_by sorry
's.Most fixes were achieved by introducing two mutually dependent functions, one of which was built with the structural induction on
Term
, and another one – with induction onBindings
.Another kind of issue was caused by
consBindingsRedMany
, which is defined by induction on(obj l1) ⇝* (obj l2)
. For some reason, structural recursion was not applied directly because(obj l1)
and(obj l2)
do not happen to be variables. This thread on Zulip was about a similar issue and helped to find the solution. However it was still not enough because "code generator does not support recursor 'ReflTransGen.rec' yet, consider using 'match ... with' and/or structural recursion
". Structural recursion could not be used because of non-variable arguments, so now we rely onMathlib.Util.CompileInductive
to generateReflTransGen.rec
.Also, this PR updates
lean-toolchain
and contains code refactoring which was caused by the update.PR-Codex overview
The focus of this PR is to introduce new dependencies and update existing ones.
Detailed summary
quote4
,aesop
,proofwidgets
, andimportGraph
std
,doc-gen4
, andmathlib4
incLocatorsFrom
,substitute
,substituteLst
,subst_inc_cancel
,subst_inc_cancel_Lst
,lookup
, andinsert_φ