Skip to content

feat(Mathlib/Analysis/Polynomial/MahlerMeasure): Mahler Measure for other rings#33463

Open
khwilson wants to merge 20 commits intoleanprover-community:masterfrom
khwilson:extend-mahler-measure
Open

feat(Mathlib/Analysis/Polynomial/MahlerMeasure): Mahler Measure for other rings#33463
khwilson wants to merge 20 commits intoleanprover-community:masterfrom
khwilson:extend-mahler-measure

Conversation

@khwilson
Copy link
Copy Markdown
Contributor

@khwilson khwilson commented Jan 1, 2026

Define mahlerMeasure' which allows you specify a norm preserving map v from any NormedRing A (or more general) to . Also provide wrappers around the main mahlerMeasure lemmas that are used for estimation.


Open in Gitpod

…ther rings

Define `mahlerMeasure'` which allows you specify a norm preserving map `v`
from any `NormedRing A` (or more general) to `ℂ`. Also provide wrappers around
the main `mahlerMeasure` lemmas that are used for estimation.
@github-actions github-actions bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jan 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 1, 2026

PR summary 5fbb6779b0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Monic.one_le_mapMahlerMeasure
+ leadingCoeff_le_mahlerMeasure
+ leadingCoeff_le_mapMahlerMeasure
+ mapMahlerMeasure
+ mapMahlerMeasure_const
+ mapMahlerMeasure_eq
+ mapMahlerMeasure_le_sum_norm_coeff
+ mapMahlerMeasure_mul
+ mapMahlerMeasure_nonneg
+ mapMahlerMeasure_one
+ mapMahlerMeasure_pos_of_ne_zero
+ mapMahlerMeasure_zero
+ norm_coeff_le_choose_mul_mapMahlerMeasure

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

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

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


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

@khwilson
Copy link
Copy Markdown
Contributor Author

khwilson commented Jan 2, 2026

Thanks for the simplicifications!

@joneugster joneugster added the t-analysis Analysis (normed *, calculus) label Feb 1, 2026
@j-loreaux
Copy link
Copy Markdown
Contributor

@khwilson the build on this PR is failing, so it is not on the queue. That's why it is not being reviewed. Please fix the build. 😃

@khwilson
Copy link
Copy Markdown
Contributor Author

@j-loreaux I think it was just a linting error. Builds locally now and we'll see if it runs!

Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

I'm not totally convinced we need this, but it's not my area, so I'll review it as if we do and trust you on that, and then let another maintainer have the final say.

@j-loreaux j-loreaux added the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 10, 2026
@khwilson
Copy link
Copy Markdown
Contributor Author

Ah, yes, sorry it's been a bit. I now recall that I needed to reopen this conversation on Zulip as there was a bit of a debate about how to package this API appropriately. I had deferred until some of the easier PRs were done :-)

Copy link
Copy Markdown
Contributor

@kim-em kim-em left a comment

Choose a reason for hiding this comment

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

A few minor suggestions (on top of Jireh's structural ones, which I agree with).

Also: line 221 has a stray semicolon after by_cases hp : p = 0;.

@khwilson
Copy link
Copy Markdown
Contributor Author

khwilson commented Apr 3, 2026

-awaiting-author

@github-actions github-actions bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 3, 2026
Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

maintainer delegate

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

🚀 Pull request has been placed on the maintainer queue by j-loreaux.

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Apr 3, 2026
@khwilson
Copy link
Copy Markdown
Contributor Author

khwilson commented Apr 3, 2026

Cleaned up some extra have s that were unnecessary with the dot notation being accessible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants