List.drop_zero_sym: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 2284-2289 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=2284&end_line=2289
import Base
# Dropping zero elements gives the list back, reversed to rewrite toward the simple side.
law drop_zero_sym:
for -a: Quant
for -A: Kind(a)
for xs: List
{xs == List.drop(a, A, xs, 0n) : 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.drop
https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/list.bend&name=drop_zero