law head_map_sym
import bend-mathlib@0.8.1.0/list.bend as Listimport Base
2891# The head of a map is the mapped head, reversed to rewrite toward the simple side.
2892law head_map_sym:
2893 for ~A: Type
2894 for ~B: Type
2895 for ~f: A -> B
2896 for xs: List<A>
2897 {Maybe.map(&1, A, B, f, List.head(&1, A, xs)) == List.head(&1, B, List.map(~A, ~B, ~f, xs)) : Maybe<&1, B>}
Uses (7)
Used by (0)
No other definition uses this definition.