Zulip Chat Archive

Stream: maths

Topic: Decidability on Rationals


Kenny Lau (Jun 01 2025 at 00:42):

import Mathlib

example : (1 / 0 : ) = 0 := rfl -- fails
example : (1 / 0 : ) = 0 := by decide -- fails
example : (1 / 0 : ) = 0 := by decide +kernel -- works

It seems like the usual strategies fail because mul and inv are marked as irreducible? What is the "idiomatic" way to prove things like this then?

Kevin Buzzard (Jun 01 2025 at 00:44):

norm_num?

Bhavik Mehta (Jun 01 2025 at 01:21):

or just simp

Miyahara Kō (Jun 01 2025 at 05:57):

I prove this by with_unfolding_all decide.

Eric Wieser (Jun 03 2025 at 19:43):

norm_num and simp are no good if this is part of a larger expression that decide can handle


Last updated: Dec 20 2025 at 21:32 UTC