Skip to content

[Merged by Bors] - perf(LinearAlgebra/Pi): golf Matrix.ker_diagonal_toLin' - #42199

Closed
chenson2018 wants to merge 1 commit into
leanprover-community:masterfrom
chenson2018:ker_comp-simp
Closed

chenson2018 wants to merge 1 commit into
leanprover-community:masterfrom
chenson2018:ker_comp-simp

Conversation

@chenson2018

@chenson2018 chenson2018 commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

In the review of #42173, it was asked if the have in Matrix.ker_diagonal_toLin' could be removed. This PR does so, and is a bit faster.


Open in Gitpod

@chenson2018

Copy link
Copy Markdown
Contributor Author

!radar

@leanprover-radar

leanprover-radar commented Jul 28, 2026 •

Copy link
Copy Markdown

Benchmark results for 1fe5bcb against 01cceef are in. No significant results found. @chenson2018

  • ✅ build//instructions: -13.0G (-0.01%)

No significant changes detected.

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

PR summary 1fe5bcbbde

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

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

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

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.

No changes to weak technical debt.

Current commit 1fe5bcbbde
Reference commit 01cceef430

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.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 Jul 28, 2026
@grunweg

grunweg commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Thanks! I'm not sure if the benchmark results are within the noise, but I'll take the small golf anyway.
bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jul 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 28, 2026
In the review of #42173, it was asked if the `have` in `Matrix.ker_diagonal_toLin'` could be removed. This PR does so, and is a bit faster.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jul 28, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title perf(LinearAlgebra/Pi): golf Matrix.ker_diagonal_toLin' [Merged by Bors] - perf(LinearAlgebra/Pi): golf Matrix.ker_diagonal_toLin' Jul 28, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 28, 2026
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-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants