blob: 395c436f1c37a54d17a3f17345ddf6e1515291a6 [file]
/-
Tests `grind` proof parameters whose type is not a `forall`.
-/
opaque f : Nat → Nat
axiom le_f (a : Nat) : a ≤ f a
example (a : Nat) : a ≤ f a := by
grind [le_f a]
example (a b : α) (h : ∀ x y : α, x = y) : a = b := by
fail_if_success grind
grind [h a b]
/--
error: invalid `grind` parameter, modifier is redundant since the parameter type is not a `forall`
a ≤ f a
-/
#guard_msgs in
example (a : Nat) : a ≤ f a := by
grind [← le_f a]