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

refactor: let Nat.mod reduce more #4145

Merged
merged 2 commits into from
May 13, 2024
Merged

refactor: let Nat.mod reduce more #4145

merged 2 commits into from
May 13, 2024

Conversation

nomeata
Copy link
Contributor

@nomeata nomeata commented May 13, 2024

this refined upon #4098 and makes Nat.mod reduce on even more
literals. The key observation that I missed earlier is that if m ≤ n
reduces better than if n < m.

Also see discussion at
leanprover-community/mathlib4#12853 (comment)

this refined upon #4098 and makes `Nat.mod` reduce on even more
literals. The key observation that I missed earlier is that `if m ≤ n`
reduces better than `if n < m`.

Also see discussion at
leanprover-community/mathlib4#12853 (comment)
@nomeata nomeata requested a review from semorrison as a code owner May 13, 2024 08:47
@nomeata nomeata changed the title refactor: Let Nat.mod reduce more refactor: let Nat.mod reduce more May 13, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 13, 2024 09:14 Inactive
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 13, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 13, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 13, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label May 13, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented May 13, 2024

Mathlib CI status (docs):

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 13, 2024 10:31 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 13, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 13, 2024
@nomeata
Copy link
Contributor Author

nomeata commented May 13, 2024

@semorrison WDYT of this way to handle the Fin-literal issues?

@nomeata nomeata added the awaiting-review Waiting for someone to review the PR label May 13, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 13, 2024 10:59 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 13, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 13, 2024
@nomeata
Copy link
Contributor Author

nomeata commented May 13, 2024

I’ll merge this so that it’s in the next nightly. Certainly better than #4098.

@nomeata nomeata added this pull request to the merge queue May 13, 2024
Merged via the queue into master with commit 8422803 May 13, 2024
27 checks passed
@nomeata nomeata deleted the joachim/better-nat-mod branch May 13, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review Waiting for someone to review the PR builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants