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.
6 lines
202 B
Text
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
|