Skip to content

RR CClosure it_mkLambda gives wrong environment size #20728

Open
@yannl35133

Description

@yannl35133

Description of the problem

Anomaly Not found (lookup env in irr_flex)

Small Rocq / Coq file to reproduce the bug

Inductive STrue : SProp := SI.
Inductive Box (A : SProp) : A -> Set := box a : Box A a.

Symbol S: bool -> Type -> Set.

Rewrite Rule S_rew :=
  S _ (forall (a : ?A), Box STrue ?b) => Box _ (fun a => ?b).

Check fun (x : STrue) =>
  (eq_refl : S true (unit -> Box STrue x) = S false (unit -> Box STrue x)).

Definition error (x : STrue) :=
  (eq_refl : S true (unit -> Box STrue x) = S false (unit -> Box STrue x)).

Version of Rocq / Coq where this bug occurs

8.20, 9.0, master

Interface of Rocq / Coq where this bug occurs

No response

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: anomalyAn uncaught exception has been raised.kind: bugAn error, flaw, fault or unintended behaviour.needs: triageThe validity of this issue needs to be checked, or the issue itself updated.part: kernelpart: rewrite rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions