Skip to content

[Merged by Bors] - style(RingTheory): fix whitespace#30685

Closed
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:whitespace1
Closed

[Merged by Bors] - style(RingTheory): fix whitespace#30685
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:whitespace1

Conversation

@grunweg
Copy link
Contributor

@grunweg grunweg commented Oct 19, 2025

Extracted from #30658. Found by extending the commandStart linter to proof bodies.


Open in Gitpod

Extracted from leanprover-community#30658. Found by extending the commandStart linter to proof bodies.
@github-actions github-actions bot added the t-ring-theory Ring theory label Oct 19, 2025
@github-actions
Copy link

github-actions bot commented Oct 19, 2025

PR summary 3218e4a7b1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

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

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

Copy link
Contributor

@chrisflav chrisflav left a comment

Choose a reason for hiding this comment

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

LGTM, modulo the factorial notation.

maintainer delegate

Comment on lines +93 to +95
((j ! : ℚ)⁻¹ * ((i - j) ! : ℚ)⁻¹) • (a ^ j * b ^ (i - j))) := ?_
((j ! : ℚ)⁻¹ * ((i - j)! : ℚ)⁻¹) • (a ^ j * b ^ (i - j))) := ?_
_ = ∑ ij ∈ R2N ×ˢ R2N with ij.1 + ij.2 ≤ 2 * N,
((ij.1 ! : ℚ)⁻¹ * (ij.2 ! : ℚ)⁻¹) • (a ^ ij.1 * b ^ ij.2) := ?_
((ij.1! : ℚ)⁻¹ * (ij.2! : ℚ)⁻¹) • (a ^ ij.1 * b ^ ij.2) := ?_
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems inconsistent with space before ! or not. Similarly below.

Copy link
Member

Choose a reason for hiding this comment

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

I agree, let's just postpone this to the moment we will be able to write n! (or at least the moment we will be able to make a final choice).

@github-actions
Copy link

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 19, 2025
Copy link
Member

@riccardobrasca riccardobrasca left a comment

Choose a reason for hiding this comment

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

Thanks!

bors d+

Comment on lines +93 to +95
((j ! : ℚ)⁻¹ * ((i - j) ! : ℚ)⁻¹) • (a ^ j * b ^ (i - j))) := ?_
((j ! : ℚ)⁻¹ * ((i - j)! : ℚ)⁻¹) • (a ^ j * b ^ (i - j))) := ?_
_ = ∑ ij ∈ R2N ×ˢ R2N with ij.1 + ij.2 ≤ 2 * N,
((ij.1 ! : ℚ)⁻¹ * (ij.2 ! : ℚ)⁻¹) • (a ^ ij.1 * b ^ ij.2) := ?_
((ij.1! : ℚ)⁻¹ * (ij.2! : ℚ)⁻¹) • (a ^ ij.1 * b ^ ij.2) := ?_
Copy link
Member

Choose a reason for hiding this comment

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

I agree, let's just postpone this to the moment we will be able to write n! (or at least the moment we will be able to make a final choice).

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Oct 20, 2025

✌️ grunweg 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 delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Oct 20, 2025
@grunweg
Copy link
Contributor Author

grunweg commented Oct 21, 2025

Thanks for the careful review!
bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Oct 21, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 21, 2025
Extracted from #30658. Found by extending the commandStart linter to proof bodies.

Co-authored-by: adomani <adomani@gmail.com>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Oct 21, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title style(RingTheory): fix whitespace [Merged by Bors] - style(RingTheory): fix whitespace Oct 21, 2025
@mathlib-bors mathlib-bors bot closed this Oct 21, 2025
@grunweg grunweg deleted the whitespace1 branch October 21, 2025 22:04
Jlh18 pushed a commit to Jlh18/mathlib4 that referenced this pull request Oct 24, 2025
Extracted from leanprover-community#30658. Found by extending the commandStart linter to proof bodies.

Co-authored-by: adomani <adomani@gmail.com>
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
Extracted from leanprover-community#30658. Found by extending the commandStart linter to proof bodies.

Co-authored-by: adomani <adomani@gmail.com>
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-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants