List.reverse_go_spec: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 72-78 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=72&end_line=78
import Base
# The reverse accumulator loop appends the reversed list to the accumulator.
law reverse_go_spec:
for -a: Quant
for -A: Kind(a)
for xs: List
for -acc: List
{List.reverse.go(a, A, xs, acc) == List.append(a, A, List.reverse(a, A, xs), acc) : List}
Uses (5):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse.go
https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/list.bend&name=internal_reverse_go_append