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 / V10. Commutative algebra II: valuations, Dedekind domains, local algebra

Mathlib.RingTheory.LinearDisjoint

75 declarations. Mathlib docs · Source

Linearly disjoint subalgebras

This file contains basics about linearly disjoint subalgebras. We adapt the definitions in https://en.wikipedia.org/wiki/Linearly_disjoint. See the file Mathlib/LinearAlgebra/LinearDisjoint.lean for details.

Main definitions

  • Subalgebra.LinearDisjoint: two subalgebras are linearly disjoint, if they are linearly disjoint as submodules (Submodule.LinearDisjoint).

  • Subalgebra.LinearDisjoint.mulMap: if two subalgebras A and B of S / R are linearly disjoint, then there is A ⊗[R] B ≃ₐ[R] A ⊔ B induced by multiplication in S.

Main results

Equivalent characterization of linear disjointness

  • Subalgebra.LinearDisjoint.linearIndependent_left_of_flat: if A and B are linearly disjoint, and if B is a flat R-module, then for any family of R-linearly independent elements of A, they are also B-linearly independent.

  • Subalgebra.LinearDisjoint.of_basis_left_op: conversely, if a basis of A is also B-linearly independent, then A and B are linearly disjoint.

  • Subalgebra.LinearDisjoint.linearIndependent_right_of_flat: if A and B are linearly disjoint, and if A is a flat R-module, then for any family of R-linearly independent elements of B, they are also A-linearly independent.

  • Subalgebra.LinearDisjoint.of_basis_right: conversely, if a basis of B is also A-linearly independent, then A and B are linearly disjoint.

  • Subalgebra.LinearDisjoint.linearIndependent_mul_of_flat: if A and B are linearly disjoint, and if one of A and B is flat, then for any family of R-linearly independent elements { a_i } of A, and any family of R-linearly independent elements { b_j } of B, the family { a_i * b_j } in S is also R-linearly independent.

  • Subalgebra.LinearDisjoint.of_basis_mul: conversely, if { a_i } is an R-basis of A, if { b_j } is an R-basis of B, such that the family { a_i * b_j } in S is R-linearly independent, then A and B are linearly disjoint.

Equivalent characterization by IsDomain or IsField of tensor product

The following results are related to the equivalent characterizations in https://mathoverflow.net/questions/8324.

  • Subalgebra.LinearDisjoint.isDomain_of_injective, Subalgebra.LinearDisjoint.exists_field_of_isDomain_of_injective: under some flatness and injectivity conditions, if A and B are R-algebras, then A ⊗[R] B is a domain if and only if there exists an R-algebra which is a field that A and B embed into with linearly disjoint images.

  • Subalgebra.LinearDisjoint.of_isField, Subalgebra.LinearDisjoint.of_isField': if A ⊗[R] B is a field, then A and B are linearly disjoint, moreover, for any R-algebra S and injections of A and B into S, their images are linearly disjoint.

  • Algebra.TensorProduct.not_isField_of_transcendental, Algebra.TensorProduct.isAlgebraic_of_isField: if A and B are flat R-algebras, both of them are transcendental, then A ⊗[R] B cannot be a field, equivalently, if A ⊗[R] B is a field, then one of them is algebraic.

