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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Algebra.Subalgebra.Lattice

157 declarations. Mathlib docs · Source

theorem Subalgebra.mk.congr_simp E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (toSubsemiring toSubsemiring_1 : Subsemiring A) (e_toSubsemiring : toSubsemiring = toSubsemiring_1)
  (algebraMap_mem' : ∀ (r : R), (algebraMap R A) r ∈ toSubsemiring.carrier),
  { toSubsemiring := toSubsemiring, algebraMap_mem' := algebraMap_mem' } =
    { toSubsemiring := toSubsemiring_1, algebraMap_mem' := ⋯ }

def Algebra.adjoin E1 #

(R : Type u) →
  {A : Type v} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Set A → Subalgebra R A

The minimal subalgebra that includes s.

theorem Algebra.adjoin_toSubsemiring E1 #

∀ (R : Type u) {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A),
  (Algebra.adjoin R s).toSubsemiring = Subsemiring.closure (Set.range ⇑(algebraMap R A) ∪ s)

theorem Algebra.gc E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  GaloisConnection (Algebra.adjoin R) SetLike.coe

def Algebra.gi E1 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → GaloisInsertion (Algebra.adjoin R) SetLike.coe

Galois insertion between adjoin and coe.

instance Algebra.instCompleteLatticeSubalgebra E0 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → CompleteLattice (Subalgebra R A)

instance Algebra.instSubtypeMemSubalgebraMin E0 #

{R : Type u} →
  [inst : CommSemiring R] →
    {C : Type u_1} →
      [inst_1 : CommSemiring C] → [inst_2 : Algebra R C] → (S₁ S₂ : Subalgebra R C) → Algebra ↥(S₁ ⊓ S₂) ↥S₁

instance Algebra.instSubtypeMemSubalgebraMin_1 E0 #

{R : Type u} →
  [inst : CommSemiring R] →
    {C : Type u_1} →
      [inst_1 : CommSemiring C] → [inst_2 : Algebra R C] → (S₁ S₂ : Subalgebra R C) → Algebra ↥(S₁ ⊓ S₂) ↥S₂

theorem Algebra.sup_def E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S T : Subalgebra R A),
  S ⊔ T = Algebra.adjoin R (↑S ∪ ↑T)

theorem Algebra.sSup_def E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (S : Set (Subalgebra R A)), sSup S = Algebra.adjoin R (⋃₀ (SetLike.coe '' S))

theorem Algebra.coe_top E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], ↑⊤ = Set.univ

theorem Algebra.mem_top E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {x : A}, x ∈ ⊤

theorem Algebra.top_toSubmodule E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Subalgebra.toSubmodule ⊤ = ⊤

theorem Algebra.top_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], ⊤.toSubsemiring = ⊤

theorem Algebra.top_toSubring E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A], ⊤.toSubring = ⊤

theorem Algebra.toSubmodule_eq_top E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S : Subalgebra R A},
  Subalgebra.toSubmodule S = ⊤ ↔ S = ⊤

theorem Algebra.toSubsemiring_eq_top E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S : Subalgebra R A},
  S.toSubsemiring = ⊤ ↔ S = ⊤

theorem Algebra.toSubring_eq_top E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {S : Subalgebra R A},
  S.toSubring = ⊤ ↔ S = ⊤

theorem Algebra.mem_sup_left E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S T : Subalgebra R A}
  {x : A}, x ∈ S → x ∈ S ⊔ T

theorem Algebra.mem_sup_right E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S T : Subalgebra R A}
  {x : A}, x ∈ T → x ∈ S ⊔ T

theorem Algebra.mul_mem_sup E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S T : Subalgebra R A}
  {x y : A}, x ∈ S → y ∈ T → x * y ∈ S ⊔ T

theorem Algebra.map_sup E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (S T : Subalgebra R A),
  Subalgebra.map f (S ⊔ T) = Subalgebra.map f S ⊔ Subalgebra.map f T

theorem Algebra.map_inf E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B),
  Function.Injective ⇑f → ∀ (S T : Subalgebra R A), Subalgebra.map f (S ⊓ T) = Subalgebra.map f S ⊓ Subalgebra.map f T

theorem Algebra.coe_inf E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S T : Subalgebra R A),
  ↑(S ⊓ T) = ↑S ∩ ↑T

theorem Algebra.mem_inf E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S T : Subalgebra R A}
  {x : A}, x ∈ S ⊓ T ↔ x ∈ S ∧ x ∈ T

theorem Algebra.inf_toSubmodule E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S T : Subalgebra R A),
  Subalgebra.toSubmodule (S ⊓ T) = Subalgebra.toSubmodule S ⊓ Subalgebra.toSubmodule T

theorem Algebra.inf_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S T : Subalgebra R A),
  (S ⊓ T).toSubsemiring = S.toSubsemiring ⊓ T.toSubsemiring

theorem Algebra.sup_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S T : Subalgebra R A),
  (S ⊔ T).toSubsemiring = S.toSubsemiring ⊔ T.toSubsemiring

theorem Algebra.coe_sInf E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (S : Set (Subalgebra R A)), ↑(sInf S) = ⋂ s ∈ S, ↑s

theorem Algebra.mem_sInf E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  {S : Set (Subalgebra R A)} {x : A}, x ∈ sInf S ↔ ∀ p ∈ S, x ∈ p

theorem Algebra.sInf_toSubmodule E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (S : Set (Subalgebra R A)), Subalgebra.toSubmodule (sInf S) = sInf (⇑Subalgebra.toSubmodule '' S)

theorem Algebra.sInf_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (S : Set (Subalgebra R A)), (sInf S).toSubsemiring = sInf (Subalgebra.toSubsemiring '' S)

theorem Algebra.sSup_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (S : Set (Subalgebra R A)), S.Nonempty → (sSup S).toSubsemiring = sSup (Subalgebra.toSubsemiring '' S)

theorem Algebra.coe_iInf E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  {S : ι → Subalgebra R A}, ↑(⨅ i, S i) = ⋂ i, ↑(S i)

theorem Algebra.mem_iInf E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  {S : ι → Subalgebra R A} {x : A}, x ∈ ⨅ i, S i ↔ ∀ (i : ι), x ∈ S i

theorem Algebra.map_iInf E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {ι : Sort u_1} [Nonempty ι] (f : A →ₐ[R] B),
  Function.Injective ⇑f → ∀ (s : ι → Subalgebra R A), Subalgebra.map f (iInf s) = ⨅ i, Subalgebra.map f (s i)

theorem Algebra.iInf_toSubmodule E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  (S : ι → Subalgebra R A), Subalgebra.toSubmodule (⨅ i, S i) = ⨅ i, Subalgebra.toSubmodule (S i)

theorem Algebra.iInf_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  (S : ι → Subalgebra R A), (iInf S).toSubsemiring = ⨅ i, (S i).toSubsemiring

theorem Algebra.iSup_toSubsemiring E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  [Nonempty ι] (S : ι → Subalgebra R A), (iSup S).toSubsemiring = ⨆ i, (S i).toSubsemiring

theorem Algebra.mem_iSup_of_mem E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  {S : ι → Subalgebra R A} (i : ι) {x : A}, x ∈ S i → x ∈ iSup S

theorem Algebra.iSup_induction E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  (S : ι → Subalgebra R A) {motive : A → Prop} {x : A},
  x ∈ ⨆ i, S i →
    (∀ (i : ι), ∀ a ∈ S i, motive a) →
      (∀ (a b : A), motive a → motive b → motive (a + b)) →
        (∀ (a b : A), motive a → motive b → motive (a * b)) → (∀ (r : R), motive ((algebraMap R A) r)) → motive x

theorem Algebra.iSup_induction' E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {ι : Sort u_1}
  (S : ι → Subalgebra R A) {motive : (x : A) → x ∈ ⨆ i, S i → Prop} {x : A} (mem : x ∈ ⨆ i, S i),
  (∀ (i : ι) (x : A) (hx : x ∈ S i), motive x ⋯) →
    (∀ (x y : A) (hx : x ∈ ⨆ i, S i) (hy : y ∈ ⨆ i, S i), motive x hx → motive y hy → motive (x + y) ⋯) →
      (∀ (x y : A) (hx : x ∈ ⨆ i, S i) (hy : y ∈ ⨆ i, S i), motive x hx → motive y hy → motive (x * y) ⋯) →
        (∀ (r : R), motive ((algebraMap R A) r) ⋯) → motive x mem

A dependent version of Subalgebra.iSup_induction.

instance Algebra.instInhabitedSubalgebra E0 #

{R : Type u} →
  {A : Type v} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Inhabited (Subalgebra R A)

theorem Algebra.mem_bot E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {x : A},
  x ∈ ⊥ ↔ x ∈ Set.range ⇑(algebraMap R A)

theorem Algebra.toSubmodule_bot E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Subalgebra.toSubmodule ⊥ = 1

TODO: change proof to rfl when fixing https://github.com/leanprover-community/mathlib4/issues/18110.

theorem Algebra.coe_bot E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  ↑⊥ = Set.range ⇑(algebraMap R A)

theorem Algebra.toSubring_bot E0 #

∀ (A : Type u_1) [inst : CommRing A] (R : Subring A), ⊥.toSubring = R

theorem AlgHom.range_eq_top E1 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B), f.range = ⊤ ↔ Function.Surjective ⇑f

theorem Algebra.range_ofId E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  (Algebra.ofId R A).range = ⊥

theorem Algebra.range_id E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  (AlgHom.id R A).range = ⊤

theorem Algebra.map_top E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B), Subalgebra.map f ⊤ = f.range

theorem Algebra.map_bot E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B), Subalgebra.map f ⊥ = ⊥

theorem Algebra.comap_top E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B), Subalgebra.comap f ⊤ = ⊤

def Algebra.toTop E1 #

{R : Type u} → {A : Type v} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → A →ₐ[R] ↥⊤

AlgHom to ⊤ : Subalgebra R A.

theorem Algebra.surjective_algebraMap_iff E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Function.Surjective ⇑(algebraMap R A) ↔ ⊤ = ⊥

theorem Algebra.bijective_algebraMap_iff E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Field R] [inst_1 : Semiring A] [Nontrivial A] [inst_3 : Algebra R A],
  Function.Bijective ⇑(algebraMap R A) ↔ ⊤ = ⊥

def Algebra.botEquivOfInjective E1 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Function.Injective ⇑(algebraMap R A) → ↥⊥ ≃ₐ[R] R

The bottom subalgebra is isomorphic to the base ring.

def Algebra.botEquiv E1 #

(F : Type u_1) →
  (R : Type u_2) → [inst : Field F] → [inst_1 : Semiring R] → [Nontrivial R] → [inst_3 : Algebra F R] → ↥⊥ ≃ₐ[F] F

The bottom subalgebra is isomorphic to the field.

theorem Algebra.botEquiv_symm_apply E0 #

∀ (F : Type u_1) (R : Type u_2) [inst : Field F] [inst_1 : Semiring R] [inst_2 : Nontrivial R] [inst_3 : Algebra F R]
  (a : F), (Algebra.botEquiv F R).symm a = (algebraMap F ↥⊥) a

def Subalgebra.topEquiv E1 #

{R : Type u} → {A : Type v} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → ↥⊤ ≃ₐ[R] A

The top subalgebra is isomorphic to the algebra.

This is the algebra version of Submodule.topEquiv.

theorem Subalgebra.topEquiv_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : ↥⊤),
  Subalgebra.topEquiv a = ↑a

theorem Subalgebra.topEquiv_symm_apply_coe E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A),
  ↑(Subalgebra.topEquiv.symm a) = a

instance AlgHom.subsingleton E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] [Subsingleton (Subalgebra R A)], Subsingleton (A →ₐ[R] B)

instance AlgEquiv.subsingleton_left E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] [Subsingleton (Subalgebra R A)], Subsingleton (A ≃ₐ[R] B)

instance AlgEquiv.subsingleton_right E0 #

∀ {R : Type u} {A : Type v} {B : Type w} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] [Subsingleton (Subalgebra R B)], Subsingleton (A ≃ₐ[R] B)

instance Subalgebra.instUnique E0 #

{R : Type u} → [inst : CommSemiring R] → Unique (Subalgebra R R)

theorem Subalgebra.center_eq_top E0 #

∀ (R : Type u) [inst : CommSemiring R] (A : Type u_1) [inst_1 : CommSemiring A] [inst_2 : Algebra R A],
  Subalgebra.center R A = ⊤

theorem Subalgebra.centralizer_eq_top_iff_subset E0 #

∀ (R : Type u) {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  Subalgebra.centralizer R s = ⊤ ↔ s ⊆ ↑(Subalgebra.center R A)

theorem AlgHom.equalizer_eq_top E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {φ ψ : A →ₐ[R] B}, φ.equalizer ψ = ⊤ ↔ φ = ψ

theorem AlgHom.equalizer_same E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (φ : A →ₐ[R] B), φ.equalizer φ = ⊤

theorem AlgHom.eqOn_sup E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {F : Type u_4} [inst_5 : FunLike F A B] [AlgHomClass F R A B] {φ ψ : F}
  {S T : Subalgebra R A}, Set.EqOn ⇑φ ⇑ψ ↑S → Set.EqOn ⇑φ ⇑ψ ↑T → Set.EqOn ⇑φ ⇑ψ ↑(S ⊔ T)

theorem AlgHom.ext_on_codisjoint E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {F : Type u_4} [inst_5 : FunLike F A B] [AlgHomClass F R A B] {φ ψ : F}
  {S T : Subalgebra R A}, Codisjoint S T → Set.EqOn ⇑φ ⇑ψ ↑S → Set.EqOn ⇑φ ⇑ψ ↑T → φ = ψ

theorem Subalgebra.map_comap_eq E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (S : Subalgebra R B),
  Subalgebra.map f (Subalgebra.comap f S) = S ⊓ f.range

theorem Subalgebra.map_comap_eq_self E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {f : A →ₐ[R] B} {S : Subalgebra R B},
  S ≤ f.range → Subalgebra.map f (Subalgebra.comap f S) = S

theorem Subalgebra.map_comap_eq_self_of_surjective E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] {f : A →ₐ[R] B},
  Function.Surjective ⇑f → ∀ (S : Subalgebra R B), Subalgebra.map f (Subalgebra.comap f S) = S

def Subalgebra.saturation E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : CommSemiring S] →
        [inst_2 : Algebra R S] → (s : Subalgebra R S) → (M : Submonoid S) → M ≤ s.toSubmonoid → Subalgebra R S

The saturation of a subalgebra s with respect to a submonoid M is the smallest subalgebra closed under division by s.

theorem Subalgebra.mem_saturation_iff E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {s : Subalgebra R S} {M : Submonoid S} {H : M ≤ s.toSubmonoid} {x : S}, x ∈ s.saturation M H ↔ ∃ m ∈ M, m • x ∈ s

theorem Subalgebra.le_saturation E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {s : Subalgebra R S} {M : Submonoid S} {H : M ≤ s.toSubmonoid}, s ≤ s.saturation M H

theorem Subalgebra.saturation_saturation E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {s : Subalgebra R S} {M : Submonoid S} {H : M ≤ s.toSubmonoid}, (s.saturation M H).saturation M ⋯ = s.saturation M H

theorem Subalgebra.mem_saturation_of_mul_mem_left E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {s : Subalgebra R S} {M : Submonoid S} {H : M ≤ s.toSubmonoid} {x y : S},
  x * y ∈ s.saturation M H → x ∈ M → y ∈ s.saturation M H

theorem Subalgebra.mem_saturation_of_mul_mem_right E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {s : Subalgebra R S} {M : Submonoid S} {H : M ≤ s.toSubmonoid} {x y : S},
  x * y ∈ s.saturation M H → y ∈ M → x ∈ s.saturation M H

def Algebra.subalgebra_adjoin E1 #

Lean.TrailingParserDescr

If x₁ x₂ ... xₙ : A then R[x₁,x₂,...,xₙ] is the Subalgebra R A generated by these elements.

def Algebra.delabAdjoinNotation E1 #

Lean.PrettyPrinter.Delaborator.Delab

Supporting function for the R[x₁,x₂,...,xₙ] adjunction notation.

theorem Algebra.subset_adjoin E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  s ⊆ ↑(Algebra.adjoin R s)

theorem Algebra.mem_adjoin_of_mem E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A} {x : A},
  x ∈ s → x ∈ Algebra.adjoin R s

class Algebra.CoeAdjoinAux E0 #

{α : Type u_1} → α → Set α → Prop

Supporting class for coercions xₖ : R[x₁, ..., xₙ].

theorem Algebra.CoeAdjoinAux.mem E1 #

∀ {α : Type u_1} {x : α} {s : Set α} [self : Algebra.CoeAdjoinAux x s], x ∈ s

ctor Algebra.CoeAdjoinAux.mk E0 #

∀ {α : Type u_1} {x : α} {s : Set α}, x ∈ s → Algebra.CoeAdjoinAux x s

theorem Algebra.instCoeAdjoinAuxSingletonSet E2 #

∀ {α : Type u_1} (x : α), Algebra.CoeAdjoinAux x {x}

theorem Algebra.instCoeAdjoinAuxInsertSet E1 #

∀ {α : Type u_1} (x : α) (s : Set α), Algebra.CoeAdjoinAux x (insert x s)

theorem Algebra.instCoeAdjoinAuxInsertSet_1 E1 #

∀ {α : Type u_1} (x y : α) (s : Set α) [Algebra.CoeAdjoinAux x s], Algebra.CoeAdjoinAux x (insert y s)

def Algebra.instCoeDepSubtypeMemSubalgebraAdjoinOfCoeAdjoinAux E0 #

{A : Type u_2} →
  {B : Type u_3} →
    [inst : CommSemiring A] →
      [inst_1 : Semiring B] →
        [inst_2 : Algebra A B] → (s : Set B) → (x : B) → [Algebra.CoeAdjoinAux x s] → CoeDep B x ↥(Algebra.adjoin A s)

Enables notation xₖ : R[x₁, ..., xₙ] instead of (⟨xₖ, "membership proof"⟩ : R[x₁, ..., xₙ]).

theorem Algebra.adjoin_le E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A}
  {S : Subalgebra R A}, s ⊆ ↑S → Algebra.adjoin R s ≤ S

theorem Algebra.adjoin_singleton_le E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S : Subalgebra R A}
  {a : A}, a ∈ S → R[a] ≤ S

theorem Algebra.adjoin_eq_sInf E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  Algebra.adjoin R s = sInf {p | s ⊆ ↑p}

theorem Algebra.adjoin_le_iff E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A}
  {S : Subalgebra R A}, Algebra.adjoin R s ≤ S ↔ s ⊆ ↑S

theorem Algebra.adjoin_mono E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s t : Set A},
  s ⊆ t → Algebra.adjoin R s ≤ Algebra.adjoin R t

theorem Algebra.adjoin_eq_of_le E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A}
  (S : Subalgebra R A), s ⊆ ↑S → S ≤ Algebra.adjoin R s → Algebra.adjoin R s = S

theorem Algebra.adjoin_eq E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S : Subalgebra R A),
  Algebra.adjoin R ↑S = S

theorem Algebra.adjoin_iUnion E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {α : Type u_2}
  (s : α → Set A), Algebra.adjoin R (Set.iUnion s) = ⨆ i, Algebra.adjoin R (s i)

theorem Algebra.adjoin_attach_biUnion E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : DecidableEq A] {α : Type u_2} {s : Finset α} (f : ↥s → Finset A),
  Algebra.adjoin R ↑(s.attach.biUnion f) = ⨆ x, Algebra.adjoin R ↑(f x)

theorem Algebra.adjoin_induction E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A}
  {p : (x : A) → x ∈ Algebra.adjoin R s → Prop},
  (∀ (x : A) (hx : x ∈ s), p x ⋯) →
    (∀ (r : R), p ((algebraMap R A) r) ⋯) →
      (∀ (x y : A) (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s), p x hx → p y hy → p (x + y) ⋯) →
        (∀ (x y : A) (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s), p x hx → p y hy → p (x * y) ⋯) →
          ∀ {x : A} (hx : x ∈ Algebra.adjoin R s), p x hx

theorem Algebra.adjoin_induction₂ E2 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A}
  {p : (x y : A) → x ∈ Algebra.adjoin R s → y ∈ Algebra.adjoin R s → Prop},
  (∀ (x y : A) (hx : x ∈ s) (hy : y ∈ s), p x y ⋯ ⋯) →
    (∀ (r₁ r₂ : R), p ((algebraMap R A) r₁) ((algebraMap R A) r₂) ⋯ ⋯) →
      (∀ (r : R) (x : A) (hx : x ∈ s), p ((algebraMap R A) r) x ⋯ ⋯) →
        (∀ (r : R) (x : A) (hx : x ∈ s), p x ((algebraMap R A) r) ⋯ ⋯) →
          (∀ (x y z : A) (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s) (hz : z ∈ Algebra.adjoin R s),
              p x z hx hz → p y z hy hz → p (x + y) z ⋯ hz) →
            (∀ (x y z : A) (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s) (hz : z ∈ Algebra.adjoin R s),
                p x y hx hy → p x z hx hz → p x (y + z) hx ⋯) →
              (∀ (x y z : A) (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s) (hz : z ∈ Algebra.adjoin R s),
                  p x z hx hz → p y z hy hz → p (x * y) z ⋯ hz) →
                (∀ (x y z : A) (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s)
                    (hz : z ∈ Algebra.adjoin R s), p x y hx hy → p x z hx hz → p x (y * z) hx ⋯) →
                  ∀ {x y : A} (hx : x ∈ Algebra.adjoin R s) (hy : y ∈ Algebra.adjoin R s), p x y hx hy

Induction principle for the algebra generated by a set s: show that p x y holds for any x y ∈ adjoin R s given that it holds for x y ∈ s and that it satisfies a number of natural properties.

theorem Algebra.adjoin_adjoin_coe_preimage E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  Algebra.adjoin R (Subtype.val ⁻¹' s) = ⊤

theorem Algebra.adjoin_union E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s t : Set A),
  Algebra.adjoin R (s ∪ t) = Algebra.adjoin R s ⊔ Algebra.adjoin R t

theorem Algebra.adjoin_empty E0 #

∀ (R : Type uR) (A : Type uA) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], R[] = ⊥

theorem Algebra.adjoin_univ E0 #

∀ (R : Type uR) (A : Type uA) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Algebra.adjoin R Set.univ = ⊤

theorem Algebra.adjoin_singleton_algebraMap E0 #

∀ {R : Type uR} (A : Type uA) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : R),
  R[(algebraMap R A) x] = ⊥

theorem Algebra.adjoin_singleton_natCast E0 #

∀ (R : Type uR) (A : Type uA) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (n : ℕ), R[↑n] = ⊥

theorem Algebra.adjoin_singleton_zero E0 #

∀ (R : Type uR) (A : Type uA) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], R[0] = ⊥

theorem Algebra.adjoin_singleton_one E0 #

∀ (R : Type uR) (A : Type uA) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A], R[1] = ⊥

theorem Algebra.adjoin_insert_algebraMap E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : R) (s : Set A),
  Algebra.adjoin R (insert ((algebraMap R A) x) s) = Algebra.adjoin R s

theorem Algebra.adjoin_insert_natCast E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (n : ℕ) (s : Set A),
  Algebra.adjoin R (insert (↑n) s) = Algebra.adjoin R s

theorem Algebra.adjoin_insert_zero E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A),
  Algebra.adjoin R (insert 0 s) = Algebra.adjoin R s

theorem Algebra.adjoin_insert_one E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A),
  Algebra.adjoin R (insert 1 s) = Algebra.adjoin R s

theorem Algebra.adjoin_eq_span E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A),
  Subalgebra.toSubmodule (Algebra.adjoin R s) = Submodule.span R ↑(Submonoid.closure s)

theorem Algebra.span_le_adjoin E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A),
  Submodule.span R s ≤ Subalgebra.toSubmodule (Algebra.adjoin R s)

theorem Algebra.adjoin_toSubmodule_le E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A}
  {t : Submodule R A}, Subalgebra.toSubmodule (Algebra.adjoin R s) ≤ t ↔ ↑(Submonoid.closure s) ⊆ ↑t

theorem Algebra.adjoin_eq_span_of_subset E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  ↑(Submonoid.closure s) ⊆ ↑(Submodule.span R s) → Subalgebra.toSubmodule (Algebra.adjoin R s) = Submodule.span R s

theorem Algebra.adjoin_span E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  Algebra.adjoin R ↑(Submodule.span R s) = Algebra.adjoin R s

theorem Algebra.adjoin_image E1 #

∀ (R : Type uR) {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (s : Set A),
  Algebra.adjoin R (⇑f '' s) = Subalgebra.map f (Algebra.adjoin R s)

theorem Algebra.adjoin_insert_adjoin E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A) (x : A),
  Algebra.adjoin R (insert x ↑(Algebra.adjoin R s)) = Algebra.adjoin R (insert x s)

theorem Algebra.mem_adjoin_of_map_mul E0 #

∀ (R : Type uR) {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {s : Set A} {x : A} {f : A →ₗ[R] B},
  (∀ (a₁ a₂ : A), f (a₁ * a₂) = f a₁ * f a₂) → x ∈ Algebra.adjoin R s → f x ∈ Algebra.adjoin R (⇑f '' (s ∪ {1}))

theorem Algebra.adjoin_le_centralizer_centralizer E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (s : Set A),
  Algebra.adjoin R s ≤ Subalgebra.centralizer R ↑(Subalgebra.centralizer R s)

theorem Algebra.isMulCommutative_adjoin E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {s : Set A},
  s.Pairwise Commute → IsMulCommutative ↥(Algebra.adjoin R s)

If all elements of s : Set A commute pairwise, then adjoin R s is commutative.

instance Algebra.isMulCommutative_adjoin_singleton E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A),
  IsMulCommutative ↥R[x]

instance Algebra.instIsMulCommutative_adjoin E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {S : Type u_2}
  [inst_3 : SetLike S A] [inst_4 : MulMemClass S A] (s : S) [IsMulCommutative ↥s],
  IsMulCommutative ↥(Algebra.adjoin R ↑s)

theorem Algebra.commute_of_mem_adjoin_of_forall_mem_commute E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {a b : A}
  {s : Set A}, b ∈ Algebra.adjoin R s → (∀ b ∈ s, Commute a b) → Commute a b

theorem Algebra.commute_of_mem_adjoin_singleton_of_commute E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {a b c : A},
  c ∈ R[b] → Commute a b → Commute a c

theorem Algebra.commute_of_mem_adjoin_self E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {a b : A},
  b ∈ R[a] → Commute a b

theorem Algebra.self_mem_adjoin_singleton E0 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A), x ∈ R[x]

theorem Algebra.adjoin_union_coe_submodule E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Algebra R A] (s t : Set A),
  Subalgebra.toSubmodule (Algebra.adjoin R (s ∪ t)) =
    Subalgebra.toSubmodule (Algebra.adjoin R s) * Subalgebra.toSubmodule (Algebra.adjoin R t)

theorem Algebra.adjoin_singleton_intCast E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] (n : ℤ), R[↑n] = ⊥

theorem Algebra.adjoin_insert_intCast E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] (n : ℤ) (s : Set A),
  Algebra.adjoin R (insert (↑n) s) = Algebra.adjoin R s

theorem Algebra.adjoin_eq_ring_closure E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] (s : Set A),
  (Algebra.adjoin R s).toSubring = Subring.closure (Set.range ⇑(algebraMap R A) ∪ s)

theorem Algebra.mem_adjoin_iff E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {s : Set A} {x : A},
  x ∈ Algebra.adjoin R s ↔ x ∈ Subring.closure (Set.range ⇑(algebraMap R A) ∪ s)

theorem AlgHom.map_adjoin E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) (s : Set A),
  Subalgebra.map φ (Algebra.adjoin R s) = Algebra.adjoin R (⇑φ '' s)

theorem AlgHom.map_adjoin_singleton E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (e : A →ₐ[R] B) (x : A), Subalgebra.map e R[x] = R[e x]

theorem AlgHom.adjoin_le_equalizer E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] (φ₁ φ₂ : A →ₐ[R] B) {s : Set A},
  Set.EqOn (⇑φ₁) (⇑φ₂) s → Algebra.adjoin R s ≤ φ₁.equalizer φ₂

theorem AlgHom.ext_of_adjoin_eq_top E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {s : Set A},
  Algebra.adjoin R s = ⊤ → ∀ ⦃φ₁ φ₂ : A →ₐ[R] B⦄, Set.EqOn (⇑φ₁) (⇑φ₂) s → φ₁ = φ₂

theorem AlgHom.eqOn_adjoin_iff E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {φ ψ : A →ₐ[R] B} {s : Set A},
  Set.EqOn ⇑φ ⇑ψ ↑(Algebra.adjoin R s) ↔ Set.EqOn (⇑φ) (⇑ψ) s

Two algebra morphisms are equal on Algebra.span s iff they are equal on s.

theorem AlgHom.adjoin_ext E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {s : Set A} ⦃φ₁ φ₂ : ↥(Algebra.adjoin R s) →ₐ[R] B⦄,
  (∀ (x : A) (hx : x ∈ s), φ₁ ⟨x, ⋯⟩ = φ₂ ⟨x, ⋯⟩) → φ₁ = φ₂

theorem AlgHom.ext_of_eq_adjoin E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] {S : Subalgebra R A} {s : Set A} (hS : S = Algebra.adjoin R s)
  ⦃φ₁ φ₂ : ↥S →ₐ[R] B⦄, (∀ (x : A) (hx : x ∈ s), φ₁ ⟨x, ⋯⟩ = φ₂ ⟨x, ⋯⟩) → φ₁ = φ₂

theorem Algebra.forall_mem_adjoin_smul_eq_self_iff E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (S : Set A)
  {M : Type u_1} [inst_3 : Monoid M] [inst_4 : MulSemiringAction M A] [SMulCommClass M R A] (m : M),
  (∀ x ∈ Algebra.adjoin R S, m • x = x) ↔ ∀ x ∈ S, m • x = x

theorem Algebra.adjoin_nat E1 #

∀ {R : Type u_1} [inst : Semiring R] (s : Set R), Algebra.adjoin ℕ s = subalgebraOfSubsemiring (Subsemiring.closure s)

theorem Algebra.adjoin_int E1 #

∀ {R : Type u_1} [inst : Ring R] (s : Set R), Algebra.adjoin ℤ s = subalgebraOfSubring (Subring.closure s)

def Subsemiring.closureEquivAdjoinNat E1 #

{R : Type u_1} → [inst : Semiring R] → (s : Set R) → ↥(Subsemiring.closure s) ≃ₐ[ℕ] ↥(Algebra.adjoin ℕ s)

The ℕ-algebra equivalence between Subsemiring.closure s and Algebra.adjoin ℕ s given by the identity map.

def Subring.closureEquivAdjoinInt E1 #

{R : Type u_1} → [inst : Ring R] → (s : Set R) → ↥(Subring.closure s) ≃ₐ[ℤ] ↥(Algebra.adjoin ℤ s)

The ℤ-algebra equivalence between Subring.closure s and Algebra.adjoin ℤ s given by the identity map.

theorem Submonoid.adjoin_eq_span_of_eq_span E1 #

∀ (F : Type u_1) (E : Type u_2) {K : Type u_3} [inst : CommSemiring E] [inst_1 : Semiring K] [inst_2 : SMul F E]
  [inst_3 : Algebra E K] [inst_4 : Semiring F] [inst_5 : Module F K] [IsScalarTower F E K] (L : Submonoid K)
  {S : Set K}, ↑L = ↑(Submodule.span F S) → Subalgebra.toSubmodule (Algebra.adjoin E ↑L) = Submodule.span E S

If K / E / F is a ring extension tower, L is a submonoid of K / F which is generated by S as an F-module, then E[L] is generated by S as an E-module.

theorem Subalgebra.adjoin_eq_span_of_eq_span E1 #

∀ {F : Type u_1} (E : Type u_2) {K : Type u_3} [inst : CommSemiring E] [inst_1 : Semiring K] [inst_2 : SMul F E]
  [inst_3 : Algebra E K] [inst_4 : CommSemiring F] [inst_5 : Algebra F K] [IsScalarTower F E K] (L : Subalgebra F K)
  {S : Set K},
  Subalgebra.toSubmodule L = Submodule.span F S → Subalgebra.toSubmodule (Algebra.adjoin E ↑L) = Submodule.span E S

If K / E / F is a ring extension tower, L is a subalgebra of K / F which is generated by S as an F-module, then E[L] is generated by S as an E-module.

theorem NonUnitalAlgebra.adjoin_le_algebra_adjoin E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Ring A] [inst_2 : Algebra R A] (s : Set A),
  NonUnitalAlgebra.adjoin R s ≤ (Algebra.adjoin R s).toNonUnitalSubalgebra

theorem Algebra.adjoin_nonUnitalSubalgebra E1 #

∀ (R : Type uR) {A : Type uA} [inst : CommSemiring R] [inst_1 : Ring A] [inst_2 : Algebra R A] (s : Set A),
  Algebra.adjoin R ↑(NonUnitalAlgebra.adjoin R s) = Algebra.adjoin R s

def Subalgebra.toNonUnitalSubalgebraOrderEmbedding E1 #

{R : Type uR} →
  {A : Type uA} →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Subalgebra R A ↪o NonUnitalSubalgebra R A

The forgetful map from subalgebras to non-unital subalgebras, as an order embedding.

theorem Subalgebra.toNonUnitalSubalgebra_le_toNonUnitalSubalgebra E0 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  {S T : Subalgebra R A}, S.toNonUnitalSubalgebra ≤ T.toNonUnitalSubalgebra ↔ S ≤ T

theorem Subalgebra.toNonUnitalSubalgebra_mono E1 #

∀ {R : Type uR} {A : Type uA} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  {S T : Subalgebra R A}, S ≤ T → S.toNonUnitalSubalgebra ≤ T.toNonUnitalSubalgebra

Alias of the reverse direction of Subalgebra.toNonUnitalSubalgebra_le_toNonUnitalSubalgebra.

theorem Subalgebra.comap_map_eq E0 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Ring A] [inst_2 : Algebra R A]
  [inst_3 : Ring B] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (S : Subalgebra R A),
  Subalgebra.comap f (Subalgebra.map f S) = S ⊔ Algebra.adjoin R (⇑f ⁻¹' {0})

theorem Subalgebra.comap_map_eq_self E1 #

∀ {R : Type uR} {A : Type uA} {B : Type uB} [inst : CommSemiring R] [inst_1 : Ring A] [inst_2 : Algebra R A]
  [inst_3 : Ring B] [inst_4 : Algebra R B] {f : A →ₐ[R] B} {S : Subalgebra R A},
  ⇑f ⁻¹' {0} ⊆ ↑S → Subalgebra.comap f (Subalgebra.map f S) = S