Skip to content

[Merged by Bors] - chore(Data/Dyadic): move file to Tactic - #45186

Closed
plp127 wants to merge 13 commits into
leanprover-community:masterfrom
plp127:aliu/dyadic_move
Closed

plp127 wants to merge 13 commits into
leanprover-community:masterfrom
plp127:aliu/dyadic_move

Conversation

@plp127

@plp127 plp127 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The current file Mathlib/Data/Dyadic.lean is an implementation detail of the Inclusion tactic, and its contents are not suitable for general theory building on Dyadic. Rename Mathlib/Data/Dyadic.lean to Mathlib/Tactic/Inclusion/Extension/IntervalDyadicReal/Dyadic.lean to make this more clear.


@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Oct 22, 2026
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

PR summary 97d7c173cc

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Data.Dyadic -759
Mathlib.Tactic.Inclusion.Extension.IntervalDyadicReal.Dyadic 759

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 97d7c17).

  • +50 new declarations
  • −50 removed declarations
-Dyadic.add_shiftLeft_int
-Dyadic.add_shiftLeft_nat
-Dyadic.add_shiftRight_int
-Dyadic.add_shiftRight_nat
-Dyadic.neg_shiftLeft
-Dyadic.neg_shiftRight
-Dyadic.ofIntWithPrec_one
-Dyadic.ofOdd_shiftLeft
-Dyadic.ofOdd_shiftRight
-Dyadic.shiftLeft_add_int
-Dyadic.shiftLeft_add_nat
-Dyadic.shiftLeft_eq_zero
-Dyadic.shiftLeft_inj
-Dyadic.shiftLeft_natCast
-Dyadic.shiftLeft_neg
-Dyadic.shiftLeft_shiftRight
-Dyadic.shiftLeft_shiftRight'
-Dyadic.shiftRight_add_int
-Dyadic.shiftRight_add_nat
-Dyadic.shiftRight_eq_zero
-Dyadic.shiftRight_inj
-Dyadic.shiftRight_natCast
-Dyadic.shiftRight_neg
-Dyadic.shiftRight_shiftLeft
-Dyadic.shiftRight_shiftLeft'
-Dyadic.step
-Dyadic.sub_shiftLeft_int
-Dyadic.sub_shiftLeft_nat
-Dyadic.sub_shiftRight_int
-Dyadic.sub_shiftRight_nat
-Dyadic.toRat_shiftLeft
-Dyadic.toRat_shiftLeft_nat
-Dyadic.toRat_shiftRight
-Dyadic.toRat_shiftRight'
-Dyadic.toRat_shiftRight_nat
-Dyadic.toReal
-Dyadic.toRealAddMonoidHom
-Dyadic.toRealOrderEmbedding
-Dyadic.toReal_add
-Dyadic.toReal_intCast
-Dyadic.toReal_le_toReal
-Dyadic.toReal_lt_toReal
-Dyadic.toReal_mul
-Dyadic.toReal_natCast
-Dyadic.toReal_ofNat
-Dyadic.toReal_pow
-Dyadic.zero_shiftLeft
-Dyadic.zero_shiftRight
+Inclusion.IntervalDyadicReal.Dyadic.add_shiftLeft_int
+Inclusion.IntervalDyadicReal.Dyadic.add_shiftLeft_nat
+Inclusion.IntervalDyadicReal.Dyadic.add_shiftRight_int
+Inclusion.IntervalDyadicReal.Dyadic.add_shiftRight_nat
+Inclusion.IntervalDyadicReal.Dyadic.neg_shiftLeft
+Inclusion.IntervalDyadicReal.Dyadic.neg_shiftRight
+Inclusion.IntervalDyadicReal.Dyadic.ofIntWithPrec_one
+Inclusion.IntervalDyadicReal.Dyadic.ofOdd_shiftLeft
+Inclusion.IntervalDyadicReal.Dyadic.ofOdd_shiftRight
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_add_int
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_add_nat
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_eq_zero
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_inj
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_natCast
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_neg
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_shiftRight
+Inclusion.IntervalDyadicReal.Dyadic.shiftLeft_shiftRight'
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_add_int
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_add_nat
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_eq_zero
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_inj
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_natCast
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_neg
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_shiftLeft
+Inclusion.IntervalDyadicReal.Dyadic.shiftRight_shiftLeft'
+Inclusion.IntervalDyadicReal.Dyadic.step
+Inclusion.IntervalDyadicReal.Dyadic.sub_shiftLeft_int
+Inclusion.IntervalDyadicReal.Dyadic.sub_shiftLeft_nat
+Inclusion.IntervalDyadicReal.Dyadic.sub_shiftRight_int
+Inclusion.IntervalDyadicReal.Dyadic.sub_shiftRight_nat
+Inclusion.IntervalDyadicReal.Dyadic.toRat_shiftLeft
+Inclusion.IntervalDyadicReal.Dyadic.toRat_shiftLeft_nat
+Inclusion.IntervalDyadicReal.Dyadic.toRat_shiftRight
+Inclusion.IntervalDyadicReal.Dyadic.toRat_shiftRight'
+Inclusion.IntervalDyadicReal.Dyadic.toRat_shiftRight_nat
+Inclusion.IntervalDyadicReal.Dyadic.toReal
+Inclusion.IntervalDyadicReal.Dyadic.toRealAddMonoidHom
+Inclusion.IntervalDyadicReal.Dyadic.toRealOrderEmbedding
+Inclusion.IntervalDyadicReal.Dyadic.toReal_add
+Inclusion.IntervalDyadicReal.Dyadic.toReal_intCast
+Inclusion.IntervalDyadicReal.Dyadic.toReal_le_toReal
+Inclusion.IntervalDyadicReal.Dyadic.toReal_lt_toReal
+Inclusion.IntervalDyadicReal.Dyadic.toReal_mul
+Inclusion.IntervalDyadicReal.Dyadic.toReal_natCast
+Inclusion.IntervalDyadicReal.Dyadic.toReal_ofNat
+Inclusion.IntervalDyadicReal.Dyadic.toReal_pow
+Inclusion.IntervalDyadicReal.Dyadic.zero_shiftLeft
+Inclusion.IntervalDyadicReal.Dyadic.zero_shiftRight
+Inclusion.IntervalDyadicReal.instAddCommGroupDyadic
+Inclusion.IntervalDyadicReal.instLinearOrderDyadic
-instAddCommGroupDyadic
-instLinearOrderDyadic

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 97d7c173cc
Reference commit cfaeae1e96

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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).

