Share to: share facebook share twitter share wa share telegram print page

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 every element of the first set to 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 difficult to specify. 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. For this reason, in calculus, and more generally in mathematical analysis, a partial function is generally called simply 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 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

  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.
  • 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.

Read other articles:

此條目需要擴充关于電影及電視劇之文字說明的内容。 (2014年10月27日)请協助改善这篇條目,更進一步的信息可能會在討論頁或扩充请求中找到。请在擴充條目後將此模板移除。 日語寫法日語原文女帝假名じょてい平文式罗马字Jotei 項目 列表 各國漫畫家列表 頁面分類 漫畫 各國漫畫-漫畫家 漫畫類型-漫畫角色 專題 漫畫-漫畫家 共筆 共用筆名 漫畫小作品 動漫小作品 日本漫畫

شعار بنك HSBC سويسليكس أو سويس ليكس (بالفرنسية: SwissLeaks) هو الاسم الذي أطلق على عملية نشر واسعة من قبل عدة وسائل إعلام عالمية في فبراير 2015 تختص بالتهرب الضريبي وتبيض الأموال الذي قام به البنك البريطاني إتش إس بي سي ابتداء من سويسرا. الاسم تم إنشاؤه تماثلا لويكيليكس. هذه الحملة هي م…

Horse breed from the Iberian Peninsula It has been suggested that Spanish Norman be merged into this article. (Discuss) Proposed since November 2023. AndalusianAndalusian horseOther namesPure Spanish Horse, pura raza españolaCountry of originSpain, Iberian PeninsulaTraitsDistinguishing featuresStrongly built, compact, elegant, thick mane and tailBreed standardsANCCEIALHAAustralasia Andalusian AssociationEquus ferus caballus The Andalusian, also known as the Pure Spanish Horse or PRE (pura raza …

Lemuel Herbert MurlinMurlin in 1917President of Depauw UniversityIn office1924–1928Preceded byGeorge Richmond GroseSucceeded byGarfield Bromley OxnamPresident of Boston UniversityIn office1911–1924Preceded byWilliam Edwards HuntingtonSucceeded byDaniel Lash MarshPresident of Baker UniversityIn office1893–1911 Personal detailsBorn(1861-11-16)November 16, 1861Neptune, OhioDiedJune 20, 1935(1935-06-20) (aged 73)Wayland, Michigan Lemuel Herbert Murlin (November 16, 1861 – June 20, …

Frontera entre Gabón y Guinea Ecuatorial Mapa de Gabón que muestra la Frontera entre ese país y Guinea Ecuatorial.  Gabón  Guinea Ecuatorial Longitud total 350 kmParticularidades Disputa de varios islotes en la Bahía de CoriscoHistoriaCreación Convención franco-española de junio de 1900[editar datos en Wikidata] La Frontera entre Guinea Ecuatorial y Gabón se compone de un tramo fluvial, por la línea media del estuario del Muni desde la bahía de Corisco (Océano Atl…

У Вікіпедії є статті про інших людей з таким ім'ям: Марк Фослій Флакцінатор. Марк Фослій Флакцінаторлат. Marcus Folius FlaccinatorНародився близько 470 до н. е.РимПомер після 433 до н. е.невідомоГромадянство Римська республікаДіяльність давньоримський політик, давньоримський військов…

مايكل بالاك (بالألمانية: Michael Ballack) بالاك عام 2014 معلومات شخصية الاسم الكامل مايكل بالاك[1] الميلاد 26 سبتمبر 1976 (العمر 47 سنة)غورليتس، ألمانيا الشرقية الطول 1.88 م (6 قدم 2 بوصة)[2] مركز اللعب وسط الجنسية ألماني اللقب القيصر الصغير مسيرة الشباب سنوات فريق 1983–1995 كيمنتز…

União das Freguesias de Cabreiros e Albergaria da SerraCabreiros e Albergaria da Serra Freguesia de Portugal Vista de la freguesia (Albergaria da Serra) União das Freguesias de Cabreiros e Albergaria da SerraLocalización de União das Freguesias de Cabreiros e Albergaria da Serra en PortugalCoordenadas 40°56′00″N 8°16′00″O / 40.93333333, -8.26666667Entidad Freguesia de Portugal • País  Portugal • Municipio Arouca • Distrito AveiroSuperficie…

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Kaldu Sari Nabati – berita · surat kabar · buku · cendekiawan · JSTOR Richeese beralih ke halaman ini. Untuk rumah makan siap saji yang dimiliki oleh satu kelompok perusahaan yang sama, lihat Richeese Facto…

Monchy-sur-Eu Monchy-sur-Eu (Frankreich) Staat Frankreich Region Normandie Département (Nr.) Seine-Maritime (76) Arrondissement Dieppe Kanton Eu Gemeindeverband Villes Sœurs Koordinaten 50° 0′ N, 1° 27′ O49.9958333333331.4538888888889Koordinaten: 50° 0′ N, 1° 27′ O Höhe 49–142 m Fläche 8,99 km² Einwohner 578 (1. Januar 2020) Bevölkerungsdichte 64 Einw./km² Postleitzahl 76260 INSEE-Code 76442 Rathaus (Mairie) und Schule v…

Дана стаття призначена для ознайомлення, зокрема візуального, з меморіалами, пам'ятниками, пам'ятними знаками і скульптурами в Солом'янському районі столиці України міста Києва, а також подання коротких відомостей про них. Солом'янський район нині — місце розташування …

Церква Санта-Марія-МаджореНазва на честь: Діва Марія 45°29′35″ пн. ш. 10°36′29″ сх. д. / 45.493271600028° пн. ш. 10.60819130002777833° сх. д. / 45.493271600028; 10.60819130002777833Координати: 45°29′35″ пн. ш. 10°36′29″ сх. д. / 45.493271600028° пн. ш. 10.60819130002777833° сх. …

Persidafon DafonsoroNama lengkapPersatuan Sepak bola Indonesia DafonsoroJulukanGabus SentaniBerdiri1970StadionStadion Barnabas Youwe, Kabupaten Jayapura, IndonesiaKetua UmumHabel Melkias SuwaeLigaLiga 32013ke-16, Liga Super Indonesia(degradasi) Kostum kandang Kostum tandang Persidafon Dafonsoro merupakan sebuah klub sepak bola Indonesia yang bermarkas di Kabupaten Jayapura, Indonesia. Klub ini didirikan pada tahun 1970. Bermain di Divisi Utama Liga Indonesia. Klub ini memainkan pertandingan kand…

Estado HelénicoἙλληνική ΠολιτείαElliniki Politeia Estado títere de las Potencias del Eje 1941-1944BanderaEscudo Lema: Ελευθερία ή θάνατος(Elefthería i thánatos)«Libertad o muerte» Himno: Ύμνος εις την Ελευθερίαν(Imnos eis tin Eleftherían)«Himno a la Libertad» Ubicación del Estado Helénico durante la Segunda Guerra Mundial.Capital AtenasEntidad Estado títere de las Potencias del EjeIdioma oficial Griego • Otros idiomas Alem…

Children's museum in Washington, D.C.National Children's MuseumLocation within Central Washington, D.C.Former nameCapital Children's MuseumEstablished1974 (1974)LocationRonald Reagan Building, Washington, D.C.Coordinates38°53′38″N 77°1′51″W / 38.89389°N 77.03083°W / 38.89389; -77.03083TypeChildren's museumAccreditationAAM, ACM, ASTCFounderJudith Grummon NelsonPresidentCrystal BowyerChairpersonRobert M. VolmerEmployees22Public transit access Washington Met…

Herb gminy Kościan Herb gminy Kościan - na zielonym tle w części dolnej i żółtym w części górnej , rozdzielonym skośnym szarozielonym pasem umieszczono kłos pszenżyta połączony z półpodkową. Tarczę herbową przecina pionowo niebieski falisty pas. Szarozielony pas symbolizuje zadrzewienia śródpolne - element charakterystyczny dla krajobrazu gminy. Zadrzewienia zostały wprowadzone ok. 1820 roku przez mieszkańca Turwi, gen. Dezyderego Chłapowskiego. Pozostałe elementy herbu…

El Congreso Nacional de Software Libre (CNSL) es un evento itinerante que visita una ciudad cada fin de semana durante tres meses y se realiza en Venezuela desde el año 2005. El evento reúne a activistas por la libertad del software y usuarios GNU/Linux. El Primer Congreso Nacional de Software Libre es organizado por entusiastas que formaban parte del Grupo de Usuarios UNPLUG, luego fue organizándose en un modelo llamado GLoVE y actualmente es parte de las actividades de Proyecto GNU de Venez…

Во́лжско-Каспи́йская флоти́лия — военное формирование Красной армии в период Гражданской войны 1918—22 годов. Содержание 1 История 1.1 Формирование 1.2 Состав 1.3 Командный состав 1.4 Боевые действия 2 Источники История Формирование 21 июля 1919 года на базе Астрахано-Каспийской…

Casino resort in Las Vegas, Nevada For other uses, see Caesars Palace (disambiguation). Caesars PalaceShow map of Las Vegas StripShow map of Nevada Location Paradise, Nevada, U.S. Address 3570 South Las Vegas BoulevardOpening dateAugust 5, 1966; 57 years ago (1966-08-05)ThemeRoman EmpireNo. of rooms3,960Total gaming space124,181 sq ft (11,536.8 m2)Permanent showsAbsintheSignature attractionsReplica ancient Roman, Greek and Renaissance artThe Colosseum at Caesars …

Swedish photographer (1870–1949) Mia GreenBornMaria Amalia Lundmark14 April 1870Died24 June 1949 (1949-06-25) (aged 79)Haparanda MunicipalityNationalitySwedishKnown forphotography and social careFamilyMarika Green (granddaughter)Eva Green (great-granddaughter) Maria Amalia Mia Green (née Lundmark; 14 April 1870 – 24 June 1949) was a Swedish photographer and feminist activist. She documented history in that area, particularly during the First World War. She was also involved i…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.14.253.118