automate lemmaTab #88
This commit is contained in:
@@ -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
|
descrFormat := lvl.descrFormat --toExpr <| format (lvl.goal.raw) --toString <| Syntax.formatStx (lvl.goal.raw) --Syntax.formatStx (lvl.goal.raw) , -- TODO
|
||||||
introduction := lvl.introduction
|
introduction := lvl.introduction
|
||||||
conclusion := lvl.conclusion
|
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
|
statementName := match lvl.statementName with
|
||||||
| .anonymous => none
|
| .anonymous => none
|
||||||
| name => match (inventoryExt.getState env).find?
|
| name => match (inventoryExt.getState env).find?
|
||||||
|
|||||||
Reference in New Issue
Block a user