-
Notifications
You must be signed in to change notification settings - Fork 246
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
Possible Regression at fromℕ< #1988
Comments
Can you please provide a more detailed report than "does not work"? |
The error message is
but I do not think that is very revealing without familiarizing oneself with the example. Here |
#1709 made |
module unbug where
open import Data.Maybe using (just)
open import Data.Fin using (fromℕ<)
open import Data.List using (List; lookup; length; head; _∷_; [])
open import Data.Nat using (_<_; ℕ; z<s)
open import Data.Nat.Properties using (n<1⇒n≡0; ≤-reflexive)
open import Relation.Binary.PropositionalEquality using (_≡_; refl; sym)
unbug : ∀ {l : List ℕ} → (len≡1 : length l ≡ 1) → lookup l (fromℕ< (≤-reflexive (sym len≡1))) < (length l) → head l ≡ just 0
unbug {x ∷ []} refl z<s = refl So... your regression test The 'offending' PR/commit was, in part, concerned with simplifying the A further alternative (but going completely against #1726 / #1868) might be to reinstate the |
And as for the regression test, the following modification bug {x ∷ []} len≡1 headBounded rewrite len≡1 | n<1⇒n≡0 headBounded = refl which disguises the match on |
Ah... perhaps more annoying than the above, the definitions at the end of |
Fixed by #2000 ? |
Yes, the example above and my original problem both typecheck at jamesmckinna/agda-stdlib@e7d75d300. |
I'd like to find a way to triage #2000 enough to be able to fix such things before v2.0 |
The following module works in
v1.7.2
but does not work inmaster
:According to
git bisect
the culprit is 82c1b9d so I suppose the problem isfromℕ<
.The text was updated successfully, but these errors were encountered: