-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test case for primEraseEquality (#5784)
- Loading branch information
1 parent
711df66
commit 441026c
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- Andreas, 2022-03-02, issue #5784, reported by Trebor-Huang | ||
-- Test case by Ulf Norell | ||
|
||
-- primEraseEquality needs to normalized the sides of the equation, | ||
-- not just reduce them. | ||
|
||
open import Agda.Builtin.Nat | ||
open import Agda.Builtin.Equality | ||
open import Agda.Builtin.Equality.Erase | ||
|
||
data Wrap : Set where | ||
wrap : Nat → Wrap | ||
|
||
test : wrap (1 + 1) ≡ wrap 2 | ||
test = primEraseEquality refl | ||
|
||
thm : test ≡ refl | ||
thm = refl | ||
|
||
-- Should succeed | ||
-- WAS: primEraseEquality refl != refl |