law last_reverse
import bend-mathlib@0.8.1.0/list.bend as Listimport Base
1821# The last element of the reverse is the head.
1822law last_reverse:
1823 for -a: Quant
1824 for -A: Kind(a)
1825 for xs: List<a, A>
1826 {List.last(a, A, List.reverse(a, A, xs)) == List.head(a, A, xs) : Maybe<a, A>}