Zulip Chat Archive
Stream: lean4
Topic: by apply?
Patrick Massot (Feb 19 2025 at 15:45):
Am I dreaming or did Lean 3 had the nice feature that by apply?
was replaced by a proof term when it closed the goal (ie foo bar
instead of by exact foo bar
)? Anyway, it would be really nice to have.
Floris van Doorn (Feb 19 2025 at 15:51):
Is this close enough to what you want?
example : True := exact?%
Floris van Doorn (Feb 19 2025 at 15:52):
But you're correct that at some point clicking on by exact?
would give you something that never went into tactic mode.
Patrick Massot (Feb 19 2025 at 16:19):
I know about exact?%
but I still think getting back that behavior would be really nice.
Mario Carneiro (Feb 23 2025 at 17:40):
this can be a general try this
behavior - whenever the replacement is exact foo
and it's alone in it's by
block you can delete both by
and exact
Eric Wieser (Feb 23 2025 at 19:14):
That's not always true, sometimes by exact
is needed to adjust the elaboration order
Ruben Van de Velde (Feb 23 2025 at 20:32):
But close enough for cases like exact?
, I think
Last updated: May 02 2025 at 03:31 UTC