Zulip Chat Archive

Stream: Is there code for X?

Topic: Subgroup vs submodule


Patrick Massot (Nov 28 2023 at 05:22):

Last question for today:

import Mathlib.LinearAlgebra.Span
import Mathlib.GroupTheory.Subgroup.Basic

example {G : Type*} [AddCommGroup G] {A : Set G} :
    (AddSubgroup.closure A : Set G) = (Submodule.span  A) := by
  sorry

Timo Carlin-Burns (Nov 28 2023 at 05:27):

Is this what you're looking for? docs#Submodule.span_int_eq_addSubgroup_closure

Timo Carlin-Burns (Nov 28 2023 at 05:32):

import Mathlib.LinearAlgebra.Span
import Mathlib.GroupTheory.Subgroup.Basic

example {G : Type*} [AddCommGroup G] {A : Set G} :
    (AddSubgroup.closure A : Set G) = (Submodule.span  A) := by
  rw [ Submodule.coe_toAddSubgroup, Submodule.span_int_eq_addSubgroup_closure]

Patrick Massot (Nov 28 2023 at 13:17):

Perfect, thanks!


Last updated: Dec 20 2023 at 11:08 UTC