Debian Codegraph @

src/Size.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Sizes for Agda's sized types
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --sized-types #-}
8
9 module Size where
10
11 open import Level
12
13 ------------------------------------------------------------------------
14 -- Re-export builtins
15
16 open import Agda.Builtin.Size public using
17 ( SizeUniv -- sort SizeUniv
18 ; Size -- : SizeUniv
19 ; Size<_ -- : Size → SizeUniv
20 ; ↑_ -- : Size → Size
21 ; _⊔ˢ_ -- : Size → Size → Size
22 ; ∞ -- : Size
23 )
24
25 ------------------------------------------------------------------------
26 -- Concept of sized type
27
28 SizedSet : (ℓ : Level) → Set (suc ℓ)
29 SizedSet ℓ = Size → Set ℓ