Zulip Chat Archive

Stream: lean4

Topic: Int.natAbs of nonzero is nonzero?


Omnikar (Jul 30 2023 at 16:59):

Hi. Is there a built-in theorem I can use for showing that Int.natAbs of a nonzero integer gives a nonzero natural? If not, how can I write one myself?

Ruben Van de Velde (Jul 30 2023 at 17:03):

Certainly in mathlib, likely in std4. exact? or apply? likely finds it

Riccardo Brasca (Jul 30 2023 at 17:36):

docs#Int.natAbs_ne_zero says exactly that

Omnikar (Jul 30 2023 at 18:08):

Thanks.


Last updated: Dec 20 2023 at 11:08 UTC