Function Images #
We define the image of a given function as all elements that can be reached from a given domain. We provide a list and a set version.
def
CustomBasicDatastructures.Function.imageSet
{α : Type u}
{β : Type v}
(f : α → β)
(A : Set α)
:
Set β
The image of a function for a given domain set.
Equations
Instances For
def
CustomBasicDatastructures.Function.imageList
{α : Type u}
{β : Type v}
[DecidableEq β]
(f : α → β)
(l : List α)
:
List β
The image of a function for a given domain list.
Equations
Instances For
theorem
CustomBasicDatastructures.Function.mapping_mem_imageList_of_mem
{α : Type u}
{β : Type v}
[DecidableEq β]
{f : α → β}
{domain : List α}
{a : α}
:
The mapping of each domain element occurs in the image.
theorem
CustomBasicDatastructures.Function.nodup_imageList
{α : Type u}
{β : Type v}
[DecidableEq β]
{f : α → β}
{domain : List α}
:
The image has no duplicates.
theorem
CustomBasicDatastructures.Function.length_imageList
{α : Type u}
{β : Type v}
[DecidableEq β]
{f : α → β}
{domain : List α}
:
The image has at most as many elements as the domain.