blob: aa79937e71ccdf85488a5e7ef60d3c16ac535b06 [file]
/-!
Regression test for #16033: `grind` anchors distinguish shadowed local variables, so `grind?`
produces a script that replays.
-/
variable (c : Nat)
/--
info: Try these:
[apply] grind only [= Nat.min_def, #25f6]
[apply] grind only [= Nat.min_def]
[apply] grind =>
instantiate only [= Nat.min_def]
cases #25f6
-/
#guard_msgs in
example : ∀ a b : Nat, a ≤ b → min a c ≤ a → min a c ≤ c → min a c ≤ min b c := fun x x _ _ _ => by
grind?
example : ∀ a b : Nat, a ≤ b → min a c ≤ a → min a c ≤ c → min a c ≤ min b c := fun x x _ _ _ => by
grind only [= Nat.min_def, #25f6]
example : ∀ a b : Nat, a ≤ b → min a c ≤ a → min a c ≤ c → min a c ≤ min b c := fun x x _ _ _ => by
grind only [= Nat.min_def]
example : ∀ a b : Nat, a ≤ b → min a c ≤ a → min a c ≤ c → min a c ≤ min b c := fun x x _ _ _ => by
grind =>
instantiate only [= Nat.min_def]
cases #25f6