The following intrinsic ACL2 functions will be useful in this problem
- (length xs)
- (true-listp xs)
- (true-list-listp xss)
You may find it helpful to define the following functions
- (split n xs) -- delivers (list prefix suffix) where prefix is the first n elements of xs and suffix is the remaining elements
- (concat xss) -- elements of the list xss (which are, themselves, lists) concatenated, forming a single list