Skip to content

[Merged by Bors] - feat(MvPowerSeries/Order): order of a difference of products - #44996

Closed
WenrongZou wants to merge 5 commits into
leanprover-community:masterfrom
WenrongZou:order_prod_sub
Closed

WenrongZou wants to merge 5 commits into
leanprover-community:masterfrom
WenrongZou:order_prod_sub

Conversation

@WenrongZou

Copy link
Copy Markdown
Collaborator

In this PR, we add some lemmas about MvPowerSeries.order.

  • coeff_eq_of_lt_weightedOrder_sub: if weight w d < (f - g).weightedOrder w, then coeff d f = coeff d g.
  • le_weightedOrder_prod_sub_prod: if n ≤ (a i - b i).weightedOrder w for all i ∈ s, then n ≤ (∏ i ∈ s, a i - ∏ i ∈ s, b i).weightedOrder w.
  • add_nsmul_le_weightedOrder_prod_sub_prod: if, in addition, every a i and b i has weighted order at least k, the bound becomes n + (#s - 1) • k.

We also add the corresponding order versions: coeff_eq_of_lt_order_sub, le_order_prod_sub_prod and add_nsmul_le_order_prod_sub_prod.


@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

PR summary f0c22aba58

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ add_nsmul_le_order_prod_sub_prod
+ add_nsmul_le_weightedOrder_prod_sub_prod
+ coeff_eq_of_lt_order_sub
+ coeff_eq_of_lt_weightedOrder_sub
+ le_order_prod_sub_prod
+ le_weightedOrder_prod_sub_prod

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 f0c22ab).

  • +6 new declarations
  • −0 removed declarations
+MvPowerSeries.add_nsmul_le_order_prod_sub_prod
+MvPowerSeries.add_nsmul_le_weightedOrder_prod_sub_prod
+MvPowerSeries.coeff_eq_of_lt_order_sub
+MvPowerSeries.coeff_eq_of_lt_weightedOrder_sub
+MvPowerSeries.le_order_prod_sub_prod
+MvPowerSeries.le_weightedOrder_prod_sub_prod

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

Current commit f0c22aba58
Reference commit e91b128082

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).

@riccardobrasca riccardobrasca 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.

Can you use #s instead of s.card?

@riccardobrasca

Copy link
Copy Markdown
Member

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by riccardobrasca.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 22, 2026
@Vierkantor

Copy link
Copy Markdown
Contributor

@riccardobrasca, you wrote maintainer merge but would have the power to merge this PR. Is there anything in particular you would like another maintainer to look at?

@riccardobrasca

Copy link
Copy Markdown
Member

It's just that Wenrong is my PhD student so I prefer not merge his PRs.

@ocfnash

ocfnash commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 13, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 13, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 13, 2026
In this PR, we add some lemmas about `MvPowerSeries.order`.

- `coeff_eq_of_lt_weightedOrder_sub`: if `weight w d < (f - g).weightedOrder w`, then `coeff d f = coeff d g`.
- `le_weightedOrder_prod_sub_prod`: if `n ≤ (a i - b i).weightedOrder w` for all `i ∈ s`, then `n ≤ (∏ i ∈ s, a i - ∏ i ∈ s, b i).weightedOrder w`.
- `add_nsmul_le_weightedOrder_prod_sub_prod`: if, in addition, every `a i` and `b i` has weighted order at least `k`, the bound becomes `n + (#s - 1) • k`.

We also add the corresponding `order` versions: `coeff_eq_of_lt_order_sub`, `le_order_prod_sub_prod` and `add_nsmul_le_order_prod_sub_prod`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 13, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(MvPowerSeries/Order): order of a difference of products [Merged by Bors] - feat(MvPowerSeries/Order): order of a difference of products Nov 13, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 13, 2026
@WenrongZou
WenrongZou deleted the order_prod_sub branch November 13, 2026 16:57
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. ready-to-merge This PR has been sent to bors. t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants