leanprover-community / mathlib

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

Zulip Chat Archive

Stream: Is there code for X?

Topic: nat abs or


Bolton Bailey (Mar 10 2022 at 01:30):

Do we have something like this?
lemma nat_abs_or (z : ℤ) : (z.nat_abs : ℤ) = z ∨ (z.nat_abs : ℤ) = (-z)

Bhavik Mehta (Mar 10 2022 at 01:34):

I think int.nat_abs_eq_iff.1 rfl essentially gives you this (docs#int.nat_abs_eq_iff)


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll