Skip to content

gh-95723: Add proof of correctness for Fraction.limit_denominator to InternalDocs - #160625

Merged
StanFromIreland merged 6 commits into
python:mainfrom
skirpichev:fractions-docs/95723
Nov 22, 2026
Merged

StanFromIreland merged 6 commits into
python:mainfrom
skirpichev:fractions-docs/95723

Conversation

@skirpichev

@skirpichev skirpichev commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

This includes correctness proof of Fraction.limit_denominator by Mark Dickinson.

This includes correctness proof of Fraction.limit_denominator
by Mark Dickinson.
@StanFromIreland

Copy link
Copy Markdown
Member

CC @mdickinson

@skirpichev

Copy link
Copy Markdown
Member Author

FYI: this is mostly a copy-paste of the issue description, I suspect it's something that already approved.

I did few additions:

  1. reference to the Khinchin's book (I appreciate any other source)
  2. small preamble for the fractions.md
  3. last section with a reference to the formal proof.

@skirpichev skirpichev added the pending The issue will be closed if no feedback is provided label Nov 2, 2026
@mdickinson

Copy link
Copy Markdown
Member

Looks fine to me.

@mdickinson

Copy link
Copy Markdown
Member

Nit: not sure what the line-length conventions should be for Markdown files. The file is currently 1 file line per paragraph. Is it worth reflowing?

@skirpichev skirpichev removed the pending The issue will be closed if no feedback is provided label Nov 3, 2026
@skirpichev

Copy link
Copy Markdown
Member Author

not sure what the line-length conventions should be for Markdown files.

Other files wrap lines close to PEP 8 limit. Though, not all. E.g. InternalDocs/stack_protection.md.

The file is currently 1 file line per paragraph.

It's just to simplify comparison with the issue description.

@StanFromIreland

Copy link
Copy Markdown
Member

Please do wrap, for people viewing locally in non-wrapping editors it makes life much easier.

@skirpichev

Copy link
Copy Markdown
Member Author

Please do wrap, for people viewing locally in non-wrapping editors it makes life much easier.

Ok, done. Though, I suspect people will want to see rendered TeX...

Comment thread InternalDocs/fractions.md Resolved
@StanFromIreland

Copy link
Copy Markdown
Member

@mdickinson if you’re happy, I can merge this, could you please review?

@mdickinson

Copy link
Copy Markdown
Member

I won't be in a position to review effectively for around a week (on vacation without access to a real keyboard; phone doesn't count). I'm sure any changes I might ask for would be nitpick level, and I don't want to block this. I'm happy to do a post-merge review next week. Thanks @skirpichev for pushing this through!

@StanFromIreland

Copy link
Copy Markdown
Member

I'm afraid I'm not familiar enough here to review properly, but I think a week's wait should be alright.

@mdickinson mdickinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me!

@mdickinson

Copy link
Copy Markdown
Member

Nit: can we make the link to the formal proof an actual link rather than a code block?

@StanFromIreland StanFromIreland changed the title gh-95723: setup InternalDocs/fractions.md gh-95723: Add proof of correctness for Fraction.limit_denominator to InternalDocs Nov 22, 2026
@StanFromIreland
StanFromIreland merged commit 294a2cc into python:main Nov 22, 2026
54 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 22, 2026
@skirpichev
skirpichev deleted the fractions-docs/95723 branch November 22, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants