Zulip Chat Archive
Stream: mathlib4
Topic: grind failure and Classical
Yannick Seurin (Feb 25 2026 at 18:42):
Does anyone know why grind fails here?
example (q : Nat) (h : q ≠ 0) : 1 ≤ q := by
grind
example (q : Nat) (h : q ≠ 0) : 1 ≤ q := by
have := Classical.propDecidable
grind
/-
(kernel) application type mismatch
of_decide_eq_true (Eq.refl true)
argument has type
true = true
but function has type
decide (1 ≤ 1) = true → 1 ≤ 1
-/
Eric Wieser (Feb 25 2026 at 18:53):
If you edit the above to use Nat instead of ℕ and remove the import, I'll move to this to #lean4 for you
Yannick Seurin (Feb 25 2026 at 20:34):
Done!
Last updated: Feb 28 2026 at 14:05 UTC