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

Anomaly with unipoly, index inductive and number notations #17225

Closed
Alizter opened this issue Feb 6, 2023 · 2 comments · Fixed by #17283
Closed

Anomaly with unipoly, index inductive and number notations #17225

Alizter opened this issue Feb 6, 2023 · 2 comments · Fixed by #17283
Labels
kind: anomaly An uncaught exception has been raised. kind: bug An error, flaw, fault or unintended behaviour.
Milestone

Comments

@Alizter
Copy link
Contributor

Alizter commented Feb 6, 2023

Set Universe Polymorphism.
Axiom A : Type.

Inductive B : A -> Type :=
| x {a} : B a
| y {a} : B a -> B a
.

Number Notation B Nat.of_num_uint Nat.to_num_uint
  (via nat mapping [[x] => O, [y] => S]) : nat_scope.
Anomaly "bad instance length on mutind."
Please report at http://coq.inria.fr/bugs/.
@Alizter Alizter added kind: anomaly An uncaught exception has been raised. kind: bug An error, flaw, fault or unintended behaviour. labels Feb 6, 2023
@Alizter
Copy link
Contributor Author

Alizter commented Feb 6, 2023

cc @coq/universes-maintainers @coq/number-maintainers

@SkySkimmer
Copy link
Contributor

I guess it does type_of_ind with a dummy empty instance.
Not sure if number notations are supposed to work with univ poly inductives, if not then there should be a check before this happens I suppose.

SkySkimmer added a commit to SkySkimmer/coq that referenced this issue Feb 23, 2023
SkySkimmer added a commit to SkySkimmer/coq that referenced this issue Feb 24, 2023
SkySkimmer added a commit to SkySkimmer/coq that referenced this issue Feb 27, 2023
SkySkimmer added a commit to SkySkimmer/coq that referenced this issue Mar 6, 2023
@coqbot-app coqbot-app bot added this to the 8.18+rc1 milestone Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: anomaly An uncaught exception has been raised. kind: bug An error, flaw, fault or unintended behaviour.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants