You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
Lean (version 3.4.1, Release)
Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64
Additional information
From library/init/core.lean:
/- Remark: subtype must take a Sort instead of Type because of the axiom strong_indefinite_description. -/
structure subtype {α : Sort u} (p : α → Prop) :=
(val : α) (property : p val)
The text was updated successfully, but these errors were encountered:
FYI, for Lean 3.4.1, “[o]nly major bugs (e.g., soundness) will be fixed for this code base from now on” (e181232), so I don't know if this change will be made. Given that, you may want to consider using mathlib, which has subtype.eq' with the better signature:
If you have "baggage restrictions", another viable approach is to pluck individual theorems from mathlib and add them to your project. At least in this early section there will be very few dependencies.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prerequisites
or feature requests.
Description
The signature of
subtype.eq
is incompatible with that ofsubtype
. (Specifically, the former doesn't acceptSort 0
while the latter does.)Steps to Reproduce
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Reproduces how often: Always
Versions
Additional information
From
library/init/core.lean
:The text was updated successfully, but these errors were encountered: