List.reverse_reverse: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 112-117 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=112&end_line=117
import Base
# Reversing twice gives the list back.
law reverse_reverse:
for -a: Quant
for -A: Kind(a)
for xs: List
{List.reverse(a, A, List.reverse(a, A, xs)) == xs : List}
Uses (3):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse
https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/list.bend&name=internal_reverse_go_go