Other main results

  • Subalgebra.LinearDisjoint.symm_of_commute, Subalgebra.linearDisjoint_comm_of_commute: linear disjointness is symmetric under some commutative conditions.

  • Subalgebra.LinearDisjoint.map: linear disjointness is preserved by injective algebra homomorphisms.

  • Subalgebra.LinearDisjoint.bot_left, Subalgebra.LinearDisjoint.bot_right: the image of R in S is linearly disjoint with any other subalgebras.

  • Subalgebra.LinearDisjoint.sup_free_of_free: the compositum of two linearly disjoint subalgebras is a free module, if two subalgebras are also free modules.

  • Subalgebra.LinearDisjoint.rank_sup_of_free, Subalgebra.LinearDisjoint.finrank_sup_of_free: if subalgebras A and B are linearly disjoint and they are free modules, then the rank of A ⊔ B is equal to the product of the rank of A and B.

  • Subalgebra.LinearDisjoint.of_finrank_sup_of_free: conversely, if A and B are subalgebras which are free modules of finite rank, such that rank of A ⊔ B is equal to the product of the rank of A and B, then A and B are linearly disjoint.

  • Subalgebra.LinearDisjoint.adjoin_rank_eq_rank_left: Subalgebra.LinearDisjoint.adjoin_rank_eq_rank_right: if A and B are linearly disjoint, if A is free and B is flat (resp. B is free and A is flat), then [B[A] : B] = [A : R] (resp. [A[B] : A] = [B : R]). See also Subalgebra.adjoin_rank_le.

  • Subalgebra.LinearDisjoint.of_finrank_coprime_of_free: if the rank of A and B are coprime, and they satisfy some freeness condition, then A and B are linearly disjoint.

  • Subalgebra.LinearDisjoint.inf_eq_bot_of_commute, Subalgebra.LinearDisjoint.inf_eq_bot: if A and B are linearly disjoint, under suitable technical conditions, they are disjoint.

The results with name containing "of_commute" also have corresponding specialized versions assuming S is commutative.

Tags

linearly disjoint, linearly independent, tensor product

theorem Subalgebra.LinearDisjoint.mulMapLeftOfSupEqTop.congr_simp E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤),
  H.mulMapLeftOfSupEqTop H' = H.mulMapLeftOfSupEqTop H'

theorem Subalgebra.LinearDisjoint.basisOfBasisRight.congr_simp E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) {ι : Type u_1} (b b_1 : Module.Basis ι R ↥B),
  b = b_1 → H.basisOfBasisRight H' b = H.basisOfBasisRight H' b_1

theorem LinearEquiv.ofFinrankEq.congr_simp E1 #

∀ {R : Type u} (M : Type v) (M' : Type v') [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Module.Free R M] [inst_4 : AddCommMonoid M'] [inst_5 : Module R M'] [inst_6 : Module.Free R M']
  [inst_7 : StrongRankCondition R] [inst_8 : Module.Finite R M] [inst_9 : Module.Finite R M']
  (cond : Module.finrank R M = Module.finrank R M'),
  LinearEquiv.ofFinrankEq M M' cond = LinearEquiv.ofFinrankEq M M' cond

abbrev Subalgebra.LinearDisjoint E3 #

{R : Type u} →
  {S : Type v} →
    [inst : CommSemiring R] → [inst_1 : Semiring S] → [inst_2 : Algebra R S] → Subalgebra R S → Subalgebra R S → Prop

If A and B are subalgebras of S / R, then A and B are linearly disjoint, if they are linearly disjoint as submodules of S.

theorem Subalgebra.linearDisjoint_iff E0 #

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

theorem Subalgebra.LinearDisjoint.of_subsingleton E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {A B : Subalgebra R S}
  [Subsingleton R], A.LinearDisjoint B

theorem Subalgebra.LinearDisjoint.of_subsingleton_top E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {A B : Subalgebra R S}
  [Subsingleton S], A.LinearDisjoint B

theorem Subalgebra.LinearDisjoint.symm_of_commute E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → (∀ (a : ↥A) (b : ↥B), Commute ↑a ↑b) → B.LinearDisjoint A

Linear disjointness is symmetric if elements in the module commute.

theorem Subalgebra.linearDisjoint_comm_of_commute E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  (∀ (a : ↥A) (b : ↥B), Commute ↑a ↑b) → (A.LinearDisjoint B ↔ B.LinearDisjoint A)

Linear disjointness is symmetric if elements in the module commute.

theorem Subalgebra.LinearDisjoint.map E1 #

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

Linear disjointness is preserved by injective algebra homomorphisms.

theorem Subalgebra.LinearDisjoint.bot_left E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] (B : Subalgebra R S),
  ⊥.LinearDisjoint B

The image of R in S is linearly disjoint with any other subalgebras.

theorem Subalgebra.LinearDisjoint.bot_right E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] (A : Subalgebra R S),
  A.LinearDisjoint ⊥

The image of R in S is linearly disjoint with any other subalgebras.

theorem Subalgebra.LinearDisjoint.include_range E1 #

∀ (R : Type u) [inst : CommSemiring R] (A : Type v) [inst_1 : Semiring A] (B : Type w) [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B],
  Algebra.TensorProduct.includeLeft.range.LinearDisjoint Algebra.TensorProduct.includeRight.range

Images of two R-algebras A and B in A ⊗[R] B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.symm E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S}, A.LinearDisjoint B → B.LinearDisjoint A

Linear disjointness is symmetric in a commutative ring.

theorem Subalgebra.linearDisjoint_comm E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S}, A.LinearDisjoint B ↔ B.LinearDisjoint A

Linear disjointness is symmetric in a commutative ring.

theorem Subalgebra.linearDisjoint_iff_injective E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S}, A.LinearDisjoint B ↔ Function.Injective ⇑(A.mulMap B)

Two subalgebras A, B in a commutative ring are linearly disjoint if and only if Subalgebra.mulMap A B is injective.

def Subalgebra.LinearDisjoint.mulMap E3 #

{R : Type u} →
  {S : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : CommSemiring S] →
        [inst_2 : Algebra R S] → {A B : Subalgebra R S} → A.LinearDisjoint B → TensorProduct R ↥A ↥B ≃ₐ[R] ↥(A ⊔ B)

If A and B are subalgebras in a commutative algebra S over R, and if they are linearly disjoint, then there is the natural isomorphism A ⊗[R] B ≃ₐ[R] A ⊔ B induced by multiplication in S.

theorem Subalgebra.LinearDisjoint.val_mulMap_tmul E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (a : ↥A) (b : ↥B), ↑(H.mulMap (a ⊗ₜ[R] b)) = ↑a * ↑b

def Subalgebra.LinearDisjoint.mulMapLeftOfSupEqTop E1 #

{R : Type u} →
  {S : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : CommSemiring S] →
        [inst_2 : Algebra R S] →
          {A B : Subalgebra R S} → A.LinearDisjoint B → A ⊔ B = ⊤ → TensorProduct R ↥A ↥B ≃ₐ[↥A] S

If A and B are linearly disjoint subalgebras in a commutative algebra S over R such that A ⊔ B = S, then this is the natural isomorphism A ⊗[R] B ≃ₐ[A] S induced by multiplication in S.

theorem Subalgebra.LinearDisjoint.mulMapLeftOfSupEqTop_tmul E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) (a : ↥A) (b : ↥B),
  (H.mulMapLeftOfSupEqTop H') (a ⊗ₜ[R] b) = ↑a * ↑b

def Subalgebra.LinearDisjoint.basisOfBasisRight E1 #

{R : Type u} →
  {S : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : CommSemiring S] →
        [inst_2 : Algebra R S] →
          {A B : Subalgebra R S} →
            A.LinearDisjoint B → A ⊔ B = ⊤ → {ι : Type u_1} → Module.Basis ι R ↥B → Module.Basis ι (↥A) S

If A and B are linearly disjoint subalgebras in a commutative algebra S over R such that A ⊔ B = S, then any R-basis of B is also an A-basis of S.

theorem Subalgebra.LinearDisjoint.algebraMap_basisOfBasisRight_apply E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) {ι : Type u_1} (b : Module.Basis ι R ↥B) (i : ι),
  (H.basisOfBasisRight H' b) i = (algebraMap (↥B) S) (b i)

theorem Subalgebra.LinearDisjoint.mulMapLeftOfSupEqTop_symm_apply E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) (x : ↥B),
  (H.mulMapLeftOfSupEqTop H').symm ↑x = 1 ⊗ₜ[R] x

theorem Subalgebra.LinearDisjoint.algebraMap_basisOfBasisRight_repr_apply E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) {ι : Type u_1} (b : Module.Basis ι R ↥B) (x : ↥B)
  (i : ι), (algebraMap (↥A) S) (((H.basisOfBasisRight H' b).repr ↑x) i) = (algebraMap R S) ((b.repr x) i)

theorem Subalgebra.LinearDisjoint.leftMulMatrix_basisOfBasisRight_algebraMap E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) {ι : Type u_1} [inst_3 : Fintype ι]
  [inst_4 : DecidableEq ι] (b : Module.Basis ι R ↥B) (x : ↥B),
  (Algebra.leftMulMatrix (H.basisOfBasisRight H' b)) ((algebraMap (↥B) S) x) =
    (algebraMap R ↥A).mapMatrix ((Algebra.leftMulMatrix b) x)

def Subalgebra.LinearDisjoint.basisOfBasisLeft E1 #

{R : Type u} →
  {S : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : CommSemiring S] →
        [inst_2 : Algebra R S] →
          {A B : Subalgebra R S} →
            A.LinearDisjoint B → A ⊔ B = ⊤ → {ι : Type u_1} → Module.Basis ι R ↥A → Module.Basis ι (↥B) S

If A and B are subalgebras in a commutative algebra S over R, and if they are linearly disjoint and such that A ⊔ B = S, then any R-basis of A is also a B-basis of S.

theorem Subalgebra.LinearDisjoint.basisOfBasisLeft_apply E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) {ι : Type u_1} (b : Module.Basis ι R ↥A) (i : ι),
  (H.basisOfBasisLeft H' b) i = (algebraMap (↥A) S) (b i)

theorem Subalgebra.LinearDisjoint.basisOfBasisLeft_repr_apply E0 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S} (H : A.LinearDisjoint B) (H' : A ⊔ B = ⊤) {ι : Type u_1} (b : Module.Basis ι R ↥A) (x : ↥A)
  (i : ι), (algebraMap (↥B) S) (((H.basisOfBasisLeft H' b).repr ↑x) i) = (algebraMap R S) ((b.repr x) i)

theorem Subalgebra.LinearDisjoint.sup_free_of_free E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S}, A.LinearDisjoint B → ∀ [Module.Free R ↥A] [Module.Free R ↥B], Module.Free R ↥(A ⊔ B)

If A and B are subalgebras in a commutative algebra S over R, and if they are linearly disjoint, and if they are free R-modules, then A ⊔ B is also a free R-module.

theorem Subalgebra.LinearDisjoint.isDomain E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  {A B : Subalgebra R S}, A.LinearDisjoint B → ∀ [IsDomain S], IsDomain (TensorProduct R ↥A ↥B)

If A and B are subalgebras in a domain S over R, and if they are linearly disjoint, then A ⊗[R] B is also a domain.

theorem Subalgebra.LinearDisjoint.isDomain_of_injective E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] [IsDomain S]
  {A : Type u_1} {B : Type u_2} [inst_4 : Semiring A] [inst_5 : Semiring B] [inst_6 : Algebra R A]
  [inst_7 : Algebra R B] {fa : A →ₐ[R] S} {fb : B →ₐ[R] S},
  Function.Injective ⇑fa → Function.Injective ⇑fb → fa.range.LinearDisjoint fb.range → IsDomain (TensorProduct R A B)

If A and B are R-algebras, such that there exists a domain S over R such that A and B inject into it and their images are linearly disjoint, then A ⊗[R] B is also a domain.

theorem Subalgebra.LinearDisjoint.mulLeftMap_ker_eq_bot_iff_linearIndependent_op E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {ι : Type u_1} (a : ι → ↥A),
  (Submodule.mulLeftMap (Subalgebra.toSubmodule B) a).ker = ⊥ ↔ LinearIndependent (↥B.op) (MulOpposite.op ∘ ⇑A.val ∘ a)

theorem Subalgebra.LinearDisjoint.linearIndependent_left_op_of_flat E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥B] {ι : Type u_1} {a : ι → ↥A},
      LinearIndependent R a → LinearIndependent (↥B.op) (MulOpposite.op ∘ ⇑A.val ∘ a)

If A and B are linearly disjoint, if B is a flat R-module, then for any family of R-linearly independent elements of A, they are also B-linearly independent in the opposite ring.

theorem Subalgebra.LinearDisjoint.of_basis_left_op E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {ι : Type u_1} (a : Module.Basis ι R ↥A),
  LinearIndependent (↥B.op) (MulOpposite.op ∘ ⇑A.val ∘ ⇑a) → A.LinearDisjoint B

If a basis of A is also B-linearly independent in the opposite ring, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.mulRightMap_ker_eq_bot_iff_linearIndependent E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {ι : Type u_1} (b : ι → ↥B), ((Subalgebra.toSubmodule A).mulRightMap b).ker = ⊥ ↔ LinearIndependent (↥A) (⇑B.val ∘ b)

theorem Subalgebra.LinearDisjoint.linearIndependent_right_of_flat E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥A] {ι : Type u_1} {b : ι → ↥B}, LinearIndependent R b → LinearIndependent (↥A) (⇑B.val ∘ b)

If A and B are linearly disjoint, if A is a flat R-module, then for any family of R-linearly independent elements of B, they are also A-linearly independent.

theorem Subalgebra.LinearDisjoint.of_basis_right E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {ι : Type u_1} (b : Module.Basis ι R ↥B), LinearIndependent (↥A) (⇑B.val ∘ ⇑b) → A.LinearDisjoint B

If a basis of B is also A-linearly independent, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.linearIndependent_left_of_flat_of_commute E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥B] {ι : Type u_1} {a : ι → ↥A},
      LinearIndependent R a → (∀ (a : ↥A) (b : ↥B), Commute ↑a ↑b) → LinearIndependent (↥B) (⇑A.val ∘ a)

If A and B are linearly disjoint and their elements commute, if B is a flat R-module, then for any family of R-linearly independent elements of A, they are also B-linearly independent.

theorem Subalgebra.LinearDisjoint.of_basis_left_of_commute E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {ι : Type u_1} (a : Module.Basis ι R ↥A),
  LinearIndependent (↥B) (⇑A.val ∘ ⇑a) → (∀ (a : ↥A) (b : ↥B), Commute ↑a ↑b) → A.LinearDisjoint B

If a basis of A is also B-linearly independent, if elements in A and B commute, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.linearIndependent_mul_of_flat_left E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥A] {κ : Type u_1} {ι : Type u_2} {a : κ → ↥A} {b : ι → ↥B},
      LinearIndependent R a → LinearIndependent R b → LinearIndependent R fun i ↦ ↑(a i.1) * ↑(b i.2)

If A and B are linearly disjoint, if A is flat, then for any family of R-linearly independent elements { a_i } of A, and any family of R-linearly independent elements { b_j } of B, the family { a_i * b_j } in S is also R-linearly independent.

theorem Subalgebra.LinearDisjoint.linearIndependent_mul_of_flat_right E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥B] {κ : Type u_1} {ι : Type u_2} {a : κ → ↥A} {b : ι → ↥B},
      LinearIndependent R a → LinearIndependent R b → LinearIndependent R fun i ↦ ↑(a i.1) * ↑(b i.2)

If A and B are linearly disjoint, if B is flat, then for any family of R-linearly independent elements { a_i } of A, and any family of R-linearly independent elements { b_j } of B, the family { a_i * b_j } in S is also R-linearly independent.

theorem Subalgebra.LinearDisjoint.linearIndependent_mul_of_flat E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    Module.Flat R ↥A ∨ Module.Flat R ↥B →
      ∀ {κ : Type u_1} {ι : Type u_2} {a : κ → ↥A} {b : ι → ↥B},
        LinearIndependent R a → LinearIndependent R b → LinearIndependent R fun i ↦ ↑(a i.1) * ↑(b i.2)

If A and B are linearly disjoint, if one of A and B is flat, then for any family of R-linearly independent elements { a_i } of A, and any family of R-linearly independent elements { b_j } of B, the family { a_i * b_j } in S is also R-linearly independent.

theorem Subalgebra.LinearDisjoint.of_basis_mul E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {κ : Type u_1} {ι : Type u_2} (a : Module.Basis κ R ↥A) (b : Module.Basis ι R ↥B),
  (LinearIndependent R fun i ↦ ↑(a i.1) * ↑(b i.2)) → A.LinearDisjoint B

If { a_i } is an R-basis of A, if { b_j } is an R-basis of B, such that the family { a_i * b_j } in S is R-linearly independent, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.of_le_left_of_flat E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → ∀ {A' : Subalgebra R S}, A' ≤ A → ∀ [Module.Flat R ↥B], A'.LinearDisjoint B

theorem Subalgebra.LinearDisjoint.of_le_right_of_flat E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → ∀ {B' : Subalgebra R S}, B' ≤ B → ∀ [Module.Flat R ↥A], A.LinearDisjoint B'

theorem Subalgebra.LinearDisjoint.of_le_of_flat_right E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ {A' B' : Subalgebra R S}, A' ≤ A → B' ≤ B → ∀ [Module.Flat R ↥B] [Module.Flat R ↥A'], A'.LinearDisjoint B'

theorem Subalgebra.LinearDisjoint.of_le_of_flat_left E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ {A' B' : Subalgebra R S}, A' ≤ A → B' ≤ B → ∀ [Module.Flat R ↥A] [Module.Flat R ↥B'], A'.LinearDisjoint B'

theorem Subalgebra.LinearDisjoint.rank_inf_eq_one_of_commute_of_flat_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    Module.Flat R ↥A ∨ Module.Flat R ↥B →
      (∀ (a b : ↥(A ⊓ B)), Commute ↑a ↑b) → Function.Injective ⇑(algebraMap R S) → Module.rank R ↥(A ⊓ B) = 1

theorem Subalgebra.LinearDisjoint.rank_inf_eq_one_of_commute_of_flat_left_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥A],
      (∀ (a b : ↥(A ⊓ B)), Commute ↑a ↑b) → Function.Injective ⇑(algebraMap R S) → Module.rank R ↥(A ⊓ B) = 1

theorem Subalgebra.LinearDisjoint.rank_inf_eq_one_of_commute_of_flat_right_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥B],
      (∀ (a b : ↥(A ⊓ B)), Commute ↑a ↑b) → Function.Injective ⇑(algebraMap R S) → Module.rank R ↥(A ⊓ B) = 1

theorem Subalgebra.LinearDisjoint.rank_eq_one_of_commute_of_flat_of_self_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A : Subalgebra R S},
  A.LinearDisjoint A →
    ∀ [Module.Flat R ↥A], (∀ (a b : ↥A), Commute ↑a ↑b) → Function.Injective ⇑(algebraMap R S) → Module.rank R ↥A = 1

theorem Subalgebra.LinearDisjoint.trace_algebraMap E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    A ⊔ B = ⊤ →
      ∀ [Module.Free R ↥B] [Module.Finite R ↥B] (x : ↥B),
        (Algebra.trace (↥A) S) ((algebraMap (↥B) S) x) = (algebraMap R ↥A) ((Algebra.trace R ↥B) x)

If A and B are subalgebras in a commutative algebra S over R, and if they are linearly disjoint and such that A ⊔ B = S, then trace and algebraMap commutes.

theorem Subalgebra.LinearDisjoint.norm_algebraMap E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    A ⊔ B = ⊤ →
      ∀ [Module.Free R ↥B] [Module.Finite R ↥B] (x : ↥B),
        (Algebra.norm ↥A) ((algebraMap (↥B) S) x) = (algebraMap R ↥A) ((Algebra.norm R) x)

If A and B are subalgebras in a commutative algebra S over R, and if they are linearly disjoint and such that A ⊔ B = S, then norm and algebraMap commutes.

theorem Subalgebra.LinearDisjoint.linearIndependent_left_of_flat E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Flat R ↥B] {ι : Type u_1} {a : ι → ↥A}, LinearIndependent R a → LinearIndependent (↥B) (⇑A.val ∘ a)

In a commutative ring, if A and B are linearly disjoint, if B is a flat R-module, then for any family of R-linearly independent elements of A, they are also B-linearly independent.

theorem Subalgebra.LinearDisjoint.of_basis_left E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  {ι : Type u_1} (a : Module.Basis ι R ↥A), LinearIndependent (↥B) (⇑A.val ∘ ⇑a) → A.LinearDisjoint B

In a commutative ring, if a basis of A is also B-linearly independent, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.exists_field_of_isDomain_of_injective E1 #

∀ (R : Type u) [inst : CommRing R] (A : Type v) [inst_1 : CommRing A] (B : Type w) [inst_2 : CommRing B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] [Module.Flat R A] [Module.Flat R B] [IsDomain (TensorProduct R A B)],
  Function.Injective ⇑(algebraMap R A) →
    Function.Injective ⇑(algebraMap R B) →
      ∃ K x x_1 fa fb, Function.Injective ⇑fa ∧ Function.Injective ⇑fb ∧ fa.range.LinearDisjoint fb.range

If A and B are flat algebras over R, such that A ⊗[R] B is a domain, and such that the algebra maps are injective, then there exists an R-algebra K that is a field that A and B inject into with linearly disjoint images. Note: K can chosen to be the fraction field of A ⊗[R] B, but here we hide this fact.

theorem Subalgebra.LinearDisjoint.of_isField E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  IsField (TensorProduct R ↥A ↥B) → A.LinearDisjoint B

If A ⊗[R] B is a field, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.of_isField' E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A : Type v}
  [inst_3 : Ring A] {B : Type w} [inst_4 : Ring B] [inst_5 : Algebra R A] [inst_6 : Algebra R B],
  IsField (TensorProduct R A B) →
    ∀ (fa : A →ₐ[R] S) (fb : B →ₐ[R] S),
      Function.Injective ⇑fa → Function.Injective ⇑fb → fa.range.LinearDisjoint fb.range

If A ⊗[R] B is a field, then for any R-algebra S and injections of A and B into S, their images are linearly disjoint.

theorem Algebra.TensorProduct.not_isField_of_transcendental E1 #

∀ (R : Type u) [inst : CommRing R] (A : Type v) [inst_1 : CommRing A] (B : Type w) [inst_2 : CommRing B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] [Module.Flat R A] [Module.Flat R B] [Algebra.Transcendental R A]
  [Algebra.Transcendental R B], ¬IsField (TensorProduct R A B)

If A and B are flat R-algebras, both of them are transcendental, then A ⊗[R] B cannot be a field.

theorem Algebra.TensorProduct.isAlgebraic_of_isField E1 #

∀ (R : Type u) [inst : CommRing R] (A : Type v) [inst_1 : CommRing A] (B : Type w) [inst_2 : CommRing B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] [Module.Flat R A] [Module.Flat R B],
  IsField (TensorProduct R A B) → Algebra.IsAlgebraic R A ∨ Algebra.IsAlgebraic R B

If A and B are flat R-algebras, such that A ⊗[R] B is a field, then one of A and B is algebraic over R.

theorem Subalgebra.LinearDisjoint.rank_inf_eq_one_of_flat_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    Module.Flat R ↥A ∨ Module.Flat R ↥B → Function.Injective ⇑(algebraMap R S) → Module.rank R ↥(A ⊓ B) = 1

theorem Subalgebra.LinearDisjoint.rank_inf_eq_one_of_flat_left_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → ∀ [Module.Flat R ↥A], Function.Injective ⇑(algebraMap R S) → Module.rank R ↥(A ⊓ B) = 1

theorem Subalgebra.LinearDisjoint.rank_inf_eq_one_of_flat_right_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → ∀ [Module.Flat R ↥B], Function.Injective ⇑(algebraMap R S) → Module.rank R ↥(A ⊓ B) = 1

theorem Subalgebra.LinearDisjoint.rank_eq_one_of_flat_of_self_of_inj E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A : Subalgebra R S},
  A.LinearDisjoint A → ∀ [Module.Flat R ↥A], Function.Injective ⇑(algebraMap R S) → Module.rank R ↥A = 1

theorem Subalgebra.LinearDisjoint.rank_sup_of_free E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Free R ↥A] [Module.Free R ↥B], Module.rank R ↥(A ⊔ B) = Module.rank R ↥A * Module.rank R ↥B

In a commutative ring, if subalgebras A and B are linearly disjoint and they are free modules, then the rank of A ⊔ B is equal to the product of the rank of A and B.

theorem Subalgebra.LinearDisjoint.finrank_sup_of_free E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Free R ↥A] [Module.Free R ↥B], Module.finrank R ↥(A ⊔ B) = Module.finrank R ↥A * Module.finrank R ↥B

In a commutative ring, if subalgebras A and B are linearly disjoint and they are free modules, then the rank of A ⊔ B is equal to the product of the rank of A and B.

theorem Subalgebra.LinearDisjoint.of_finrank_sup_of_free E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S}
  [Module.Free R ↥A] [Module.Free R ↥B] [Module.Finite R ↥A] [Module.Finite R ↥B],
  Module.finrank R ↥(A ⊔ B) = Module.finrank R ↥A * Module.finrank R ↥B → A.LinearDisjoint B

In a commutative ring, if A and B are subalgebras which are free modules of finite rank, such that rank of A ⊔ B is equal to the product of the rank of A and B, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.adjoin_rank_eq_rank_left E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Free R ↥A] [Module.Flat R ↥B] [Nontrivial R] [Nontrivial S],
      Module.rank ↥B ↥(Algebra.adjoin ↥B ↑A) = Module.rank R ↥A

If A and B are linearly disjoint, if A is free and B is flat, then [B[A] : B] = [A : R]. See also Subalgebra.adjoin_rank_le.

theorem Subalgebra.LinearDisjoint.adjoin_rank_eq_rank_right E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B →
    ∀ [Module.Free R ↥B] [Module.Flat R ↥A] [Nontrivial R] [Nontrivial S],
      Module.rank ↥A ↥(Algebra.adjoin ↥A ↑B) = Module.rank R ↥B

If A and B are linearly disjoint, if B is free and A is flat, then [A[B] : A] = [B : R]. See also Subalgebra.adjoin_rank_le.

theorem Subalgebra.LinearDisjoint.of_finrank_coprime_of_free E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S}
  [Module.Free R ↥A] [Module.Free R ↥B] [Module.Free ↥A ↥(Algebra.adjoin ↥A ↑B)]
  [Module.Free ↥B ↥(Algebra.adjoin ↥B ↑A)], (Module.finrank R ↥A).Coprime (Module.finrank R ↥B) → A.LinearDisjoint B

If the rank of A and B are coprime, and they satisfy some freeness condition, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.of_linearDisjoint_finite_left E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  [Algebra.IsIntegral R ↥A], (∀ A' ≤ A, ∀ [Module.Finite R ↥A'], A'.LinearDisjoint B) → A.LinearDisjoint B

If A/R is integral, such that A' and B are linearly disjoint for all subalgebras A' of A which are finitely generated R-modules, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.of_linearDisjoint_finite_right E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (A B : Subalgebra R S)
  [Algebra.IsIntegral R ↥B], (∀ B' ≤ B, ∀ [Module.Finite R ↥B'], A.LinearDisjoint B') → A.LinearDisjoint B

If B/R is integral, such that A and B' are linearly disjoint for all subalgebras B' of B which are finitely generated R-modules, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.of_linearDisjoint_finite E1 #

∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S}
  [Algebra.IsIntegral R ↥A] [Algebra.IsIntegral R ↥B],
  (∀ (A' B' : Subalgebra R S), A' ≤ A → B' ≤ B → ∀ [Module.Finite R ↥A'] [Module.Finite R ↥B'], A'.LinearDisjoint B') →
    A.LinearDisjoint B

If A/R and B/R are integral, such that any finite subalgebras in A and B are linearly disjoint, then A and B are linearly disjoint.

theorem Subalgebra.LinearDisjoint.inf_eq_bot_of_commute E1 #

∀ {R : Type u} {S : Type v} [inst : Field R] [inst_1 : Ring S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → (∀ (a b : ↥(A ⊓ B)), Commute ↑a ↑b) → A ⊓ B = ⊥

theorem Subalgebra.LinearDisjoint.inf_eq_bot E1 #

∀ {R : Type u} {S : Type v} [inst : Field R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A B : Subalgebra R S},
  A.LinearDisjoint B → A ⊓ B = ⊥