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

new codegen: tests/lean/run/discrRefinement2.lean fails #6310

Closed
zwarich opened this issue Dec 4, 2024 · 1 comment
Closed

new codegen: tests/lean/run/discrRefinement2.lean fails #6310

zwarich opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zwarich
Copy link
Contributor

zwarich commented Dec 4, 2024

The items

def ex2 {α : Sort u2} {a : α} {motive : {β : Sort u2} → β → Sort u1} (m : motive a) {β : Sort u2} {b : β} (h : a ≅ b) : motive b :=
  match h, m with
  | HEq.refl _, m => m

def ex3 {α : Sort u} {a : α} {p : α → Sort v} {b : α} (h₁ : a ≅ b) (h₂ : p a) : p b :=
  match h₁, h₂ with
  | HEq.refl _, h₂ => h₂

cause the errors

tests/lean/run/discrRefinement2.lean:6:4: error: unsupported `HEq.casesOn` application during code generation
tests/lean/run/discrRefinement2.lean:10:4: error: unsupported `HEq.casesOn` application during code generation
@zwarich zwarich added the bug Something isn't working label Dec 4, 2024
@zwarich zwarich self-assigned this Dec 4, 2024
@zwarich zwarich changed the title tests/lean/run/discrRefinement2.lean fails with new codegen enabled new codegen: tests/lean/run/discrRefinement2.lean fails Dec 4, 2024
@leodemoura
Copy link
Member

Fixed by #6311

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

2 participants