Skip to content

[Merged by Bors] - feat: restricted power series form a ring - #26089

Closed
WilliamCoram wants to merge 36 commits into
leanprover-community:masterfrom
WilliamCoram:RestrictedPowerSeries
Closed

WilliamCoram wants to merge 36 commits into
leanprover-community:masterfrom
WilliamCoram:RestrictedPowerSeries

Conversation

@WilliamCoram

Copy link
Copy Markdown
Collaborator

We define restricted power series over a normed ring R, and show they form a ring when R has the ultrametric property

This is an update of #23338 to meet new expectations of PRs from forks.


Open in Gitpod

@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 Jun 18, 2025
@WilliamCoram WilliamCoram changed the title feat: restricted power series form a ring (2) feat: restricted power series form a ring Jun 18, 2025
@WilliamCoram WilliamCoram added the t-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Jun 18, 2025
@github-actions

github-actions Bot commented Jun 18, 2025 •

Copy link
Copy Markdown

PR summary baf3075a58

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.RingTheory.PowerSeries.Restricted (new file) 1636

Declarations diff

+ C
+ IsRestricted
+ add
+ convergenceSet
+ convergenceSet_BddAbove
+ isRestricted_iff
+ isRestricted_iff_abs
+ monomial
+ mul
+ neg
+ one
+ smul
+ zero

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 added the t-algebra Algebra (groups, rings, fields, etc) label Jun 18, 2025
@WilliamCoram
WilliamCoram requested a review from CBirkbeck June 18, 2025 13:25
@CBirkbeck CBirkbeck added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 7, 2025
@WilliamCoram WilliamCoram removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 17, 2025

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

I think we need to think a little about the following question: is it more likely that people will work with a power series f and somehow at some point they assume that f is restricted or people will just start by saying "let's fix two restricted power series"?

The point is to decide if we want this a standalone type or not.

@riccardobrasca riccardobrasca added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 13, 2025
@WilliamCoram

Copy link
Copy Markdown
Collaborator Author

I think we need to think a little about the following question: is it more likely that people will work with a power series f and somehow at some point they assume that f is restricted or people will just start by saying "let's fix two restricted power series"?

The point is to decide if we want this a standalone type or not.

The motivation for me is to work with Tate algebras (ring of restricted power series over a complete field), so I would want to fix elements in that ring from the start.
We will want to use the power series API though, so I am unsure how painful the coercing would be if we made it its own type.

@WilliamCoram WilliamCoram removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 17, 2025
@riccardobrasca

Copy link
Copy Markdown
Member

Let's do this: forget about sets and subgroup/subring for this PR, prove all the relevant properties using IsRestricted. This is the actual mathematical content, and we can add restricted power series as a subalgebra or whatever later. I am not sure about restricted power series, but the Tate algebra should most likely be its own type (there are performance problems with subobjects that you can ignore for now).

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

I stopped after one, if you agree with this changes I will review the rest.

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

LGTM now, thanks!

bors d+


lemma neg {f : PowerSeries R} (hf : IsRestricted c f) : IsRestricted c (-f) := by
simpa [isRestricted_iff] using hf

ghost Sep 20, 2025

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.

Yes, that is what I meant, thanks!

@mathlib-bors

ghost commented Sep 20, 2025

Copy link
Copy Markdown
Contributor

✌️ WilliamCoram can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 20, 2025
@WilliamCoram

ghost commented Sep 22, 2025

Copy link
Copy Markdown
Collaborator Author

bors r+

@mathlib-bors

ghost commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Build failed:

@riccardobrasca

ghost commented Sep 22, 2025

Copy link
Copy Markdown
Member

Can you please fix the error?

@riccardobrasca

ghost commented Sep 22, 2025

Copy link
Copy Markdown
Member

Thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Sep 22, 2025
@mathlib-bors

ghost commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: restricted power series form a ring [Merged by Bors] - feat: restricted power series form a ring Sep 22, 2025
@mathlib-bors mathlib-bors Bot closed this Sep 22, 2025
@WilliamCoram
WilliamCoram deleted the RestrictedPowerSeries branch April 14, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-number-theory Number theory (also use t-algebra or t-analysis to specialize)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants