You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
332 B
Plaintext
13 lines
332 B
Plaintext
2 years ago
|
import Lean
|
||
2 years ago
|
-- import TestGame.MyNat
|
||
2 years ago
|
|
||
|
open Lean Elab Tactic
|
||
|
|
||
|
elab "swap" : tactic => do
|
||
|
match ← getGoals with
|
||
|
| g₁::g₂::t => setGoals (g₂::g₁::t)
|
||
|
| _ => pure ()
|
||
|
|
||
2 years ago
|
-- macro "induction_on" n:ident : tactic =>
|
||
|
-- `(tactic| refine myInduction $n ?base ?inductive_step; swap; clear $n; intro $n $(mkIdent `ind_hyp); swap)
|