Zulip Chat Archive

Stream: mathlib4

Topic: Could `norm_num` be extended to handle division in `NNReal`?


Terence Tao (Jul 15 2025 at 18:21):

Currently it seems that norm_num only handles division in division rings, excluding in particular NNReal? In the following example, I needed an ad hoc application of a Mathlib lemma to close:

import Mathlib

example : 1/10 < (1:NNReal) := by
  apply NNReal.div_lt_one_of_lt  -- necessary because `norm_num` does not work immediately
  norm_num

Tactics such as norm_cast, field_simp, and rify also did not work here.

Eric Wieser (Jul 15 2025 at 18:24):

#9915 fixes this and just needs review

Jovan Gerbscheid (Jul 15 2025 at 20:53):

bound seems to work:

import Mathlib

example : 1/10 < (1:NNReal) := by
  bound

Last updated: Dec 20 2025 at 21:32 UTC