@@ -194,8 +194,8 @@ accumulates the new, reversed list, and which does not need to be visible global
194194
195195\begin{SaveVerbatim}{revwhere}
196196
197−rev : List a -> List a
198−rev xs = revAcc [] xs where
197+reverse : List a -> List a
198+reverse xs = revAcc [] xs where
199199 revAcc : List a -> List a -> List a
200200 revAcc acc [] = acc
201201 revAcc acc (x :: xs) = revAcc (x :: acc) xs
@@ -217,8 +217,8 @@ behaviour, the \texttt{a} can be brought into scope as follows:
217217
218218\begin{SaveVerbatim}{revwhereb}
219219
220−rev : List a -> List a
221−rev {a} xs = revAcc [] xs where
220+reverse : List a -> List a
221+reverse {a} xs = revAcc [] xs where
222222 revAcc : List a -> List a -> List a
223223 ...
224224
@@ -262,14 +262,14 @@ combine to make a vector of length \texttt{S k}.
262262We can define functions on dependent types such as \tTC{Vect} in the same way
263263as on simple types such as \tTC{List} and \tTC{Nat} above, by pattern matching.
264264The type of a function over \tTC{Vect} will describe what happens to the
265−lengths of the vectors involved. For example, \tFN{app}, defined in the
265+lengths of the vectors involved. For example, \tFN{++}, defined in the
266266library, appends two \tTC{Vect}s:
267267
268268\begin{SaveVerbatim}{vapp}
269269
270−app : Vect A n -> Vect A m -> Vect A (n + m)
271−app Nil ys = ys
272−app (x :: xs) ys = x :: app xs ys
270+(++) : Vect A n -> Vect A m -> Vect A (n + m)
271+(++) Nil ys = ys
272+(++) (x :: xs) ys = x :: xs ++ ys
273273
274274\end{SaveVerbatim}
275275\useverb{vapp}
@@ -281,18 +281,21 @@ not hold, \Idris{} will not accept the definition. For example:
281281
282282\begin{SaveVerbatim}{vapperr}
283283
284−app : Vect a n -> Vect a m -> Vect a (n + m)
285−app Nil ys = ys
286−app (x :: xs) ys = x :: app xs xs -- BROKEN
284+(++) : Vect a n -> Vect a m -> Vect a (n + m)
285+(++) Nil ys = ys
286+(++) (x :: xs) ys = x :: xs ++ xs -- BROKEN
287287
288288\end{SaveVerbatim}
289289\useverb{vapperr}
290290
291291\begin{SaveVerbatim}{vapperrmsg}
292292
293−$ idris vbroken.idr --check
293+$ idris vbroken.idr --check
294294vbroken.idr:3:Can't unify Vect a (S (plus k k)) with Vect a (S (plus k m))
295295
296+Specifically:
297+ Can't unify k with m
298+
296299\end{SaveVerbatim}
297300\begin{SaveVerbatim}{bleh}
298301$