A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/agda/agda/issues/7150 below:

Regression in 2.6.4 in `rewrite` with instances · Issue #7150 · agda/agda · GitHub

@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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4