Zulip Chat Archive

Stream: maths

Topic: subalgebra pain


Chris Hughes (Sep 06 2021 at 22:41):

I have some fields, K and L and N : subalgebra K L. I now need algebra K (algebra.adjoin N {(x : L)} : subalgebra N L) What's the best way to get this instance and all the 4 choose 3 is_scalar tower instances I might need?

Eric Wieser (Sep 06 2021 at 22:44):

Does docs#subalgebra.algebra exist and answer your question?

Eric Wieser (Sep 06 2021 at 22:45):

Hmm, it doesn't allow scalar towers

Eric Wieser (Sep 06 2021 at 22:46):

I guess either that should be fixed, or the tower version is defined elsewhere

Chris Hughes (Sep 06 2021 at 22:52):

That would give me algebra N (algebra.adjoin N {x}), but I need algebra K (algebra.adjoin N {x})

Chris Hughes (Sep 06 2021 at 22:53):

I know N is a K algebra, so it's basically transitivity of algebra, but then I'll probably need the fact that everything commutes.

Eric Wieser (Sep 06 2021 at 23:00):

I think the conditions should be the same as docs#submodule.module'

Chris Hughes (Sep 06 2021 at 23:12):

I think so.

Chris Hughes (Sep 06 2021 at 23:13):

But we'll need two extra is_scalar_tower instances for this.

Eric Wieser (Sep 06 2021 at 23:16):

Why two? Isn't K L N enough

Chris Hughes (Sep 06 2021 at 23:18):

You need K (algebra.adjoin N {x}) L and N (algebra.adjoin N {x}) L. If you have a chain of n fields you're going to need n choose 3 is_scalar_tower instances.

Chris Hughes (Sep 06 2021 at 23:29):

I actually already have is_scalar_tower N (algebra.adjoin N {x}) L, so I guess it's just one extra. is_scalar_tower never felt like it would work for more complicated diagrams, but maybe it does.

Kevin Buzzard (Sep 07 2021 at 06:40):

I think is_scalar_tower just says "one triangle commutes in this diagram" and in a complex diagram there might be lots of triangles

Johan Commelin (Sep 07 2021 at 06:48):

Maybe a little bit of meta code could help us add all those triangles to the context.

Johan Commelin (Sep 07 2021 at 06:48):

Certainly lean 4 macros should be able to help us there.

Johan Commelin (Sep 07 2021 at 06:49):

long_scalar_tower [A, B, C, D, E] just expands to 5 choose 3 versions of [is_scalar_tower foo bar baz]

Eric Wieser (Sep 07 2021 at 08:39):

I'll add the missing instance here tomorrow, probably

Chris Hughes (Sep 07 2021 at 13:20):

I really wanted this quickly so #9062

Eric Wieser (Sep 07 2021 at 17:58):

I have the more general version I was thinking of locally, just with an easy sorry left

Eric Wieser (Sep 08 2021 at 13:31):

has docs#subalgebra.algebra' now resolved this?

Chris Hughes (Sep 10 2021 at 15:41):

Yes. It was all motivated by #9110


Last updated: Dec 20 2023 at 11:08 UTC