Zulip Chat Archive

Stream: new members

Topic: Submodule generated by two free submodules of a free module


Richard Copley (Nov 25 2023 at 17:17):

Do we have the theorem in Mathlib that the submodule generated by two (or finitely many) free submodules of a free module is free? I can't even state it. I think there is a universe problem.

import Mathlib.LinearAlgebra.FreeModule.Basic

open Module

variable {R : Type*} [CommRing R]
variable (M : Type*) [AddCommGroup M] [Module R M] [Free R M]

theorem Module.Free.sup (K₁ K₂ : Submodule R M) (h₁ : Free R K₁) (h₂ : Free R K₂):
    Free R (K₁  K₂) := by
  --        ~~~~~~~
  -- failed to synthesize instance Sup (Type u_2)
  sorry

Kevin Buzzard (Nov 25 2023 at 17:28):

theorem Module.Free.sup (K₁ K₂ : Submodule R M) (h₁ : Free R K₁) (h₂ : Free R K₂):
    Free R (K₁  K₂ : Submodule R M) := by

Lean needed more directions for the coercion.

Richard Copley (Nov 25 2023 at 17:33):

Great! This is about 14 levels deep in a complex of rabbit holes. I'll get started doing Steinitz exchange stuff. Maybe it will be fun.

Reid Barton (Nov 25 2023 at 17:36):

Isn't it not true though? e.g. R=k[x,y]R = k[x,y], M=RM = R, and the submodules xMxM, yMyM

Kyle Miller (Nov 25 2023 at 17:52):

Maybe you want to add in that RR is a PID?

Richard Copley (Nov 25 2023 at 17:58):

Reid Barton said:

Isn't it not true though? e.g. R=k[x,y]R = k[x,y], M=RM = R, and the submodules xMxM, yMyM

Forgive me, can you spell it out for me? I don't know what xM ⊔ yM is if it isn't the span of {x, y}. And {x, y} is linearly independent. What's missing?

Reid Barton (Nov 25 2023 at 18:01):

x,yx,y isn't linearly independent because yxxy=0y \cdot x - x \cdot y = 0.

Richard Copley (Nov 25 2023 at 18:01):

Thanks!

Richard Copley (Nov 25 2023 at 18:02):

Uh. But now what's the basis for k[x,y]?

Reid Barton (Nov 25 2023 at 18:02):

M=RM = R is free as an RR-module, the basis is {1}.

Richard Copley (Nov 25 2023 at 18:11):

Super. Thanks for rescuing me.

Kyle Miller said:

Maybe you want to add in that RR is a PID?

That would do it, but I don't have it. There'll be something in the context that means I don't need this to be true.

Richard Copley (Nov 27 2023 at 00:34):

This weaker statement sufficed: if K1K₁ and K2K₂ are finitely generated RR-submodules of a free RR-module MM, there exists a free, finitely generated RR-submodule of MM which includes K1K₁ and K2K₂.

Proof


Last updated: Dec 20 2023 at 11:08 UTC