List.map_id: law of bend-mathlib@0.8.1.0
Import: import bend-mathlib@0.8.1.0/list.bend as List
Lines 1288-1292 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=1288&end_line=1292
import Base
# Mapping the identity gives the list back.
law map_id:
for ~A: Type
for xs: List
{List.map(~A, ~A, ~(x => x), xs) == 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.map