Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
b85a8ad286 feat: add [grind cases eager] Subtype
This PR adds `[grind cases eager]` attribute to `Subtype`. See new
test.
2025-03-17 17:55:23 -07:00
2 changed files with 7 additions and 1 deletions

View File

@@ -7,5 +7,5 @@ prelude
import Init.Core
import Init.Grind.Tactics
attribute [grind cases eager] And Prod False Empty True Unit Exists
attribute [grind cases eager] And Prod False Empty True Unit Exists Subtype
attribute [grind cases] Or

View File

@@ -80,3 +80,9 @@ example (x y z : Int) :
-5 3*x - 11*y + 2*z 3*x - 11*y + 2*z -1
10 8*x + 9*y - 4*z 8*x + 9*y - 4*z 12 False := by
grind
example (x y : Int) (h : x < y) (z : { z : Int // y z z x }) : False := by
grind
example (x y : Int) (h : x < y) (z : { z : Int // y z z x }) : Nat := by
grind