def internal_reverse_go_go
import bend-mathlib@0.8.1.0/list.bend as Listimport Base
105def internal_reverse_go_go(a, -A: Kind(a), xs: List<a, A>, -acc: List<a, A>) -> {List.reverse.go(a, A, List.reverse.go(a, A, xs, acc), Nil{}) == List.reverse.go(a, A, acc, xs) : List<a, A>}:
106 match xs:
107 case Nil{}:
108 {==}
109 case h <> t:
110 internal_reverse_go_go(a, A, t, h <> acc)