Skip to content

fix: prove decidable_of_decidable_of_eq without cast - #1531

Merged
leodemoura merged 1 commit into
leanprover:masterfrom
digama0:decidable_of_eq
Aug 28, 2022
Merged

leodemoura merged 1 commit into
leanprover:masterfrom
digama0:decidable_of_eq

Conversation

@digama0

@digama0 digama0 commented Aug 28, 2022

Copy link
Copy Markdown
Collaborator

This is a subtle bug inherited from lean 3. Using cast to implement decidable instances is an anti-pattern because it blocks kernel computation if the proof of equality uses axioms. (We may also want to move these lemmas out entirely, but this is the easy fix.)

@leodemoura
leodemoura enabled auto-merge (rebase) August 28, 2022 14:34
@leodemoura
leodemoura merged commit f93914e into leanprover:master Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants