Skip to content

chore: redefine Nat.div2 Nat.bodd#13649

Closed
astrainfinita wants to merge 54 commits intomasterfrom
FR_binrec
Closed

chore: redefine Nat.div2 Nat.bodd#13649
astrainfinita wants to merge 54 commits intomasterfrom
FR_binrec

Conversation

@astrainfinita
Copy link
Copy Markdown
Collaborator

@astrainfinita astrainfinita commented Jun 9, 2024

The new definitions are faster than the old ones. Nat.binaryRec will be moved to batteries (leanprover-community/batteries#799) or core (leanprover/lean4#3756), so relevant contents are moved to a new file temporarily.


Open in Gitpod

@astrainfinita astrainfinita added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Jun 9, 2024
@astrainfinita astrainfinita changed the title chore: redefine Nat.binaryRec Nat.div2 Nat.bodd chore: redefine Nat.binaryRec Nat.div2 Nat.bodd Jun 9, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 9, 2024

PR summary 60c51c067a

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Data.Nat.Bits 123 103 -20 (-16.26%)
Mathlib.Data.Nat.Size 155 150 -5 (-3.23%)
Mathlib.Logic.Equiv.Nat 293 292 -1 (-0.34%)
Import changes for all files
Files Import difference
Mathlib.Data.Nat.Bits -20
Mathlib.Data.Nat.Size -5
Mathlib.Data.FP.Basic Mathlib.Logic.Equiv.Nat -1

Declarations diff

+ div2_lt_self

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jun 9, 2024
@urkud
Copy link
Copy Markdown
Member

urkud commented Jun 9, 2024

Please describe how and why did you change the definition(s) in the commit message.

@urkud urkud requested a review from digama0 June 19, 2024 21:14
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jun 27, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 13, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 15, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 15, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 16, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 22, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 23, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 22, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Dec 1, 2024
@astrainfinita astrainfinita changed the title chore: redefine Nat.bit Nat.div2 Nat.bodd chore: redefine Nat.div2 Nat.bodd Dec 1, 2024
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Dec 1, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 5, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 7, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 9, 2025
@leanprover-community-bot-assistant
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 2, 2025
@astrainfinita
Copy link
Copy Markdown
Collaborator Author

This PR has been migrated to a fork-based workflow: #36970

@YaelDillies YaelDillies deleted the FR_binrec branch April 1, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants