mtonnberg/refinement-proofs/5.0.1

RefinementProofs.Proofs.ListProofs

Some basic list proofs

Definition

A non-empty list

A sorted list

Proofs

proveNonEmptyList : List a -> Maybe (Proven (List a) NonEmptyList)

Prove that a list is non-empty

mkSortedList : List comparable -> Proven (List comparable) SortedList

Make a sorted list.

Functions

(a -> b)
-> Proven (List a) NonEmptyList
-> Proven (List b) NonEmptyList

Map over a non-empty list

Get the length of a non-empty list