leanprover-community / mathlib

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

Zulip Chat Archive

Stream: new members

Topic: cast nat in hypothesis to reals


Hank (Dec 18 2022 at 03:23):

given (a : nat) (b : nat) and the hypothesis (h : a < b), how do I prove (a:R) < (b:R), which is h casted in the reals? I tried norm_cast but it didn't work.

Junyan Xu (Dec 18 2022 at 03:34):

Weird, norm_cast should be able to use docs#nat.cast_lt. Can you post a #mwe?


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll