List.last_append_singleton: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 1777-1783 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=1777&end_line=1783
import Base
# The last element of xs ++ [x] is x.
law last_append_singleton:
for -a: Quant
for -A: Kind(a)
for xs: List
for -x: A
{List.last(a, A, List.append(a, A, xs, [x])) == Some{x} : Maybe}
Uses (6):
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.last
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.last.go
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe
https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/list.bend&name=internal_last_go_append_singleton