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
Ltac2 Constr.Unsafe.case type should expose the inductive and the number of parameters #10940
Comments
@ppedrot Do you intend to address this in time for 8.12? If that's the case, there should be an assignee. If not, please remove or adjust the milestone. |
This is not urgent, so postponing. |
This was already postponed once. Not a problem, but maybe the milestone could be simply removed? |
Having access to the number of parameters of an Inductive would be a useful feature! |
@ppedrot I'd like an update w.r.t. this PR and its milestone |
It's an issue, not a PR, so postpone. |
My interpretation of milestoned issues, is that they have something to do with that release. So I'm not postponing, but rather clearing the milestone. |
Description of the problem
It is useful when writing inversion-style automation to know how many parameters an inductive type should have. It is also sometimes important to know, given a
match
statement, which inductive is being matched. Hence there should be projectionscase -> inductive
andcase -> int
(perahapsinductive_of_case
andnbparameters_of_case
?) which correspond toci_ind
andci_npar
inconstr.mli
¹ and to the tupleind_and_nbparams
in template-coq².¹
coq/kernel/constr.mli
Lines 38 to 39 in e6991dc
² https://github.com/MetaCoq/metacoq/blob/1086391b66b82d10e9aa8d23411344ae9a49bbd4/template-coq/theories/Ast.v#L52
cc @ppedrot @andres-erbsen
Coq Version
master
The text was updated successfully, but these errors were encountered: