Package list-reverse: Definitions and theorems about the list reverse function

Information

namelist-reverse
version1.0
description Definitions and theorems about the list reverse function
authorJoe Hurd <joe@gilith.com>
licenseMIT
showData.Bool
Data.List

Files

Defined Constant

Theorems

l. reverse (reverse l) = l

l m. reverse (l @ m) = reverse m @ reverse l

reverse [] = [] l x. reverse (x :: l) = reverse l @ x :: []

Input Type Operators

Input Constants

Assumptions

T

() = λP. P ((select) P)

t. (x. t) t

() = λP. P = λx. T

x. x = x T

l. l @ [] = l

() = λp q. p q p

() = λp q. (λf. f p q) = λf. f T T

() = λP. q. (x. P x q) q

l m n. l @ m @ n = (l @ m) @ n

P. P [] (a0 a1. P a1 P (a0 :: a1)) x. P x

NIL' CONS'.
    fn. fn [] = NIL' a0 a1. fn (a0 :: a1) = CONS' a0 a1 (fn a1)

(l. [] @ l = l) h t l. (h :: t) @ l = h :: t @ l