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

Rewriting fails too eagerly in presence of unsolved metas #2302

Closed
jespercockx opened this issue Nov 14, 2016 · 0 comments
Assignees
Milestone

Comments

@jespercockx
Copy link
Member

@jespercockx jespercockx commented Nov 14, 2016

{-# OPTIONS --rewriting #-}

open import Agda.Builtin.Equality

postulate
  A : Set
  x0 : A
  f : A → A → A

{-# BUILTIN REWRITE _≡_ #-}

postulate
  fxx : (x : A) → (f x x) ≡ x

{-# REWRITE fxx #-}

meta : A
meta-reveal : meta ≡ x0
test : f x0 meta ≡ x0

meta = _
test = refl
meta-reveal = refl

Fails with error:

f x0 meta != x0 of type A
when checking that the expression refl has type f x0 meta ≡ x0

Should succeed.

@jespercockx jespercockx added this to the 2.5.2 milestone Nov 14, 2016
@jespercockx jespercockx self-assigned this Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.