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 / V05. Groups

Mathlib.GroupTheory.Divisible

37 declarations. Mathlib docs · Source

Divisible Group and rootable group

In this file, we define a divisible additive monoid and a rootable monoid with some basic properties.

Main definition

  • DivisibleBy A α: An additive monoid A is said to be divisible by α iff for all n ≠ 0 ∈ α and y ∈ A, there is an x ∈ A such that n • x = y. In this file, we adopt a constructive approach, i.e. we ask for an explicit div : A → α → A function such that div a 0 = 0 and n • div a n = a for all n ≠ 0 ∈ α.
  • RootableBy A α: A monoid A is said to be rootable by α iff for all n ≠ 0 ∈ α and y ∈ A, there is an x ∈ A such that x^n = y. In this file, we adopt a constructive approach, i.e. we ask for an explicit root : A → α → A function such that root a 0 = 1 and (root a n)ⁿ = a for all n ≠ 0 ∈ α.

Main results

For additive monoids and groups:

  • divisibleByOfSMulRightSurj : the constructive definition of divisibility is implied by the condition that n • x = a has solutions for all n ≠ 0 and a ∈ A.
  • smul_right_surj_of_divisibleBy : the constructive definition of divisibility implies the condition that n • x = a has solutions for all n ≠ 0 and a ∈ A.
  • Prod.divisibleBy : A × B is divisible for any two divisible additive monoids.
  • Pi.divisibleBy : any product of divisible additive monoids is divisible.
  • AddGroup.divisibleByIntOfDivisibleByNat : for additive groups, int divisibility is implied by nat divisibility.
  • AddGroup.divisibleByNatOfDivisibleByInt : for additive groups, nat divisibility is implied by int divisibility.
  • AddCommGroup.divisibleByIntOfSMulTopEqTop: the constructive definition of divisibility is implied by the condition that n • A = A for all n ≠ 0.
  • AddCommGroup.smul_top_eq_top_of_divisibleBy_int: the constructive definition of divisibility implies the condition that n • A = A for all n ≠ 0.
  • divisibleByIntOfCharZero : any field of characteristic zero is divisible.
  • QuotientAddGroup.divisibleBy : quotient group of divisible group is divisible.
  • Function.Surjective.divisibleBy : if A is divisible and A →+ B is surjective, then B is divisible.

and their multiplicative counterparts:

  • rootableByOfPowLeftSurj : the constructive definition of rootability is implied by the condition that xⁿ = y has solutions for all n ≠ 0 and a ∈ A.
  • pow_left_surj_of_rootableBy : the constructive definition of rootability implies the condition that xⁿ = y has solutions for all n ≠ 0 and a ∈ A.
  • Prod.rootableBy : any product of two rootable monoids is rootable.
  • Pi.rootableBy : any product of rootable monoids is rootable.
  • Group.rootableByIntOfRootableByNat : in groups, int rootability is implied by nat rootability.
  • Group.rootableByNatOfRootableByInt : in groups, nat rootability is implied by int rootability.
  • QuotientGroup.rootableBy : quotient group of rootable group is rootable.
  • Function.Surjective.rootableBy : if A is rootable and A →* B is surjective, then B is rootable.

TODO: Show that divisibility implies injectivity in the category of AddCommGroup.

theorem Group.rootableByIntOfRootableByNat.match_1.congr_eq_2 E1 #

∀ (motive : ℤ → Sort u_1) (z : ℤ) (h_1 : (n : ℕ) → motive (Int.ofNat n)) (h_2 : (n : ℕ) → motive (Int.negSucc n))
  (n : ℕ),
  z = Int.negSucc n →
    (match z with
      | Int.ofNat n => h_1 n
      | Int.negSucc n => h_2 n) ≍
      h_2 n

def RootableBy.ctorIdx E1 #

{A : Type u_1} → {α : Type u_2} → {inst : Monoid A} → {inst_1 : Pow A α} → {inst_2 : Zero α} → RootableBy A α → ℕ

def DivisibleBy.ctorIdx E1 #

{A : Type u_1} → {α : Type u_2} → {inst : AddMonoid A} → {inst_1 : SMul α A} → {inst_2 : Zero α} → DivisibleBy A α → ℕ

theorem AddGroup.divisibleByIntOfDivisibleByNat.match_1.congr_eq_2 E1 #

∀ (motive : ℤ → Sort u_1) (z : ℤ) (h_1 : (n : ℕ) → motive (Int.ofNat n)) (h_2 : (n : ℕ) → motive (Int.negSucc n))
  (n : ℕ),
  z = Int.negSucc n →
    (match z with
      | Int.ofNat n => h_1 n
      | Int.negSucc n => h_2 n) ≍
      h_2 n

theorem AddGroup.divisibleByIntOfDivisibleByNat.match_1.congr_eq_1 E1 #

∀ (motive : ℤ → Sort u_1) (z : ℤ) (h_1 : (n : ℕ) → motive (Int.ofNat n)) (h_2 : (n : ℕ) → motive (Int.negSucc n))
  (n : ℕ),
  z = Int.ofNat n →
    (match z with
      | Int.ofNat n => h_1 n
      | Int.negSucc n => h_2 n) ≍
      h_1 n

theorem Group.rootableByIntOfRootableByNat.match_1.congr_eq_1 E1 #

∀ (motive : ℤ → Sort u_1) (z : ℤ) (h_1 : (n : ℕ) → motive (Int.ofNat n)) (h_2 : (n : ℕ) → motive (Int.negSucc n))
  (n : ℕ),
  z = Int.ofNat n →
    (match z with
      | Int.ofNat n => h_1 n
      | Int.negSucc n => h_2 n) ≍
      h_1 n

class DivisibleBy E1 #

(A : Type u_1) → (α : Type u_2) → [AddMonoid A] → [SMul α A] → [Zero α] → Type (max u_1 u_2)

An AddMonoid A is α-divisible iff n • x = a has a solution for all n ≠ 0 ∈ α and a ∈ A. Here we adopt a constructive approach where we ask an explicit div : A → α → A function such that

  • div a 0 = 0 for all a ∈ A
  • n • div a n = a for all n ≠ 0 ∈ α and a ∈ A.

ctor DivisibleBy.mk E0 #

{A : Type u_1} →
  {α : Type u_2} →
    [inst : AddMonoid A] →
      [inst_1 : SMul α A] →
        [inst_2 : Zero α] →
          (div : A → α → A) → (∀ (a : A), div a 0 = 0) → (∀ {n : α} (a : A), n ≠ 0 → n • div a n = a) → DivisibleBy A α

abbrev DivisibleBy.div E1 #

{A : Type u_1} →
  {α : Type u_2} → {inst : AddMonoid A} → {inst_1 : SMul α A} → {inst_2 : Zero α} → [self : DivisibleBy A α] → A → α → A

The division function

theorem DivisibleBy.div_zero E1 #

∀ {A : Type u_1} {α : Type u_2} {inst : AddMonoid A} {inst_1 : SMul α A} {inst_2 : Zero α} [self : DivisibleBy A α]
  (a : A), DivisibleBy.div a 0 = 0

theorem DivisibleBy.div_cancel E1 #

∀ {A : Type u_1} {α : Type u_2} {inst : AddMonoid A} {inst_1 : SMul α A} {inst_2 : Zero α} [self : DivisibleBy A α]
  {n : α} (a : A), n ≠ 0 → n • DivisibleBy.div a n = a

class RootableBy E1 #

(A : Type u_1) → (α : Type u_2) → [Monoid A] → [Pow A α] → [Zero α] → Type (max u_1 u_2)

A Monoid A is α-rootable iff xⁿ = a has a solution for all n ≠ 0 ∈ α and a ∈ A. Here we adopt a constructive approach where we ask an explicit root : A → α → A function such that

  • root a 0 = 1 for all a ∈ A
  • (root a n)ⁿ = a for all n ≠ 0 ∈ α and a ∈ A.

ctor RootableBy.mk E0 #

{A : Type u_1} →
  {α : Type u_2} →
    [inst : Monoid A] →
      [inst_1 : Pow A α] →
        [inst_2 : Zero α] →
          (root : A → α → A) →
            (∀ (a : A), root a 0 = 1) → (∀ {n : α} (a : A), n ≠ 0 → root a n ^ n = a) → RootableBy A α

