English
Curry-uncurry establishes a standard way to convert an n-ary function into a function on n-tuples; specifically, uncurry maps a function of arity n to a function from Fin n to α to β.
Русский
Раскуривание превращает функцию n-арности в функцию на n-куче; то есть uncurry превращает функцию arity n в отображение (Fin n → α) → β.
LaTeX
$$$\operatorname{uncurry}_{n} : (\mathrm{Function.OfArity}\; \alpha\; \beta\; n) \to (\mathrm{Fin}\ n \to \alpha) \to \beta$$$
Lean4
/-- Uncurry all the arguments of `Function.OfArity α n` to get a function from a tuple.
Note this can be used on raw functions if used. -/
def uncurry {n} (f : Function.OfArity α β n) : (Fin n → α) → β :=
FromTypes.uncurry f