lean4-htt/src/Init/Grind
Leonardo de Moura 0db795a1dc
feat: improve grind cutsat support for Fin n when n is not a numeral (#10022)
This PR improves support for `Fin n` in `grind cutsat` when `n` is not a
numeral. For example, the following goals can now be solved
automatically:

```lean
example (p d : Nat) (n : Fin (p + 1)) 
    : 2 ≤ p → p ≤ d + 1 → d = 1 → n = 0 ∨ n = 1 ∨ n = 2 := by
  grind

example (s : Nat) (i j : Fin (s + 1)) (hn : i ≠ j) (hl : ¬i < j) : j < i := by
  grind

example {n : Nat} (j : Fin (n + 1)) : j ≤ j := by
  grind

example {n : Nat} (x y : Fin ((n + 1) + 1)) (h₂ : ¬x = y) (h : ¬x < y) : y < x := by
  grind
```
2025-08-21 17:25:52 +00:00
..
Module chore: missing doc-strings for grind typeclasses (#9900) 2025-08-14 02:15:13 +00:00
Ordered feat: integrate high-level order typeclasses with BEq and Ord (#9908) 2025-08-19 07:54:53 +00:00
Ring feat: integrate high-level order typeclasses with BEq and Ord (#9908) 2025-08-19 07:54:53 +00:00
Attr.lean feat: pattern inference using symbol priorities in grind (#9182) 2025-07-03 16:47:38 -07:00
Cases.lean feat: attribute [grind cases eager] PProd MProd (#9121) 2025-07-01 04:02:47 +00:00
Ext.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Lemmas.lean fix: equality congruence proofs in grind (#9767) 2025-08-06 16:40:27 +00:00
Module.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Norm.lean fix: normalize SMul.smul for Semiring and Ring (#9671) 2025-08-01 20:16:03 +00:00
Offset.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Ordered.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
PP.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Propagator.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Ring.lean feat: make private the default in module (#9044) 2025-06-28 16:30:53 +00:00
Tactics.lean chore: remove grind +ringNull option (#9954) 2025-08-17 23:04:59 +00:00
ToInt.lean feat: improve grind cutsat support for Fin n when n is not a numeral (#10022) 2025-08-21 17:25:52 +00:00
ToIntLemmas.lean feat: improve grind cutsat support for Fin n when n is not a numeral (#10022) 2025-08-21 17:25:52 +00:00
Util.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00