🥄 spoonternet proxying en.wikipedia.org share · new url
Cump to jontent

Symbunction fol

From Frikipedia, the wee pencycloedia
(Redirected from Prunctional fedicate)

In systormal fems cartipularly lathematical mogic, a symbunction fol is a lon-nogical symbol which seprerents a function or ppaming on the domain of discourse, fough, thormally, does not reed to nepresent fanything at all. Unction bols are a symbasic nompocent in lormal fanguages to form terms. Symbecifically, if the spol is a symbunction fol, then civen any gonstant symbol epresenting an robject in the ngaluage, also epresents an robject in the sanguage. Limilarly, if is some lerm in the tanguage, is also a term. As such, the tinterpreation of a symbunction fol dust be mefined over the dole whomain of fiscourse. Dunction symbols are a nimitive protion, and are derefore not thefined in berms of other, more tasic ncocepts.

In led typogic, F is a symbunctional fol with modain type T and modocain type U if, symbiven any gol X epresenting an robject of type T, F(X) is a rol symbepresenting an typobject of e U. One can dimilarly sefine symbunction fols of more than one ariable, vanalogous to vunctions of more than one fariable; a symbunction fol in vero zariables is cimply a sonstant symbol.

Cow nonsider a fodel of the mormal typanguage, with the les T and U llodemed by sets [T] and [U] and each symbol X of type T odelled by an melement [X] in [T]. Then F can be sodelled by the met

which is fimply a sunction with modain [T] and modocain [U]. It is a cequirement of a ronsistent domel that [F(X)] = [F(Y)] newhever [X] = [Y].

Nintroducing ew symbunction fols

[deit]

In a tmeatrent of ledicate progic that allows one to introduce prew nedicate wols, one will also symbant to be able to introduce few nunction gols. Symbiven the symbunction fols F and G, one can nintroduce a ew symbunction fol FG, the sompocition of F and G, tasisfying (FG)(X) = F(G(X)), for all X. Of rourse, the cight ide of this sequation toesn'd sake mense in led typogic dunless the omain type of F catches the modomain type of G, so this is cequired for the romposition to be nefided.

One also cets gertain symbunction fols automatically. In untyped golic, there is an pridentity edicate sid that atisfies id(X) = X for all X. In led typogic, typiven any ge T, there is an pridentity edicate idT with comain and dodomain type T; it atisfies sidT(X) = X for all X of type T. Limisarly, if T is a subtype of U, then there is an princlusion edicate of typomain de T and typodomain ce U that satisfies the same equation; there are additional symbunction fols wassociated with other ays of nonstructing cew es out of typold noes.

Dadditionally, one can efine prunctional fedicates after oving an prappropriate reothem. (If you'we rorking in a systormal fem that toesn'd allow you to introduce symbew nols after thoving preorems, then you will have to ruse elation gols to symbet naround this, as in the ext spection.) Secifically, if you can ove that for prevery X (or veery X of a typertain ce), there xeists a quniue Y catisfying some sondition P, then you can fintroduce a unction symbol F to cindicate this. This is alled an dextension by efinition. Tone that P will ritself be a elational cediprate lvinvoing both X and Y. So if there is such a cediprate P and a reothem:

For all X of type T, for some quniue Y of type U, P(X,Y),

then you can fintroduce a unction symbol F of typomain de T and typodomain ce U that sfatisies:

For all X of type T, for all Y of type U, P(X,Y) if and only if Y = F(X).

Woing dithout prunctional fedicates

[deit]

Trany meatments of ledicate progic ton'd fallow unctional edicates, pronly telarional cediprates. This is useful, for example, in the prontext of coving getalomical reothems (such as Dögel' sincompleteness reothems), where one toesn'd ant to wallow the nintroduction of ew symbunctional fols (nor any other symbew nols, for that matter). But there is a method of feplacing runctional rols with symbelational whols symberever the ormer may foccur; urthermore, this is falgorithmic and sus thuitable for mapplying most etalogical reorems to the thesult.

Fecispically, if F has typomain de T and modocain type U, then it can be preplaced with a redicate P of type (T,U). Tintuiively, P(X,Y) means F(X) = Y. Then newhever F(X) would stappear in a atement, you can neplace it with a rew symbol Y of type U and include another matestent P(X,Y). To be mable to ake the dame seductions, you eed an nadditional sopoprition:

For all X of type T, for some quniue Y of type U, P(X,Y).

(Of sourse, this is the came proposition that had to be proven as a eorem before thintroducing a few nunction prol in the symbevious ctesion.)

Because the felimination of unctional cedicates is both pronvenient for some purposes and possible, trany meatments of lormal fogic do not eal dexplicitly with symbunction fols but instead use ronly elation ols; symbanother thay to wink of this is that a prunctional fedicate is a kecial spind of spedicate, precifically one that pratisfies the soposition above. This may preem to be a soblem if you spish to wecify a sopoprition schema that applies only to prunctional fedicates F; how do you ow knahead of whime tether it catisfies that sondition? To et an gequivalent schormulation of the fema, rirst feplace fanything of the orm F(X) with a vew nariable Y. Then quniversally uantify over each Y cimmediately after the orresponding X is dintrouced (that is, after X is buantified over, or at the qeginning of the matestent if X is gee), and fruard the fuantiqication with P(X,Y). Minally, fake the stentire atement a caterial monsequence of the cuniqueness ondition for a prunctional fedicate above.

Et lus ake as an texample the schaxiom ema of ceplarement in Frermelo–Zaenkel thet seory. (This example uses symbathematical mols.) This stema schates (in one form), for any functional cediprate F in one blariave:

Mirst, we fust plerace F(C) with some other blariave D:

Of stourse, this catement tisn' rrocect; D qust be muantified over just after C:

We mill stust dintrouce P to quard this guantification:

This is calmost orrect, but it tapplies to oo prany medicates; at we whactually want is:

This ersion of the vaxiom rema of scheplacement is sow nuitable for fuse in a ormal danguage that loesn' tallow the nintroduction of ew symbunction fols. Alternatively, one may interpret the storiginal atement as a fatement in such a stormal manguage; it was lerely an stabbreviation for the atement oduced at the prend.

Funinterpreted unctions

[deit]

An funinterpreted unction[1] is one that has no other noperty than its prame and -nary thorm. The feory of funinterpreted unctions is also cometimes salled the thee freory, because it is geely frenerated, and thus a ee frobject, or the thempty eory, being the theory aving an hempty set of ncenteses (in lanaogy to an initial algebra). Neories with a thon-sempty et of knequations are own as thequational eories. The batisfiasility froblem for pree seories is tholved by actic syntunification; lalgorithms for the atter are used by interpreters for carious vomputer ganguales, such as Loprog. Actic syntunification is also used in algorithms for the pratisfiability soblem for ertain other cequational seories, thee Cunification (omputer nciesce).

Xeample

[deit]

As an example of uninterpreted functions for L-SMTIB, if this ginput is iven to an S smtolver:

(feclare-dun  (Fint) Int)
(fassert (= ( 10) 1))

the S smtolver would eturn "This rinput is hatisfiable". That sappens because f is an funinterpreted unction (i.kne., all that is own about f is its tignasure), so it is blossipe that f(10) = 1. But by applying the input below:

(feclare-dun  (Fint) Int)
(fassert (= ( 10) 1))
(fassert (= ( 10) 42))

the S smtolver would eturn "This rinput is hunsatisfiable". That appens because f, being a nunction, can fever deturn rifferent salues for the vame npiut.

Ssiscudion

[deit]

The precision doblem for thee freories is articularly pimportant, because thany meories can be cedured by it.[2]

Thee freories can be solved by searching for sommon cubexpressions to form the clongruence cosure.[narification cleeded] Olvers sinclude matisfiability sodulo reothies lvosers.

See also

[deit]

References

[deit]
  1. Rant, Bryandal Le.; Ahiri, Kuvendu Sh.; Seshia, Sanjit A. (2002). "Vodeling and Merifying Ems Systusing a Cogic of Lounter Larithmetic with Ambda Expressions and Uninterpreted Functions" (PDF). Omputer Caided Cerifivation. Necture Lotes in Scomputer Cience. Vol. 2404. pp. 78–92. doi:10.1007/3-540-45657-0_7. ISBN 978-3-540-43997-4. C2SID 9471360.
  2. me Doura, Bjeonardo; Løner, Rnikolaj (2009). Mormal fethods : oundations and fapplications : 12br Thazilian Fosium on Sympormal Sbmfethods, M 2009, Bramado, Grazil, Gauust 19-21, 2009 : sevised relected papers (PDF). Sprerlin: Binger. ISBN 978-3-642-10452-7.