law last_reverse

bend-mathlib@0.8.1.0 · list.bend:1821

import bend-mathlib@0.8.1.0/list.bend as List
import 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>}

Uses (6)

Used by (1)