Skip to content

feat: birthday of Dyadic.toIGame x - #428

Merged
vihdzp merged 28 commits into
vihdzp:masterfrom
plp127:aliu/birthday-dyadic
Sep 12, 2026
Merged

feat: birthday of Dyadic.toIGame x#428
vihdzp merged 28 commits into
vihdzp:masterfrom
plp127:aliu/birthday-dyadic

Conversation

@plp127

@plp127 plp127 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Give an explicit formula for Dyadic.toIGame x. Note that the formula given in the proof_wanted is wrong.


@vihdzp vihdzp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long proofs, will check tomorrow...

Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean

@vihdzp vihdzp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can isolate the following lemma: if x.den ≠ 1, then max x.lower.birthday x.upper.birthday + 1 = x.birthday.

This lemma should follow from the following: either x.lower.num.natAbs / x.lower.den = x.num.natAbs / x.den, or x.lower.den = 1. Same for upper.

Basically, I think you should split up this big proof into a bunch of other, less big proofs.

Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
plp127 and others added 7 commits August 13, 2026 15:24
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>

@vihdzp vihdzp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any substantial golfs here. Working with rational numbers just kind of sucks, doesn't it?

Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean
Comment thread CombinatorialGames/Surreal/Dyadic.lean Outdated
unfold Dyadic.den at hx ⊢
rw [coe_lower, coe_upper]
unfold Dyadic.den
rw [Rat.sub_def', Rat.den_mkRat, if_neg (by positivity),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can further extract den_lower and den_upper lemmas out of this big rw chain.

Comment thread CombinatorialGames/Surreal/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean Outdated
Comment thread CombinatorialGames/Surreal/Birthday/Dyadic.lean
plp127 and others added 13 commits September 11, 2026 21:38
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>
Co-authored-by: Violeta Hernández Palacios <vi.hdz.p@gmail.com>

@vihdzp vihdzp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can merge. These proofs are really intimidating but we can try to clean them up later maybe.

@vihdzp
vihdzp merged commit 1f4705c into vihdzp:master Sep 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants