leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: Is there code for X?

Topic: (-1)^k when `k` is an `int`


Scott Morrison (Mar 28 2021 at 12:40):

What's the easiest way to talk about (-1)^k as an int, when k : int?

Merely writing it complains about not having a has_pow int int instance, of course.

Mario Carneiro (Mar 28 2021 at 12:42):

You could use gpow in units int


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll