feat: reverse all options of a game - #430
Open
plp127 wants to merge 15 commits into
Open
Conversation
vihdzp
reviewed
Aug 11, 2026
vihdzp
left a comment
Owner
There was a problem hiding this comment.
Sorry for the backlog, I'll try and review properly tonight.
vihdzp
reviewed
Aug 12, 2026
Owner
|
Where does this leave #124? My major complaint there was that the theorems seemed hard to apply, and that seems to have been true... |
Contributor
Author
The lemmas are still probably useful to have, but I don't see how to get them to apply in this case where bypassing one game could generate infinitely many options, the |
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Define
unreverse (x : IGame) : IGame, which recursively reverses all the options ofxuntil they can't be reversed anymore, so thatunreverse xis a game equivalent toxwhich has no reversible options.Unfortunately I wan't able to use the theorems from #124, since those are only for reversing moves once, but this definition needs to be able to reverse possibly infinitely many times, so I can't even use transitivity since that only chains finitely many times.