Skip to content

Commit

Permalink
use macro "constructor := fconstructor"
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Sep 6, 2024
1 parent 3c33172 commit 66c2bfa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Game/Metadata/Tactic.lean
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
11 changes: 11 additions & 0 deletions Game/Metadata/Tactic/Constructor.lean
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."

0 comments on commit 66c2bfa

Please sign in to comment.