lean4-htt/tests/lean/consumePPHint.lean
Kyle Miller 044bfdb098
feat: eliminate letFun support, deprecate let_fun syntax (#9086)
This PR deprecates `let_fun` syntax in favor of `have` and removes
`letFun` support from WHNF and `simp`.
2025-06-30 02:10:18 +00:00

14 lines
312 B
Text

/-!
This test used to check that metadata wasn't consumed by `apply`.
-/
opaque p : Nat → Prop
opaque q : Nat → Prop
theorem p_of_q : q x → p x := sorry
theorem pletfun : p (have x := 0; x + 1) := by
-- ⊢ p (have x := 0; x + 1)
apply p_of_q
trace_state -- `have` should not be consumed.
sorry