This PR deprecates `let_fun` syntax in favor of `have` and removes `letFun` support from WHNF and `simp`.
19 lines
289 B
Text
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
|