Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triangular numbers #1044

Merged
merged 12 commits into from
Jan 25, 2024
Merged

Triangular numbers #1044

merged 12 commits into from
Jan 25, 2024

Conversation

felixwellen
Copy link
Collaborator

@felixwellen felixwellen commented Sep 10, 2023

Proves the usual formula for triangular numbers in this form:

(n : fst ℕ)  2 · (∑ (first (suc n))) ≡ n · (n + 1)

Depends on #1042 #1043 (both merged now)

I just proved this, because I wondered how if it is as little work as I thought it is.
Judging from this PR, it looks pleasant, but I actually had to do some refactoring to make it so.

@felixwellen felixwellen marked this pull request as ready for review September 27, 2023 15:34
Copy link
Contributor

@MatthiasHu MatthiasHu left a comment

Choose a reason for hiding this comment

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

Looks good!

@felixwellen
Copy link
Collaborator Author

Thanks! Merging when CI is happy.

@felixwellen felixwellen merged commit 1c0396c into master Jan 25, 2024
1 check passed
@felixwellen felixwellen deleted the fwellen/triangular branch January 25, 2024 17:30
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