This PR adds declaration names to leanchecker error messages to make debugging easier when the kernel rejects a declaration. Previously, leanchecker would only show the kernel error without identifying which declaration failed: ``` uncaught exception: (kernel) type checker does not support loose bound variables ``` Now it includes the declaration name: ``` uncaught exception: while replaying declaration 'myDecl': (kernel) type checker does not support loose bound variables ``` Fixes: #11937 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nomeata <148037+nomeata@users.noreply.github.com>
6 lines
214 B
Text
6 lines
214 B
Text
leanchecker found a problem in LeanCheckerTests.AddFalse
|
|
uncaught exception: while replaying declaration 'false':
|
|
(kernel) declaration type mismatch, 'false' has type
|
|
Prop
|
|
but it is expected to have type
|
|
False
|