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

missing API to tell injection that a type has decidable equality #778

Open
gares opened this issue Feb 21, 2025 · 0 comments
Open

missing API to tell injection that a type has decidable equality #778

gares opened this issue Feb 21, 2025 · 0 comments

Comments

@gares
Copy link
Contributor

gares commented Feb 21, 2025

https://coq.inria.fr/doc/V8.20.0/refman/proof-engine/vernacular-commands.html#coq:cmd.Register-Scheme

so that injection picks it up

https://coq.inria.fr/doc/V8.20.0/refman/proofs/writing-proofs/reasoning-inductives.html#coq:tacn.injection

Beware that injection yields an equality in a sigma type whenever the injected object has a dependent type P with its two instances in different types (P t1 … tn) and (P u1 … un). If t1 and u1 are the same and have for type an inductive type for which a decidable equality has been declared using Scheme Equality, the use of a sigma type is avoided.

to be called in derive.eqbOK

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

No branches or pull requests

1 participant