def internal_last_reverse_go

bend-mathlib@0.8.1.0 · list.bend:1814

import bend-mathlib@0.8.1.0/list.bend as List
import Base

1814def internal_last_reverse_go(a, -A: Kind(a), xs: List<a, A>, -h: A, -acc: List<a, A>) -> {List.last(a, A, List.reverse.go(a, A, xs, h <> acc)) == Some{List.last.go(a, A, acc, h)} : Maybe<a, A>}:
1815  match xs:
1816    case Nil{}:
1817      {==}
1818    case y <> t:
1819      internal_last_reverse_go(a, A, t, y, h <> acc)

Uses (5)

Used by (1)