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: Dec 20 2023 at 11:08 UTC