Skip to content

Commit aa62961

Browse files
authored
Merge pull request #1326 from agda/agda5000
Changes related to SizeUniv [agda/agda#5000]
2 parents bee4f91 + 811f21d commit aa62961

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ matrix:
5656
cd ../ &&
5757
git clone https://github.com/agda/agda &&
5858
cd agda &&
59-
git checkout 102d9c8c3a2cf1fa461ad8f26b78eed4730873ab &&
59+
git checkout a8077a59977d55d85743790924adf24dc0c9de2d &&
6060
cabal install --only-dependencies --dry -v > $HOME/installplan.txt ;
6161
fi
6262

src/Codata/Thunk.agda

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
module Codata.Thunk where
1010

11-
open import Size
12-
open import Relation.Unary
11+
open import Size; open SizedType
1312

1413
------------------------------------------------------------------------
1514
-- Basic types.

src/Size.agda

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,33 @@
99
module Size where
1010

1111
open import Agda.Builtin.Size public
12-
renaming ( SizeU to SizeUniv ) -- sort SizeUniv
13-
using ( Size -- Size : SizeUniv
14-
; Size<_ -- Size<_ : Size → SizeUniv
15-
; ↑_ -- ↑_ : Size → Size
16-
; _⊔ˢ_ -- _⊔ˢ_ : Size → Size → Size
17-
; ∞ ) -- ∞ : Size
12+
using ( SizeUniv -- sort SizeUniv
13+
; Size -- Size : SizeUniv
14+
; Size<_ -- Size<_ : Size → SizeUniv
15+
; ↑_ -- ↑_ : Size → Size
16+
; _⊔ˢ_ -- _⊔ˢ_ : Size → Size → Size
17+
; ∞ -- ∞ : Size
18+
)
19+
20+
open import Level
21+
22+
private
23+
variable
24+
ℓ ℓ₁ ℓ₂ : Level
25+
26+
-- Concept of sized type
27+
28+
SizedType : (ℓ : Level) Set (suc ℓ)
29+
SizedType ℓ = Size Set
30+
31+
-- Type constructors involving SizedType
32+
33+
module SizedType where
34+
35+
infixr 8 _⇒_
36+
37+
_⇒_ : SizedType ℓ₁ SizedType ℓ₂ SizedType (ℓ₁ ⊔ ℓ₂)
38+
F ⇒ G = λ i F i G i
39+
40+
∀[_] : SizedType ℓ Set
41+
∀[ F ] = {i} F i

0 commit comments

Comments
 (0)