Skip to content

[Merged by Bors] - feat(LinearAlgebra/PiTensorProduct): dependent version of tmulEquiv - #18534

Closed
joelriou wants to merge 35 commits into
masterfrom
generalize-tmulequiv
Closed

joelriou wants to merge 35 commits into
masterfrom
generalize-tmulequiv

Conversation

@joelriou

@joelriou joelriou commented Nov 1, 2024 •

Copy link
Copy Markdown
Contributor

Given a family of R-modules N indexed by ι ⊕ ι', we obtain a linear equivalence tmulEquivDep : (⨂[R] i₁, N (.inl i₁)) ⊗[R] (⨂[R] i₂, N (.inr i₂)) ≃ₗ[R] ⨂[R] i, N i, which generalizes tmulEquiv (which is the case all N i are the same module).


This will be used in #18527.

Open in Gitpod

@joelriou joelriou added WIP Work in progress t-algebra Algebra (groups, rings, fields, etc) labels Nov 1, 2024
@github-actions

github-actions Bot commented Nov 1, 2024 •

Copy link
Copy Markdown

PR summary edd595bc29

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ currySum_add
+ currySum_apply'
+ currySum_smul
+ currySum_uncurrySum
+ domCoprodDep
+ domCoprodDep'
+ domCoprodDep'_apply
+ tmulEquivDep
+ tmulEquivDep_apply
+ tmulEquivDep_symm_apply
+ uncurrySum_add
+ uncurrySum_apply
+ uncurrySum_currySum
+ uncurrySum_smul
+ update_apply_of_injective
+ update_inl_apply_inl'
+ update_inr_apply_inr'

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.


Decrease in tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type
908 -1 erw

Current commit edd595bc29
Reference commit 819ba93940

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

@joelriou joelriou added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 4, 2024
@joelriou joelriou removed WIP Work in progress awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Nov 5, 2024
@joelriou joelriou added the WIP Work in progress label Nov 5, 2024
joelriou and others added 2 commits November 5, 2024 17:49
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 6, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 6, 2024
Comment thread Mathlib/Data/Sum/Basic.lean Resolved
Comment thread Mathlib/Logic/Function/Basic.lean Resolved
Comment thread Mathlib/Data/Sum/Basic.lean Resolved

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

bors d+

Thanks!

@mathlib-bors

mathlib-bors Bot commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

✌️ joelriou 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 Apr 30, 2025
@eric-wieser

Copy link
Copy Markdown
Member

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit fcc86eb.
There were no significant changes against commit 61ea3c0.

@github-actions

Copy link
Copy Markdown
File Instructions %
build +17.7⬝10⁹ (+0.01%)
lint +1.609⬝10⁹ (+0.02%)
Mathlib.LinearAlgebra.PiTensorProduct +7.521⬝10⁹ (+5.67%)
Mathlib.LinearAlgebra.Multilinear.TensorProduct +6.670⬝10⁹ (+80.91%)
Mathlib.LinearAlgebra.Multilinear.Curry +5.821⬝10⁹ (+20.52%)
Mathlib.LinearAlgebra.TensorPower.Basic +2.714⬝10⁹ (+3.64%)
CI run

@eric-wieser

Copy link
Copy Markdown
Member

(that looks mostly ok to me, though the +80% is a bit surprising; maybe most of the time is in the statements not the proofs.

@joelriou

Copy link
Copy Markdown
Contributor Author

Thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Apr 30, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Apr 30, 2025
…18534)

Given a family of `R`-modules `N` indexed by `ι ⊕ ι'`, we obtain a linear equivalence `tmulEquivDep : (⨂[R] i₁, N (.inl i₁)) ⊗[R] (⨂[R] i₂, N (.inr i₂)) ≃ₗ[R] ⨂[R] i, N i`, which generalizes `tmulEquiv` (which is the case all `N i` are the same module).



Co-authored-by: Joël Riou <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

mathlib-bors Bot pushed a commit that referenced this pull request Apr 30, 2025
…18534)

Given a family of `R`-modules `N` indexed by `ι ⊕ ι'`, we obtain a linear equivalence `tmulEquivDep : (⨂[R] i₁, N (.inl i₁)) ⊗[R] (⨂[R] i₂, N (.inr i₂)) ≃ₗ[R] ⨂[R] i, N i`, which generalizes `tmulEquiv` (which is the case all `N i` are the same module).



Co-authored-by: Joël Riou <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(LinearAlgebra/PiTensorProduct): dependent version of tmulEquiv [Merged by Bors] - feat(LinearAlgebra/PiTensorProduct): dependent version of tmulEquiv Apr 30, 2025
@mathlib-bors mathlib-bors Bot closed this Apr 30, 2025
@mathlib-bors
mathlib-bors Bot deleted the generalize-tmulequiv branch April 30, 2025 12:59
tannerduve pushed a commit that referenced this pull request May 13, 2025
This adds a quite technical lemma that can be used to generalize some existing lemmas for `Sum`

The general version would in principle work for any enumerative inductive type, though only after currying the constructor arguments first.

These are `simp` (in the direction pulling `update` to the outside) since that seemed to be useful for #18534, though I could see it either way.
tannerduve pushed a commit that referenced this pull request May 13, 2025
…18534)

Given a family of `R`-modules `N` indexed by `ι ⊕ ι'`, we obtain a linear equivalence `tmulEquivDep : (⨂[R] i₁, N (.inl i₁)) ⊗[R] (⨂[R] i₂, N (.inr i₂)) ≃ₗ[R] ⨂[R] i, N i`, which generalizes `tmulEquiv` (which is the case all `N i` are the same module).



Co-authored-by: Joël Riou <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
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-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants