r/MathematicalLogic • u/Ualrus • Sep 04 '21
Functions of a variable number of inputs?
What is this called in a formal context? (Not programming.)
Is there any typed lambda calculus for instance that allows this?
Comments that pop to mind about this in general are welcome too.
Thanks in advance. Google couldn't help me this time.
5
Upvotes
View all comments
Show parent comment
2
u/Ualrus Sep 04 '21 edited Sep 04 '21
Thinking in terms of typed lambda calculus, you may have for instance
f:A->(B->C)vsg:A×B->C. And formally speaking these aren't the same. (Again, in the context of lambda calculus. Although well, in ZFC they wouldn't be the exact same sets either, but in math we are so used to working up to isomorphism.)The first one is said to be "currified". It takes two arguments before outputting someone in
C. You may write it down likef a b.The second one is said to be "decurrified". It takes an actual pair. You may write it down like
g (a,b).And you may have a function ---say
c:(X×Y->Z)->(X->Y->Z)--- such that for somef:A->B->Cyou havec g = f.As a pretty note, this is analogous (more than that) to the
and-eliminationrule(s). The×may be interpreted as anand, and you're literally "eliminating" it here.So under this last interpretation, saying that a function that takes two arguments vs one that takes a pair are the same, is like saying that a proof that has as lemma something of the form
P and Qand then proves sayPfrom the conjunction, vs a proof that just provesPdirectly are the same.Quite a mouthful, haha. Just giving some general ideas for why we would care about distinguishing between two inputs and a pair as input. I know it's not 100% accurate. : )