Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: avoid termination_by', introduce WellFounded.wrap (#420)
This removes support for the `termination_by'` annotation. Until #371 it wasn't used anywhere in lean, std, mathlib, so this PR removes the single use of it. It does so using the pattern that can be used to replace uses of `termination_by'`, should there be more: Using the helper type `WellFounded.Wrap` one can indicate an explicit `WellFounded` relation to use. So this PR uses that pattern to avoid the use of `termination_by'` here, and at the same time provides the necessary definitions for others, so when Lean drops support for `termination_by'` (leanprover/lean4#3033), we can tell users how migrate. * Use wfRel instead
- Loading branch information