-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTypes'.agda
More file actions
31 lines (25 loc) Β· 903 Bytes
/
Types'.agda
File metadata and controls
31 lines (25 loc) Β· 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module Types' where
open import Data.Unit
open import Data.Empty
open import Data.Sum
open import Data.Product
data π : Set where
π π : π
_β_ _β_ : π β π β π
β¦_β§α΅€ : π β Set
β¦ π β§α΅€ = β₯
β¦ π β§α΅€ = β€
β¦ Tβ β Tβ β§α΅€ = β¦ Tβ β§α΅€ β β¦ Tβ β§α΅€
β¦ Tβ β Tβ β§α΅€ = β¦ Tβ β§α΅€ Γ β¦ Tβ β§α΅€
_βΆ_ : π β π β Set
Tβ βΆ Tβ = β¦ Tβ β§α΅€ β β¦ Tβ β§α΅€
-- S / T
data Frac (T : π) : (S : π) β Set where
frac : Frac T π -- 1 / T
_β_ : β {Sβ Sβ} β Frac T Sβ β Frac T Sβ β Frac T (Sβ β Sβ)
_β _ : β {Sβ Sβ} β Frac T Sβ β Frac T Sβ β Frac T (Sβ β Sβ)
module _ {S} where
β¦_β§ : β {T} β Frac S T β Set
β¦ frac β§ = β¦ S β§α΅€ β (π βΆ π)
β¦ Tβ β Tβ β§ = {!!}
β¦ Tβ β Tβ β§ = {!!}