1
0
forked from GitHub/gf-core

first draft of a typechecker

This commit is contained in:
Krasimir Angelov
2024-03-06 09:08:15 +01:00
parent 14a9a8d463
commit 5426b4209f
13 changed files with 708 additions and 105 deletions

View File

@@ -5,13 +5,14 @@ abstract basic {
cat P N ; -- 0.693147
cat S ; -- 0.693147
cat String ; -- 0.693147
data c : N -> S ; -- 1.38629
fun floatLit : Float -> S ; -- 1.38629
data c : N -> S ; -- 1.60944
fun floatLit : Float -> S ; -- 1.60944
fun imp : ({x} : N) -> (y : N) -> S ; -- 1.60944
fun ind : P z -> ((x : N) -> P x -> P (s x)) -> (x : N) -> P x ; -- 0.693147
fun intLit : Int -> S ; -- 1.38629
fun intLit : Int -> S ; -- 1.60944
fun nat : (x : N) -> P x ; -- 0.693147
data s : N -> N ; -- 0.693147
fun stringLit : String -> S ; -- 1.38629
fun stringLit : String -> S ; -- 1.60944
data z : N ; -- 0.693147
}
concrete basic_cnc {