Idris2Doc : Theory.List

Theory.List

(source)

Definitions

concat_assoc : (l : Lista) -> (l' : Lista) -> (l'' : Lista) ->l++ (l'++l'') = (l++l') ++l''
  Concatenation of lists os associative

Totality: total
Visibility: export
concat_nil : (l : Lista) ->l++ [] =l
  Concatenating a list with an emoty list results in the same list

Totality: total
Visibility: export
map_concat : (l : Lista) -> (l' : Lista) ->mapf (l++l') =mapfl++mapfl'
  The mapping of a function on a concatenation of two lists
is the concatenation of mappings of that function on those lists

Totality: total
Visibility: export
map_append : (l : Lista) -> (x : a) ->mapf (l++ [x]) =mapfl++ [fx]
  `map_concat` in the case when the right operand is a singleton

Totality: total
Visibility: export
nonempty_concat_left' : (xs : Lista) -> (ys : Lista) ->NonEmptyxs->NonEmpty (xs++ys)
  The concatenation of a non-empty list with another list is non-empty

Totality: total
Visibility: export
nonempty_concat_left : NonEmptyxs->NonEmpty (xs++ys)
  The concatenation of a non-empty list with another list is non-empty

Totality: total
Visibility: export
nonempty_concat_right' : (xs : Lista) -> (ys : Lista) ->NonEmptyys->NonEmpty (xs++ys)
  The concatenation of a list with a non-empty list is non-empty

Totality: total
Visibility: export
nonempty_concat_right : NonEmptyys->NonEmpty (xs++ys)
  The concatenation of a list with a non-empty list is non-empty

Totality: total
Visibility: export
nonempty_flip_concat' : (xs : Lista) -> (ys : Lista) ->NonEmpty (xs++ys) ->NonEmpty (ys++xs)
  If   the concatenation of one list  with another is non-empty,
then the concatenation of the other with the one is non-empty

Totality: total
Visibility: export
nonempty_flip_concat : NonEmpty (xs++ys) ->NonEmpty (ys++xs)
  If   the concatenation of one list  with another is non-empty,
then the concatenation of the other with the one is non-empty

Totality: total
Visibility: export
nonempty_map' : (xs : Lista) -> (f : (a->b)) ->NonEmptyxs->NonEmpty (mapfxs)
  If a list is non-empty, then any mapping on that list is also non-empty

Totality: total
Visibility: export
nonempty_map : NonEmptyxs->NonEmpty (mapfxs)
  If a list is non-empty, then any mapping on that list is also non-empty

Totality: total
Visibility: export
nonempty_sublist' : (xs : Lista) -> (ys : Lista) ->NonEmpty (xs++ys) ->Either (NonEmptyxs) (NonEmptyys)
  If the concatenation of two lists is non-empty, then one of the two lists is non-empty

Totality: total
Visibility: export
nonempty_sublist : NonEmpty (xs++ys) ->Either (NonEmptyxs) (NonEmptyys)
  If the concatenation of two lists is non-empty,
then one of the two lists is non-empty

Totality: total
Visibility: export
nonempty_concat_map' : (xs : Lista) -> (ys : Lista) -> (f : (a->b)) -> (g : (a->b)) ->NonEmpty (xs++ys) ->NonEmpty (mapfxs++mapgys)
  If   the concatenation of two               lists is non-empty,
then the concatenation of mappings on those lists is non-empty

Totality: total
Visibility: export
nonempty_concat_map : NonEmpty (xs++ys) ->NonEmpty (mapfxs++mapgys)
  If   the concatenation of two               lists is non-empty,
then the concatenation of mappings on those lists is non-empty

Totality: total
Visibility: export