Zulip Chat Archive

Stream: mathlib4

Topic: SetTheory.Game.Pgame


Maxwell Thum (Jan 12 2023 at 21:31):

At https://github.com/leanprover-community/mathlib4/blob/port/SetTheory.Game.Pgame/Mathlib/SetTheory/Game/Pgame.lean#L217 I get the error

code generator does not support recursor 'Pgame.recOn' yet, consider using 'match ... with' and/or structural recursion

I don't know how to go about using either.

Eric Wieser (Jan 12 2023 at 21:34):

x.recOn fun yl yr yL yR => IH (mk yl yr yL yR) should be something like match x with mk yl yr yL yR => IH (mk yl yr yL yR) end

Maxwell Thum (Jan 12 2023 at 21:54):

match x with | mk yl yr yL yR => IH (mk yl yr yL yR) gives me a type mismatch for IH (mk yl yr yL yR)


Last updated: Dec 20 2023 at 11:08 UTC