Zulip Chat Archive

Stream: Is there code for X?

Topic: int.coe_to_nat_eq


Eloi (Jul 19 2020 at 11:17):

I didn't find this in the library... Is there some similar lemma?

example (n:): 0  n  (n.to_nat) = n :=
  begin
    sorry,
  end

Rob Lewis (Jul 19 2020 at 11:19):

docs#int.to_nat_of_nonneg

Rob Lewis (Jul 19 2020 at 11:20):

library_search finds this (if you have data.int.basic imported)

Eloi (Jul 19 2020 at 11:29):

Thaks, I was searching manually in lib/lean/library/init/data.int.basic and I thought it was mathlib.


Last updated: Dec 20 2023 at 11:08 UTC