Skip to content

[Merged by Bors] - feat(Data/Matrix): add vecMul_fromRows and fromCols_mulVec - #29784

Closed
staroperator wants to merge 3 commits into
leanprover-community:masterfrom
staroperator:fromCols_mulVec
Closed

staroperator wants to merge 3 commits into
leanprover-community:masterfrom
staroperator:fromCols_mulVec

Conversation

@staroperator

Copy link
Copy Markdown
Collaborator

We have Matrix.fromBlocks_mulVec and Matrix.vecMul_fromBlocks but not the fromRows/fromCols version. I find those helpful in #27414.


Open in Gitpod

@github-actions github-actions Bot added the t-data Data (lists, quotients, numbers, etc) label Sep 18, 2025
@github-actions

github-actions Bot commented Sep 18, 2025 •

Copy link
Copy Markdown

PR summary 103f096e49

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ fromCols_mulVec
+ vecMul_fromRows

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

@staroperator staroperator added the easy < 20s of review time. See the lifecycle page for guidelines. label Sep 18, 2025

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 20, 2025

@bryangingechen bryangingechen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should these also be simp like their analogues?

Thanks!
bors d+

@mathlib-bors

mathlib-bors Bot commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

✌️ staroperator 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 Sep 22, 2025
@staroperator

Copy link
Copy Markdown
Collaborator Author

Should these also be simp like their analogues?

Thanks! bors d+

If so, sumElim_vecMul_fromRows and fromCols_mulVec_sumElim should be unsimped since they are superseded by vecMul_fromRows and fromCols_mulVec together with other simp lemmas. Let me give it a try and see if it builds.

@ghost

ghost commented Sep 22, 2025

Copy link
Copy Markdown

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit ab11a34.
There were significant changes against commit 47146f0:

  Benchmark   Metric           Change
  ===================================
+ build       interpretation    -5.3%
+ build       linting          -15.5%

@github-actions

Copy link
Copy Markdown
File Instructions %
build +111.7⬝10⁹ (+0.07%)
CI run Lakeprof report

@staroperator

Copy link
Copy Markdown
Collaborator Author

Looks fine.

bors r+

@mathlib-bors

mathlib-bors Bot commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Build failed:

@bryangingechen

Copy link
Copy Markdown
Contributor

bors r+

@mathlib-bors

mathlib-bors Bot 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(Data/Matrix): add vecMul_fromRows and fromCols_mulVec [Merged by Bors] - feat(Data/Matrix): add vecMul_fromRows and fromCols_mulVec Sep 22, 2025
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). easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors. t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants