List.head_reverse_sym: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 2983-2988 of bend-mathlib@0.8.1.0/list.bend: https://jend.leeeet.dev/read.txt?path=bend-mathlib@0.8.1.0/list.bend&start_line=2983&end_line=2988
import Base
# The head of the reverse is the last element, reversed to rewrite toward the simple side.
law head_reverse_sym:
for -a: Quant
for -A: Kind(a)
for xs: List
{List.last(a, A, xs) == List.head(a, A, List.reverse(a, A, xs)) : Maybe}
Uses (7):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.head
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.last
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe
https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/list.bend&name=head_reverse