Zulip Chat Archive

Stream: lean4

Topic: rw unfolds lets


Eric Wieser (Oct 04 2024 at 15:35):

Is this change in 4.12.0 expected?

def foo (x : Nat) : Nat := let three := x + 2; three

example : foo x = 2 + x := by
  rw [foo]
  -- in 4.11.0 the `let` is still present, in 4.12.0 it has been inlined

Last updated: May 02 2025 at 03:31 UTC