Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid synthesis of reflected instances #731

Open
1 task done
eric-wieser opened this issue Jun 16, 2022 · 0 comments
Open
1 task done

invalid synthesis of reflected instances #731

eric-wieser opened this issue Jun 16, 2022 · 0 comments

Comments

@eric-wieser
Copy link
Member

eric-wieser commented Jun 16, 2022

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

The following code:

meta example {α β : Type} (a : α) (γ : α → β → Type)
  [reflected γ] [reflected a] : reflected (γ a) :=
by apply_instance

produces the error

type expected at
  α
term has type
  1

under the second α on the first line

Steps to Reproduce

  1. Make a blank file containing only the above
  2. Observe the error message

Expected behavior: Lean should construct an instance using `(γ).subst `(a)

Actual behavior: Lean spits out the nonsense error message above

Reproduces how often: Every time

Versions

Lean 3.43.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant