-
Notifications
You must be signed in to change notification settings - Fork 339
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
Internal error when trying to overflow levels #5705
Comments
This is
because suffixes are agda/src/full/Agda/Utils/Suffix.hs Lines 39 to 42 in 015759c
Actually, we already get the crash at crash' : Set ≡ Set9223372036854775808
crash' = refl There are two avenues to fix this:
Alt 1 will possibly come with performance penalties, but these might be small. Alt 2 might be doable in the parser. Note that in the open import Agda.Builtin.Equality
open import Agda.Builtin.Nat
open import Agda.Primitive
natToLevel : Nat → Level
natToLevel zero = lzero
natToLevel (suc n) = lsuc (natToLevel n)
endOfUniverse : Set1 ≡ Set (natToLevel 18446744073709551615)
endOfUniverse = refl The question is whether we can get from the foo : Set (natToLevel 1) ≡ Set (natToLevel 2)
foo = refl
CONCLUSION: The easiest and most robust fix is Alt 1 ( |
The following code will cause an internal error:
Information:
The text was updated successfully, but these errors were encountered: