List.get_cons_zero: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 1692-1698 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=1692&end_line=1698
import Base
# The element at index zero of a cons is its head.
law get_cons_zero:
for -a: Quant
for -A: Kind(a)
for -x: A
for -xs: List
{List.get(a, A, x <> xs, 0n) == Some{x} : Maybe}
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.get
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe