Zulip Chat Archive

Stream: mathlib4

Topic: NormedSpace, BoundedSMul


Yury G. Kudryashov (Feb 12 2024 at 14:58):

Recently, @Eric Wieser generalized many theorems from [NormedField K] [NormedSpace K E] to [*NormedRing R] [NormedAddCommGroup E] [Module R E] [BoundedSMul R E]. While the latter spelling is more flexible (e.g., it allows using *SMul classes instead of Module), it is longer and a less readable, at least for a new user. What should we do?

  • continue migration to BoundedSMul?
  • relax TC assumptions on K in NormedSpace K E to NormedRing and use [NormedSpace K E] (or rename it to NormedModule K E)?

Yury G. Kudryashov (Feb 12 2024 at 14:59):

Eric, are there situations when we should care about BoundedSMul R E without Module R E assumption?

Eric Wieser (Feb 12 2024 at 15:12):

In practice right now, probably not; but in future, we might want it for DistribMulAction G E, for instance with G := Units R

Yury G. Kudryashov (Feb 12 2024 at 15:13):

Note that [BoundedSMul R E] needs [Zero R] and [Zero E]

Eric Wieser (Feb 12 2024 at 15:15):

Then docs#NonUnitalSeminormedRing.to_boundedSMul is the answer I should have given

Yury G. Kudryashov (Feb 12 2024 at 16:24):

What do you think about a mixed approach?

  • Allow SeminormedRing in NormedSpace, still assume norm_smul_le;
  • Assume [NormedSpace R M] instead of [Module R M] [BoundedSMul R M];
  • Use BoundedSMul if a lemma works for a typeclass weaker than Module?

Eric Wieser (Feb 12 2024 at 16:29):

Originally, I had intended to refactor NormedSpace K V to a be a K-bimodule, along the same lines as #7152 (in fact, I did this already in Lean3 but it never landed)

Eric Wieser (Feb 12 2024 at 16:30):

So my preference would be to leave NormedSpace alone for now, to avoid that refactor becoming harder

Yury G. Kudryashov (Feb 12 2024 at 16:33):

I see, thanks for the explanation.

Yury G. Kudryashov (Feb 12 2024 at 16:34):

Then I'll review your Asymptotics PR today.

Eric Wieser (Feb 24 2024 at 17:16):

#10519 adds another generalization in this direction


Last updated: May 02 2025 at 03:31 UTC