abbrev RootableBy.root E1 #

{A : Type u_1} →
  {α : Type u_2} → {inst : Monoid A} → {inst_1 : Pow A α} → {inst_2 : Zero α} → [self : RootableBy A α] → A → α → A

The root function

theorem RootableBy.root_zero E1 #

∀ {A : Type u_1} {α : Type u_2} {inst : Monoid A} {inst_1 : Pow A α} {inst_2 : Zero α} [self : RootableBy A α] (a : A),
  RootableBy.root a 0 = 1

theorem RootableBy.root_cancel E1 #

∀ {A : Type u_1} {α : Type u_2} {inst : Monoid A} {inst_1 : Pow A α} {inst_2 : Zero α} [self : RootableBy A α] {n : α}
  (a : A), n ≠ 0 → RootableBy.root a n ^ n = a

theorem DivisibleBy.surjective_smul E1 #

∀ (A : Type u_1) (α : Type u_2) [inst : AddMonoid A] [inst_1 : SMul α A] [inst_2 : Zero α] [DivisibleBy A α] {n : α},
  n ≠ 0 → Function.Surjective fun a ↦ n • a

theorem RootableBy.surjective_pow E1 #

∀ (A : Type u_1) (α : Type u_2) [inst : Monoid A] [inst_1 : Pow A α] [inst_2 : Zero α] [RootableBy A α] {n : α},
  n ≠ 0 → Function.Surjective fun a ↦ a ^ n

def rootableByOfPowLeftSurj E3 #

(A : Type u_1) →
  (α : Type u_2) →
    [inst : Monoid A] →
      [inst_1 : Pow A α] → [inst_2 : Zero α] → (∀ {n : α}, n ≠ 0 → Function.Surjective fun a ↦ a ^ n) → RootableBy A α

A Monoid A is α-rootable iff the pow _ n function is surjective, i.e. the constructive version implies the textbook approach.

def divisibleByOfSMulRightSurj E3 #

(A : Type u_1) →
  (α : Type u_2) →
    [inst : AddMonoid A] →
      [inst_1 : SMul α A] → [inst_2 : Zero α] → (∀ {n : α}, n ≠ 0 → Function.Surjective fun a ↦ n • a) → DivisibleBy A α

An AddMonoid A is α-divisible iff n • _ is a surjective function, i.e. the constructive version implies the textbook approach.

instance Pi.divisibleBy E3 #

{ι : Type u_3} →
  {β : Type u_4} →
    (B : ι → Type u_5) →
      [inst : (i : ι) → SMul β (B i)] →
        [inst_1 : Zero β] →
          [inst_2 : (i : ι) → AddMonoid (B i)] → [(i : ι) → DivisibleBy (B i) β] → DivisibleBy ((i : ι) → B i) β

instance Pi.rootableBy E3 #

{ι : Type u_3} →
  {β : Type u_4} →
    (B : ι → Type u_5) →
      [inst : (i : ι) → Pow (B i) β] →
        [inst_1 : Zero β] →
          [inst_2 : (i : ι) → Monoid (B i)] → [(i : ι) → RootableBy (B i) β] → RootableBy ((i : ι) → B i) β

instance Prod.rootableBy E3 #

{β : Type u_3} →
  {B : Type u_4} →
    {B' : Type u_5} →
      [inst : Pow B β] →
        [inst_1 : Pow B' β] →
          [inst_2 : Zero β] →
            [inst_3 : Monoid B] → [inst_4 : Monoid B'] → [RootableBy B β] → [RootableBy B' β] → RootableBy (B × B') β

instance Prod.divisibleBy E3 #

{β : Type u_3} →
  {B : Type u_4} →
    {B' : Type u_5} →
      [inst : SMul β B] →
        [inst_1 : SMul β B'] →
          [inst_2 : Zero β] →
            [inst_3 : AddMonoid B] →
              [inst_4 : AddMonoid B'] → [DivisibleBy B β] → [DivisibleBy B' β] → DivisibleBy (B × B') β

instance ULift.instRootableBy E0 #

(A : Type u_1) →
  (α : Type u_2) →
    [inst : Monoid A] → [inst_1 : Pow A α] → [inst_2 : Zero α] → [RootableBy A α] → RootableBy (ULift.{u_3, u_1} A) α

instance ULift.instDivisibleBy E0 #

(A : Type u_1) →
  (α : Type u_2) →
    [inst : AddMonoid A] →
      [inst_1 : SMul α A] → [inst_2 : Zero α] → [DivisibleBy A α] → DivisibleBy (ULift.{u_3, u_1} A) α

theorem AddCommGroup.smul_top_eq_top_of_divisibleBy_int E3 #

∀ (A : Type u_1) [inst : AddCommGroup A] [DivisibleBy A ℤ] {n : ℤ}, n ≠ 0 → n • ⊤ = ⊤

def AddCommGroup.divisibleByIntOfSMulTopEqTop E3 #

(A : Type u_1) → [inst : AddCommGroup A] → (∀ {n : ℤ}, n ≠ 0 → n • ⊤ = ⊤) → DivisibleBy A ℤ

If for all n ≠ 0 ∈ ℤ, n • A = A, then A is divisible.

instance divisibleByIntOfCharZero E3 #

{𝕜 : Type u_1} → [inst : DivisionRing 𝕜] → [CharZero 𝕜] → DivisibleBy 𝕜 ℤ

def Group.rootableByIntOfRootableByNat E3 #

(A : Type u_1) → [inst : Group A] → [RootableBy A ℕ] → RootableBy A ℤ

A group is ℤ-rootable if it is ℕ-rootable.

def AddGroup.divisibleByIntOfDivisibleByNat E3 #

(A : Type u_1) → [inst : AddGroup A] → [DivisibleBy A ℕ] → DivisibleBy A ℤ

An additive group is ℤ-divisible if it is ℕ-divisible.

def Group.rootableByNatOfRootableByInt E3 #

(A : Type u_1) → [inst : Group A] → [RootableBy A ℤ] → RootableBy A ℕ

A group is ℕ-rootable if it is ℤ-rootable

def AddGroup.divisibleByNatOfDivisibleByInt E3 #

(A : Type u_1) → [inst : AddGroup A] → [DivisibleBy A ℤ] → DivisibleBy A ℕ

An additive group is ℕ-divisible if it ℤ-divisible.

def Function.Surjective.rootableBy E3 #

{A : Type u_1} →
  {B : Type u_2} →
    {α : Type u_3} →
      [inst : Zero α] →
        [inst_1 : Monoid A] →
          [inst_2 : Monoid B] →
            [inst_3 : Pow A α] →
              [inst_4 : Pow B α] →
                [RootableBy A α] →
                  (f : A → B) → Function.Surjective f → (∀ (a : A) (n : α), f (a ^ n) = f a ^ n) → RootableBy B α

If f : A → B is a surjective homomorphism and A is α-rootable, then B is also α-rootable.

def Function.Surjective.divisibleBy E3 #

{A : Type u_1} →
  {B : Type u_2} →
    {α : Type u_3} →
      [inst : Zero α] →
        [inst_1 : AddMonoid A] →
          [inst_2 : AddMonoid B] →
            [inst_3 : SMul α A] →
              [inst_4 : SMul α B] →
                [DivisibleBy A α] →
                  (f : A → B) → Function.Surjective f → (∀ (a : A) (n : α), f (n • a) = n • f a) → DivisibleBy B α

If f : A → B is a surjective homomorphism and A is α-divisible, then B is also α-divisible.

instance QuotientGroup.rootableBy E3 #

{A : Type u_1} → [inst : CommGroup A] → (B : Subgroup A) → [RootableBy A ℕ] → RootableBy (A ⧸ B) ℕ

Any quotient group of a rootable group is rootable.

instance QuotientAddGroup.divisibleBy E3 #

{A : Type u_1} → [inst : AddCommGroup A] → (B : AddSubgroup A) → [DivisibleBy A ℕ] → DivisibleBy (A ⧸ B) ℕ

Any quotient group of a divisible group is divisible