Zulip Chat Archive

Stream: maths

Topic: Puzzle: noncommutative RingHom as typeclasses


Junyan Xu (Dec 12 2023 at 00:59):

Algebra R A is the typeclass to designate a preferred RingHom from a CommSemiring R to a Semiring A whose image lies in the center. How can we specify a preferred RingHom whose image doesn't necessarily lie in the center using existing mathlib typeclasses, even better, for not necessarily commutative Semiring R?

Hint 1

Hint 2

Eric Wieser (Dec 12 2023 at 01:32):

Isn't the answer to this in the docs for Algebra?

Junyan Xu (Dec 12 2023 at 02:00):

Indeed, though not very explicitly. That's a better hint than my Hint 3, so I removed it.
Here's another puzzle that eventually led me to discover this:

Puzzle

Junyan Xu (Dec 12 2023 at 02:17):

Puzzle 1 (statement formalized)

Puzzle 2 (statement formalized)

Junyan Xu (Dec 12 2023 at 02:34):

Do you know if this (the first puzzle) can be found in the mathematical literature? My impression is that one of the typeclasses involved is the mathlib community's invention.

Junyan Xu (Dec 14 2023 at 04:40):

I've minimized Puzzle 2 down to the statement that M/S/R being a tower implies that any S-linear map from S to M is also R-linear.

Eric Wieser (Dec 14 2023 at 07:54):

Aren't you just describing docs#LinearMap.restrictScalars ?

Junyan Xu (Dec 14 2023 at 08:27):

You don't a priori have the CompatibleSMul condition. Proving the condition is exactly (minimized) Puzzle 2.

Junyan Xu (Dec 14 2023 at 08:48):

I just opened #9046

Junyan Xu (Dec 14 2023 at 09:04):

Aren't you just describing docs#LinearMap.restrictScalars ?

This is a good point though, I should be adding CompatibleSMul instance rather than IsLinearMap lemmas ...


Last updated: Dec 20 2023 at 11:08 UTC