Skip to content

[Merged by Bors] - feat: normalised Eisenstein series#27839

Closed
CBirkbeck wants to merge 9 commits intoleanprover-community:masterfrom
CBirkbeck:normalised_eisensteinSeries
Closed

[Merged by Bors] - feat: normalised Eisenstein series#27839
CBirkbeck wants to merge 9 commits intoleanprover-community:masterfrom
CBirkbeck:normalised_eisensteinSeries

Conversation

@CBirkbeck
Copy link
Copy Markdown
Collaborator

define normalised Eisenstein series in preparation for giving their q-expansions.


Open in Gitpod

@github-actions github-actions bot added the t-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Aug 1, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 1, 2025

PR summary 650e8b8fb3

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ E

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

@Ruben-VandeVelde Ruben-VandeVelde changed the title feat(NumberTheory/ModularForms/EisensteinSeries): feat: normalised Eisenstein series Aug 2, 2025
Comment thread Mathlib/NumberTheory/ModularForms/EisensteinSeries/Basic.lean Outdated
Comment thread Mathlib/NumberTheory/ModularForms/EisensteinSeries/Basic.lean Outdated
@loefflerd
Copy link
Copy Markdown
Contributor

loefflerd commented Aug 25, 2025

I'd suggest the following:

  • Don't use N : ℕ+, but instead N : ℕ with a [NeZero N] instance. This requires one tiny change elsewhere, in isBoundedAtImInfty_eisensteinSeries_SIF, and everything else just works. (You can get a proof of positivity of N with NeZero.pos N.) Then you can just write ZMod 1, not the ugly and tedious-to-type ZMod ((1 : ℕ+) : ℕ).
  • Since standardCongruenceCondition is defined to be 0, why not just skip defining it and just write 0 directly (letting it be coerced implicitly to a vector)? Note that mathlib can synth a subsingleton instance for Fin 2 → ZMod 1, while it apparently can't for ZMod ((1 : ℕ+) : ℕ).
  • mod_cast hk achieves the same as by omega but it's more obvious to the reader what it's doing.

BTW, I think the review process will go quicker if you make your PR's a little larger than this; I tend to aim for 200-500 lines at a time. If you slice things too finely it makes more work both for reviewers + for yourself (more tedious git merging).

@loefflerd loefflerd self-assigned this Aug 25, 2025
@CBirkbeck
Copy link
Copy Markdown
Collaborator Author

Thanks! Yes this one was a bit too short I agree.

@loefflerd
Copy link
Copy Markdown
Contributor

LGTM now

maintainer merge

@github-actions
Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 25, 2025
@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Aug 25, 2025
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 25, 2025

Canceled.

@loefflerd
Copy link
Copy Markdown
Contributor

Ouch, there's a weird build glitch in a file entirely unrelated to the PR; we should have a linter banning simp says.

@riccardobrasca can you do a bors delegate?

@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 25, 2025

✌️ CBirkbeck 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 Aug 25, 2025
@MichaelStollBayreuth
Copy link
Copy Markdown
Contributor

Merging master should probably fix the problem.

@CBirkbeck
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Aug 27, 2025
define normalised Eisenstein series in preparation for giving their q-expansions.

Co-authored-by: Chris Birkbeck <c.birkbeck@uea.ac.uk>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 27, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: normalised Eisenstein series [Merged by Bors] - feat: normalised Eisenstein series Aug 27, 2025
@mathlib-bors mathlib-bors bot closed this Aug 27, 2025
FormulaRabbit81 pushed a commit to YaelDillies/mathlib4 that referenced this pull request Aug 30, 2025
define normalised Eisenstein series in preparation for giving their q-expansions.

Co-authored-by: Chris Birkbeck <c.birkbeck@uea.ac.uk>
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). ready-to-merge This PR has been sent to bors. 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.

6 participants