Zulip Chat Archive
Stream: lean4
Topic: Why does this simple decidable instance not reduce?
Mario Weitzer (Jan 10 2026 at 09:02):
example : ((4/7 : ℚ) ≠ 0) := by decide
/-
Tactic `decide` failed for proposition
4 / 7 ≠ 0
because its `Decidable` instance
instDecidableNot
did not reduce to `isTrue` or `isFalse`.
-/
Miyahara Kō (Jan 10 2026 at 09:57):
example : ((4/7 : ℚ) ≠ 0) := by
with_unfolding_all decide
Miyahara Kō (Jan 10 2026 at 10:00):
This is because docs#Rat.mul and docs#Rat.inv are marked as irreducible.
Mario Weitzer (Jan 10 2026 at 10:13):
Miyahara Kō said:
example : ((4/7 : ℚ) ≠ 0) := by with_unfolding_all decide
I see, thanks!
Last updated: Feb 28 2026 at 14:05 UTC