Content deleted Content added
→Left and right inverses: Don't use left inverse, right inverse before def |
→Left inverses: Added cites lazily, made math template-vs-tags consistent, condensed |
||
Line 299:
====Left inverses====
If {{math|''f'': ''X'' → ''Y''}}, a '''left inverse''' for {{mvar|f}} (or ''[[retract (category theory)|retraction]]'' of {{mvar|f}} ) is a function {{math| ''g'': ''Y'' → ''X''}} such that composing {{mvar|f}} with {{mvar|g}} from the left gives the identity function<ref>{{
: If {{math|''f''(''x''){{=}}''y''}}, then {{math|''g''(''y''){{=}}''x''}}.
A function {{mvar|f}} with nonempty ___domain is injective if and only if it has a left inverse.<ref>{{cite book|last=Mac Lane|first=Saunders|title=Categories for the Working Mathematician}}</ref> An elementary proof runs as follows:
In classical mathematics, every injective function {{mvar|f}} with a nonempty ___domain necessarily has a left inverse; however, this may fail in [[constructive mathematics]]. For instance, a left inverse of the inclusion {{math|{0,1} → '''R'''}} of the two-element set in the reals violates [[indecomposability (constructive mathematics)|indecomposability]] by giving a [[Retract (category theory)|retraction]] of the real line to the set {{math|{0,1{{)}}}}.<ref>{{
▲Thus, {{mvar|g}} must equal the inverse of {{mvar|f}} on the image of {{mvar|f}}, but may take any values for elements of {{mvar|Y}} not in the image.
▲: If {{mvar|g}} is the left inverse of {{mvar|f}}, then {{mvar|f}} is injective. If {{math|1=''f''(''x'') = ''f''(''y'')}}, then <math>g(f(x)) = g(f(y)) = x = y</math>.
▲: If {{math|''f'': ''X'' → ''Y''}} is injective, {{mvar|f}} either is the empty function ({{math|1=''X'' = ∅}}) or has a left inverse {{math|''g'': ''Y'' → ''X''}} ({{math|''X'' ≠ ∅)}}, which can be constructed as follows: for all {{math|''y'' ∈ ''Y''}}, if {{mvar|y}} is in the image of {{mvar|f}} (there exists {{math|''x'' ∈ ''X''}} such that {{math|1=''f''(''x'') = ''y''}}), let {{math|1=''g''(''y'') = ''x''}} ({{mvar|x}} is unique because {{mvar|f}} is injective); otherwise, let {{math|''g''(''y'')}} be an arbitrary element of {{mvar|X}}. For all {{math|''x'' ∈ ''X''}}, {{math|''f''(''x'')}} is in the image of {{mvar|f}}, so {{math|1=''g''(''f''(''x'')) = ''x''}} by above, so {{mvar|g}} is a left inverse of {{mvar|f}}.
▲In classical mathematics, every injective function {{mvar|f}} with a nonempty ___domain necessarily has a left inverse; however, this may fail in [[constructive mathematics]]. For instance, a left inverse of the inclusion {{math|{0,1} → '''R'''}} of the two-element set in the reals violates [[indecomposability (constructive mathematics)|indecomposability]] by giving a [[Retract (category theory)|retraction]] of the real line to the set {{math|{0,1{{)}}}}.{{Citation needed|date=February 2021}}
====Right inverses====
|