This is still experimental, but it implements identifier support in auto tactics "in the obvious way". It also converts `quoteAutoTactic` to generate Expr directly instead of going via syntax (this doesn't have any effect other than increasing compile cost AFAICT).
15 lines
290 B
Text
15 lines
290 B
Text
|
|
def f (x y : Nat) (h : x = y := by assumption) : Nat :=
|
|
x + x
|
|
|
|
def g (x y z : Nat) (h : x = y) : Nat :=
|
|
f x y
|
|
|
|
def f2 (x y : Nat) (h : x = y := by exact rfl) : Nat :=
|
|
x + x
|
|
|
|
def f3 (x y : Nat) (h : x = y := by exact Eq.refl x) : Nat :=
|
|
x + x
|
|
|
|
#check fun x => f2 x x
|
|
#check fun x => f3 x x
|