leanprover / lean4

Lean 4 programming language and theorem prover
https://lean-lang.org
Apache License 2.0
4.74k stars 427 forks source link

feat: have "motive is not type correct" come with an explanation #6168

Closed kmill closed 2 days ago

kmill commented 3 days ago

This PR extends the "motive is not type correct" error message for the rewrite tactic to explain what it means. It also pretty prints the type-incorrect motive and reports the type error.

Suggested on Zulip.

leanprover-community-bot commented 3 days ago

Mathlib CI status (docs):