Skip to content

Commit

Permalink
add allowed keywords #215
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Apr 18, 2024
1 parent 8cf358e commit 02978a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions server/GameServer/EnvExtensions.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ import GameServer.Hints
open GameServer

-- TODO: Is there a better place?
/-- Keywords that the server should not consider as tactics. -/
/-- Keywords that the server should not consider as tactics.
Note: Added `clear` tactic because currently it is very useful in combination with
`Branch` and `Hint` (i.e. using `clear` before a `Hint` in order to remove any irrelevant
hypotheses).
-/
def GameServer.ALLOWED_KEYWORDS : List String :=
["with", "fun", "at", "only", "by", "generalizing"]
["with", "fun", "at", "only", "by", "generalizing", "if", "then", "else", "clear"]

/-- The default game name if `Game "MyGame"` is not used. -/
def defaultGameName: String := "MyGame"
Expand Down

0 comments on commit 02978a3

Please sign in to comment.