The areas / V07. Linear algebra
Mathlib.LinearAlgebra.LinearIndependent.Lemmas
81 declarations and 1 deprecated aliases. Mathlib docs · Source
Linear independence
This file collects consequences of linear (in)dependence and includes specialized tests for specific families of vectors, requiring more theory to state.
Main statements
We prove several specialized tests for linear independence of families of vectors and of sets of vectors.
linearIndependent_option,linearIndependent_finCons,linearIndependent_finSucc,linearIndependent_finSnoc: type-specific tests for linear independence of families of vector fields;linearIndependent_insert,linearIndependent_pair: linear independence tests for set operations
In many cases we additionally provide dot-style operations (e.g., LinearIndependent.union) to
make the linear independence tests usable as hv.insert ha etc.
We also prove that, when working over a division ring, any family of vectors includes a linear independent subfamily spanning the same subspace.
TODO
Rework proofs to hold in semirings, by avoiding the path through
ker (Finsupp.linearCombination R v) = ⊥.
Tags
linearly dependent, linear dependence, linearly independent, linear independence
Properties which require Ring R
Properties which require DivisionRing K
These can be considered generalizations of properties of linear independence in vector spaces.
theorem LinearIndepOn.extend.congr_simp E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v v_1 : ι → V} (e_v : v = v_1) {s s_1 : Set ι} (e_s : s = s_1) {t t_1 : Set ι} (e_t : t = t_1)
(hs : LinearIndepOn K v s) (hst : s ⊆ t), hs.extend hst = ⋯.extend ⋯
theorem Equiv.Set.insert.congr_simp E1 #
∀ {α : Type u} {s : Set α} [inst : DecidablePred fun x ↦ x ∈ s] {a : α} (H : a ∉ s),
Equiv.Set.insert H = Equiv.Set.insert H
theorem Fintype.linearIndependent_iff'ₛ E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι],
LinearIndependent R v ↔ Function.Injective ⇑((LinearMap.lsum R (fun x ↦ R) ℕ) fun i ↦ LinearMap.id.smulRight (v i))
A finite family of vectors v i is linear independent iff the linear map that sends
c : ι → R to ∑ i, c i • v i is injective.
theorem LinearIndependent.pair_iffₛ E1 #
∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![x, y] ↔ ∀ (s t s' t' : R), s • x + t • y = s' • x + t' • y → s = s' ∧ t = t'
theorem linearIndepOn_iUnion_of_directed E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] {η : Type u_6} {s : η → Set ι},
Directed (fun x1 x2 ↦ x1 ⊆ x2) s → (∀ (i : η), LinearIndepOn R v (s i)) → LinearIndepOn R v (⋃ i, s i)
theorem linearIndepOn_sUnion_of_directed E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] {s : Set (Set ι)},
DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) s → (∀ a ∈ s, LinearIndepOn R v a) → LinearIndepOn R v (⋃₀ s)
theorem linearIndepOn_biUnion_of_directed E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] {η : Type u_6} {s : Set η} {t : η → Set ι},
DirectedOn (t ⁻¹'o fun x1 x2 ↦ x1 ⊆ x2) s → (∀ a ∈ s, LinearIndepOn R v (t a)) → LinearIndepOn R v (⋃ a ∈ s, t a)
theorem iSupIndep_range_lsingle E1 #
∀ (ι : Type u') (R : Type u_2) (M : Type u_4) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
iSupIndep fun i ↦ (Finsupp.lsingle i).range
theorem LinearMap.iSupIndep_map E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {M' : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M'] [inst_3 : Module R M] [inst_4 : Module R M'] (f : M →ₗ[R] M'),
Function.Injective ⇑f → ∀ {m : ι → Submodule R M}, iSupIndep m → iSupIndep fun i ↦ Submodule.map f (m i)
theorem LinearIndependent.iSupIndep_span_singleton E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M], LinearIndependent R v → iSupIndep fun i ↦ R ∙ v i
See also iSupIndep_iff_linearIndependent_of_ne_zero.
theorem linearIndependent_inl_union_inr' E1 #
∀ {ι : Type u'} {ι' : Type u_1} {R : Type u_2} {M : Type u_4} {M' : Type u_5} [inst : Semiring R]
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M'] [inst_3 : Module R M] [inst_4 : Module R M'] {v : ι → M}
{v' : ι' → M'},
LinearIndependent R v →
LinearIndependent R v' → LinearIndependent R (Sum.elim (⇑(LinearMap.inl R M M') ∘ v) (⇑(LinearMap.inr R M M') ∘ v'))
theorem LinearIndependent.inl_union_inr E1 #
∀ {R : Type u_2} {M : Type u_4} {M' : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M'] [inst_3 : Module R M] [inst_4 : Module R M'] {s : Set M} {t : Set M'},
(LinearIndependent R fun (x : ↑s) ↦ ↑x) →
(LinearIndependent R fun (x : ↑t) ↦ ↑x) →
LinearIndependent R fun (x : ↑(⇑(LinearMap.inl R M M') '' s ∪ ⇑(LinearMap.inr R M M') '' t)) ↦ ↑x
theorem exists_maximal_linearIndepOn' E1 #
∀ {ι : Type u'} (R : Type u_2) {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
(v : ι → M), ∃ s, LinearIndepOn R v s ∧ ∀ (t : Set ι), s ⊆ t → LinearIndepOn R v t → s = t
TODO : refactor to use Maximal.
theorem Submodule.codisjoint_span_image_of_codisjoint E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M],
Submodule.span R (Set.range v) = ⊤ →
∀ {s t : Set ι}, Codisjoint s t → Codisjoint (Submodule.span R (v '' s)) (Submodule.span R (v '' t))
theorem LinearIndependent.isCompl_span_image E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M],
LinearIndependent R v →
Submodule.span R (Set.range v) = ⊤ →
∀ {s t : Set ι}, IsCompl s t → IsCompl (Submodule.span R (v '' s)) (Submodule.span R (v '' t))
theorem Fintype.linearIndependent_iff' E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Ring R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι],
LinearIndependent R v ↔ ((LinearMap.lsum R (fun x ↦ R) ℕ) fun i ↦ LinearMap.id.smulRight (v i)).ker = ⊥
A finite family of vectors v i is linear independent iff the linear map that sends
c : ι → R to ∑ i, c i • v i has the trivial kernel.
theorem LinearIndepOn.pair_iff E0 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {i j : ι}
(f : ι → M), i ≠ j → (LinearIndepOn R f {i, j} ↔ ∀ (c d : R), c • f i + d • f j = 0 → c = 0 ∧ d = 0)
linearIndepOn_pair_iff is a simpler version over fields.
theorem LinearIndependent.pair_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![x, y] ↔ ∀ (s t : R), s • x + t • y = 0 → s = 0 ∧ t = 0
Also see LinearIndependent.pair_iff' for a simpler version over fields.
theorem LinearIndependent.pair_symm_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![x, y] ↔ LinearIndependent R ![y, x]
theorem LinearIndependent.pair_neg_left_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![-x, y] ↔ LinearIndependent R ![x, y]
theorem LinearIndependent.pair_neg_right_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![x, -y] ↔ LinearIndependent R ![x, y]
theorem LinearIndependent.pair_smul_smul_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M} {u v : R},
IsUnit u → IsUnit v → (LinearIndependent R ![u • x, v • y] ↔ LinearIndependent R ![x, y])
theorem LinearIndependent.pair_smul_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M} {S : Type u_6}
[inst_3 : CommRing S] [IsDomain S] [inst_5 : Module S R] [inst_6 : Module S M] [SMulCommClass S R M]
[IsScalarTower S R M] [Module.IsTorsionFree S R] {u : S},
u ≠ 0 → (LinearIndependent R ![u • x, u • y] ↔ LinearIndependent R ![x, y])
theorem LinearIndependent.pair_add_smul_add_smul_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M} {S : Type u_6}
[inst_3 : CommRing S] [IsDomain S] [inst_5 : Module S R] [inst_6 : Module S M] [SMulCommClass S R M]
[IsScalarTower S R M] [Module.IsTorsionFree S R] (a b c d : S) [Nontrivial R],
LinearIndependent R ![a • x + b • y, c • x + d • y] ↔ LinearIndependent R ![x, y] ∧ a * d ≠ b * c
theorem LinearIndependent.pair_add_smul_right_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M} {S : Type u_6}
[inst_3 : CommRing S] [IsDomain S] [inst_5 : Module S R] [inst_6 : Module S M] [SMulCommClass S R M]
[IsScalarTower S R M] [Module.IsTorsionFree S R] (c : S),
LinearIndependent R ![x, c • x + y] ↔ LinearIndependent R ![x, y]
theorem LinearIndependent.pair_add_smul_left_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M} {S : Type u_6}
[inst_3 : CommRing S] [IsDomain S] [inst_5 : Module S R] [inst_6 : Module S M] [SMulCommClass S R M]
[IsScalarTower S R M] [Module.IsTorsionFree S R] (b : S),
LinearIndependent R ![x + b • y, y] ↔ LinearIndependent R ![x, y]
theorem LinearIndependent.pair_add_right_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![x, x + y] ↔ LinearIndependent R ![x, y]
theorem LinearIndependent.pair_add_left_iff E0 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {x y : M},
LinearIndependent R ![x + y, y] ↔ LinearIndependent R ![x, y]
theorem linearIndepOn_id_iUnion_finite E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
{f : ι → Set M},
(∀ (i : ι), LinearIndepOn R id (f i)) →
(∀ (i : ι) (t : Set ι), t.Finite → i ∉ t → Disjoint (Submodule.span R (f i)) (⨆ i ∈ t, Submodule.span R (f i))) →
LinearIndepOn R id (⋃ i, f i)
theorem linearIndependent_iUnion_finite E1 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {η : Type u_6}
{ιs : η → Type u_7} {f : (j : η) → ιs j → M},
(∀ (j : η), LinearIndependent R (f j)) →
(∀ (i : η) (t : Set η),
t.Finite →
i ∉ t → Disjoint (Submodule.span R (Set.range (f i))) (⨆ i ∈ t, Submodule.span R (Set.range (f i)))) →
LinearIndependent R fun ji ↦ f ji.fst ji.snd
theorem exists_maximal_linearIndepOn E1 #
∀ {ι : Type u'} (R : Type u_2) {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
(v : ι → M), ∃ s, LinearIndepOn R v s ∧ ∀ i ∉ s, ∃ a, a ≠ 0 ∧ a • v i ∈ Submodule.span R (v '' s)
theorem linearIndependent_algHom_toLinearMap E1 #
∀ (K : Type u_6) (M : Type u_7) (L : Type u_8) [inst : CommSemiring K] [inst_1 : Semiring M] [inst_2 : Algebra K M]
[inst_3 : CommRing L] [IsDomain L] [inst_5 : Algebra K L], LinearIndependent L AlgHom.toLinearMap
theorem linearIndependent_algHom_toLinearMap' E1 #
∀ (K : Type u_6) (M : Type u_7) (L : Type u_8) [inst : CommRing K] [IsDomain K] [inst_2 : Semiring M]
[inst_3 : Algebra K M] [inst_4 : CommRing L] [IsDomain L] [inst_6 : Algebra K L] [Module.IsTorsionFree K L],
LinearIndependent K AlgHom.toLinearMap
theorem LinearMap.injective_of_linearIndependent E1 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {N : Type u_6}
[inst_3 : AddCommGroup N] [inst_4 : Module R N] {f : M →ₗ[R] N} {ι : Type u_7} {v : ι → M},
Submodule.span R (Set.range v) = ⊤ → LinearIndependent R (⇑f ∘ v) → Function.Injective ⇑f
theorem LinearMap.bijective_of_linearIndependent_of_span_eq_top E1 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {N : Type u_6}
[inst_3 : AddCommGroup N] [inst_4 : Module R N] {f : M →ₗ[R] N} {ι : Type u_7} {v : ι → M},
Submodule.span R (Set.range v) = ⊤ →
LinearIndependent R (⇑f ∘ v) → Submodule.span R (Set.range (⇑f ∘ v)) = ⊤ → Function.Bijective ⇑f
theorem LinearIndepOn.insert' E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} {v : ι → M} [inst : Ring R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] {s : Set ι} {i : ι},
LinearIndepOn R v s → (∀ (r : R), r • v i ∈ Submodule.span R (v '' s) → r = 0) → LinearIndepOn R v (insert i s)
Version of LinearIndepOn.insert that works when the scalars are not a field.
theorem LinearIndepOn.id_insert' E1 #
∀ {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {s : Set M} {x : M},
LinearIndepOn R id s → (∀ (r : R), r • x ∈ Submodule.span R s → r = 0) → LinearIndepOn R id (insert x s)
Version of LinearIndepOn.id_insert that works when the scalars are not a field.
theorem LinearIndependent.of_pairwise_dual_eq_zero_one E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
(v : ι → M) (f : ι → Module.Dual R M),
(Pairwise fun i j ↦ (f i) (v j) = 0) → (∀ (i : ι), (f i) (v i) = 1) → LinearIndependent R v
If v : ι → M is a family of vectors and there exists a family of linear forms
f : ι → Dual R M such that f i (v j) is 1 for i = j and 0 for i ≠ j, then
v is linearly independent.
theorem exists_linearIndepOn_smul_mem_span E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} [inst : CommRing R] [IsDomain R] [inst_2 : AddCommGroup M]
[inst_3 : Module R M] [Finite ι] {v : ι → M},
Submodule.span R (Set.range v) = ⊤ →
∃ s, LinearIndepOn R v s ∧ ∃ a, a ≠ 0 ∧ ∀ (m : M), a • m ∈ Submodule.span R (v '' s)
A finite generating family v of M has a linearly independent subfamily whose span contains
a • M for some a ≠ 0.
theorem LinearIndependent.update E1 #
∀ {ι : Type u'} {R : Type u_2} {M : Type u_4} [inst : DecidableEq ι] [inst_1 : CommRing R] [inst_2 : AddCommGroup M]
[inst_3 : Module R M] {f : ι → M},
LinearIndependent R f →
∀ (i : ι) (m : M),
(∃ r ∈ nonZeroDivisors R, ∃ l, l i ∈ nonZeroDivisors R ∧ r • m = (Finsupp.linearCombination R f) l) →
LinearIndependent R (Function.update f i m)
A linearly independent family of vectors f remains linearly independent when we substitute one
of the terms with a vector m provided there exists a non-zero divisor r, such that r • m
belongs to the span of f with non-zero-divisor coefficients.
theorem mem_span_insert_exchange E0 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
{x y : V}, x ∈ Submodule.span K (insert y s) → x ∉ Submodule.span K s → y ∈ Submodule.span K (insert x s)
theorem LinearIndepOn.insert E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s : Set ι} {x : ι},
LinearIndepOn K v s → v x ∉ Submodule.span K (v '' s) → LinearIndepOn K v (insert x s)
theorem LinearIndepOn.id_insert E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
{x : V}, LinearIndepOn K id s → x ∉ Submodule.span K s → LinearIndepOn K id (insert x s)
theorem linearIndependent_option' E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {x : V},
(LinearIndependent K fun o ↦ o.casesOn' x v) ↔ LinearIndependent K v ∧ x ∉ Submodule.span K (Set.range v)
theorem LinearIndependent.option E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {x : V},
LinearIndependent K v → x ∉ Submodule.span K (Set.range v) → LinearIndependent K fun o ↦ o.casesOn' x v
theorem linearIndependent_option E3 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : Option ι → V},
LinearIndependent K v ↔ LinearIndependent K (v ∘ some) ∧ v none ∉ Submodule.span K (Set.range (v ∘ some))
theorem linearIndepOn_insert E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{s : Set ι} {a : ι} {f : ι → V},
a ∉ s → (LinearIndepOn K f (insert a s) ↔ LinearIndepOn K f s ∧ f a ∉ Submodule.span K (f '' s))
theorem linearIndepOn_id_insert E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
{x : V}, x ∉ s → (LinearIndepOn K id (insert x s) ↔ LinearIndepOn K id s ∧ x ∉ Submodule.span K s)
theorem linearIndepOn_insert_iff E0 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{s : Set ι} {a : ι} {f : ι → V},
LinearIndepOn K f (insert a s) ↔ LinearIndepOn K f s ∧ (f a ∈ Submodule.span K (f '' s) → a ∈ s)
theorem linearIndepOn_id_insert_iff E0 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {a : V}
{s : Set V}, LinearIndepOn K id (insert a s) ↔ LinearIndepOn K id s ∧ (a ∈ Submodule.span K s → a ∈ s)
theorem LinearIndepOn.mem_span_iff E0 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{s : Set ι} {a : ι} {f : ι → V},
LinearIndepOn K f s → (f a ∈ Submodule.span K (f '' s) ↔ LinearIndepOn K f (insert a s) → a ∈ s)
theorem LinearIndepOn.notMem_span_iff E0 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{s : Set ι} {a : ι} {f : ι → V},
LinearIndepOn K f s → (f a ∉ Submodule.span K (f '' s) ↔ LinearIndepOn K f (insert a s) ∧ a ∉ s)
A shortcut to a convenient form for the negation in LinearIndepOn.mem_span_iff.
theorem LinearIndepOn.mem_span_iff_id E0 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
{a : V}, LinearIndepOn K id s → (a ∈ Submodule.span K s ↔ LinearIndepOn K id (insert a s) → a ∈ s)
theorem LinearIndepOn.notMem_span_iff_id E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
{a : V}, LinearIndepOn K id s → (a ∉ Submodule.span K s ↔ LinearIndepOn K id (insert a s) ∧ a ∉ s)
theorem linearIndepOn_id_pair E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {x y : V},
x ≠ 0 → (∀ (a : K), a • x ≠ y) → LinearIndepOn K id {x, y}
theorem linearIndepOn_pair_iff E0 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{i j : ι} (v : ι → V), i ≠ j → v i ≠ 0 → (LinearIndepOn K v {i, j} ↔ ∀ (c : K), c • v i ≠ v j)
LinearIndepOn.pair_iff is a version that works over arbitrary rings.
theorem LinearIndependent.pair_iff' E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {x y : V},
x ≠ 0 → (LinearIndependent K ![x, y] ↔ ∀ (a : K), a • x ≠ y)
Also see LinearIndependent.pair_iff for the version over arbitrary rings.
theorem linearIndependent_finCons E3 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {x : V} {n : ℕ}
{v : Fin n → V}, LinearIndependent K (Fin.cons x v) ↔ LinearIndependent K v ∧ x ∉ Submodule.span K (Set.range v)
theorem linearIndependent_finSnoc E3 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {x : V} {n : ℕ}
{v : Fin n → V}, LinearIndependent K (Fin.snoc v x) ↔ LinearIndependent K v ∧ x ∉ Submodule.span K (Set.range v)
theorem LinearIndependent.finCons E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {x : V} {n : ℕ}
{v : Fin n → V}, LinearIndependent K v → x ∉ Submodule.span K (Set.range v) → LinearIndependent K (Fin.cons x v)
See LinearIndependent.finCons' for an uglier version that works if you
only have a module over a semiring.
theorem LinearIndependent.finSnoc E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {x : V} {n : ℕ}
{v : Fin n → V}, LinearIndependent K v → x ∉ Submodule.span K (Set.range v) → LinearIndependent K (Fin.snoc v x)
See LinearIndependent.finSnoc' for an uglier version that works if you
only have a module over a semiring, and LinearIndependent.finSnoc_of_notMem_span_over for a
version over a subring of a division ring.
theorem LinearIndependent.finSnoc_of_notMem_span_over E1 #
∀ {R : Type u_6} {K : Type u_7} {M : Type u_8} [inst : CommRing R] [inst_1 : DivisionRing K] [inst_2 : AddCommGroup M]
[inst_3 : Algebra R K] [inst_4 : Module K M] [inst_5 : Module R M] [IsScalarTower R K M] [FaithfulSMul R K] {n : ℕ}
{v : Fin n → M},
LinearIndependent R v → ∀ {x : M}, x ∉ Submodule.span K (Set.range v) → LinearIndependent R (Fin.snoc v x)
If v is R-linearly independent and x is not in the K-span of range v (where K is a
division ring extending R and acting on the same module), then Fin.snoc v x is R-linearly
independent.
This is useful when proving ℤ-linear independence using the fact that an element is outside the
ℝ-span, which arises naturally in lattice theory and geometry of numbers.
theorem linearIndependent_finSucc E3 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {n : ℕ}
{v : Fin (n + 1) → V},
LinearIndependent K v ↔ LinearIndependent K (Fin.tail v) ∧ v 0 ∉ Submodule.span K (Set.range (Fin.tail v))
theorem linearIndependent_finSucc' E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {n : ℕ}
{v : Fin (n + 1) → V},
LinearIndependent K v ↔ LinearIndependent K (Fin.init v) ∧ v (Fin.last n) ∉ Submodule.span K (Set.range (Fin.init v))
def equiv_linearIndependent E1 #
{K : Type u_3} →
{V : Type u} →
[inst : DivisionRing K] →
[inst_1 : AddCommGroup V] →
[inst_2 : Module K V] →
(n : ℕ) →
{ s // LinearIndependent K s } ≃
(s : { s // LinearIndependent K s }) × ↑(↑(Submodule.span K (Set.range ↑s)))ᶜ
Equivalence between k + 1 vectors of length n and k vectors of length n along with a
vector in the complement of their span.
theorem linearIndependent_fin2 E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {f : Fin 2 → V},
LinearIndependent K f ↔ f 1 ≠ 0 ∧ ∀ (a : K), a • f 1 ≠ f 0
theorem exists_linearIndepOn_extension E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s t : Set ι},
LinearIndepOn K v s → s ⊆ t → ∃ b ⊆ t, s ⊆ b ∧ v '' t ⊆ ↑(Submodule.span K (v '' b)) ∧ LinearIndepOn K v b
theorem exists_linearIndepOn_id_extension E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s t : Set V},
LinearIndepOn K id s → s ⊆ t → ∃ b ⊆ t, s ⊆ b ∧ t ⊆ ↑(Submodule.span K b) ∧ LinearIndepOn K id b
theorem exists_linearIndependent E1 #
∀ (K : Type u_3) {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] (t : Set V),
∃ b ⊆ t, Submodule.span K b = Submodule.span K t ∧ LinearIndependent K Subtype.val
theorem exists_linearIndependent' E1 #
∀ {ι : Type u'} (K : Type u_3) {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
(v : ι → V),
∃ κ a,
Function.Injective a ∧
Submodule.span K (Set.range (v ∘ a)) = Submodule.span K (Set.range v) ∧ LinearIndependent K (v ∘ a)
Indexed version of exists_linearIndependent.
def LinearIndepOn.extend E1 #
{ι : Type u'} →
{K : Type u_3} →
{V : Type u} →
[inst : DivisionRing K] →
[inst_1 : AddCommGroup V] →
[inst_2 : Module K V] → {v : ι → V} → {s t : Set ι} → LinearIndepOn K v s → s ⊆ t → Set ι
LinearIndepOn.extend adds vectors to a linear independent set s ⊆ t until it spans
all elements of t.
theorem LinearIndepOn.extend_subset E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s t : Set ι} (hs : LinearIndepOn K v s) (hst : s ⊆ t), hs.extend hst ⊆ t
theorem LinearIndepOn.subset_extend E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s t : Set ι} (hs : LinearIndepOn K v s) (hst : s ⊆ t), s ⊆ hs.extend hst
theorem LinearIndepOn.image_subset_span_image_extend E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s t : Set ι} (hs : LinearIndepOn K v s) (hst : s ⊆ t), v '' t ⊆ ↑(Submodule.span K (v '' hs.extend hst))
theorem LinearIndepOn.subset_span_extend E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s t : Set V}
(hs : LinearIndepOn K id s) (hst : s ⊆ t), t ⊆ ↑(Submodule.span K (hs.extend hst))
theorem LinearIndepOn.span_image_extend_eq_span_image E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s t : Set ι} (hs : LinearIndepOn K v s) (hst : s ⊆ t),
Submodule.span K (v '' hs.extend hst) = Submodule.span K (v '' t)
theorem LinearIndepOn.span_extend_eq_span E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s t : Set V}
(hs : LinearIndepOn K id s) (hst : s ⊆ t), Submodule.span K (hs.extend hst) = Submodule.span K t
theorem LinearIndepOn.linearIndepOn_extend E1 #
∀ {ι : Type u'} {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{v : ι → V} {s t : Set ι} (hs : LinearIndepOn K v s) (hst : s ⊆ t), LinearIndepOn K v (hs.extend hst)
theorem exists_of_linearIndepOn_of_finite_span E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
{t : Finset V}, LinearIndepOn K id s → s ⊆ ↑(Submodule.span K ↑t) → ∃ t', ↑t' ⊆ s ∪ ↑t ∧ s ⊆ ↑t' ∧ t'.card = t.card
theorem exists_finite_card_le_of_finite_of_linearIndependent_of_span E1 #
∀ {K : Type u_3} {V : Type u} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s t : Set V}
(ht : t.Finite),
LinearIndepOn K id s → s ⊆ ↑(Submodule.span K t) → ∃ (h : s.Finite), h.toFinset.card ≤ ht.toFinset.card
theorem LinearMap.BilinForm.exists_pos_and_pos_apply_sum_smul E1 #
∀ {R : Type u_6} {M : Type u_7} {ι : Type u_8} [inst : Fintype ι] [inst_1 : CommRing R] [inst_2 : LinearOrder R]
[IsOrderedRing R] [inst_4 : AddCommGroup M] [inst_5 : Module R M] {B : LinearMap.BilinForm R M},
(∀ (x : M), x ≠ 0 → 0 < (B x) x) →
∀ {v : ι → M},
LinearIndependent R v →
(Pairwise fun k l ↦ (B (v k)) (v l) ≤ 0) → ∀ {c : ι → R}, ¬c ≤ 0 → ∃ k, 0 < c k ∧ 0 < (B (∑ l, c l • v l)) (v k)
Deprecated aliases
| Name | New name | Since |
|---|---|---|
LinearIndependent.finSnoc_of_not_mem_span_over | LinearIndependent.finSnoc_of_notMem_span_over | 2026-09-28 |