Zulip Chat Archive
Stream: general
Topic: norm_num with int.fract
Violeta Hernández (Aug 01 2022 at 01:35):
Does norm_num
support int.fract
? I find this behavior odd:
-- works
example : int.fract (1 / 3 : ℚ) = 1 / 3 := by norm_num
-- fails
example : int.fract (-(2 / 3 : ℚ)) = 1 / 3 := by norm_num
Violeta Hernández (Aug 01 2022 at 01:36):
I think the first example might work just because it's simped down to 0 ≤ 1 / 3 ∧ 1 / 3 < 1
.
Mario Carneiro (Aug 01 2022 at 07:22):
no
Last updated: Dec 20 2023 at 11:08 UTC