Skip to content

Commit 38409f0

Browse files
oisdkMatthewDaggitt
authored andcommitted
Added thunk-syntax to mimic syntax for products etc (#528)
1 parent f7ccbe0 commit 38409f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Codata/Thunk.agda

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ Thunk^R : ∀ {f g r} {F : Size → Set f} {G : Size → Set g}
2626
(i : Size) (tf : Thunk F ∞) (tg : Thunk G ∞) Set r
2727
Thunk^R R i tf tg = Thunk (λ i R i (tf .force) (tg .force)) i
2828

29+
------------------------------------------------------------------------
30+
-- Syntax
31+
32+
Thunk-syntax : {ℓ} (Size Set ℓ) Size Set
33+
Thunk-syntax = Thunk
34+
35+
syntax Thunk-syntax (λ j e) i = Thunk[ j < i ] e
36+
2937
------------------------------------------------------------------------
3038
-- Basic functions.
3139

0 commit comments

Comments
 (0)