List.foldr_cons_nil_sym: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 3055-3060 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=3055&end_line=3060
import Base
# Folding cons from the right, starting from the empty list, rebuilds the list, reversed to rewrite toward the simple side.
law foldr_cons_nil_sym:
for ~a: Quant
for ~A: Kind(a)
for xs: List
{xs == List.foldr(~a, ~A, ~List, ~(x => acc => x <> acc), xs, Nil{}) : List}
Uses (4):
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.foldr
https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/list.bend&name=foldr_cons_nil