The areas / V22. Affine, Euclidean and convex geometry
Mathlib.LinearAlgebra.AffineSpace.Independent
104 declarations and 2 deprecated aliases. Mathlib docs · Source
Affine independence
This file defines affinely independent families of points.
Main definitions
-
AffineIndependentdefines affinely independent families of points as those where no nontrivial weighted subtraction is0. This is proved equivalent to two other formulations: linear independence of the results of subtracting a base point in the family from the other points in the family, or any equal affine combinations having the same weights. -
AffineIndepOn k p sstates that the points of a familyp : ι → Pindexed by the elements ofs : Set ιare affinely independent.
References
- https://en.wikipedia.org/wiki/Affine_space
def AffineIndependent E3 #
(k : Type u_1) →
{V : Type u_2} →
{P : Type u_3} →
[inst : Ring k] → [inst_1 : AddCommGroup V] → [Module k V] → [AddTorsor V P] → {ι : Type u_4} → (ι → P) → Prop
An indexed family is said to be affinely independent if no nontrivial weighted subtractions (where the sum of weights is 0) are 0.
def AffineIndepOn E1 #
(k : Type u_1) →
{V : Type u_2} →
{P : Type u_3} →
[inst : Ring k] →
[inst_1 : AddCommGroup V] → [Module k V] → [AddTorsor V P] → {ι : Type u_4} → (ι → P) → Set ι → Prop
AffineIndepOn k p s states that the points in the family p that are indexed
by the elements of s are affinely independent over k.
theorem affineIndependent_def E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} (p : ι → P),
AffineIndependent k p ↔ ∀ (s : Finset ι) (w : ι → k), ∑ i ∈ s, w i = 0 → (s.weightedVSub p) w = 0 → ∀ i ∈ s, w i = 0
The definition of AffineIndependent.
theorem AffineIndepOn.affineIndependent E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {s : Set ι},
AffineIndepOn k p s → AffineIndependent k fun x ↦ p ↑x
theorem affineIndependent_subtypeVal_iff E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {s : Set ι},
(AffineIndependent k fun x ↦ p ↑x) ↔ AffineIndepOn k p s
theorem affineIndependent_of_subsingleton E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Subsingleton ι] (p : ι → P), AffineIndependent k p
A family with at most one point is affinely independent.
theorem AffineIndepOn.of_setSubsingleton E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} (p : ι → P) {s : Set ι}, s.Subsingleton → AffineIndepOn k p s
A set with at most one point is affinely independent.
theorem AffineIndependent.of_subsingleton E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Subsingleton k] (p : ι → P), AffineIndependent k p
theorem AffineIndepOn.of_subsingleton E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Subsingleton k] (p : ι → P) (s : Set ι), AffineIndepOn k p s
theorem AffineIndepOn.singleton E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} (p : ι → P) (i : ι), AffineIndepOn k p {i}
theorem affineIndependent_empty_type E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [IsEmpty ι] (p : ι → P), AffineIndependent k p
theorem affineIndepOn_empty E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} (p : ι → P), AffineIndepOn k p ∅
theorem affineIndependent_subtype_iff E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : Set P}, AffineIndependent k Subtype.val ↔ AffineIndepOn k id s
theorem affineIndependent_iff_of_fintype E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [inst_4 : Fintype ι] (p : ι → P),
AffineIndependent k p ↔ ∀ (w : ι → k), ∑ i, w i = 0 → (Finset.univ.weightedVSub p) w = 0 → ∀ (i : ι), w i = 0
A family indexed by a Fintype is affinely independent if and
only if no nontrivial weighted subtractions over Finset.univ (where
the sum of the weights is 0) are 0.
theorem affineIndependent_vadd E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {v : V}, AffineIndependent k (v +ᵥ p) ↔ AffineIndependent k p
theorem AffineIndependent.vadd E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {v : V}, AffineIndependent k p → AffineIndependent k (v +ᵥ p)
Alias of the reverse direction of affineIndependent_vadd.
theorem AffineIndependent.of_vadd E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {v : V}, AffineIndependent k (v +ᵥ p) → AffineIndependent k p
Alias of the forward direction of affineIndependent_vadd.
theorem affineIndependent_smul E0 #
∀ (k : Type u_1) {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_4}
{G : Type u_5} [inst_3 : Group G] [inst_4 : DistribMulAction G V] [SMulCommClass G k V] {p : ι → V} {a : G},
AffineIndependent k (a • p) ↔ AffineIndependent k p
theorem AffineIndependent.smul E1 #
∀ (k : Type u_1) {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_4}
{G : Type u_5} [inst_3 : Group G] [inst_4 : DistribMulAction G V] [SMulCommClass G k V] {p : ι → V} {a : G},
AffineIndependent k p → AffineIndependent k (a • p)
Alias of the reverse direction of affineIndependent_smul.
theorem AffineIndependent.of_smul E1 #
∀ (k : Type u_1) {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_4}
{G : Type u_5} [inst_3 : Group G] [inst_4 : DistribMulAction G V] [SMulCommClass G k V] {p : ι → V} {a : G},
AffineIndependent k (a • p) → AffineIndependent k p
Alias of the forward direction of affineIndependent_smul.
theorem affineIndependent_iff_linearIndependent_vsub E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} (p : ι → P) (i1 : ι),
AffineIndependent k p ↔ LinearIndependent k fun i ↦ p ↑i -ᵥ p i1
A family is affinely independent if and only if the differences from a base point in that family are linearly independent.
theorem affineIndependent_set_iff_linearIndependent_vsub E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : Set P} {p₁ : P},
p₁ ∈ s → ((AffineIndependent k fun p ↦ ↑p) ↔ LinearIndependent k fun (v : ↑((fun p ↦ p -ᵥ p₁) '' (s \ {p₁}))) ↦ ↑v)
A set is affinely independent if and only if the differences from a base point in that set are linearly independent.
theorem linearIndependent_set_iff_affineIndependent_vadd_union_singleton E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : Set V},
(∀ v ∈ s, v ≠ 0) → ∀ (p₁ : P), (LinearIndependent k fun (v : ↑s) ↦ ↑v) ↔ AffineIndependent k fun p ↦ ↑p
A set of nonzero vectors is linearly independent if and only if,
given a point p₁, the vectors added to p₁ and p₁ itself are
affinely independent.
theorem affineIndependent_iff_indicator_eq_of_affineCombination_eq E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} (p : ι → P),
AffineIndependent k p ↔
∀ (s1 s2 : Finset ι) (w1 w2 : ι → k),
∑ i ∈ s1, w1 i = 1 →
∑ i ∈ s2, w2 i = 1 →
(Finset.affineCombination k s1 p) w1 = (Finset.affineCombination k s2 p) w2 →
(↑s1).indicator w1 = (↑s2).indicator w2
A family is affinely independent if and only if any affine
combinations (with sum of weights 1) that evaluate to the same point
have equal Set.indicator.
theorem affineIndependent_iff_eq_of_fintype_affineCombination_eq E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [inst_4 : Fintype ι] (p : ι → P),
AffineIndependent k p ↔
∀ (w1 w2 : ι → k),
∑ i, w1 i = 1 →
∑ i, w2 i = 1 →
(Finset.affineCombination k Finset.univ p) w1 = (Finset.affineCombination k Finset.univ p) w2 → w1 = w2
A finite family is affinely independent if and only if any affine combinations (with sum of weights 1) that evaluate to the same point are equal.
theorem LinearIndependent.affineIndependent E1 #
∀ (k : Type u_1) {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_4}
{v : ι → V}, LinearIndependent k v → AffineIndependent k v
A linearly independent family of vectors is also affinely independent.
theorem LinearIndepOn.affineIndepOn E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_4}
{v : ι → V} {s : Set ι}, LinearIndepOn k v s → AffineIndepOn k v s
A linearly independent family of vectors, restricted to s, is also affinely independent.
theorem AffineIndependent.units_lineMap E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p → ∀ (j : ι) (w : ι → kˣ), AffineIndependent k fun i ↦ (AffineMap.lineMap (p j) (p i)) ↑(w i)
If we single out one member of an affine-independent family of points and affinely transport all others along the line joining them to this member, the resulting new family of points is affine- independent.
This is the affine version of LinearIndependent.units_smul.
theorem AffineIndependent.indicator_eq_of_affineCombination_eq E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ (s₁ s₂ : Finset ι) (w₁ w₂ : ι → k),
∑ i ∈ s₁, w₁ i = 1 →
∑ i ∈ s₂, w₂ i = 1 →
(Finset.affineCombination k s₁ p) w₁ = (Finset.affineCombination k s₂ p) w₂ →
(↑s₁).indicator w₁ = (↑s₂).indicator w₂
theorem AffineIndependent.affineCombination_eq_iff_eq E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ {w₁ w₂ : ι → k} {s : Finset ι},
∑ i ∈ s, w₁ i = 1 →
∑ i ∈ s, w₂ i = 1 →
((Finset.affineCombination k s p) w₁ = (Finset.affineCombination k s p) w₂ ↔ ∀ i ∈ s, w₁ i = w₂ i)
Given an affinely independent family of points, two affine combinations (with sum of weights 1) are equal if and only if their weights are pointwise equal.
theorem AffineIndependent.injective E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P}, AffineIndependent k p → Function.Injective p
An affinely independent family is injective, if the underlying ring is nontrivial.
theorem AffineIndepOn.injOn E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P} {s : Set ι}, AffineIndepOn k p s → Set.InjOn p s
theorem AffineIndependent.comp_embedding E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι2 : Type u_5} (f : ι2 ↪ ι) {p : ι → P},
AffineIndependent k p → AffineIndependent k (p ∘ ⇑f)
If a family is affinely independent, so is any subfamily given by composition of an embedding into index type with the original family.
theorem AffineIndependent.subtype E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p → ∀ (s : Set ι), AffineIndependent k fun i ↦ p ↑i
If a family is affinely independent, so is any subfamily indexed by a subtype of the index type.
theorem AffineIndependent.range E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P}, AffineIndependent k p → AffineIndependent k fun x ↦ ↑x
If an indexed family of points is affinely independent, so is the corresponding set of points.
theorem affineIndependent_equiv E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} (e : ι ≃ ι') {p : ι' → P},
AffineIndependent k (p ∘ ⇑e) ↔ AffineIndependent k p
theorem affineIndependent_equiv' E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} (e : ι ≃ ι') {f : ι' → P} {g : ι → P},
f ∘ ⇑e = g → (AffineIndependent k g ↔ AffineIndependent k f)
theorem affineIndepOn_equiv E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} (e : ι ≃ ι') {f : ι' → P} {s : Set ι},
AffineIndepOn k (f ∘ ⇑e) s ↔ AffineIndepOn k f (⇑e '' s)
theorem affineIndepOn_univ_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P}, AffineIndepOn k p Set.univ ↔ AffineIndependent k p
theorem AffineIndependent.affineIndepOn_univ E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P}, AffineIndependent k p → AffineIndepOn k p Set.univ
Alias of the reverse direction of affineIndepOn_univ_iff.
theorem AffineIndependent.affineIndepOn E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P}, AffineIndependent k p → ∀ (s : Set ι), AffineIndepOn k p s
theorem AffineIndependent.affineIndepOn_id E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P}, AffineIndependent k p → AffineIndepOn k id (Set.range p)
theorem AffineIndepOn.comp_of_image E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} {s : Set ι'} {f : ι' → ι} {p : ι → P},
AffineIndepOn k p (f '' s) → Set.InjOn f s → AffineIndepOn k (p ∘ f) s
theorem AffineIndepOn.image_of_comp E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} {s : Set ι} (f : ι → ι') (g : ι' → P),
AffineIndepOn k (g ∘ f) s → AffineIndepOn k g (f '' s)
theorem affineIndepOn_image_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} {s : Set ι} {f : ι → ι'} (g : ι' → P),
Set.InjOn f s → (AffineIndepOn k g (f '' s) ↔ AffineIndepOn k (g ∘ f) s)
theorem affineIndepOn_iff_image E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {s : Set ι} {f : ι → P},
Set.InjOn f s → (AffineIndepOn k f s ↔ AffineIndepOn k id (f '' s))
theorem AffineIndepOn.id_image E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {s : Set ι}, AffineIndepOn k p s → AffineIndepOn k id (p '' s)
theorem affineIndepOn_iff_affineIndepOn_image_injOn E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P} {s : Set ι},
AffineIndepOn k p s ↔ AffineIndepOn k id (p '' s) ∧ Set.InjOn p s
theorem affineIndepOn_range_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} {f : ι → ι'},
Function.Injective f → ∀ (g : ι' → P), AffineIndepOn k g (Set.range f) ↔ AffineIndependent k (g ∘ f)
theorem AffineIndependent.of_affineIndepOn_range E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι' : Type u_5} {f : ι → ι'},
Function.Injective f → ∀ (g : ι' → P), AffineIndepOn k g (Set.range f) → AffineIndependent k (g ∘ f)
Alias of the forward direction of affineIndepOn_range_iff.
theorem affineIndepOn_id_range_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {f : ι → P},
Function.Injective f → (AffineIndepOn k id (Set.range f) ↔ AffineIndependent k f)
theorem AffineIndependent.of_affineIndepOn_id_range E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {f : ι → P},
Function.Injective f → AffineIndepOn k id (Set.range f) → AffineIndependent k f
Alias of the forward direction of affineIndepOn_id_range_iff.
theorem AffineIndependent.comm_left E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {p₁ p₂ p₃ : P}, AffineIndependent k ![p₁, p₂, p₃] → AffineIndependent k ![p₂, p₁, p₃]
Swapping the first two points preserves affine independence.
theorem AffineIndependent.comm_right E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {p₁ p₂ p₃ : P}, AffineIndependent k ![p₁, p₂, p₃] → AffineIndependent k ![p₁, p₃, p₂]
Swapping the last two points preserves affine independence.
theorem AffineIndependent.reverse_of_three E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {p₁ p₂ p₃ : P}, AffineIndependent k ![p₁, p₂, p₃] → AffineIndependent k ![p₃, p₂, p₁]
Reversing the order of three points preserves affine independence.
theorem AffineIndependent.mono E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s t : Set P}, (AffineIndependent k fun x ↦ ↑x) → s ⊆ t → AffineIndependent k fun x ↦ ↑x
If a set of points is affinely independent, so is any subset.
theorem AffineIndepOn.mono E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {s t : Set ι}, AffineIndepOn k p s → t ⊆ s → AffineIndepOn k p t
If a set of points is affinely independent, so is any subset.
theorem affineIndepOn_congr E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p q : ι → P} {s : Set ι},
Set.EqOn p q s → (AffineIndepOn k p s ↔ AffineIndepOn k q s)
theorem AffineIndepOn.congr E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p q : ι → P} {s : Set ι},
AffineIndepOn k p s → Set.EqOn p q s → AffineIndepOn k q s
theorem AffineIndependent.of_set_of_injective E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
(AffineIndependent k fun x ↦ ↑x) → Function.Injective p → AffineIndependent k p
If the range of an injective indexed family of points is affinely independent, so is that family.
theorem AffineIndependent.indicator_extend_eq_of_affineCombination_comp_embedding_eq E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {ι₂ : Type u_5} {p : ι → P},
AffineIndependent k p →
∀ {s₁ : Finset ι} {s₂ : Finset ι₂} {w₁ : ι → k} {w₂ : ι₂ → k},
∑ i ∈ s₁, w₁ i = 1 →
∑ i ∈ s₂, w₂ i = 1 →
∀ (e : ι₂ ↪ ι),
(Finset.affineCombination k s₂ (p ∘ ⇑e)) w₂ = (Finset.affineCombination k s₁ p) w₁ →
(↑(Finset.map e s₂)).indicator (Function.extend (⇑e) w₂ 0) = (↑s₁).indicator w₁
theorem AffineIndependent.indicator_extend_eq_of_affineCombination_comp_embedding_eq_of_fintype E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [inst_4 : Fintype ι] {ι₂ : Type u_5} [inst_5 : Fintype ι₂] {p : ι → P},
AffineIndependent k p →
∀ {w₁ : ι → k} {w₂ : ι₂ → k},
∑ i, w₁ i = 1 →
∑ i, w₂ i = 1 →
∀ (e : ι₂ ↪ ι),
(Finset.affineCombination k Finset.univ (p ∘ ⇑e)) w₂ = (Finset.affineCombination k Finset.univ p) w₁ →
(Set.range ⇑e).indicator (Function.extend (⇑e) w₂ 0) = w₁
theorem affineIndepOn_iff_linearIndepOn_vsub E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {s : Set ι} {i : ι},
i ∈ s → (AffineIndepOn k p s ↔ LinearIndepOn k (fun j ↦ p j -ᵥ p i) (s \ {i}))
theorem AffineIndependent.of_comp E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {p : ι → P} (f : P →ᵃ[k] P₂),
AffineIndependent k (⇑f ∘ p) → AffineIndependent k p
If the image of a family of points in affine space under an affine transformation is affine- independent, then the original family of points is also affine-independent.
theorem AffineIndepOn.of_comp E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {s : Set ι} {p : ι → P} (f : P →ᵃ[k] P₂),
AffineIndepOn k (⇑f ∘ p) s → AffineIndepOn k p s
If the image of a set of points in affine space under an affine transformation is affine- independent, then the original set of points is also affine-independent.
theorem AffineIndependent.map' E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {p : ι → P},
AffineIndependent k p → ∀ (f : P →ᵃ[k] P₂), Function.Injective ⇑f → AffineIndependent k (⇑f ∘ p)
The image of a family of points in affine space, under an injective affine transformation, is affine-independent.
theorem AffineIndepOn.map' E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {s : Set ι} {p : ι → P},
AffineIndepOn k p s → ∀ (f : P →ᵃ[k] P₂), Function.Injective ⇑f → AffineIndepOn k (⇑f ∘ p) s
The image of a set of points in affine space, under an injective affine transformation, is affine-independent.
theorem AffineMap.affineIndependent_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {p : ι → P} (f : P →ᵃ[k] P₂),
Function.Injective ⇑f → (AffineIndependent k (⇑f ∘ p) ↔ AffineIndependent k p)
Injective affine maps preserve affine independence.
theorem AffineMap.affineIndepOn_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {s : Set ι} {p : ι → P} (f : P →ᵃ[k] P₂),
Function.Injective ⇑f → (AffineIndepOn k (⇑f ∘ p) s ↔ AffineIndepOn k p s)
Injective affine maps preserve affine independence.
theorem AffineEquiv.affineIndependent_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {p : ι → P} (e : P ≃ᵃ[k] P₂),
AffineIndependent k (⇑e ∘ p) ↔ AffineIndependent k p
Affine equivalences preserve affine independence of families of points.
theorem AffineEquiv.affineIndepOn_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂]
[inst_5 : Module k V₂] [inst_6 : AddTorsor V₂ P₂] {s : Set ι} {p : ι → P} (e : P ≃ᵃ[k] P₂),
AffineIndepOn k (⇑e ∘ p) s ↔ AffineIndepOn k p s
Affine equivalences preserve affine independence of sets of points.
theorem AffineEquiv.affineIndependent_set_of_eq_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {V₂ : Type u_5} {P₂ : Type u_6} [inst_4 : AddCommGroup V₂] [inst_5 : Module k V₂]
[inst_6 : AddTorsor V₂ P₂] {s : Set P} (e : P ≃ᵃ[k] P₂),
AffineIndependent k Subtype.val ↔ AffineIndependent k Subtype.val
Affine equivalences preserve affine independence of subsets.
theorem affineIndependent_restrict_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {s : Set ι} {p : ι → P},
AffineIndependent k (s.domRestrict p) ↔ AffineIndepOn k p s
theorem AffineIndepOn.affineIndependent_restrict E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {s : Set ι} {p : ι → P},
AffineIndependent k (s.domRestrict p) → AffineIndepOn k p s
Alias of the forward direction of affineIndependent_restrict_iff.
theorem AffineIndependent.inf_affineSpan_eq_affineSpan_inter E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p →
∀ (s₁ s₂ : Set ι), affineSpan k (p '' s₁) ⊓ affineSpan k (p '' s₂) = affineSpan k (p '' (s₁ ∩ s₂))
If a family is affinely independent, the infimum of the affine spans of points indexed by two subsets equals the affine span of points indexed by the intersection of those subsets, if the underlying ring is nontrivial.
theorem AffineIndependent.exists_mem_inter_of_exists_mem_inter_affineSpan E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p →
∀ {s1 s2 : Set ι} {p0 : P}, p0 ∈ affineSpan k (p '' s1) → p0 ∈ affineSpan k (p '' s2) → ∃ i, i ∈ s1 ∩ s2
If a family is affinely independent, and the spans of points indexed by two subsets of the index type have a point in common, those subsets of the index type have an element in common, if the underlying ring is nontrivial.
theorem AffineIndependent.affineSpan_disjoint_of_disjoint E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p →
∀ {s1 s2 : Set ι}, Disjoint s1 s2 → Disjoint ↑(affineSpan k (p '' s1)) ↑(affineSpan k (p '' s2))
If a family is affinely independent, the spans of points indexed by disjoint subsets of the index type are disjoint, if the underlying ring is nontrivial.
theorem AffineIndependent.mem_affineSpan_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p → ∀ (i : ι) (s : Set ι), p i ∈ affineSpan k (p '' s) ↔ i ∈ s
If a family is affinely independent, a point in the family is in the span of some of the points given by a subset of the index type if and only if that point's index is in the subset, if the underlying ring is nontrivial.
theorem AffineIndependent.notMem_affineSpan_sdiff E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p → ∀ (i : ι) (s : Set ι), p i ∉ affineSpan k (p '' (s \ {i}))
If a family is affinely independent, a point in the family is not in the affine span of the other points, if the underlying ring is nontrivial.
theorem AffineIndepOn.notMem_affineSpan_sdiff E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P} {s : Set ι} {i : ι},
AffineIndepOn k p s → i ∈ s → p i ∉ affineSpan k (p '' (s \ {i}))
If a set is affinely independent, a point in the set is not in the affine span of the other points, if the underlying ring is nontrivial.
theorem AffineIndependent.injective_affineSpan_image E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p → Function.Injective fun s ↦ affineSpan k (p '' s)
theorem AffineIndependent.vectorSpan_image_eq_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [Nontrivial k] {p : ι → P},
AffineIndependent k p →
∀ {s₁ s₂ : Set ι}, vectorSpan k (p '' s₁) = vectorSpan k (p '' s₂) ↔ s₁ = s₂ ∨ s₁.Subsingleton ∧ s₂.Subsingleton
theorem exists_nontrivial_relation_sum_zero_of_not_affine_ind E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {t : Finset V},
¬AffineIndependent k Subtype.val → ∃ f, ∑ e ∈ t, f e • e = 0 ∧ ∑ e ∈ t, f e = 0 ∧ ∃ x ∈ t, f x ≠ 0
theorem affineIndependent_iff E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_5}
{p : ι → V},
AffineIndependent k p ↔ ∀ (s : Finset ι) (w : ι → k), s.sum w = 0 → ∑ e ∈ s, w e • p e = 0 → ∀ e ∈ s, w e = 0
Viewing a module as an affine space modelled on itself, we can characterise affine independence in terms of linear combinations.
theorem weightedVSub_mem_vectorSpan_pair E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ {w w₁ w₂ : ι → k} {s : Finset ι},
∑ i ∈ s, w i = 0 →
∑ i ∈ s, w₁ i = 1 →
∑ i ∈ s, w₂ i = 1 →
((s.weightedVSub p) w ∈
vectorSpan k {(Finset.affineCombination k s p) w₁, (Finset.affineCombination k s p) w₂} ↔
∃ r, ∀ i ∈ s, w i = r * (w₁ i - w₂ i))
Given an affinely independent family of points, a weighted subtraction lies in the
vectorSpan of two points given as affine combinations if and only if it is a weighted
subtraction with weights a multiple of the difference between the weights of the two points.
theorem affineCombination_mem_affineSpan_pair E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ {w w₁ w₂ : ι → k} {s : Finset ι},
∑ i ∈ s, w i = 1 →
∑ i ∈ s, w₁ i = 1 →
∑ i ∈ s, w₂ i = 1 →
((Finset.affineCombination k s p) w ∈
line[k, (Finset.affineCombination k s p) w₁, (Finset.affineCombination k s p) w₂] ↔
∃ r, ∀ i ∈ s, w i = r * (w₂ i - w₁ i) + w₁ i)
Given an affinely independent family of points, an affine combination lies in the span of two points given as affine combinations if and only if it is an affine combination with weights those of one point plus a multiple of the difference between the weights of the two points.
theorem AffineIndependent.affineCombination_eq_lineMap_iff_weight_lineMap E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ {w w₁ w₂ : ι → k} {s : Finset ι},
∑ i ∈ s, w i = 1 →
∑ i ∈ s, w₁ i = 1 →
∑ i ∈ s, w₂ i = 1 →
∀ (c : k),
(Finset.affineCombination k s p) w =
(AffineMap.lineMap ((Finset.affineCombination k s p) w₁) ((Finset.affineCombination k s p) w₂)) c ↔
∀ i ∈ s, w i = (AffineMap.lineMap (w₁ i) (w₂ i)) c
Given an affinely independent family of points, an affine combination (with sum of weights 1) equals the line map of two affine combination points if and only if its weights are given pointwise by the line map of the corresponding weights.
theorem exists_subset_affineIndependent_affineSpan_eq_top E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : Set P},
(AffineIndependent k fun p ↦ ↑p) → ∃ t, s ⊆ t ∧ (AffineIndependent k fun p ↦ ↑p) ∧ affineSpan k t = ⊤
An affinely independent set of points can be extended to such a set that spans the whole space.
theorem exists_affineIndependent E1 #
∀ (k : Type u_1) (V : Type u_2) {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] (s : Set P), ∃ t ⊆ s, affineSpan k t = affineSpan k s ∧ AffineIndependent k Subtype.val
theorem exists_affineIndepOn E1 #
∀ (k : Type u_1) (V : Type u_2) {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] (s : Set P), ∃ t ⊆ s, affineSpan k t = affineSpan k s ∧ AffineIndepOn k id t
theorem AffineIndepOn.id_insert E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : Set P} {q : P},
AffineIndepOn k id s → q ∉ affineSpan k s → AffineIndepOn k id (insert q s)
theorem AffineIndepOn.insert E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {s : Set ι} {x : ι} {p : ι → P},
AffineIndepOn k p s → p x ∉ affineSpan k (p '' s) → AffineIndepOn k p (insert x s)
theorem affineIndepOn_insert E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {s : Set ι} {x : ι} {p : ι → P},
x ∉ s → (AffineIndepOn k p (insert x s) ↔ AffineIndepOn k p s ∧ p x ∉ affineSpan k (p '' s))
theorem AffineIndepOn.notMem_affineSpan_iff E0 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {s : Set ι} {x : ι} {p : ι → P},
AffineIndepOn k p s → (p x ∉ affineSpan k (p '' s) ↔ AffineIndepOn k p (insert x s) ∧ x ∉ s)
A shortcut to a convenient form for the negation in AffineIndepOn.mem_affineSpan_iff.
theorem affineIndepOn_pair_iff E0 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {i j : ι}, i ≠ j → (AffineIndepOn k p {i, j} ↔ p i ≠ p j)
theorem affineIndepOn_pair E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] (p₁ p₂ : P), AffineIndepOn k id {p₁, p₂}
Two points are affinely independent (as a set, so this is trivial when they are equal).
theorem affineIndependent_of_ne E1 #
∀ (k : Type u_1) {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {p₁ p₂ : P}, p₁ ≠ p₂ → AffineIndependent k ![p₁, p₂]
Two different points are affinely independent.
theorem AffineIndependent.affineIndependent_of_notMem_span E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} {p : ι → P} {i : ι},
(AffineIndependent k fun x ↦ p ↑x) → p i ∉ affineSpan k (p '' {x | x ≠ i}) → AffineIndependent k p
If all but one point of a family are affinely independent, and that point does not lie in the affine span of that family, the family is affinely independent.
theorem affineIndependent_of_ne_of_mem_of_mem_of_notMem E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : AffineSubspace k P} {p₁ p₂ p₃ : P},
p₁ ≠ p₂ → p₁ ∈ s → p₂ ∈ s → p₃ ∉ s → AffineIndependent k ![p₁, p₂, p₃]
If distinct points p₁ and p₂ lie in s but p₃ does not, the three points are affinely
independent.
theorem affineIndependent_of_ne_of_mem_of_notMem_of_mem E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : AffineSubspace k P} {p₁ p₂ p₃ : P},
p₁ ≠ p₃ → p₁ ∈ s → p₂ ∉ s → p₃ ∈ s → AffineIndependent k ![p₁, p₂, p₃]
If distinct points p₁ and p₃ lie in s but p₂ does not, the three points are affinely
independent.
theorem affineIndependent_of_ne_of_notMem_of_mem_of_mem E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {s : AffineSubspace k P} {p₁ p₂ p₃ : P},
p₂ ≠ p₃ → p₁ ∉ s → p₂ ∈ s → p₃ ∈ s → AffineIndependent k ![p₁, p₂, p₃]
If distinct points p₂ and p₃ lie in s but p₁ does not, the three points are affinely
independent.
theorem AffineIndependent.affineIndependent_update_of_notMem_affineSpan E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : DivisionRing k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
[inst_3 : AddTorsor V P] {ι : Type u_4} [inst_4 : DecidableEq ι] {p : ι → P},
AffineIndependent k p →
∀ {i : ι} {p₀ : P}, p₀ ∉ affineSpan k (p '' {x | x ≠ i}) → AffineIndependent k (Function.update p i p₀)
If a family is affinely independent, we update any one point with a new point does not lie in the affine span of that family, the new family is affinely independent.
theorem sign_eq_of_affineCombination_mem_affineSpan_pair E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : LinearOrder k] [IsStrictOrderedRing k]
[inst_3 : AddCommGroup V] [inst_4 : Module k V] [inst_5 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ {w w₁ w₂ : ι → k} {s : Finset ι},
∑ i ∈ s, w i = 1 →
∑ i ∈ s, w₁ i = 1 →
∑ i ∈ s, w₂ i = 1 →
(Finset.affineCombination k s p) w ∈
line[k, (Finset.affineCombination k s p) w₁, (Finset.affineCombination k s p) w₂] →
∀ {i j : ι},
i ∈ s →
j ∈ s →
w₁ i = 0 →
w₁ j = 0 → SignType.sign (w₂ i) = SignType.sign (w₂ j) → SignType.sign (w i) = SignType.sign (w j)
Given an affinely independent family of points, suppose that an affine combination lies in the span of two points given as affine combinations, and suppose that, for two indices, the coefficients in the first point in the span are zero and those in the second point in the span have the same sign. Then the coefficients in the combination lying in the span have the same sign.
theorem sign_eq_of_affineCombination_mem_affineSpan_single_lineMap E1 #
∀ {k : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Ring k] [inst_1 : LinearOrder k] [IsStrictOrderedRing k]
[inst_3 : AddCommGroup V] [inst_4 : Module k V] [inst_5 : AddTorsor V P] {ι : Type u_4} {p : ι → P},
AffineIndependent k p →
∀ {w : ι → k} {s : Finset ι},
∑ i ∈ s, w i = 1 →
∀ {i₁ i₂ i₃ : ι},
i₁ ∈ s →
i₂ ∈ s →
i₃ ∈ s →
i₁ ≠ i₂ →
i₁ ≠ i₃ →
∀ {c : k},
0 < c →
c < 1 →
(Finset.affineCombination k s p) w ∈ line[k, p i₁, (AffineMap.lineMap (p i₂) (p i₃)) c] →
SignType.sign (w i₂) = SignType.sign (w i₃)
Given an affinely independent family of points, suppose that an affine combination lies in
the span of one point of that family and a combination of another two points of that family given
by lineMap with coefficient between 0 and 1. Then the coefficients of those two points in the
combination lying in the span have the same sign.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
AffineIndependent.notMem_affineSpan_diff | AffineIndependent.notMem_affineSpan_sdiff | 2026-06-03 |
affineIndepOn_of_ne | affineIndepOn_pair | 2026-11-04 |