let
/ else pattern matching does not substitute in expected type
#3065
Labels
bug
Something isn't working
Prerequisites
Description
let 3 := n | failure
does not substituten
with3
in the target type, even though equivalent spellings do.Context
Zulip thread
This impacts leanprover-community/quote4, which transpiles to this type of
let
statement.Steps to Reproduce
The following does not work:
but the corresponding
match
does:as does
if let
Expected behavior: All three examples should behave identically
Actual behavior: The first one does not type-check
Versions
leanprover/lean4:v4.4.0-rc1
Additional Information
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: