Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(topology/algebra/module/strong_topology): golf arrow_congrSL introduced in #19107 #19128

Closed
wants to merge 5 commits into from

Conversation

ADedecker
Copy link
Member

@ADedecker ADedecker commented May 29, 2023

I added more general definitions precomp and postcomp for expressing that (pre/post)-composing by a fixed continuous linear maps is continuous. These were planned about a year ago when I defined the strong topology and follow from uniform_on_fun.precomp_uniform_continuous and uniform_on_fun.postcomp_uniform_continuous.

The proof of continuity of arrow_congrSL is a direct consequence of these, so we don't have to do it by hand.

This is not really a "golf" since I added more lines than I removed, but these more general constructions will be needed at some point anyway (my use case was distribution theory) so I'm doing some proactive golfing 😄.


Open in Gitpod

@github-actions github-actions bot added the modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. label May 29, 2023
@ADedecker ADedecker added WIP Work in progress t-analysis Analysis (normed *, calculus) and removed modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. labels May 29, 2023
@github-actions github-actions bot added the modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. label May 29, 2023
@ADedecker ADedecker requested a review from hrmacbeth May 29, 2023 17:44
@urkud
Copy link
Member

urkud commented May 29, 2023

Does it make sense to have compL instead of 2 maps?

@ADedecker
Copy link
Member Author

IIRC compL is not true in this setting

Comment on lines +242 to +249
begin
letI : uniform_space G := topological_add_group.to_uniform_space G,
haveI : uniform_add_group G := topological_add_comm_group_is_uniform,
rw (strong_topology.embedding_coe_fn _ _ _).continuous_iff,
refine (uniform_on_fun.precomp_uniform_continuous _).continuous.comp
(strong_topology.embedding_coe_fn _ _ _).continuous,
exact λ S hS, hS.image L,
end }
Copy link
Member

Choose a reason for hiding this comment

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

This should be a standalone lemma I think

Copy link
Member Author

Choose a reason for hiding this comment

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

I would guess (precomp G L).continuous is enough ? In Lean 3 this usually works quite well, and usually we don't add this lemma (see e.g continuous_linear_map.compSL)
That said maybe we'll want to add it if Lean4 is a bit more rigid on unification.


include σ₁₄ σ₂₄ σ₁₃ σ₃₄ σ₂₁ σ₂₃

/-- A pair of continuous (semi)linear equivalences generates a (semi)linear equivalence between the
spaces of continuous (semi)linear maps. -/
@[simps] def arrow_congrₛₗ (e₁₂ : E ≃SL[σ₁₂] F) (e₄₃ : H ≃SL[σ₄₃] G) :
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure we want to drop arrow_congrₛₗ? Why not both?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well the extra hypothesis are not actually adding any constraint IIRC (in the sense that they follow from the previous assumptions, but the typeclass system can't know that), so just using arrow_congrSL looks fine to me.

@ADedecker
Copy link
Member Author

ADedecker commented Jun 23, 2023

I will redo this directly in Lean4 (I don't think this can be classified as a refactor)
EDIT: Actually some of the files aren't ported yet, so I'd say we can merge this.

@ADedecker ADedecker added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jun 23, 2023
@urkud
Copy link
Member

urkud commented Jul 6, 2023

Thanks! 🎉
bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Jul 6, 2023
bors bot pushed a commit that referenced this pull request Jul 6, 2023
…ntroduced in #19107 (#19128)

I added more general definitions `precomp` and `postcomp` for expressing that (pre/post)-composing by a *fixed* continuous linear maps is continuous. These were planned about a year ago when I defined the strong topology and follow from [uniform_on_fun.precomp_uniform_continuous](https://leanprover-community.github.io/mathlib_docs/topology/uniform_space/uniform_convergence_topology.html#uniform_on_fun.precomp_uniform_continuous) and [uniform_on_fun.postcomp_uniform_continuous](https://leanprover-community.github.io/mathlib_docs/topology/uniform_space/uniform_convergence_topology.html#uniform_on_fun.postcomp_uniform_continuous).

The proof of continuity of `arrow_congrSL` is a direct consequence of these, so we don't have to do it by hand.

This is not really a "golf" since I added more lines than I removed, but these more general constructions will be needed at some point anyway (my use case was distribution theory) so I'm doing some proactive golfing 😄.
@bors
Copy link

bors bot commented Jul 6, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat(topology/algebra/module/strong_topology): golf arrow_congrSL introduced in #19107 [Merged by Bors] - feat(topology/algebra/module/strong_topology): golf arrow_congrSL introduced in #19107 Jul 6, 2023
@bors bors bot closed this Jul 6, 2023
@bors bors bot deleted the AD_golf_arrow_congrSL branch July 6, 2023 14:55
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 10, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Ruben-VandeVelde added a commit to leanprover-community/mathlib4 that referenced this pull request Jul 14, 2023
The changed proof was rewritten completely.
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 14, 2023
The changed proof was rewritten completely.

There appears to have been a race between #5791 and #5727 that caused the commit hash to be out of date.
kbuzzard pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 15, 2023
The changed proof was rewritten completely.

There appears to have been a race between #5791 and #5727 that caused the commit hash to be out of date.
semorrison pushed a commit to leanprover-community/mathlib4 that referenced this pull request Aug 14, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
semorrison pushed a commit to leanprover-community/mathlib4 that referenced this pull request Aug 14, 2023
The changed proof was rewritten completely.

There appears to have been a race between #5791 and #5727 that caused the commit hash to be out of date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-analysis Analysis (normed *, calculus)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants