Skip to content

feat(Topology/Algebra): add MulActionConst.lean - #32745

Open
LTolDe wants to merge 8 commits into
leanprover-community:masterfrom
LTolDe:mulactionconst
Open

LTolDe wants to merge 8 commits into
leanprover-community:masterfrom
LTolDe:mulactionconst

Conversation

@LTolDe

@LTolDe LTolDe commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

add Topology/Algebra/MulActionConst.lean
introduce class ContinuousSMulConst for a scalar multiplication that is continuous in the first argument, in analogy to ContinuousConstSMul
define MulAction.ball x U as the set U • {x} given [SMul G X] (x : X) (U : Set G)
The lemmas shown here will be useful to prove the Effros Theorem, see zulip.


Open in Gitpod

@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Dec 11, 2025
@github-actions

github-actions Bot commented Dec 11, 2025 •

Copy link
Copy Markdown

PR summary 7acaa1e4b3

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Topology.Algebra.MulActionConst (new file) 968

Declarations diff

+ ContinuousMul.toContinuousSMulConst
+ ContinuousSMulConst
+ ContinuousVAddConst
+ ball
+ ball_eq_image
+ ball_iUnion
+ ball_iUnion₂
+ ball_inter
+ ball_mul
+ ball_op_smul
+ ball_smul
+ mem_ball_iff

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

@github-actions github-actions Bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Dec 11, 2025
The set `{g • x | g ∈ U}`. Intended to be used for `U ∈ 𝓝 1`. Named in analogy to
`UniformSpace.ball`.
-/
abbrev ball [SMul G X] (x : X) (U : Set G) : Set X := U • {x}

@urkud urkud Jan 12, 2026 •

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.

This definition has nothing to do with topology, and should go to a file somewhere in Algebra/. I would discuss it on Zulip. Also, why do you use abbrev instead of protected def? Also, please add an additive version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I opened #mathlib4 > defining `MulAction.ball`, where I motivate my first proposition of placing this definition in this file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As I am new to lean and mathlib, at the moment I do not understand the role of transparency settings and simply do not know how to best write definitions. If you believe that protected def is the right choice here, I trust your judgement.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are definitely right that this needs an additive version. I only omitted it because I am not familiar with @[to_additive]. I will try and learn from the files in Algebra/Group/ to implement it here. If you could point me to specific documentation on the topic, that would be very helpful.

/-- Class `ContinuousSMulConst Γ T` says that the scalar multiplication `(•) : Γ → T → T`
is continuous in the first argument. We use the same class for all kinds of multiplicative
actions, including (semi)modules and algebras. -/
@[mk_iff] class ContinuousSMulConst (Γ : Type*) (T : Type*)

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.

Please explain both in the module docstring and in the PR description what are the use cases that satisfy this condition but don't satisfy ContinuousSMul. Also, please add an additive version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added an example to the module docstring. Is this example clear enough or does it need a proof? Maybe in the Counterexamples\ folder?

In the file Topology.Algebra.ConstMulAction I am not seeing an example that ContinuousConstSMul is truly weaker than ContinuousSMul. the example I give could also be used there. Therefore I wonder, if it would be better to place the example in Topology.Algebra.MulAction where ContinuousSMul is defined.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added the additive version ContinuousVAddConst. I tried to follow the definitions to ContinuousVAdd and ContinuousConstVAdd as closely as possible. However, I cannot say I truly understand how the tags work, so please review extra carefully.

For instance, continuous_smul and continuous_vadd are tagged with continuity and fun_prop, but not continuous_const_smul and continuous_const_vadd. Was I right in adding those tags here? Should they also be added there?

@urkud urkud added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants