List.get_cons_succ: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 1703-1710 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=1703&end_line=1710
import Base
# The element at index n + 1 of a cons is the element at index n of its tail.
law get_cons_succ:
for -a: Quant
for -A: Kind(a)
for -x: A
for -xs: List
for -n: Nat
{List.get(a, A, x <> xs, 1n+n) == List.get(a, A, xs, n) : Maybe}
Uses (4):
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
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat