-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRIM: fix bug caused by a missing normalization (thank you @refparo)
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
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
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,22 @@ | ||
-- https://github.com/aya-prover/aya-dev/discussions/7 | ||
prim I | ||
prim left | ||
prim right | ||
prim arcoe | ||
struct Path (A : I -> Type) (a : A left) (b : A right) : Type | ||
| at (i : I) : A i { | ||
| left => a | ||
| right => b | ||
} | ||
def path {A : I -> Type} (p : Pi (i : I) -> A i) | ||
=> new Path A (p left) (p right) { | at i => p i } | ||
def `=` Eq {A : Type} (a b : A) : Type => Path (\ i => A) a b | ||
def idp {A : Type} (a : A) : a = a => path (\ i => a) | ||
|
||
bind application tighter = | ||
|
||
open data Unit : Set | unit | ||
|
||
def foo | ||
: unit = arcoe (idp Unit).at unit right | ||
=> idp unit |