lean4-htt/tests/lean/run/grind_11259.lean
Leonardo de Moura 2ed025ade8
feat: mark sizeOf theorems as grind theorems (#11265)
This PR marks the automatically generated `sizeOf` theorems as `grind`
theorems.

closes #11259

Note: Requested update stage0, we need it to be able to solve example in
the issue above.
```lean
example (a: Nat) (b: Nat): sizeOf a < sizeOf (a, b) := by
  grind
```
2025-11-19 18:38:35 +00:00

16 lines
425 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

inductive Lst (α : Type u) where
| nil : Lst α
| cons (head : α) (tail : Lst α) : Lst α
structure Prd (α : Type u) (β : Type v) where
fst : α
snd : β
example : sizeOf (@Lst.nil Nat) < sizeOf (Lst.cons 10 .nil) := by
grind
example (a b : Nat) : sizeOf a < sizeOf { fst := a, snd := b : Prd _ _ } := by
grind
example (a : α) (b : β) : sizeOf a < sizeOf { fst := a, snd := b : Prd _ _ } := by
grind