note: file Mathlib/Data/Dyadic.lean` was renamed to `Mathlib/Tactic/Inclusion/Extension/IntervalDyadicReal/Dyadic.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

@mathlib-merge-conflicts mathlib-merge-conflicts Bot 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 29, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@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 Oct 30, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot 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 5, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@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 Nov 5, 2026
@github-actions github-actions Bot added the file-removed A Lean module was (re)moved without a `deprecated_module` annotation label Nov 5, 2026
pre-commit-ci-lite Bot and others added 3 commits November 5, 2026 22:13
These commands made the changes in this commit.
To make the same fixes yourself, run them in your mathlib4 checkout.
@plp127 plp127 added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 5, 2026
@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 Nov 5, 2026
@ocfnash

ocfnash commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

As highlighted on Zulip this work will be further reorganised in a subsequent PR. It seems the motivation for this PR is to stem the flow of new material into Mathlib/Data/Dyadic.lean to make subsequent reorganisation easier.

Since we have an approval from @DavidLedvinka I'm happy to merge this.

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 6, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 6, 2026
The current file `Mathlib/Data/Dyadic.lean` is an implementation detail of the `Inclusion` tactic, and its contents are not suitable for general theory building on `Dyadic`. Rename `Mathlib/Data/Dyadic.lean` to `Mathlib/Tactic/Inclusion/Extension/IntervalDyadicReal/Dyadic.lean` to make this more clear.

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 6, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore(Data/Dyadic): move file to Tactic [Merged by Bors] - chore(Data/Dyadic): move file to Tactic Nov 6, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 6, 2026
DavidLedvinka pushed a commit to DavidLedvinka/mathlib4 that referenced this pull request Nov 6, 2026
Follow the tactic-local Dyadic module and namespace introduced in leanprover-community#45186. Keep the rational API in Dyadic.lean, real-valued maps in Init.lean, and preserve both generations of deprecated real-conversion names in Deprecated/Aliases.lean.
mathlib-bors Bot pushed a commit that referenced this pull request Nov 6, 2026
Adds deprecated module for #45186.

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@plp127
plp127 deleted the aliu/dyadic_move branch November 6, 2026 19:06
mathlib-bors Bot pushed a commit that referenced this pull request Nov 10, 2026
Prove `Dyadic` is a linearly ordered ring, providing instances for `LinearOrder`, `CommRing`, and `IsStrictOrderedRing`. Remove corresponding material from `Mathlib/Tactic/Inclusion/Extension/IntervalDyadicReal/Dyadic`. Follow-up to #45186.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. file-removed A Lean module was (re)moved without a `deprecated_module` annotation ready-to-merge This PR has been sent to bors. tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants