Zulip Chat Archive

Stream: Is there code for X?

Topic: transform `fun a => f a` back to `f`?


Scott Morrison (Mar 13 2023 at 04:01):

Surely there is a function Expr → Expr that "cancels" function application and lambda abstraction at the top level of the expression, and does nothing else. But what would it be called?

Jireh Loreaux (Mar 13 2023 at 04:04):

That's eta reduction for function types, so presumably it has eta in the name? Just a guess.

Kyle Miller (Mar 13 2023 at 11:54):

There's docs4#Lean.Expr.eta for going from the function to f and docs4#Lean.Meta.etaExpand for something like its inverse.


Last updated: Dec 20 2023 at 11:08 UTC