Zulip Chat Archive

Stream: lean4

Topic: unused simp argument creative suggestion


Patrick Massot (Jul 07 2025 at 14:04):

A cute little “bug”:

example (a b : Nat) (ha : a = 0) (hb : b = 0) : a + 0 = 0 := by
  simp [hb, ha]

Patrick Massot (Jul 07 2025 at 14:05):

image.png

Patrick Massot (Jul 07 2025 at 14:06):

I pasted an image because Zulip messes up the strike-through part.

Aaron Liu (Jul 07 2025 at 14:06):

well it works

Joachim Breitner (Jul 08 2025 at 07:09):

It's not a bug, it's a feature! Lean is respectful of your time and the stress on your carpal tunnels, and suggest an edit that takes the least amount of keystrokes to achieve it, including the initial right arrow key presses to get there.

Joachim Breitner (Jul 08 2025 at 07:10):

But once you are on a version of Lean with https://github.com/leanprover/lean4/pull/8574 it'll stop doing that.


Last updated: Dec 20 2025 at 21:32 UTC