Exercises part 4
-
Implement
plusSuccRightSucc
yourself. -
Proof that
minus n n
equals zero for all natural numbersn
. -
Proof that
minus n 0
equals n for all natural numbersn
-
Proof that
n * 1 = n
and1 * n = n
for all natural numbersn
. -
Proof that addition of natural numbers is commutative.
-
Implement a tail-recursive version of
map
for vectors. -
Proof the following proposition:
mapAppend : (f : a -> b) -> (xs : List a) -> (ys : List a) -> map f (xs ++ ys) = map f xs ++ map f ys
-
Use the proof from exercise 7 to implement again a function for zipping two
Table
s, this time using a rewrite rule plusData.HList.(++)
instead of custom functionappRows
.