-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use macro "constructor := fconstructor"
- Loading branch information
1 parent
3c33172
commit 66c2bfa
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Game.Metadata.Tactic.ByCases | ||
import Game.Metadata.Tactic.Constructor | ||
import Game.Metadata.Tactic.Induction | ||
import Game.Metadata.Tactic.Ring | ||
import Game.Metadata.Tactic.LinearCombination | ||
import Game.Metadata.Tactic.Ring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Mathlib.Tactic.Ring | ||
|
||
namespace Game | ||
|
||
@[inherit_doc Lean.Parser.Tactic.constructor] | ||
macro (name := constructor) "constructor" : tactic => | ||
`(tactic| fconstructor) | ||
|
||
extend_docs Game.constructor after "The variant used in the Robo game is called | ||
`fconstructor` in Mathlib. The only difference is the real `constructor` sorts | ||
the goals in a way not ideal for the game." |