𝒰 → ★

This commit is contained in:
rhiannon morris 2022-05-09 04:30:37 +02:00
parent 50a2ec02cb
commit 5b1dab24f2

View file

@ -52,17 +52,17 @@ export
tests : Test
tests = "equality & subtyping" :- [
"universes" :- [
testEq "𝒰₀ ≡ 𝒰" $
testEq "★₀ ≡ ★" $
equalT (TYPE 0) (TYPE 0),
testNeq "𝒰₀ ≢ 𝒰" $
testNeq "★₀ ≢ ★" $
equalT (TYPE 0) (TYPE 1),
testNeq "𝒰₁ ≢ 𝒰" $
testNeq "★₁ ≢ ★" $
equalT (TYPE 1) (TYPE 0),
testEq "𝒰₀ <: 𝒰" $
testEq "★₀ <: ★" $
subT (TYPE 0) (TYPE 0),
testEq "𝒰₀ <: 𝒰" $
testEq "★₀ <: ★" $
subT (TYPE 0) (TYPE 1),
testNeq "𝒰₁ ≮: 𝒰" $
testNeq "★₁ ≮: ★" $
subT (TYPE 1) (TYPE 0)
],
@ -82,29 +82,29 @@ tests = "equality & subtyping" :- [
let tm1 = Arr Zero (FT "A") (FT "B")
tm2 = Arr One (FT "A") (FT "B") in
subT tm1 tm2,
testEq "𝒰₀ ⇾ 𝒰₀ ≡ 𝒰₀ ⇾ 𝒰" $
testEq "★₀ ⇾ ★₀ ≡ ★₀ ⇾ ★" $
let tm = Arr Zero (TYPE 0) (TYPE 0) in
equalT tm tm,
testEq "𝒰₀ ⇾ 𝒰₀ <: 𝒰₀ ⇾ 𝒰" $
testEq "★₀ ⇾ ★₀ <: ★₀ ⇾ ★" $
let tm = Arr Zero (TYPE 0) (TYPE 0) in
subT tm tm,
testNeq "𝒰₁ ⊸ 𝒰₀ ≢ 𝒰₀ ⇾ 𝒰" $
testNeq "★₁ ⊸ ★₀ ≢ ★₀ ⇾ ★" $
let tm1 = Arr Zero (TYPE 1) (TYPE 0)
tm2 = Arr Zero (TYPE 0) (TYPE 0) in
equalT tm1 tm2,
testEq "𝒰₁ ⊸ 𝒰₀ <: 𝒰₀ ⊸ 𝒰" $
testEq "★₁ ⊸ ★₀ <: ★₀ ⊸ ★" $
let tm1 = Arr One (TYPE 1) (TYPE 0)
tm2 = Arr One (TYPE 0) (TYPE 0) in
subT tm1 tm2,
testNeq "𝒰₀ ⊸ 𝒰₀ ≢ 𝒰₀ ⇾ 𝒰" $
testNeq "★₀ ⊸ ★₀ ≢ ★₀ ⇾ ★" $
let tm1 = Arr Zero (TYPE 0) (TYPE 0)
tm2 = Arr Zero (TYPE 0) (TYPE 1) in
equalT tm1 tm2,
testEq "𝒰₀ ⊸ 𝒰₀ <: 𝒰₀ ⊸ 𝒰" $
testEq "★₀ ⊸ ★₀ <: ★₀ ⊸ ★" $
let tm1 = Arr One (TYPE 0) (TYPE 0)
tm2 = Arr One (TYPE 0) (TYPE 1) in
subT tm1 tm2,
testEq "𝒰₀ ⊸ 𝒰₀ <: 𝒰₀ ⊸ 𝒰" $
testEq "★₀ ⊸ ★₀ <: ★₀ ⊸ ★" $
let tm1 = Arr One (TYPE 0) (TYPE 0)
tm2 = Arr One (TYPE 0) (TYPE 1) in
subT tm1 tm2
@ -170,7 +170,7 @@ tests = "equality & subtyping" :- [
todo "elim d-closure",
"clashes" :- [
testNeq "𝒰₀ ≢ 𝒰₀ ⇾ 𝒰" $
testNeq "★₀ ≢ ★₀ ⇾ ★" $
equalT (TYPE 0) (Arr Zero (TYPE 0) (TYPE 0)),
todo "others"
]