Partial function

In mathematics, a partial function f from a set X to a set Y is a function from a subset S of X (possibly the whole X itself) to Y. The subset S, that is, the domain of f viewed as a function, is called the domain of definition or natural domain of f. If S equals X, that is, if f is defined on every element in X, then f is said to be a total function.

More technically, a partial function is a binary relation over two sets that associates to every element of the first set at most one element of the second set; it is thus a univalent relation. This generalizes the concept of a (total) function by not requiring every element of the first set to be associated to an element of the second set.

A partial function is often used when its exact domain of definition is not known, or is difficult to specify. However, even when the exact domain of definition is known, partial functions are often used for simplicity or brevity. This is the case in calculus, where, for example, the quotient of two functions is a partial function whose domain of definition cannot contain the zeros of the denominator; in this context, a partial function is generally simply called a function.

In computability theory, a general recursive function is a partial function from the integers to the integers; no algorithm can exist for deciding whether an arbitrary such function is in fact total.

When arrow notation is used for functions, a partial function from to is sometimes written as or However, there is no general convention, and the latter notation is more commonly used for inclusion maps or embeddings.[citation needed]

Specifically, for a partial function and any one has either:

  • (it is a single element in Y), or
  • is undefined.

For example, if is the square root function restricted to the integers

defined by:
if, and only if,

then is only defined if is a perfect square (that is, ). So but is undefined.

Basic concepts

An example of a partial function that is injective.
An example of a function that is not injective.

A partial function arises from the consideration of maps between two sets X and Y that may not be defined on the entire set X. A common example is the square root operation on the real numbers : because negative real numbers do not have real square roots, the operation can be viewed as a partial function from to The domain of definition of a partial function is the subset S of X on which the partial function is defined; in this case, the partial function may also be viewed as a function from S to Y. In the example of the square root operation, the set S consists of the nonnegative real numbers

The notion of partial function is particularly convenient when the exact domain of definition is unknown or even unknowable. For a computer-science example of the latter, see Halting problem.

In case the domain of definition S is equal to the whole set X, the partial function is said to be total. Thus, total partial functions from X to Y coincide with functions from X to Y.

Many properties of functions can be extended in an appropriate sense of partial functions. A partial function is said to be injective, surjective, or bijective when the function given by the restriction of the partial function to its domain of definition is injective, surjective, bijective respectively.

Because a function is trivially surjective when restricted to its image, the term partial bijection denotes a partial function which is injective.[1]

An injective partial function may be inverted to an injective partial function, and a partial function which is both injective and surjective has an injective function as inverse. Furthermore, a function which is injective may be inverted to a bijective partial function.

The notion of transformation can be generalized to partial functions as well. A partial transformation is a function where both and are subsets of some set [1]

Function spaces

For convenience, denote the set of all partial functions from a set to a set by This set is the union of the sets of functions defined on subsets of with same codomain :

the latter also written as In finite case, its cardinality is

because any partial function can be extended to a function by any fixed value not contained in so that the codomain is an operation which is injective (unique and invertible by restriction).

Discussion and examples

The first diagram at the top of the article represents a partial function that is not a function since the element 1 in the left-hand set is not associated with anything in the right-hand set. Whereas, the second diagram represents a function since every element on the left-hand set is associated with exactly one element in the right hand set.

Natural logarithm

Consider the natural logarithm function mapping the real numbers to themselves. The logarithm of a non-positive real is not a real number, so the natural logarithm function doesn't associate any real number in the codomain with any non-positive real number in the domain. Therefore, the natural logarithm function is not a function when viewed as a function from the reals to themselves, but it is a partial function. If the domain is restricted to only include the positive reals (that is, if the natural logarithm function is viewed as a function from the positive reals to the reals), then the natural logarithm is a function.

Subtraction of natural numbers

Subtraction of natural numbers (in which is the non-negative integers) is a partial function:

It is defined only when

Bottom element

In denotational semantics a partial function is considered as returning the bottom element when it is undefined.

In computer science a partial function corresponds to a subroutine that raises an exception or loops forever. The IEEE floating point standard defines a not-a-number value which is returned when a floating point operation is undefined and exceptions are suppressed, e.g. when the square root of a negative number is requested.

In a programming language where function parameters are statically typed, a function may be defined as a partial function because the language's type system cannot express the exact domain of the function, so the programmer instead gives it the smallest domain which is expressible as a type and contains the domain of definition of the function.

In category theory

In category theory, when considering the operation of morphism composition in concrete categories, the composition operation is a total function if and only if has one element. The reason for this is that two morphisms and can only be composed as if that is, the codomain of must equal the domain of

The category of sets and partial functions is equivalent to but not isomorphic with the category of pointed sets and point-preserving maps.[2] One textbook notes that "This formal completion of sets and partial maps by adding “improper,” “infinite” elements was reinvented many times, in particular, in topology (one-point compactification) and in theoretical computer science."[3]

The category of sets and partial bijections is equivalent to its dual.[4] It is the prototypical inverse category.[5]

In abstract algebra

Partial algebra generalizes the notion of universal algebra to partial operations. An example would be a field, in which the multiplicative inversion is the only proper partial operation (because division by zero is not defined).[6]

The set of all partial functions (partial transformations) on a given base set, forms a regular semigroup called the semigroup of all partial transformations (or the partial transformation semigroup on ), typically denoted by [7][8][9] The set of all partial bijections on forms the symmetric inverse semigroup.[7][8]

Charts and atlases for manifolds and fiber bundles

Charts in the atlases which specify the structure of manifolds and fiber bundles are partial functions. In the case of manifolds, the domain is the point set of the manifold. In the case of fiber bundles, the domain is the space of the fiber bundle. In these applications, the most important construction is the transition map, which is the composite of one chart with the inverse of another. The initial classification of manifolds and fiber bundles is largely expressed in terms of constraints on these transition maps.

The reason for the use of partial functions instead of functions is to permit general global topologies to be represented by stitching together local patches to describe the global structure. The "patches" are the domains where the charts are defined.

See also

References

  • Martin Davis (1958), Computability and Unsolvability, McGraw–Hill Book Company, Inc, New York. Republished by Dover in 1982. ISBN 0-486-61471-9.
  • Stephen Kleene (1952), Introduction to Meta-Mathematics, North-Holland Publishing Company, Amsterdam, Netherlands, 10th printing with corrections added on 7th printing (1974). ISBN 0-7204-2103-9.
  • Harold S. Stone (1972), Introduction to Computer Organization and Data Structures, McGraw–Hill Book Company, New York.

Notes

  1. ^ a b Christopher Hollings (2014). Mathematics across the Iron Curtain: A History of the Algebraic Theory of Semigroups. American Mathematical Society. p. 251. ISBN 978-1-4704-1493-1.
  2. ^ Lutz Schröder (2001). "Categories: a free tour". In Jürgen Koslowski and Austin Melton (ed.). Categorical Perspectives. Springer Science & Business Media. p. 10. ISBN 978-0-8176-4186-3.
  3. ^ Neal Koblitz; B. Zilber; Yu. I. Manin (2009). A Course in Mathematical Logic for Mathematicians. Springer Science & Business Media. p. 290. ISBN 978-1-4419-0615-1.
  4. ^ Francis Borceux (1994). Handbook of Categorical Algebra: Volume 2, Categories and Structures. Cambridge University Press. p. 289. ISBN 978-0-521-44179-7.
  5. ^ Marco Grandis (2012). Homological Algebra: The Interplay of Homology with Distributive Lattices and Orthodox Semigroups. World Scientific. p. 55. ISBN 978-981-4407-06-9.
  6. ^ Peter Burmeister (1993). "Partial algebras – an introductory survey". In Ivo G. Rosenberg; Gert Sabidussi (eds.). Algebras and Orders. Springer Science & Business Media. ISBN 978-0-7923-2143-9.
  7. ^ a b Alfred Hoblitzelle Clifford; G. B. Preston (1967). The Algebraic Theory of Semigroups. Volume II. American Mathematical Soc. p. xii. ISBN 978-0-8218-0272-4.
  8. ^ a b Peter M. Higgins (1992). Techniques of semigroup theory. Oxford University Press, Incorporated. p. 4. ISBN 978-0-19-853577-5.
  9. ^ Olexandr Ganyushkin; Volodymyr Mazorchuk (2008). Classical Finite Transformation Semigroups: An Introduction. Springer Science & Business Media. pp. 16 and 24. ISBN 978-1-84800-281-4.

Read other articles:

The Heritage FoundationBerkas:Heritage-logo.jpgTanggal pendirian16 Februari 1973TipeLembaga pemikir pemerintah untuk Kebijakan umumKantor pusat214 Massachusetts Ave, NELokasiWashington, D.C.PresidenEdwin FeulnerSitus webwww.heritage.org Heritage Foundation adalah sebuah lembaga yayasan pemikir pemerintah Amerika Serikat yang berlokasi di Washington, D.C. Yayasan ini memegang peranan penting pada gerakan konservatif pada masa pemerintahan presiden Ronald Reagan, di mana salah satu kebijakannya...

 

 

Acanthaster Acanthaster planci Klasifikasi ilmiah Domain: Eukaryota Kerajaan: Animalia Filum: Echinodermata Kelas: Asteroidea Superordo: Valvatacea Ordo: Valvatida Famili: AcanthasteridaeSladen, 1889 Genus: AcanthasterGervais, 1841[1] Spesies Lihat teks Sinonim[1] Echinaster Gray, 1840 Echinities Müller & Troschel, 1844 Acanthaster adalah satu-satunya genus bintang laut besar dan berbisa yang terdapat dalam famili Acanthasteridae. Kedua spesiesnya dikenal sebagai bintang...

 

 

روبرت رودريغيز (بالإنجليزية: Robert Rodriguez)‏  روبرت رودريغيز في عام 2019 معلومات شخصية اسم الولادة (بالإنجليزية: Robert Anthony Rodríguez)‏  الميلاد 20 يونيو 1968 (العمر 55 سنة)سان أنطونيو الجنسية  الولايات المتحدة عضو في نقابة الكتاب الأمريكية الغربية  العشير روز مكغوان (2007–2009)  ا...

Wahyu 15Wahyu 13:16-14:4 yang tertulis pada fragmen Papirus 47 dari abad ke-3 M.KitabKitab WahyuKategoriApokalipsBagian Alkitab KristenPerjanjian BaruUrutan dalamKitab Kristen27← pasal 14 pasal 16 → Wahyu 15 (disingkat Why 15) adalah bagian dari Wahyu kepada Yohanes, kitab terakhir dalam Perjanjian Baru di Alkitab Kristen.[1][2] Pengarangnya diyakini adalah Yohanes bin Zebedeus, seorang dari Keduabelas Rasul Yesus Kristus.[3][4][5] Teks Nask...

 

 

American rock band For any of this band's self-titled albums, see Weezer (disambiguation). WeezerWeezer performing at Musikfest in Bethlehem, Pennsylvania in 2019. From left to right: Brian Bell, Patrick Wilson, Rivers Cuomo, and Scott Shriner.Background informationAlso known asGoat Punishment (1998–2000, 2002, 2022)OriginLos Angeles, California, U.S.Genres Alternative rock power pop pop rock indie rock pop-punk geek rock emo Discography Albums and singles songs Years active1992–present (...

 

 

Ancient tribe in Apulia, Italy Fresco of dancing Peucetian women in the Tomb of the Dancers in Rubi (now Ruvo di Puglia), fifth or fourth century BC The Peucetians were an Iapygian tribe which inhabited western and central Apulia in classical antiquity.[1] Two other Iapygian tribes, the Daunians and the Messapians, inhabited northern and southern Apulia respectively. All three tribes spoke the Messapian language, but had developed separate archaeological cultures by the seventh centur...

Vietnam as a Nuclear Power NinhThuận1  NinhThuận2 Binh Tien Xuan Phuong  Hoai MyDuc ChanhDuc Thạnh Ky Xuan class=notpageimage| Nuclear power plants in Vietnam(view)  Plants confirmed Plants tentative Vietnam is considering developing nuclear power for peaceful purposes based on modern, verified technology since 1995,[1] and firm proposals surfaced in 2006.[2] In November 2016 Vietnam suspended its nuclear power plans.[3] ...

 

 

此條目可参照英語維基百科相應條目来扩充。 (2021年5月6日)若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低品质内容。依版权协议,译文需在编辑摘要注明来源,或于讨论页顶部标记{{Translated page}}标签。 约翰斯顿环礁Kalama Atoll 美國本土外小島嶼 Johnston Atoll 旗幟颂歌:《星條旗》The Star-Spangled Banner約翰斯頓環礁�...

 

 

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

Early Sumerian stone tablet Stele of UshumgalThe stele, showing the priest Ushumgal (𒀭𒃲𒁔, Dushumgal), 2900-2700 BCE. Probably from Umma.[1][2]MaterialGypsum alabasterSize22 cm highCreatedcirca 2900-2700 BCEDiscoveredPossibly Umma31°37′17″N 45°56′00″E / 31.621369°N 45.933406°E / 31.621369; 45.933406Present locationBritish Museum, LondonRegistrationMetropolitan Museum of Art 58.29UmmaShow map of West and Central AsiaUmmaShow map of Ne...

 

 

Shaman worship of mother goddesses in VietnamThis article contains too many pictures for its overall length. Relevant discussion may be found on the talk page. Please improve this article by removing indiscriminate collections of images or adjusting images that are sandwiching text in accordance with the Manual of Style on use of images. (Learn how and when to remove this message)The painting Chúng Dân Chi Mẫu portraying the four Mother Goddesses in the Four Palaces denomination, Đạo M...

 

 

Brazilian basketball player Hortência MarcariMacari in 2006Personal informationBornSeptember 23, 1959 (1959-09-23) (age 64)Potirendaba, São Paulo (state), BrazilNationalityBrazilianListed height5 ft 9 in (1.75 m)Listed weight132 lb (60 kg)PositionForwardBasketball Hall of Fame as playerWomen's Basketball Hall of FameFIBA Hall of Fame as player Medals Women’s Basketball Representing  Brazil Olympic Games 1996 Atlanta National team World Championship ...

Lord Mayor of London (c. 1354–1423) For other people named Richard Whittington, see Richard Whittington (disambiguation). Dick Whittington redirects here. For other uses, see Dick Whittington (disambiguation). Richard Whittington, 19th c. engraving after original c.1590 by Reginald Elstrack (1570 – after 1625).Original engraving depicted a skull, changed to a cat by printseller Peter Stent to meet popular expectations. Arms: Whittington, FitzWaryn, Worshipful Company of Mercers, Merchant ...

 

 

2010 Guamanian general election ← 2006 November 2, 2010 2014 →   Nominee Eddie Calvo Carl T.C. Gutierrez Party Republican Democratic Running mate Ray Tenorio Frank Aguon, Jr. Popular vote 20,066 19,579 Percentage 50.61% 49.39 Governor before election Felix Perez Camacho Republican Elected Governor Eddie Calvo Republican Elections in Guam Federal government Presidential straw polls 1980 1984 1988 1992 1996 2000 2004 2008 2012 2016 2020 2024 Presidential ca...

 

 

Gearing-class destroyer, sunk as a target For other ships with the same name, see USS Samuel B. Roberts. This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this article by introducing more precise citations. (July 2019) (Learn how and when to remove this message) History United States NameUSS Samuel B. Roberts NamesakeSamuel B. Roberts BuilderConsolidated Steel Corporation, Orang...

Fashionsnap.comファッションスナップ・ドットコム URL www.fashionsnap.com言語 日本語タイプ ニュースサイトジャンル ファッション運営者 レコオーランド設立者 光山玲央奈座間康平開始 2005年 Fashionsnap.com(ファッションスナップ・ドットコム)は、株式会社レコオーランドの運営によるウェブサイト。スナップ写真を中心としたファッション関連情報を主なコンテンツとしてい...

 

 

Voce principale: Offenbacher Fußball-Club Kickers 1901. Offenbacher Fußball-Club Kickers 1901Stagione 2004-2005Sport calcio Squadra Kickers Offenbach Allenatore Hans-Jürgen Boysen All. in seconda Manfred Binz Regionalliga sud1º posto Coppa di GermaniaPrimo turno Maggiori presenzeCampionato: Sieger, Thier (34)Totale: Sieger, Thier (35) Miglior marcatoreCampionato: Türker (16)Totale: Türker (16) StadioStadion am Bieberer Berg Maggior numero di spettatori11 064 vs. Darmstadt Min...

 

 

Species of New World monkey Yellow-tailed woolly monkey[1] Conservation status Critically Endangered  (IUCN 3.1)[2] CITES Appendix I (CITES)[3] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Primates Suborder: Haplorhini Infraorder: Simiiformes Family: Atelidae Genus: Lagothrix Species: L. flavicauda Binomial name Lagothrix flavicauda(Humboldt, 1812) Synonyms Oreonax flavicauda Thomas, 1927 Lagothrix...

Insignia of the US Navy and US Coast Guard Command Ashore insignia, formerly known as the Command Ashore/Project Manager insignia (or Command Ashore/Major Program Manager insignia), is a breast insignia of the United States Navy and the United States Coast Guard. United States Navy Navy Command Ashore Pin In the U.S. Navy, the Command Ashore insignia is a gold metal, three-pronged trident device with a trident centered on an elliptically shaped laurel wreath. The badge is a breast insignia th...

 

 

Natation aux Jeux olympiques d'été de 1936 Généralités Sport Natation sportive Éditions 10e Lieu(x) Berlin, Allemagne Épreuves 11 Navigation Athènes 1896 • Paris 1900 • Saint-Louis 1904 • Londres 1908 • Stockholm 1912 • Anvers 1920 • Paris 1924 • Amsterdam 1928 • Los Angeles 1932 • Berlin 1936 • Londres 1948 • Helsinki 1952 • Melbourne 1956 • Rome 1960 • Tokyo 1964 • Mexico 1968 • Munich 1972 • Montréal 1976 • Moscou 1980 • Los Angeles 1984 ...