Zulip Chat Archive

Stream: mathlib4

Topic: abel_nf bug


Heather Macbeth (Sep 17 2025 at 11:57):

This seems to be a bug in abel_nf -- I can't investigate it immediately, but recording it now in case someone can!

example {E : Type*} [AddCommGroup E] (y z : E) (P : E  Prop) :
    P (y - z + z) := by
  abel_nf
  sorry

This produces ⊢ P (y + -1 • z + z), but surely it ought to produce ⊢ P y.

Aaron Liu (Sep 17 2025 at 19:14):

concerning

import Mathlib

example {E : Type*} [AddCommGroup E] (y z : E) :
    y - z + z = y := by
  -- `abel` works but `abel_nf` does not
  -- abel
  -- abel_nf
  sorry

Heather Macbeth (Sep 18 2025 at 16:47):

#29778 fixes this bug.


Last updated: Dec 20 2025 at 21:32 UTC