Zulip Chat Archive

Stream: mathlib4

Topic: gcongr doc


Patrick Massot (Oct 31 2023 at 19:03):

@Mario Carneiro or @Heather Macbeth, could you tell me what docs#Lean.MVarId.gcongr returns? The docstring has a description of the inputs but no description of the outputs.

Patrick Massot (Oct 31 2023 at 19:04):

It looks like the first output is a success flag and the last argument is a list of created side goals, but the middle one is completely mysterious.

Patrick Massot (Oct 31 2023 at 19:04):

Just as mysterious as the names input actually.

Kyle Miller (Oct 31 2023 at 19:10):

It seems to be the with clause names, and it returns the unused ones?

Patrick Massot (Oct 31 2023 at 19:16):

Thanks, I forgot the existence of this with syntax.

Heather Macbeth (Nov 01 2023 at 02:34):

Patrick Massot said:

It looks like the first output is a success flag and the last argument is a list of created side goals, but the middle one is completely mysterious.

@Patrick Massot I had to refresh my memory here too, so I hope I will not say anything wrong, but I believe the first output is a "progress" flag (it records "success" in the sense of whether the tactic did anything at all) and the last argument is a list of created goals (both "side" and unresolved "main"). And I believe Kyle's explanation is correct for the middle goal.

Patrick Massot (Nov 01 2023 at 02:35):

Thanks!


Last updated: Dec 20 2023 at 11:08 UTC