-
Notifications
You must be signed in to change notification settings - Fork 3
/
nary_output.txt
236 lines (175 loc) · 7.08 KB
/
nary_output.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
(\x. (\y. x))
: (forall $0. (forall $1. ($0 -> ($1 -> $0))))
=> (/\$0. (/\$1. (\(x : $0). (\(y : $1). x))))
(choose id)
: (forall $0. (($0 -> $0) -> ($0 -> $0)))
=> (/\$0. ((choose @($0 -> $0)) (id @$0)))
((choose id) : ((forall t. (t -> t)) -> (forall t. (t -> t))))
: ((forall t. (t -> t)) -> (forall t. (t -> t)))
=> ((choose @(forall t. (t -> t))) (/\t. (id @t)))
((choose Nil) ids)
: (List (forall t. (t -> t)))
=> (((choose @(List (forall t. (t -> t)))) (Nil @(forall t. (t -> t)))) ids)
(id auto)
: ((forall t. (t -> t)) -> (forall t. (t -> t)))
=> ((id @((forall t. (t -> t)) -> (forall t. (t -> t)))) auto)
(id auto2)
: (forall $0. ((forall t. (t -> t)) -> ($0 -> $0)))
=> (/\$0. ((id @((forall t. (t -> t)) -> ($0 -> $0))) (auto2 @$0)))
((choose id) auto)
: ((forall t. (t -> t)) -> (forall t. (t -> t)))
=> (((choose @((forall t. (t -> t)) -> (forall t. (t -> t)))) (id @(forall t. (t -> t)))) auto)
((choose id) auto2)
=> TypeError: failed (?2[] -> ?2[]) ~ (forall t. (t -> t))
((f (choose id)) ids)
: (forall t. (t -> t))
=> (((f @(forall t. (t -> t))) ((choose @(forall t. (t -> t))) (/\t. (id @t)))) ids)
((f ((choose id) : ((forall t. (t -> t)) -> (forall t. (t -> t))))) ids)
: (forall t. (t -> t))
=> (((f @(forall t. (t -> t))) ((choose @(forall t. (t -> t))) (/\t. (id @t)))) ids)
(poly id)
: ((Pair Int) Bool)
=> (poly (/\t. (id @t)))
(poly (\x. x))
: ((Pair Int) Bool)
=> (poly (/\t. (\(x : t). x)))
((id poly) (\x. x))
: ((Pair Int) Bool)
=> (((id @((forall t. (t -> t)) -> ((Pair Int) Bool))) poly) (/\t. (\(x : t). x)))
(\f. ((pair (f int)) (f str)))
=> TypeError: failed Str ~ Int
(\xs. (poly (head xs)))
=> TypeError: solve failed: ?0[] := (List ('t$0 -> 't$0))
(\f. ((pair (poly f)) (inc (f int))))
=> TypeError: solve failed: ?0[] := ('t$0 -> 't$0)
(\f. ((pair (inc (f int))) (poly f)))
=> TypeError: failed Int ~ 't$0
(length ids)
: Int
=> ((length @(forall t. (t -> t))) ids)
(tail ids)
: (List (forall t. (t -> t)))
=> ((tail @(forall t. (t -> t))) ids)
(head ids)
: (forall t. (t -> t))
=> ((head @(forall t. (t -> t))) ids)
(single id)
: (forall $0. (List ($0 -> $0)))
=> (/\$0. ((single @($0 -> $0)) (id @$0)))
(single ids)
: (List (List (forall t. (t -> t))))
=> ((single @(List (forall t. (t -> t)))) ids)
(Cons id)
: (forall $0. ((List ($0 -> $0)) -> (List ($0 -> $0))))
=> (/\$0. ((Cons @($0 -> $0)) (id @$0)))
(Cons ids)
: ((List (List (forall t. (t -> t)))) -> (List (List (forall t. (t -> t)))))
=> ((Cons @(List (forall t. (t -> t)))) ids)
(map poly)
: ((List (forall t. (t -> t))) -> (List ((Pair Int) Bool)))
=> (((map @(forall t. (t -> t))) @((Pair Int) Bool)) poly)
((single id) : (List (forall t. (t -> t))))
: (List (forall t. (t -> t)))
=> ((single @(forall t. (t -> t))) (/\t. (id @t)))
((Cons id) ids)
: (List (forall t. (t -> t)))
=> (((Cons @(forall t. (t -> t))) (/\t. (id @t))) ids)
((Cons (\x. x)) ids)
: (List (forall t. (t -> t)))
=> (((Cons @(forall t. (t -> t))) (/\t. (\(x : t). x))) ids)
((append (single inc)) (single id))
: (List (Int -> Int))
=> (((append @(Int -> Int)) ((single @(Int -> Int)) inc)) ((single @(Int -> Int)) (id @Int)))
((g (single id)) ids)
: (forall t. (t -> t))
=> (((g @(forall t. (t -> t))) ((single @(forall t. (t -> t))) (/\t. (id @t)))) ids)
((g ((single id) : (List (forall t. (t -> t))))) ids)
: (forall t. (t -> t))
=> (((g @(forall t. (t -> t))) ((single @(forall t. (t -> t))) (/\t. (id @t)))) ids)
((map poly) (single id))
: (List ((Pair Int) Bool))
=> ((((map @(forall t. (t -> t))) @((Pair Int) Bool)) poly) ((single @(forall t. (t -> t))) (/\t. (id @t))))
((map head) (single ids))
: (List (forall t. (t -> t)))
=> ((((map @(List (forall t. (t -> t)))) @(forall t. (t -> t))) (head @(forall t. (t -> t)))) ((single @(List (forall t. (t -> t)))) ids))
((app poly) id)
: ((Pair Int) Bool)
=> ((((app @(forall t. (t -> t))) @((Pair Int) Bool)) poly) (/\t. (id @t)))
((revapp id) poly)
: ((Pair Int) Bool)
=> ((((revapp @(forall t. (t -> t))) @((Pair Int) Bool)) (/\t. (id @t))) poly)
(runST argST)
: Int
=> ((runST @Int) (/\s. (argST @s)))
((app runST) argST)
: Int
=> ((((app @(forall s. ((ST s) Int))) @Int) (runST @Int)) (/\s. (argST @s)))
((revapp argST) runST)
: Int
=> ((((revapp @(forall s. ((ST s) Int))) @Int) (/\s. (argST @s))) (runST @Int))
((k h) l)
=> TypeError: failed (forall t. (t -> t)) ~ ('t$0 -> 't$0)
((k (\x. (h x))) l)
: (forall t. (Int -> (t -> t)))
=> (((k @(forall t. (Int -> (t -> t)))) (/\t. (\(x : Int). ((h x) @t)))) l)
(r (\x. (\y. y)))
: Int
=> (r (/\a. (\(x : a). (/\t. (\(y : t). y)))))
(/\t. (\(x : t). x))
: (forall t. (t -> t))
=> (/\t. (\(x : t). x))
(/\t. ((/\t. (\(x : t). x)) @t))
: (forall t. (t -> t))
=> (/\t. ((/\t. (\(x : t). x)) @t))
((\x. x) (\x. x))
: (forall $0. ($0 -> $0))
=> (/\$0. ((\(x : ($0 -> $0)). x) (\(x : $0). x)))
((\x. (\y. x)) : (forall a. (a -> (forall b. (b -> a)))))
: (forall a. (a -> (forall b. (b -> a))))
=> (/\a. (\(x : a). (/\b. (\(y : b). x))))
((((\x. (\y. x)) : (forall a. (a -> (forall b. (b -> a))))) int) str)
: Int
=> (((((/\a. (\(x : a). (/\b. (\(y : b). x)))) @Int) int) @Str) str)
(id (\x. x))
: (forall $0. ($0 -> $0))
=> (/\$0. ((id @($0 -> $0)) (\(x : $0). x)))
(const id)
: (forall $0. (forall $1. ($0 -> ($1 -> $1))))
=> (/\$0. (/\$1. (((const @($1 -> $1)) @$0) (id @$1))))
((const id) : (forall a. (forall b. (a -> (b -> b)))))
: (forall a. (forall b. (a -> (b -> b))))
=> (/\a. (/\b. (((const @(b -> b)) @a) (id @b))))
((const id) : (forall a. (a -> (forall t. (t -> t)))))
: (forall a. (a -> (forall t. (t -> t))))
=> (/\a. (((const @(forall t. (t -> t))) @a) (/\t. (id @t))))
(const (\x. x))
: (forall $0. (forall $1. ($0 -> ($1 -> $1))))
=> (/\$0. (/\$1. (((const @($1 -> $1)) @$0) (\(x : $1). x))))
((const (\x. x)) : (forall a. (forall b. (a -> (b -> b)))))
: (forall a. (forall b. (a -> (b -> b))))
=> (/\a. (/\b. (((const @(b -> b)) @a) (\(x : b). x))))
((const (\x. x)) : (forall a. (a -> (forall t. (t -> t)))))
: (forall a. (a -> (forall t. (t -> t))))
=> (/\a. (((const @(forall t. (t -> t))) @a) (/\t. (\(x : t). x))))
(f1 x1)
: Int
=> (f1 (/\a. (/\b. ((x1 @b) @a))))
(g1 xs1)
=> TypeError: failed 'a$1 ~ 'b$0
(id lensFoo)
: (forall $0. ((List (forall p. (((p Int) Int) -> ((p $0) $0)))) -> ($0 -> ((Pair Int) $0))))
=> (/\$0. ((id @((List (forall p. (((p Int) Int) -> ((p $0) $0)))) -> ($0 -> ((Pair Int) $0)))) (lensFoo @$0)))
((\x. x) lensFoo)
: (forall $0. ((List (forall p. (((p Int) Int) -> ((p $0) $0)))) -> ($0 -> ((Pair Int) $0))))
=> (/\$0. ((\(x : ((List (forall p. (((p Int) Int) -> ((p $0) $0)))) -> ($0 -> ((Pair Int) $0)))). x) (lensFoo @$0)))
(app lensFoo)
: (forall $0. ((List (forall p. (((p Int) Int) -> ((p $0) $0)))) -> ($0 -> ((Pair Int) $0))))
=> (/\$0. (((app @(List (forall p. (((p Int) Int) -> ((p $0) $0))))) @($0 -> ((Pair Int) $0))) (lensFoo @$0)))
(\x. (lensFoo x))
: (forall $0. ((List (forall p. (((p Int) Int) -> ((p $0) $0)))) -> ($0 -> ((Pair Int) $0))))
=> (/\$0. (\(x : (List (forall p. (((p Int) Int) -> ((p $0) $0))))). ((lensFoo @$0) x)))
(\x. ((pair (nested x)) (nested2 x)))
=> TypeError: failed (forall t. (t -> t)) ~ (Int -> Int)
(\x. ((pair (nested2 x)) (nested x)))
=> TypeError: failed (Int -> Int) ~ (forall t. (t -> t))
failed: 9/61 (expected 9)