Skip to content

Commit

Permalink
automate lemmaTab #88
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 28, 2023
1 parent 764ed55 commit 50ec616
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/GameServer/Game.lean
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ partial def handleServerEvent (ev : ServerEvent) : GameServerM Bool := do
descrFormat := lvl.descrFormat --toExpr <| format (lvl.goal.raw) --toString <| Syntax.formatStx (lvl.goal.raw) --Syntax.formatStx (lvl.goal.raw) , -- TODO
introduction := lvl.introduction
conclusion := lvl.conclusion
lemmaTab := lvl.lemmaTab
lemmaTab := match lvl.lemmaTab with
| some tab => tab
| none =>
-- Try to set the lemma tab to the category of the first added lemma
match lvl.lemmas.tiles.find? (·.new) with
| some tile => tile.category
| none => none
statementName := match lvl.statementName with
| .anonymous => none
| name => match (inventoryExt.getState env).find?
Expand Down

0 comments on commit 50ec616

Please sign in to comment.