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

elaborator doesn't unify universe metavariable #474

Open
fpvandoorn opened this issue Oct 6, 2020 · 0 comments
Open

elaborator doesn't unify universe metavariable #474

fpvandoorn opened this issue Oct 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@fpvandoorn
Copy link
Member

The following fails

-- set_option trace.elaborator_detail true

def my_eq {A : Type*} (a b : A) : Prop := true

lemma id_map_is_right_neutral {A : Type} (map : A -> A) :
  my_eq (function.comp.{1 1 _} map map) map :=
sorry

with the error

kernel failed to type check declaration 'id_map_is_right_neutral' this is usually due to a buggy tactic or a bug in the builtin elaborator
elaborated type:
  ∀ {A : Type} (map : A → A), my_eq (map ∘ map) map
elaborated value:
  λ {A : Type} (map : A → A), sorry
nested exception message:
type mismatch at application
  @my_eq (A → A)
term
  A → A
has type
  Type
but is expected to have type
  Type u_1

It works if the _ is replaced by 1.

It seems like the elaborator has taken a wrong turn somewhere, by not unifying u_1 with 1.
See https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/HoTT3.20universe.20errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant