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.Rat

18 declarations and 2 deprecated aliases. Mathlib docs · Source

Basic results about modules over the rationals.

theorem map_nnratCast_smul E0 #

∀ {M : Type u_1} {M₂ : Type u_2} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] {F : Type u_3}
  [inst_2 : FunLike F M M₂] [AddMonoidHomClass F M M₂] (f : F) (R : Type u_4) (S : Type u_5)
  [inst_4 : DivisionSemiring R] [inst_5 : DivisionSemiring S] [inst_6 : Module R M] [inst_7 : Module S M₂] (c : ℚ≥0)
  (x : M), f (↑c • x) = ↑c • f x

theorem map_ratCast_smul E0 #

∀ {M : Type u_1} {M₂ : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup M₂] {F : Type u_3}
  [inst_2 : FunLike F M M₂] [AddMonoidHomClass F M M₂] (f : F) (R : Type u_4) (S : Type u_5) [inst_4 : DivisionRing R]
  [inst_5 : DivisionRing S] [inst_6 : Module R M] [inst_7 : Module S M₂] (c : ℚ) (x : M), f (↑c • x) = ↑c • f x

theorem map_nnrat_smul E0 #

∀ {M : Type u_1} {M₂ : Type u_2} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] [_instM : Module ℚ≥0 M]
  [_instM₂ : Module ℚ≥0 M₂] {F : Type u_3} [inst_2 : FunLike F M M₂] [AddMonoidHomClass F M M₂] (f : F) (c : ℚ≥0)
  (x : M), f (c • x) = c • f x

theorem map_rat_smul E0 #

∀ {M : Type u_1} {M₂ : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup M₂] [_instM : Module ℚ M]
  [_instM₂ : Module ℚ M₂] {F : Type u_3} [inst_2 : FunLike F M M₂] [AddMonoidHomClass F M M₂] (f : F) (c : ℚ) (x : M),
  f (c • x) = c • f x

instance subsingleton_nnrat_module E0 #

∀ (E : Type u_3) [inst : AddCommMonoid E], Subsingleton (Module ℚ≥0 E)

There can be at most one Module ℚ≥0 E structure on an additive commutative monoid.

instance subsingleton_rat_module E0 #

∀ (E : Type u_3) [inst : AddCommGroup E], Subsingleton (Module ℚ E)

There can be at most one Module ℚ E structure on an additive commutative group.

theorem nnratCast_smul_eq E0 #

∀ {E : Type u_3} (R : Type u_4) (S : Type u_5) [inst : AddCommMonoid E] [inst_1 : DivisionSemiring R]
  [inst_2 : DivisionSemiring S] [inst_3 : Module R E] [inst_4 : Module S E] (r : ℚ≥0) (x : E), ↑r • x = ↑r • x

If E is a vector space over two division semirings R and S, then scalar multiplications agree on non-negative rational numbers in R and S.

theorem ratCast_smul_eq E0 #

∀ {E : Type u_3} (R : Type u_4) (S : Type u_5) [inst : AddCommGroup E] [inst_1 : DivisionRing R]
  [inst_2 : DivisionRing S] [inst_3 : Module R E] [inst_4 : Module S E] (r : ℚ) (x : E), ↑r • x = ↑r • x

If E is a vector space over two division rings R and S, then scalar multiplications agree on rational numbers in R and S.

instance IsScalarTower.nnrat E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : Module ℚ≥0 R]
  [inst_4 : Module ℚ≥0 M], IsScalarTower ℚ≥0 R M

instance IsScalarTower.rat E0 #

∀ {R : Type u} {M : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [inst_3 : Module ℚ R]
  [inst_4 : Module ℚ M], IsScalarTower ℚ R M

theorem NNRat.cast_smul_eq_nnqsmul E1 #

∀ {M : Type u_1} (R : Type u_3) [inst : DivisionSemiring R] [inst_1 : MulAction R M] [inst_2 : MulAction ℚ≥0 M]
  [IsScalarTower ℚ≥0 R M] (q : ℚ≥0) (x : M), ↑q • x = q • x

nnqsmul is equal to any other module structure via a cast.

theorem Rat.cast_smul_eq_qsmul E1 #

∀ {M : Type u_1} (R : Type u_3) [inst : DivisionRing R] [inst_1 : MulAction R M] [inst_2 : MulAction ℚ M]
  [IsScalarTower ℚ R M] (q : ℚ) (x : M), ↑q • x = q • x

qsmul is equal to any other module structure via a cast.

instance SMulCommClass.nnrat E0 #

∀ {α : Type u} {M : Type v} [inst : AddCommMonoid M] [inst_1 : DistribSMul α M] [inst_2 : Module ℚ≥0 M],
  SMulCommClass ℚ≥0 α M

instance SMulCommClass.rat E0 #

∀ {α : Type u} {M : Type v} [inst : AddCommGroup M] [inst_1 : DistribSMul α M] [inst_2 : Module ℚ M],
  SMulCommClass ℚ α M

instance SMulCommClass.nnrat' E0 #

∀ {α : Type u} {M : Type v} [inst : AddCommMonoid M] [inst_1 : DistribSMul α M] [inst_2 : Module ℚ≥0 M],
  SMulCommClass α ℚ≥0 M

instance SMulCommClass.rat' E0 #

∀ {α : Type u} {M : Type v} [inst : AddCommGroup M] [inst_1 : DistribSMul α M] [inst_2 : Module ℚ M],
  SMulCommClass α ℚ M

theorem HasUniqueDiv.of_module_nnrat E1 #

∀ (M : Type u_1) [inst : AddCommMonoid M] [Module ℚ≥0 M], HasUniqueDiv M

A ℚ≥0-module has unique divisibility.

This instance will fire for any monoid M, so is local unless needed elsewhere.

theorem HasUniqueDiv.of_module_rat E1 #

∀ (M : Type u_1) [inst : AddCommGroup M] [Module ℚ M], HasUniqueDiv M

A ℚ-module has unique divisibility.

This instance will fire for any monoid M, so is local unless needed elsewhere.

Deprecated aliases

NameNew nameSince
IsAddTorsionFree.of_module_nnratHasUniqueDiv.of_module_nnrat2026-09-29
IsAddTorsionFree.of_module_ratHasUniqueDiv.of_module_rat2026-09-29