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

Regression in 2.6.4 in rewrite with instances #7150

Closed
andreasabel opened this issue Feb 26, 2024 · 0 comments · Fixed by #7151
Closed

Regression in 2.6.4 in rewrite with instances #7150

andreasabel opened this issue Feb 26, 2024 · 0 comments · Fixed by #7151
Labels
instance Instance resolution regression in 2.6.4 Regression that first surfaced in Agda 2.6.4 rewrite The "rewrite" construction in LHS-es
Milestone

Comments

@andreasabel
Copy link
Member

@buggymcbugfix writes:

The fix for this issue (#7122) does not resolve the regression in the case of rewrite:

open import Agda.Builtin.Equality

record Semiring : Set₁ where
  field
    Carrier   : Set
    one       : Carrier
    mul       : Carrier  Carrier  Carrier
    left-unit : (r : Carrier)  mul one r ≡ r

open Semiring {{...}}

foo : {{R : Semiring}} (r : Carrier)  mul one r ≡ r
foo r rewrite left-unit r = refl

Error:

Semiring.mul R (Semiring.one R) r != r of type Semiring.Carrier R
when checking that the expression refl has type
Semiring.mul R (Semiring.one R) r ≡ r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
instance Instance resolution regression in 2.6.4 Regression that first surfaced in Agda 2.6.4 rewrite The "rewrite" construction in LHS-es
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant