List.drop_zero: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 243-248 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=243&end_line=248
import Base
# Dropping zero elements gives the list back.
law drop_zero:
for -a: Quant
for -A: Kind(a)
for xs: List
{List.drop(a, A, xs, 0n) == xs : List}
Uses (2):
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