Skip to content

RR CClosure it_mkLambda gives wrong environment size #20728

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

Open
yannl35133 opened this issue Jun 8, 2025 · 0 comments · May be fixed by #20729
Open

RR CClosure it_mkLambda gives wrong environment size #20728

yannl35133 opened this issue Jun 8, 2025 · 0 comments · May be fixed by #20729
Labels
kind: anomaly An uncaught exception has been raised. kind: bug An error, flaw, fault or unintended behaviour. needs: triage The validity of this issue needs to be checked, or the issue itself updated. part: kernel part: rewrite rules

Comments

@yannl35133
Copy link
Contributor

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

@yannl35133 yannl35133 added kind: bug An error, flaw, fault or unintended behaviour. needs: triage The validity of this issue needs to be checked, or the issue itself updated. part: kernel kind: anomaly An uncaught exception has been raised. part: rewrite rules labels Jun 8, 2025
@yannl35133 yannl35133 linked a pull request Jun 8, 2025 that will close this issue
2 tasks
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. needs: triage The validity of this issue needs to be checked, or the issue itself updated. part: kernel part: rewrite rules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant