Zulip Chat Archive
Stream: lean4
Topic: Extracting a subexpression to an auxiliary declaration
Eric Wieser (Jul 05 2024 at 13:11):
Is there some outline
elaborator, or a function in Lean.Elab
, that can be used to make
def foo (a b c) := a + outline(b + c)
elaborate as
mutual
def foo.aux1 (b c) := b + c
def foo (a b c) := a + foo.aux1 b c
end
Notification Bot (Jul 05 2024 at 15:45):
This topic was moved here from #Is there code for X? > Extracting a subexpression to an auxiliary declaration by Eric Wieser.
Last updated: May 02 2025 at 03:31 UTC