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.
The image of a function for a given domain set.
Equations
- Function.imageSet f A = A.map f
Instances For
The image of a function for a given domain list.
Equations
- Function.imageList f l = (List.map f l).eraseDupsKeepRight
Instances For
theorem
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
Function.nodup_imageList
{α : Type u}
{β : Type v}
[DecidableEq β]
{f : α → β}
{domain : List α}
:
The image has no duplicates.
theorem
Function.length_imageList
{α : Type u}
{β : Type v}
[DecidableEq β]
{f : α → β}
{domain : List α}
:
The image has at most as many elements as the domain.