Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: ring/ bound/ simp/ grind


Alex Kontorovich (Nov 16 2025 at 17:55):

I'm wondering if this is the expected behavior?

import Mathlib

example (n : ) : (-1 : ) ^ (2 * (n + 1) + 2) = 1 := by
  -- `simp` made no progress
  -- `ring` doesn't close it
  -- `bound` fails
  -- `grind` fails
  ring_nf
  bound

Thanks!

Jovan Gerbscheid (Nov 17 2025 at 00:06):

I think it would be a reasonable feature for ring to cancel minus signs that sit under an even exponent. (cc @Arend Mellendijk, this might give another reason to store the constant factor/offset at the head of the list instead of the end, in the internal ExSum/ExProd types)


Last updated: Dec 20 2025 at 21:32 UTC