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 "Uncaught exception Failure("hd")." #18004
Comments
Hey @doside, the coq bug minimizer is running your script, I'll come back to you with the results once it's done. |
@doside, Minimized File /github/workspace/thebug.v (full log on GitHub Actions) Minimized Coq File (consider adding this file to the test-suite)(* -*- mode: coq; coq-prog-args: ("-emacs" "-q" "-w" "-deprecated-native-compiler-option,-native-compiler-disabled" "-native-compiler" "ondemand" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "thebug") -*- *)
(* File reduced by coq-bug-minimizer from original input, then from 21 lines to 8 lines, then from 13 lines to 8 lines *)
(* coqc version 8.17.1 compiled with OCaml 4.13.1
coqtop version 8.17.1
Expected coqc runtime on this file: 0.099 sec *)
Inductive U :=
| p :nat->nat->U.
Check match p 1 2 with
| (p n 0 | p n (S n)) => 0
| _ =>1
end. Intermediate Coq File (useful for debugging if minimization did not go as far as you wanted)Build Log (contains the Coq error message)
Minimization Log (truncated to last 8.0KiB; full 26KiB file on GitHub Actions Artifacts under
|
This happens to be another instance of a problem partially addressed in coq#17854.
This happens to be another instance of a problem partially addressed in coq#17854.
This happens to be another instance of a problem partially addressed in coq#17854.
Thanks a lot for reporting! Fixed in PR #18005. |
This happens to be another instance of a problem partially addressed in coq#17854.
This happens to be another instance of a problem partially addressed in coq#17854.
Description of the problem
I meet the report from COQIDE:
Anomaly "Uncaught exception Failure("hd")."
Please report at http://coq.inria.fr/bugs/.
@coqbot minimize
Coq Version
Coq 8.16.1 on windows10 x64 platform.
Coq < Inductive U :=
| p :nat->nat->U.
Check match p 1 2 with
| (p n 0 | p n (S n)) => 0
| _ =>1
end.Coq < Debug: [vernacinterp] interpreting: Inductive U :=
p : nat -> nat -> U
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Set|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Set|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<nat -> nat -> U|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<nat -> U|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<U|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<U|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Set|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Set|>>
Debug: [RAKAM] <><><><><>
Debug: [RAKAM] <<Type|>>
Debug: [RAKAM] <><><><><>
U is defined
Debug: [RAKAM] <<U|>>
Debug: [RAKAM] <><><><><>
U_rect is defined
Debug: [RAKAM] <<U|>>
Debug: [RAKAM] <><><><><>
U_ind is defined
U_rec is defined
Debug: [RAKAM] <<U|>>
Debug: [RAKAM] <><><><><>
U_sind is defined
Coq < Coq < Coq < Coq <
Debug:
[vernacinterp] interpreting: Check
match p 1 2 with
| (p n 0 | p n (S n)) => 0
| _ => 1
end
Debug: [Cbv] Unfolding Coq.Init.Nat.of_num_uint
Debug: [Cbv] Unfolding Coq.Init.Nat.of_uint
Debug: [Cbv] Unfolding Coq.Init.Nat.of_uint_acc
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_mul
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_addmul
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.of_num_uint
Debug: [Cbv] Unfolding Coq.Init.Nat.of_uint
Debug: [Cbv] Unfolding Coq.Init.Nat.of_uint_acc
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_mul
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_addmul
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.of_num_uint
Debug: [Cbv] Unfolding Coq.Init.Nat.of_uint
Debug: [Cbv] Unfolding Coq.Init.Nat.of_uint_acc
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_mul
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_addmul
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Debug: [Cbv] Unfolding Coq.Init.Nat.tail_add
Toplevel input, characters 1-71:
The text was updated successfully, but these errors were encountered: