"(kernel) declaration has metavariables" error when let rec
is in decreasing_by
clause
#6445
Open
3 tasks done
Labels
bug
Something isn't working
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
A definition with
let rec
insidedecreasing_by
clause fails with the error: "(kernel) declaration has metavariables".Context
I ran into this problem when trying to write a bubble sort using tail recursion like this:
In this example,
let rec
is needed to userw[loop₂_size_eq]
Steps to Reproduce
Minimized reproduction:
Expected behavior: The definition completes without errors
Actual behavior:
(kernel) declaration has metavariables
errorVersions
#version -- Lean 4.16.0-nightly-2024-12-24
Platform: live.lean-lang.org
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: