def internal_map_reverse_go
import bend-mathlib@0.8.1.0/list.bend as Listimport Base
514def internal_map_reverse_go(~A: Type, ~B: Type, ~f: A -> B, xs: List<A>, acc: List<A>) -> {List.map(~A, ~B, ~f, List.reverse.go(&1, A, xs, acc)) == List.reverse.go(&1, B, List.map(~A, ~B, ~f, xs), List.map(~A, ~B, ~f, acc)) : List<B>}:
515 match xs:
516 case Nil{}:
517 {==}
518 case h <> t:
519 internal_map_reverse_go(~A, ~B, ~f, t, h <> acc)