lean4-htt/tests/lean/run/grind_fin_zero.lean
Leonardo de Moura 0818cf6483
feat: improves Fin n support in grind (#11319)
This PR improves the support for `Fin n` in `grind` when `n` is not a
numeral.

- `toInt (0 : Fin n) = 0` in `grind lia`.
- `Fin.mk`-applications are treated as interpreted terms in `grind lia`.
- `Fin.val` applications are suppressed from `grind lia`
counterexamples.
2025-11-22 06:51:25 +00:00

6 lines
202 B
Text

/-
Tests `grind` "knows" `toInt (0 : Fin n) = 0` even if `n` is not a numeral.
-/
example {n a : Nat} [NeZero n] {ha : a < n} (h₁ : a ≠ 0) (h₂ : (⟨a, ha⟩ : Fin n) = 0) : False := by
grind