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

Failure when generating below lemma #2990

Closed
1 task done
arthur-adjedj opened this issue Nov 29, 2023 · 0 comments · Fixed by #2991
Closed
1 task done

Failure when generating below lemma #2990

arthur-adjedj opened this issue Nov 29, 2023 · 0 comments · Fixed by #2991
Labels
bug Something isn't working

Comments

@arthur-adjedj
Copy link
Contributor

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Check that your issue is not already filed.
    • Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.

Description

The code handling the generation of the below helper functions is too conservative with regards to reduction, and fails in certain cases

Steps to Reproduce

inductive Bar : Nat -> Prop :=
  | bar e : (α → Bar e) -> Bar e --works

def Foo (F : α -> Prop) : Prop :=
  ∀ x , F x
inductive Bad : Nat -> Prop :=
  | bar e : Foo (fun _ => Bad e) -> Bad e --fails

Expected behavior: Both types get accepted with no error

Actual behavior: Some errors occur in mkCtorType in Lean/Meta/IndPredBelow.lean

Versions

Lean v4.2.0

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant