8000 defCopatternLHS needs to be set when record expression were translated to copatterns · Issue #4142 · agda/agda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
defCopatternLHS needs to be set when record expression were translated to copatterns #4142
Closed
@HuStmpHrrr

Description

@HuStmpHrrr

consider the following program

open import Level
open import Relation.Binary.PropositionalEquality

record single : Set (suc 0ℓ) where
  -- eta-equality needs to enable to make the following proof work
  field
    A : Set

  pack : single
  pack = record { A = A }

lem : (x : single)  x ≡ single.pack x
lem x = {!refl!}

to make the proof to work, either

  • turn on eta-equality in the definition of single, or
  • case split on x.

however, the doc seems to indicate that eta-equality is on by default. so why this program doesn't work? is this a bug or just some subtlety?

Metadata

Metadata

Assignees

Labels

etaη-expansion of metavariables and unification modulo ηrecord-expression-to-copatternsConcerning the translation of rhss which are record expressions to copattern matching.recordsRecord declarations, literals, constructors and updatesregression in 2.5.4Regression that first appeared in Agda 2.5.4

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0