lean4-htt/tests/lean/run/introLetFun.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

19 lines
289 B
Text

import Lean.Elab.Tactic.Basic
import Lean.Meta.Tactic.Intro
/-!
# Testing `intro` with `have`
-/
/-!
Explicit `intro`.
-/
example : have x := 2; ∀ _ : Nat, x = x := by
intro x _
rfl
/-!
`intros` is aware of `have`.
-/
example : have x := 2; ∀ _ : Nat, x = x := by
intros
rfl