Partial function: Difference between revisions

Content deleted Content added
Function spaces: using set builder notation for clarification
Tag: Reverted
Undid revision 1127445478 by D.Lazard (talk): {A \to B} also denotes a singleton set with A \to B as its only element; this *must* lead to confusion, and hence should not be used unless the majority of textbooks uses it
Line 44:
== Function spaces ==
 
The set of all partial functions <math>f : X \rightharpoonup Y</math> from a set <math>X</math> to a set <math>Y,</math> may be denoted by <math>\{X \rightharpoonup Y\},</math> and is the setunion of all functions withdefined [[codomain]]on {{mvar|Y}} which have a subsetsubsets of {{mvar|<math>X}}</math> aswith asame ___domain. If the set of all functions from {{mvar|A}} to {{mvar|B}} is denotedcodomain <math>\{A\to B\}, Y</math> then the set of all partial functions from {{mvar|X}} to {{mvar|Y}} is :
: <math>\{X \rightharpoonup Y\} = \bigcup_{D \subseteq{X}} \{(D \to Y\};),</math>
itthe canlatter also be written as <math display="inline">\bigcup_{D\subseteq{X}} Y^D.</math> In finite case, its cardinality is
: <math>|X \rightharpoonup Y| = (|Y| + 1)^{|X|},</math>
because any partial function can be extended to a function by any fixed value <math>c</math> not contained in <math>Y,</math> so that the codomain is <math>Y \cup \{ c \},</math> an operation which is injective (unique and invertible by restriction).