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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.TwoSidedIdeal.Operations

58 declarations. Mathlib docs · Source

Operations on two-sided ideals

This file defines operations on two-sided ideals of a ring R.

Main definitions and results

  • TwoSidedIdeal.span: the span of s ⊆ R is the smallest two-sided ideal containing the set.

  • TwoSidedIdeal.mem_span_iff_mem_addSubgroup_closure_nonunital: in an associative but non-unital ring, an element x is in the two-sided ideal spanned by s if and only if x is in the closure of s ∪ {y * a | y ∈ s, a ∈ R} ∪ {a * y | y ∈ s, a ∈ R} ∪ {a * y * b | y ∈ s, a, b ∈ R} as an additive subgroup.

  • TwoSidedIdeal.mem_span_iff_mem_addSubgroup_closure: in a unital and associative ring, an element x is in the two-sided ideal spanned by s if and only if x is in the closure of {a*y*b | a, b ∈ R, y ∈ s} as an additive subgroup.

  • TwoSidedIdeal.comap: pullback of a two-sided ideal; defined as the preimage of a two-sided ideal.

  • TwoSidedIdeal.map: pushforward of a two-sided ideal; defined as the span of the image of a two-sided ideal.

  • TwoSidedIdeal.ker: the kernel of a ring homomorphism as a two-sided ideal.

  • TwoSidedIdeal.gc: fromIdeal and asIdeal form a Galois connection where fromIdeal : Ideal R → TwoSidedIdeal R is defined as the smallest two-sided ideal containing an ideal and asIdeal : TwoSidedIdeal R → Ideal R the inclusion map.

theorem Ideal.toTwoSided.congr_simp E1 #

∀ {R : Type u_1} [inst : Ring R] (I I_1 : Ideal R) (e_I : I = I_1) [inst_1 : I.IsTwoSided],
  I.toTwoSided = I_1.toTwoSided

theorem TwoSidedIdeal.mk'.congr_simp E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] (carrier carrier_1 : Set R) (e_carrier : carrier = carrier_1)
  (zero_mem : 0 ∈ carrier) (add_mem : ∀ {x y : R}, x ∈ carrier → y ∈ carrier → x + y ∈ carrier)
  (neg_mem : ∀ {x : R}, x ∈ carrier → -x ∈ carrier) (mul_mem_left : ∀ {x y : R}, y ∈ carrier → x * y ∈ carrier)
  (mul_mem_right : ∀ {x y : R}, x ∈ carrier → x * y ∈ carrier),
  TwoSidedIdeal.mk' carrier zero_mem add_mem neg_mem mul_mem_left mul_mem_right = TwoSidedIdeal.mk' carrier_1 ⋯ ⋯ ⋯ ⋯ ⋯

theorem TwoSidedIdeal.comap.congr_simp E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : NonUnitalNonAssocRing R] [inst_1 : NonUnitalNonAssocRing S] {F : Type u_3}
  [inst_2 : FunLike F R S] (f f_1 : F),
  f = f_1 → ∀ [inst_3 : NonUnitalRingHomClass F R S], TwoSidedIdeal.comap f = TwoSidedIdeal.comap f_1

abbrev TwoSidedIdeal.span E1 #

{R : Type u_1} → [inst : NonUnitalNonAssocRing R] → Set R → TwoSidedIdeal R

The smallest two-sided ideal containing a set.

theorem TwoSidedIdeal.subset_span E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] {s : Set R}, s ⊆ ↑(TwoSidedIdeal.span s)

theorem TwoSidedIdeal.mem_span_iff E0 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] {s : Set R} {x : R},
  x ∈ TwoSidedIdeal.span s ↔ ∀ (I : TwoSidedIdeal R), s ⊆ ↑I → x ∈ I

theorem TwoSidedIdeal.span_mono E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] {s t : Set R}, s ⊆ t → TwoSidedIdeal.span s ≤ TwoSidedIdeal.span t

theorem TwoSidedIdeal.span_le E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] {s : Set R} {I : TwoSidedIdeal R}, TwoSidedIdeal.span s ≤ I ↔ s ⊆ ↑I

theorem TwoSidedIdeal.span_induction E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] {s : Set R} {p : (x : R) → x ∈ TwoSidedIdeal.span s → Prop},
  (∀ (x : R) (h : x ∈ s), p x ⋯) →
    p 0 ⋯ →
      (∀ (x y : R) (hx : x ∈ TwoSidedIdeal.span s) (hy : y ∈ TwoSidedIdeal.span s), p x hx → p y hy → p (x + y) ⋯) →
        (∀ (x : R) (hx : x ∈ TwoSidedIdeal.span s), p x hx → p (-x) ⋯) →
          (∀ (a x : R) (hx : x ∈ TwoSidedIdeal.span s), p x hx → p (a * x) ⋯) →
            (∀ (b x : R) (hx : x ∈ TwoSidedIdeal.span s), p x hx → p (x * b) ⋯) →
              ∀ {x : R} (hx : x ∈ TwoSidedIdeal.span s), p x hx

An induction principle for span membership.

If p holds for 0 and all elements of s, and is preserved under addition and left and right multiplication, then p holds for all elements of the span of s.

def TwoSidedIdeal.map E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : NonUnitalNonAssocRing R] →
      [inst_1 : NonUnitalNonAssocRing S] → {F : Type u_3} → [FunLike F R S] → F → TwoSidedIdeal R → TwoSidedIdeal S

Pushout of a two-sided ideal. Defined as the span of the image of a two-sided ideal under a ring homomorphism.

theorem TwoSidedIdeal.map_mono E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : NonUnitalNonAssocRing R] [inst_1 : NonUnitalNonAssocRing S] {F : Type u_3}
  [inst_2 : FunLike F R S] (f : F) {I J : TwoSidedIdeal R}, I ≤ J → TwoSidedIdeal.map f I ≤ TwoSidedIdeal.map f J

def TwoSidedIdeal.comap E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : NonUnitalNonAssocRing R] →
      [inst_1 : NonUnitalNonAssocRing S] →
        {F : Type u_3} →
          [inst_2 : FunLike F R S] → F → [NonUnitalRingHomClass F R S] → TwoSidedIdeal S →o TwoSidedIdeal R

Preimage of a two-sided ideal, as a two-sided ideal.

theorem TwoSidedIdeal.comap_le_comap E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : NonUnitalNonAssocRing R] [inst_1 : NonUnitalNonAssocRing S] {F : Type u_3}
  [inst_2 : FunLike F R S] (f : F) [inst_3 : NonUnitalRingHomClass F R S] {I J : TwoSidedIdeal S},
  I ≤ J → (TwoSidedIdeal.comap f) I ≤ (TwoSidedIdeal.comap f) J

theorem TwoSidedIdeal.mem_comap E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : NonUnitalNonAssocRing R] [inst_1 : NonUnitalNonAssocRing S] {F : Type u_3}
  [inst_2 : FunLike F R S] (f : F) [inst_3 : NonUnitalRingHomClass F R S] {I : TwoSidedIdeal S} {x : R},
  x ∈ (TwoSidedIdeal.comap f) I ↔ f x ∈ I

def RingEquiv.mapTwoSidedIdeal E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : NonUnitalNonAssocRing R] → [inst_1 : NonUnitalNonAssocRing S] → R ≃+* S → TwoSidedIdeal R ≃o TwoSidedIdeal S

If R and S are isomorphic as rings, then two-sided ideals of R and two-sided ideals of S are order isomorphic.

theorem RingEquiv.mapTwoSidedIdeal_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : NonUnitalNonAssocRing R] [inst_1 : NonUnitalNonAssocRing S] (e : R ≃+* S)
  (I : TwoSidedIdeal R), e.mapTwoSidedIdeal I = (TwoSidedIdeal.comap e.symm) I

theorem RingEquiv.mapTwoSidedIdeal_symm E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : NonUnitalNonAssocRing R] [inst_1 : NonUnitalNonAssocRing S] (e : R ≃+* S),
  e.mapTwoSidedIdeal.symm = e.symm.mapTwoSidedIdeal

theorem TwoSidedIdeal.comap_comap E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : NonAssocRing R] [inst_1 : NonAssocRing S]
  [inst_2 : NonAssocRing T] (I : TwoSidedIdeal T) (f : R →+* S) (g : S →+* T),
  (TwoSidedIdeal.comap f) ((TwoSidedIdeal.comap g) I) = (TwoSidedIdeal.comap (g.comp f)) I

theorem TwoSidedIdeal.mem_span_iff_mem_addSubgroup_closure_absorbing E0 #

∀ {R : Type u_1} [inst : NonUnitalRing R] {s : Set R},
  (∀ (x y : R), y ∈ s → x * y ∈ s) →
    (∀ (y x : R), y ∈ s → y * x ∈ s) → ∀ {z : R}, z ∈ TwoSidedIdeal.span s ↔ z ∈ AddSubgroup.closure s

If s : Set R is absorbing under multiplication, then its TwoSidedIdeal.span coincides with its AddSubgroup.closure, as sets.

theorem TwoSidedIdeal.set_mul_subset E1 #

∀ {R : Type u_1} [inst : NonUnitalRing R] {s : Set R} {I : TwoSidedIdeal R}, s ⊆ ↑I → ∀ (t : Set R), t * s ⊆ ↑I

theorem TwoSidedIdeal.subset_mul_set E1 #

∀ {R : Type u_1} [inst : NonUnitalRing R] {s : Set R} {I : TwoSidedIdeal R}, s ⊆ ↑I → ∀ (t : Set R), s * t ⊆ ↑I

theorem TwoSidedIdeal.mem_span_iff_mem_addSubgroup_closure_nonunital E0 #

∀ {R : Type u_1} [inst : NonUnitalRing R] {s : Set R} {z : R},
  z ∈ TwoSidedIdeal.span s ↔ z ∈ AddSubgroup.closure (s ∪ s * Set.univ ∪ Set.univ * s ∪ Set.univ * s * Set.univ)

theorem TwoSidedIdeal.mem_span_iff_mem_addSubgroup_closure E0 #

∀ {R : Type u_1} [inst : Ring R] {s : Set R} {z : R},
  z ∈ TwoSidedIdeal.span s ↔ z ∈ AddSubgroup.closure (Set.univ * s * Set.univ)

instance TwoSidedIdeal.instSMulSubtypeMem E0 #

{R : Type u_1} → [inst : Ring R] → (I : TwoSidedIdeal R) → SMul R ↥I

instance TwoSidedIdeal.instSMulMulOppositeSubtypeMem E0 #

{R : Type u_1} → [inst : Ring R] → (I : TwoSidedIdeal R) → SMul Rᵐᵒᵖ ↥I

instance TwoSidedIdeal.leftModule E0 #

{R : Type u_1} → [inst : Ring R] → (I : TwoSidedIdeal R) → Module R ↥I

theorem TwoSidedIdeal.coe_smul E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R) {r : R} {x : ↥I}, r • ↑x = r * ↑x

instance TwoSidedIdeal.rightModule E0 #

{R : Type u_1} → [inst : Ring R] → (I : TwoSidedIdeal R) → Module Rᵐᵒᵖ ↥I

theorem TwoSidedIdeal.coe_mop_smul E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R) {r : Rᵐᵒᵖ} {x : ↥I}, r • ↑x = ↑x * MulOpposite.unop r

instance TwoSidedIdeal.instSMulCommClassMulOppositeSubtypeMem E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), SMulCommClass R Rᵐᵒᵖ ↥I

def TwoSidedIdeal.subtype E1 #

{R : Type u_1} → [inst : Ring R] → (I : TwoSidedIdeal R) → ↥I →ₗ[R] R

For any I : RingCon R, when we view it as an ideal, I.subtype is the injective R-linear map I → R.

theorem TwoSidedIdeal.subtype_apply E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R) (x : ↥I), I.subtype x = ↑x

theorem TwoSidedIdeal.subtype_injective E1 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), Function.Injective ⇑I.subtype

theorem TwoSidedIdeal.coe_subtype E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), ⇑I.subtype = Subtype.val

def TwoSidedIdeal.subtypeMop E1 #

{R : Type u_1} → [inst : Ring R] → (I : TwoSidedIdeal R) → ↥I →ₗ[Rᵐᵒᵖ] Rᵐᵒᵖ

For any RingCon R, when we view it as an ideal in Rᵒᵖ, subtype is the injective Rᵐᵒᵖ-linear map I → Rᵐᵒᵖ.

theorem TwoSidedIdeal.subtypeMop_apply E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R) (x : ↥I), I.subtypeMop x = MulOpposite.op ↑x

theorem TwoSidedIdeal.subtypeMop_injective E1 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), Function.Injective ⇑I.subtypeMop

def TwoSidedIdeal.fromIdeal E1 #

{R : Type u_1} → [inst : Ring R] → Ideal R →o TwoSidedIdeal R

Given an ideal I, span I is the smallest two-sided ideal containing I.

theorem TwoSidedIdeal.mem_fromIdeal E0 #

∀ {R : Type u_1} [inst : Ring R] {I : Ideal R} {x : R}, x ∈ TwoSidedIdeal.fromIdeal I ↔ x ∈ TwoSidedIdeal.span ↑I

def TwoSidedIdeal.asIdeal E1 #

{R : Type u_1} → [inst : Ring R] → TwoSidedIdeal R →o Ideal R

Every two-sided ideal is also a left ideal.

theorem TwoSidedIdeal.mem_asIdeal E0 #

∀ {R : Type u_1} [inst : Ring R] {I : TwoSidedIdeal R} {x : R}, x ∈ TwoSidedIdeal.asIdeal I ↔ x ∈ I

theorem TwoSidedIdeal.gc E1 #

∀ {R : Type u_1} [inst : Ring R], GaloisConnection ⇑TwoSidedIdeal.fromIdeal ⇑TwoSidedIdeal.asIdeal

theorem TwoSidedIdeal.coe_asIdeal E0 #

∀ {R : Type u_1} [inst : Ring R] {I : TwoSidedIdeal R}, ↑(TwoSidedIdeal.asIdeal I) = ↑I

theorem TwoSidedIdeal.bot_asIdeal E0 #

∀ {R : Type u_1} [inst : Ring R], TwoSidedIdeal.asIdeal ⊥ = ⊥

theorem TwoSidedIdeal.top_asIdeal E0 #

∀ {R : Type u_1} [inst : Ring R], TwoSidedIdeal.asIdeal ⊤ = ⊤

instance TwoSidedIdeal.instIsTwoSidedCoeOrderHomIdealAsIdeal E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), (TwoSidedIdeal.asIdeal I).IsTwoSided

def TwoSidedIdeal.asIdealOpposite E1 #

{R : Type u_1} → [inst : Ring R] → TwoSidedIdeal R →o Ideal Rᵐᵒᵖ

Every two-sided ideal is also a right ideal.

theorem TwoSidedIdeal.mem_asIdealOpposite E0 #

∀ {R : Type u_1} [inst : Ring R] {I : TwoSidedIdeal R} {x : Rᵐᵒᵖ},
  x ∈ TwoSidedIdeal.asIdealOpposite I ↔ MulOpposite.unop x ∈ I

def TwoSidedIdeal.orderIsoIdeal E1 #

{R : Type u_1} → [inst : CommRing R] → TwoSidedIdeal R ≃o Ideal R

When the ring is commutative, two-sided ideals are exactly the same as left ideals.

def Ideal.toTwoSided E1 #

{R : Type u_1} → [inst : Ring R] → (I : Ideal R) → [I.IsTwoSided] → TwoSidedIdeal R

Bundle an Ideal that is already two-sided as a TwoSidedIdeal.

theorem Ideal.mem_toTwoSided E0 #

∀ {R : Type u_1} [inst : Ring R] {I : Ideal R} [inst_1 : I.IsTwoSided] {x : R}, x ∈ I.toTwoSided ↔ x ∈ I

theorem Ideal.coe_toTwoSided E0 #

∀ {R : Type u_1} [inst : Ring R] (I : Ideal R) [inst_1 : I.IsTwoSided], ↑I.toTwoSided = ↑I

theorem Ideal.toTwoSided_asIdeal E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), (TwoSidedIdeal.asIdeal I).toTwoSided = I

theorem Ideal.asIdeal_toTwoSided E0 #

∀ {R : Type u_1} [inst : Ring R] (I : Ideal R) [inst_1 : I.IsTwoSided], TwoSidedIdeal.asIdeal I.toTwoSided = I

instance Ideal.instCanLiftTwoSidedIdealCoeOrderHomAsIdealIsTwoSided E0 #

∀ {R : Type u_1} [inst : Ring R], CanLift (Ideal R) (TwoSidedIdeal R) ⇑TwoSidedIdeal.asIdeal fun x ↦ x.IsTwoSided

def TwoSidedIdeal.orderIsoIsTwoSided E1 #

{R : Type u_1} → [inst : Ring R] → TwoSidedIdeal R ≃o { I // I.IsTwoSided }

A two-sided ideal is simply a left ideal that is two-sided.

theorem TwoSidedIdeal.orderIsoIsTwoSided_symm_apply E0 #

∀ {R : Type u_1} [inst : Ring R] (I : { I // I.IsTwoSided }),
  (RelIso.symm TwoSidedIdeal.orderIsoIsTwoSided) I =
    have this := ⋯;
    (↑I).toTwoSided

theorem TwoSidedIdeal.orderIsoIsTwoSided_apply_coe E0 #

∀ {R : Type u_1} [inst : Ring R] (I : TwoSidedIdeal R), ↑(TwoSidedIdeal.orderIsoIsTwoSided I) = TwoSidedIdeal.asIdeal I