Lean.Meta.Tactic.apply now accepts an ApplyConfig argument. `apply` now changes which metavariables are stored with choice of the newGoals config. This allows one to implement `fapply` and `eapply`. An example of this is given in tests/lean/run/apply_tac.lean. Closes #1045
24 lines
199 B
Text
24 lines
199 B
Text
a b c : Nat
|
|
h₁ : a = b
|
|
h₂ : b = c
|
|
⊢ a = b
|
|
case h
|
|
a : Nat
|
|
⊢ ?w = a
|
|
|
|
case w
|
|
a : Nat
|
|
⊢ Nat
|
|
case h
|
|
a : Nat
|
|
⊢ ?w = a
|
|
case w
|
|
a : Nat
|
|
⊢ Nat
|
|
|
|
case h
|
|
a : Nat
|
|
⊢ ?w = a
|
|
case h
|
|
a : Nat
|
|
⊢ a = a
|