The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.Algebra.Module.Lattice.Basic

27 declarations. Mathlib docs · Source

Lattices

Let A be an R-algebra and V an A-module. An R-submodule M of V is a lattice if it is finitely generated and every R-linearly independent subset of M is A-linearly independent. If A is a field, this is equivalent to the R-rank of M being equal to the A-rank of its A-span (see Submodule.IsLattice.iff_fg_and_finrank_span_eq_finrank).

The typical use-case of this is when A = K is a field with [FaithfulSMul R K], which includes e.g. (R, K) = (ℤ, ℚ) or (R, K) = (ℤ, ℝ).

We do not require a lattice to be full. See Submodule.IsFullLattice for full lattices.

Main definitions

  • Submodule.IsLattice: an R-submodule M of V that is finitely generated and such that every R-linearly independent subset of M is A-linearly independent.

Main statements

  • Submodule.IsLattice.of_fg: over the fraction field A = K of a domain R the second axiom is automatic, so there lattices are exactly the finitely generated submodules.
  • Submodule.IsLattice.free: over a PID, every lattice is R-free.
  • Submodule.IsLattice.inf_left, Submodule.IsLattice.inf_right: over a Noetherian ring, the intersection of a lattice with a submodule is a lattice.

TODO

In the fraction field setting with V = ι → K for finite ι, scaling a lattice by a unit of K again gives a lattice, which yields a homothety relation. For R a DVR and ι = Fin 2, the quotient by it is the vertex set of the Bruhat-Tits tree of GL 2 K.

For R = ℤ and K a normed field, IsZLattice K L instead asks that L be discrete and span K, making it the topological analogue of Submodule.IsFullLattice; it is used for instance for complex tori. The two notions agree in common cases, e.g. when K = ℝ and V is finite-dimensional, but API relating them is still missing.

References

  • [S. Viguié, Index-modules and applications][viguie2011]

theorem Submodule.IsLattice.congr_simp E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M M_1 : Submodule R V), M = M_1 → Submodule.IsLattice A M = Submodule.IsLattice A M_1

class Submodule.IsLattice E3 #

{R : Type u_1} →
  [inst : CommRing R] →
    (A : Type u_2) →
      [inst_1 : CommRing A] →
        [inst_2 : Algebra R A] →
          {V : Type u_3} →
            [inst_3 : AddCommGroup V] →
              [inst_4 : Module R V] → [inst_5 : Module A V] → [IsScalarTower R A V] → Submodule R V → Prop

An R-submodule M of an A-module V is a lattice if it is finitely generated and every R-linearly independent subset of M is A-linearly independent. If A is a field, this is equivalent to the R-rank of Mbeing equal to theA-rank of its A-span, see Submodule.IsLattice.iff_fg_and_finrank_span_eq_finrank`.

Note: for R = ℤ and A a normed field there is also IsZLattice, the analogue of Submodule.IsFullLattice with discreteness in place of the two conditions here.

theorem Submodule.isLattice_iff E0 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M : Submodule R V), Submodule.IsLattice A M ↔ M.FG ∧ ∀ s ⊆ ↑M, LinearIndepOn R id s → LinearIndepOn A id s

ctor Submodule.IsLattice.mk E0 #

∀ {R : Type u_1} [inst : CommRing R] {A : Type u_2} [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  {M : Submodule R V}, M.FG → (∀ s ⊆ ↑M, LinearIndepOn R id s → LinearIndepOn A id s) → Submodule.IsLattice A M

theorem Submodule.IsLattice.fg E1 #

∀ {R : Type u_1} {inst : CommRing R} (A : Type u_2) {inst_1 : CommRing A} {inst_2 : Algebra R A} {V : Type u_3}
  {inst_3 : AddCommGroup V} {inst_4 : Module R V} {inst_5 : Module A V} {inst_6 : IsScalarTower R A V}
  (M : Submodule R V) [self : Submodule.IsLattice A M], M.FG

theorem Submodule.IsLattice.linearIndepOn E1 #

∀ {R : Type u_1} {inst : CommRing R} {A : Type u_2} {inst_1 : CommRing A} {inst_2 : Algebra R A} {V : Type u_3}
  {inst_3 : AddCommGroup V} {inst_4 : Module R V} {inst_5 : Module A V} {inst_6 : IsScalarTower R A V}
  {M : Submodule R V} [self : Submodule.IsLattice A M], ∀ s ⊆ ↑M, LinearIndepOn R id s → LinearIndepOn A id s

theorem Submodule.IsLattice.of_subsingleton E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M : Submodule R V) [Nontrivial A] [Subsingleton R], Submodule.IsLattice A M

theorem Submodule.IsLattice.linearIndependent E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M : Submodule R V) [Submodule.IsLattice A M] {ι : Type u_4} {v : ι → V},
  (∀ (i : ι), v i ∈ M) → LinearIndependent R v → LinearIndependent A v

Any R-independent family of vectors in a lattice is A-linearly independent.

theorem Submodule.IsLattice.basis_linearIndependent E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M : Submodule R V) [Submodule.IsLattice A M] {ι : Type u_4} (b : Module.Basis ι R ↥M),
  LinearIndependent A fun i ↦ ↑(b i)

Any basis of an R-lattice in V is A-linearly independent.

theorem Submodule.IsLattice.finite E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M : Submodule R V) [Submodule.IsLattice A M], Module.Finite R ↥M

Any R-lattice is finite. Not an instance, since A cannot be inferred.

theorem Submodule.IsLattice.mono_of_fg E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  {M N : Submodule R V}, M ≤ N → M.FG → ∀ [Submodule.IsLattice A N], Submodule.IsLattice A M

A finitely generated submodule of a lattice is a lattice.

theorem Submodule.IsLattice.mono E1 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  [IsNoetherianRing R] {M N : Submodule R V}, M ≤ N → ∀ [Submodule.IsLattice A N], Submodule.IsLattice A M

Over a Noetherian ring, any submodule of a lattice is a lattice.

instance Submodule.IsLattice.inf_left E3 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  [IsNoetherianRing R] (M N : Submodule R V) [Submodule.IsLattice A M], Submodule.IsLattice A (M ⊓ N)

Over a Noetherian ring, the intersection of two submodules, the first a lattice, is a lattice.

instance Submodule.IsLattice.inf_right E3 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  [IsNoetherianRing R] (M N : Submodule R V) [Submodule.IsLattice A N], Submodule.IsLattice A (M ⊓ N)

Over a Noetherian ring, the intersection of two submodules, the second a lattice, is a lattice.

instance Submodule.IsLattice.smul E0 #

∀ {R : Type u_1} [inst : CommRing R] (A : Type u_2) [inst_1 : CommRing A] [inst_2 : Algebra R A] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module A V] [inst_6 : IsScalarTower R A V]
  (M : Submodule R V) [Submodule.IsLattice A M] (a : Aˣ), Submodule.IsLattice A (a • M)

The action of Aˣ on R-submodules of V preserves IsLattice.

theorem Submodule.IsLattice.rank_span_eq_rank E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M : Submodule R V) [Submodule.IsLattice K M], Module.rank K ↥(Submodule.span K ↑M) = Module.rank R ↥M

The R-rank of a lattice equals the K-dimension of its K-span.

theorem Submodule.IsLattice.finrank_span_eq_finrank E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M : Submodule R V) [Submodule.IsLattice K M], Module.finrank K ↥(Submodule.span K ↑M) = Module.finrank R ↥M

The R-rank of a lattice equals the K-dimension of its K-span. This is the finrank version of rank_span_eq_rank.

theorem Set.finrank_eq_of_isLattice E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (s : Set V), Submodule.IsLattice K (Submodule.span R s) → Set.finrank K s = Set.finrank R s

If the R-span of s is a lattice, then the K-rank of s equals its R-rank.

theorem Submodule.IsLattice.iff_fg_and_finrank_span_eq_finrank E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M : Submodule R V), Submodule.IsLattice K M ↔ M.FG ∧ Module.finrank K ↥(Submodule.span K ↑M) = Module.finrank R ↥M

An R-module M is a lattice in an ambient K-module V if and only if M is finitely generated, and its R-rank equals the K-dimension of its K-span.

theorem Submodule.IsLattice.span_of_linearIndependent E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  {ι : Type u_4} [Finite ι] {v : ι → V}, LinearIndependent K v → Submodule.IsLattice K (Submodule.span R (Set.range v))

The R-span of a finite K-linearly independent family is a lattice.

theorem Submodule.IsLattice.exists_finite_linearIndepOn_le_span E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M : Submodule R V) [Submodule.IsLattice K M],
  ∃ s, s.Finite ∧ LinearIndepOn K id s ∧ M ≤ Submodule.span R s ∧ Submodule.span K s = Submodule.span K ↑M

Any lattice is contained in the R-span of a finite K-linearly independent set with the same K-span. In particular, every lattice is contained in a free lattice with the same K-span.

Note that if R is a PID, every lattice is free (IsLattice.free), so this holds trivially.

instance Submodule.IsLattice.finiteDimensional_span E0 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] {V : Type u_3}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] [inst_5 : Module K V] [inst_6 : IsScalarTower R K V]
  (M : Submodule R V) [Submodule.IsLattice K M], FiniteDimensional K ↥(Submodule.span K ↑M)

The K-span of a lattice is finite-dimensional.

theorem Submodule.IsLattice.free E3 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M : Submodule R V) [IsDomain R] [IsPrincipalIdealRing R] [Submodule.IsLattice K M], Module.Free R ↥M

Any lattice over a PID is a free R-module. Not an instance, since K cannot be inferred.

theorem Submodule.IsLattice.exists_basis_linearIndependent E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_2) [inst_1 : Field K] [inst_2 : Algebra R K] [FaithfulSMul R K]
  {V : Type u_3} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M : Submodule R V) [IsDomain R] [IsPrincipalIdealRing R] [Submodule.IsLattice K M],
  ∃ b, LinearIndependent K fun i ↦ ↑(b i)

A lattice over a PID has a basis that's K-linearly independent.

theorem Submodule.IsLattice.of_fg E3 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_4) [inst_1 : Field K] [inst_2 : Algebra R K] [IsFractionRing R K]
  {V : Type u_5} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  {M : Submodule R V}, M.FG → Submodule.IsLattice K M

If K is the field of fractions of R, any finitely generated R-submodule of V is a lattice.

theorem Submodule.IsLattice.iff_fg E1 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_4) [inst_1 : Field K] [inst_2 : Algebra R K] [IsFractionRing R K]
  {V : Type u_5} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  {M : Submodule R V}, Submodule.IsLattice K M ↔ M.FG

If K is the field of fractions of R, then a submodule of V is a lattice if and only if it is finitely generated.

instance Submodule.IsLattice.sup E0 #

∀ {R : Type u_1} [inst : CommRing R] (K : Type u_4) [inst_1 : Field K] [inst_2 : Algebra R K] [IsFractionRing R K]
  {V : Type u_5} [inst_4 : AddCommGroup V] [inst_5 : Module R V] [inst_6 : Module K V] [inst_7 : IsScalarTower R K V]
  (M N : Submodule R V) [Submodule.IsLattice K M] [Submodule.IsLattice K N], Submodule.IsLattice K (M ⊔ N)

If K is the field of fractions of R, the supremum of two lattices is a lattice.