Skip to content

[Merged by Bors] - feat: generalize normed instances on UniformSpace.Completion#17059

Closed
eric-wieser wants to merge 5 commits intomasterfrom
eric-wieser/BoundedSMul.toUniformContinuous
Closed

[Merged by Bors] - feat: generalize normed instances on UniformSpace.Completion#17059
eric-wieser wants to merge 5 commits intomasterfrom
eric-wieser/BoundedSMul.toUniformContinuous

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser commented Sep 23, 2024

Notably, NormedSpace.to_uniformContinuousConstSMul is generalized to BoundedSMul on PseudoMetricSpaces, relaxing the scalar considerably from normed fields.


Open in Gitpod

@eric-wieser eric-wieser added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Sep 23, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 23, 2024

PR summary e4e68829f5

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Topology.MetricSpace.Algebra 990 1002 +12 (+1.21%)
Mathlib.Analysis.Normed.MulAction 1100 1111 +11 (+1.00%)
Mathlib.Topology.MetricSpace.Completion 1085 1087 +2 (+0.18%)
Import changes for all files
Files Import difference
Mathlib.Topology.MetricSpace.GromovHausdorff 1
Mathlib.Topology.MetricSpace.Completion 2
7 files Mathlib.Analysis.Normed.Group.Uniform Mathlib.Analysis.Normed.Group.SemiNormedGrp Mathlib.Topology.Algebra.Valued.NormedValued Mathlib.Analysis.Normed.Group.BallSphere Mathlib.Analysis.Normed.Operator.LinearIsometry Mathlib.Analysis.Normed.Operator.ContinuousLinearMap Mathlib.Analysis.Normed.Group.Hom
3
Mathlib.Analysis.Normed.MulAction 11
Mathlib.Topology.MetricSpace.Algebra 12

Declarations diff

+ instance (priority := 100) BoundedSMul.toUniformContinuousConstSMul :
+ instance [NormedField 𝕜] [SeminormedAddCommGroup E] [NormedSpace 𝕜 E] :
+ instance [NormedField 𝕜] [SeminormedCommRing A] [NormedAlgebra 𝕜 A] :
+ instance [SeminormedCommRing A] : NormedCommRing (Completion A)
+ instance {M} [Zero M] [Zero α] [SMul M α] [PseudoMetricSpace M] [BoundedSMul M α] :
- instance (priority := 100) NormedSpace.to_uniformContinuousConstSMul :
- instance : NormedSpace 𝕜 (Completion E)
- instance [SeminormedCommRing A] [NormedAlgebra 𝕜 A] [UniformContinuousConstSMul 𝕜 A] :

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.

Comment on lines -76 to -81
dist_eq := fun x y => by
refine Completion.induction_on₂ x y ?_ ?_ <;> clear x y
· refine isClosed_eq (Completion.uniformContinuous_extension₂ _).continuous ?_
exact Continuous.comp Completion.continuous_extension continuous_sub
· intro x y
rw [← Completion.coe_sub, norm_coe, Completion.dist_eq, dist_eq_norm]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This proof was a duplicate of one in another file.

Comment on lines -106 to -108
dist_eq x y := by
refine induction_on₂ x y ?_ (by simp [← coe_sub, dist_eq_norm])
exact isClosed_eq (uniformContinuous_extension₂ _).continuous (by fun_prop)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Apparently this result is really fun to reprove for a third time.

existsi PUnit, inferInstance, inferInstance
ext x
simp only [Seminorm.zero_apply, Seminorm.comp_apply, coe_normSeminorm]
have heq : toDualContinuousMultilinearMap PUnit x = 0 := by ext _
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This have started specializing to PUnit.{0}, which broke the rw below. Inlining into the rw to force contextual unification seems to do the trick.

Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Sep 25, 2024

✌️ eric-wieser 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 Sep 25, 2024
@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 Sep 25, 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 Sep 25, 2024
@eric-wieser
Copy link
Copy Markdown
Member Author

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Sep 26, 2024
mathlib-bors bot pushed a commit that referenced this pull request Sep 26, 2024
Notably, `NormedSpace.to_uniformContinuousConstSMul` is generalized to `BoundedSMul` on `PseudoMetricSpace`s, relaxing the scalar considerably from normed fields.



Co-authored-by: Eric Wieser <efw@google.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Sep 26, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: generalize normed instances on UniformSpace.Completion [Merged by Bors] - feat: generalize normed instances on UniformSpace.Completion Sep 26, 2024
@mathlib-bors mathlib-bors bot closed this Sep 26, 2024
@mathlib-bors mathlib-bors bot deleted the eric-wieser/BoundedSMul.toUniformContinuous branch September 26, 2024 00:42
fbarroero pushed a commit that referenced this pull request Oct 2, 2024
Notably, `NormedSpace.to_uniformContinuousConstSMul` is generalized to `BoundedSMul` on `PseudoMetricSpace`s, relaxing the scalar considerably from normed fields.



Co-authored-by: Eric Wieser <efw@google.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-analysis Analysis (normed *, calculus) t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants