Skip to content

Admitted in Equations: anomaly #21226

@louwenus

Description

@louwenus

Description of the problem

Hello.
Upon writting an Equations, I could not prove a goal due to using a with where the result was not linked to the inital argument anymore, making it impossible to deduce anything.
I the tried to use admit and Admitted, and was shown this error:

Error: Anomaly "Uncaught exception Invalid_argument("List.fold_left2")."
Please report at http://rocq-prover.org/bugs/.

NB: Here are my packages version for a few rock package (installed with opam) if it is relevant
rocq-core 9.0.1 The Rocq Prover with its prelude
rocq-elpi 3.2.0 Elpi extension language for Coq
rocq-equations 1.3.1+9.0 A function definition package for Rocq
rocq-hierarchy-builder 1.10.1 High level commands to declare and evolve a hierarchy based on packed classes
rocq-mathcomp-algebra 2.4.0 Mathematical Components Library on Algebra
rocq-mathcomp-fingroup 2.4.0 Mathematical Components Library on finite groups
rocq-mathcomp-ssreflect 2.4.0 Small Scale Reflection
rocq-prover 9.0.0 The Rocq Prover with Stdlib
rocq-runtime 9.0.1 The Rocq Prover -- Core Binaries and Tools
rocq-stdlib 9.0.0 The Rocq Proof Assistant -- Standard Library

Small Rocq / Coq file to reproduce the bug

From Equations Require Import Equations.

Equations? g (n:nat) :nat by wf n lt :=
g (S x) := g x;
g 0  := 0. 
Admitted.

Version of Rocq / Coq where this bug occurs

9.0.1

Interface of Rocq / Coq where this bug occurs

rocq compile

Last version of Rocq / Coq where the bug did not occur

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugAn error, flaw, fault or unintended behaviour.needs: triageThe validity of this issue needs to be checked, or the issue itself updated.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions