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

pEmpty : Sort u #537

Closed
1 task done
kbuzzard opened this issue Jun 18, 2021 · 1 comment
Closed
1 task done

pEmpty : Sort u #537

kbuzzard opened this issue Jun 18, 2021 · 1 comment

Comments

@kbuzzard
Copy link
Contributor

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

We don't seem to be able to make a Sort u-valued inductive empty type right now.

inductive pEmpty : Sort u
/-
invalid universe polymorphic type, the resultant universe is not Prop (i.e., 0), 
  but it may be Prop for some parameter values (solution: use 'u+1' or 'max 1 u'
  u
-/

It is possible to do this in Lean 3. I personally am slightly unclear about the use of this type, but I noticed it when porting Lean 3 files to Lean 4 so thought I'd mention it.

@leodemoura
Copy link
Member

It has been added to the Init package. It is called PEmpty.

ChrisHughes24 pushed a commit to ChrisHughes24/lean4 that referenced this issue Dec 2, 2022
For some funny reason there were aliases to lemmas from `init.cc_lemmas`, which is PR'd to mathlib4 as leanprover#532.

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants