The areas / V22. Affine, Euclidean and convex geometry
Mathlib.LinearAlgebra.AffineSpace.AffineSubspace.Defs
189 declarations. Mathlib docs · Source
Affine spaces
This file defines affine subspaces (over modules) and the affine span of a set of points.
Main definitions
AffineSubspace k Pis the type of affine subspaces. Unlike affine spaces, affine subspaces are allowed to be empty, and lemmas that do not apply to empty affine subspaces haveNonemptyhypotheses. There is aCompleteLatticestructure on affine subspaces.AffineSubspace.directiongives theSubmodulespanned by the pairwise differences of points in anAffineSubspace. There are various lemmas relating to the set of vectors in thedirection, and relating the lattice structure on affine subspaces to that on their directions.affineSpangives the affine subspace spanned by a set of points, withvectorSpangiving its direction. TheaffineSpanis defined in terms ofspanPoints, which gives an explicit description of the points contained in the affine span;spanPointsitself should generally only be used when that description is required, withaffineSpanbeing the main definition for other purposes. Two other descriptions of the affine span are proved equivalent: it is thesInfof affine subspaces containing the points, and (if[Nontrivial k]) it contains exactly those points that are affine combinations of points in the given set.
Implementation notes
outParam is used in the definition of AddTorsor V P to make V an implicit argument (deduced
from P) in most cases. As for modules, k is an explicit argument rather than implied by P or
V.
This file only provides purely algebraic definitions and results. Those depending on analysis or
topology are defined elsewhere; see Analysis.Normed.Affine.AddTorsor and
Topology.Algebra.Affine.
References
- https://en.wikipedia.org/wiki/Affine_space
- https://en.wikipedia.org/wiki/Principal_homogeneous_space
TODO
- Delete
spanPoints
def AffineSubspace.ctorIdx 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} → AffineSubspace k P → ℕ
theorem AffineSubspace.mk.inj 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} {carrier : Set P}
{smul_vsub_vadd_mem' :
∀ (c : k) {p₁ p₂ p₃ : P}, p₁ ∈ carrier → p₂ ∈ carrier → p₃ ∈ carrier → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ carrier}
{carrier_1 : Set P}
{smul_vsub_vadd_mem'_1 :
∀ (c : k) {p₁ p₂ p₃ : P}, p₁ ∈ carrier_1 → p₂ ∈ carrier_1 → p₃ ∈ carrier_1 → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ carrier_1},
{ carrier := carrier, smul_vsub_vadd_mem' := smul_vsub_vadd_mem' } =
{ carrier := carrier_1, smul_vsub_vadd_mem' := smul_vsub_vadd_mem'_1 } →
carrier = carrier_1
theorem AffineSubspace.mk.injEq 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] (carrier : Set P)
(smul_vsub_vadd_mem' :
∀ (c : k) {p₁ p₂ p₃ : P}, p₁ ∈ carrier → p₂ ∈ carrier → p₃ ∈ carrier → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ carrier)
(carrier_1 : Set P)
(smul_vsub_vadd_mem'_1 :
∀ (c : k) {p₁ p₂ p₃ : P}, p₁ ∈ carrier_1 → p₂ ∈ carrier_1 → p₃ ∈ carrier_1 → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ carrier_1),
({ carrier := carrier, smul_vsub_vadd_mem' := smul_vsub_vadd_mem' } =
{ carrier := carrier_1, smul_vsub_vadd_mem' := smul_vsub_vadd_mem'_1 }) =
(carrier = carrier_1)
def vectorSpan E3 #
(k : Type u_1) →
{V : Type u_2} →
{P : Type u_3} →
[inst : Ring k] → [inst_1 : AddCommGroup V] → [inst_2 : Module k V] → [AddTorsor V P] → Set P → Submodule k V
The submodule spanning the differences of a (possibly empty) set of points.
theorem vectorSpan_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] (s : Set P), vectorSpan k s = Submodule.span k (s -ᵥ s)
The definition of vectorSpan, for rewriting.
theorem vectorSpan_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₁ s₂ : Set P}, s₁ ⊆ s₂ → vectorSpan k s₁ ≤ vectorSpan k s₂
vectorSpan is monotone.
theorem vectorSpan_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], vectorSpan k ∅ = ⊥
The vectorSpan of the empty set is ⊥.
theorem vectorSpan_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] (p : P), vectorSpan k {p} = ⊥
The vectorSpan of a single point is ⊥.
theorem vsub_set_subset_vectorSpan 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), s -ᵥ s ⊆ ↑(vectorSpan k s)
The s -ᵥ s lies within the vectorSpan k s.
theorem vsub_mem_vectorSpan 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}, p₁ ∈ s → p₂ ∈ s → p₁ -ᵥ p₂ ∈ vectorSpan k s
Each pairwise difference is in the vectorSpan.
theorem vectorSpan_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] {s : Set P}, s.Subsingleton → vectorSpan k s = ⊥
theorem vectorSpan_eq_bot_iff_subsingleton 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}, vectorSpan k s = ⊥ ↔ s.Subsingleton
def spanPoints 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] → Set P → Set P
The points in the affine span of a (possibly empty) set of points. Use affineSpan instead to
get an AffineSubspace k P.
theorem mem_spanPoints 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] (p : P) (s : Set P), p ∈ s → p ∈ spanPoints k s
A point in a set is in its affine span.
theorem subset_spanPoints 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), s ⊆ spanPoints k s
A set is contained in its spanPoints.
theorem spanPoints_nonempty 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), (spanPoints k s).Nonempty ↔ s.Nonempty
The spanPoints of a set is nonempty if and only if that set is.
theorem vadd_mem_spanPoints_of_mem_spanPoints_of_mem_vectorSpan 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} {v : V},
p ∈ spanPoints k s → v ∈ vectorSpan k s → v +ᵥ p ∈ spanPoints k s
Adding a point in the affine span and a vector in the spanning submodule produces a point in the affine span.
theorem vsub_mem_vectorSpan_of_mem_spanPoints_of_mem_spanPoints 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},
p₁ ∈ spanPoints k s → p₂ ∈ spanPoints k s → p₁ -ᵥ p₂ ∈ vectorSpan k s
Subtracting two points in the affine span produces a vector in the spanning submodule.
structure AffineSubspace 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_3
An AffineSubspace k P is a subset of an AffineSpace V P that, if not empty, has an affine
space structure induced by a corresponding subspace of the Module k V.
ctor AffineSubspace.mk 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] →
(carrier : Set P) →
(∀ (c : k) {p₁ p₂ p₃ : P},
p₁ ∈ carrier → p₂ ∈ carrier → p₃ ∈ carrier → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ carrier) →
AffineSubspace k P
abbrev AffineSubspace.carrier 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] → AffineSubspace k P → Set P
The affine subspace seen as a subset.
theorem AffineSubspace.smul_vsub_vadd_mem' 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] (self : AffineSubspace k P) (c : k) {p₁ p₂ p₃ : P},
p₁ ∈ self.carrier → p₂ ∈ self.carrier → p₃ ∈ self.carrier → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ self.carrier
instance AffineSubspace.instSetLike 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] → SetLike (AffineSubspace k P) P
instance AffineSubspace.instPartialOrder 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] → PartialOrder (AffineSubspace k P)
instance AffineSubspace.instSingleton 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] → Singleton P (AffineSubspace k P)
theorem AffineSubspace.coe_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] (x : P), ↑{x} = {x}
theorem AffineSubspace.mem_singleton_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] (x y : P), x ∈ {y} ↔ x = y
theorem AffineSubspace.notMem_singleton_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] (x y : P), x ∉ {y} ↔ x ≠ y
theorem AffineSubspace.mem_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] (x : P), x ∈ {x}
theorem AffineSubspace.singleton_eq_singleton_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] (x y : P), {x} = {y} ↔ x = y
theorem AffineSubspace.carrier_eq_coe 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 : AffineSubspace k P), s.carrier = ↑s
theorem AffineSubspace.smul_vsub_vadd_mem 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 : AffineSubspace k P) (c : k) {p₁ p₂ p₃ : P},
p₁ ∈ s → p₂ ∈ s → p₃ ∈ s → c • (p₁ -ᵥ p₂) +ᵥ p₃ ∈ s
theorem AffineSubspace.mem_coe 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] (p : P) (s : AffineSubspace k P), p ∈ ↑s ↔ p ∈ s
A point is in an affine subspace coerced to a set if and only if it is in that affine subspace.
theorem AffineSubspace.coe_injective 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], Function.Injective SetLike.coe
Two affine subspaces are equal if they have the same points.
theorem AffineSubspace.ext 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 q : AffineSubspace k P}, (∀ (x : P), x ∈ p ↔ x ∈ q) → p = q
theorem AffineSubspace.ext_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₁ s₂ : AffineSubspace k P), s₁ = s₂ ↔ ↑s₁ = ↑s₂
def Submodule.toAffineSubspace E1 #
{k : Type u_1} →
{V : Type u_2} →
[inst : Ring k] → [inst_1 : AddCommGroup V] → [inst_2 : Module k V] → Submodule k V → AffineSubspace k V
Reinterprets p : Submodule k V as an AffineSubspace k V.
instance Submodule.instCoeAffineSubspace E0 #
{k : Type u_1} →
{V : Type u_2} →
[inst : Ring k] → [inst_1 : AddCommGroup V] → [inst_2 : Module k V] → Coe (Submodule k V) (AffineSubspace k V)
theorem Submodule.coe_toAffineSubspace E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (p : Submodule k V),
↑↑p = ↑p
theorem Submodule.mem_toAffineSubspace E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {p : Submodule k V}
{x : V}, x ∈ ↑p ↔ x ∈ p
theorem Submodule.toAffineSubspace_le_toAffineSubspace E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {p q : Submodule k V},
↑p ≤ ↑q ↔ p ≤ q
theorem Submodule.monotone_toAffineSubspace E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V],
Monotone Submodule.toAffineSubspace
theorem Submodule.toAffineSubspace_injective E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V],
Function.Injective Submodule.toAffineSubspace
theorem Submodule.toAffineSubspace_inj E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {p q : Submodule k V},
↑p = ↑q ↔ p = q
def Submodule.ofAffineSubspace E1 #
{k : Type u_1} →
{V : Type u_2} →
[inst : Ring k] →
[inst_1 : AddCommGroup V] → [inst_2 : Module k V] → (p : AffineSubspace k V) → 0 ∈ p → Submodule k V
Reinterprets p : AffineSubspace k V that includes 0 as a Submodule k V.
theorem Submodule.ofAffineSubspace_toAffineSubspace E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (p : AffineSubspace k V)
(hp : 0 ∈ p), ↑(Submodule.ofAffineSubspace p hp) = p
theorem Submodule.toAffineSubspace_ofAffineSubspace E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (p : Submodule k V),
Submodule.ofAffineSubspace ↑p ⋯ = p
instance Submodule.instCanLiftAffineSubspaceToAffineSubspaceMemOfNat E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V],
CanLift (AffineSubspace k V) (Submodule k V) Submodule.toAffineSubspace fun x ↦ 0 ∈ x
theorem AffineSubspace.vsub_self_of_zero_mem E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
{s : AffineSubspace k V}, 0 ∈ s → ↑s -ᵥ ↑s = ↑s
theorem AffineSubspace.vsub_self_eq_iff_zero_mem E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {s : AffineSubspace k V}
[Nonempty ↥s], ↑s -ᵥ ↑s = ↑s ↔ 0 ∈ s
def AffineSubspace.direction E3 #
{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] → AffineSubspace k P → Submodule k V
The direction of an affine subspace is the submodule spanned by the pairwise differences of points. (Except in the case of an empty affine subspace, where the direction is the zero submodule, every vector in the direction is the difference of two points in the affine subspace.)
This can also be used to reinterpret an affine subspace that contains
zero as a submodule, see direction_eq_self_iff_zero_mem.
theorem AffineSubspace.direction_eq_vectorSpan 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 : AffineSubspace k P), s.direction = vectorSpan k ↑s
The direction equals the vectorSpan.
theorem AffineSubspace.direction_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] (x : P), {x}.direction = ⊥
theorem AffineSubspace.direction_eq_bot_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 : AffineSubspace k P}, s.direction = ⊥ ↔ (↑s).Subsingleton
def AffineSubspace.directionOfNonempty 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 : AffineSubspace k P} → (↑s).Nonempty → Submodule k V
Alternative definition of the direction when the affine subspace is nonempty. This is defined so
that the order on submodules (as used in the definition of Submodule.span) can be used in the
proof of coe_direction_eq_vsub_set, and is not intended to be used beyond that proof.
theorem AffineSubspace.directionOfNonempty_eq_direction 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 : AffineSubspace k P} (h : (↑s).Nonempty),
AffineSubspace.directionOfNonempty h = s.direction
direction_of_nonempty gives the same submodule as direction.
theorem AffineSubspace.coe_direction_eq_vsub_set 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 : AffineSubspace k P}, (↑s).Nonempty → ↑s.direction = ↑s -ᵥ ↑s
The set of vectors in the direction of a nonempty affine subspace is given by vsub_set.
theorem AffineSubspace.mem_direction_iff_eq_vsub 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 : AffineSubspace k P},
(↑s).Nonempty → ∀ (v : V), v ∈ s.direction ↔ ∃ p₁ ∈ s, ∃ p₂ ∈ s, v = p₁ -ᵥ p₂
A vector is in the direction of a nonempty affine subspace if and only if it is the subtraction of two vectors in the subspace.
theorem AffineSubspace.vadd_mem_of_mem_direction 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 : AffineSubspace k P} {v : V}, v ∈ s.direction → ∀ {p : P}, p ∈ s → v +ᵥ p ∈ s
Adding a vector in the direction to a point in the subspace produces a point in the subspace.
theorem AffineSubspace.vsub_mem_direction 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 : AffineSubspace k P} {p₁ p₂ : P}, p₁ ∈ s → p₂ ∈ s → p₁ -ᵥ p₂ ∈ s.direction
Subtracting two points in the subspace produces a vector in the direction.
theorem AffineSubspace.vadd_mem_iff_mem_direction 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 : AffineSubspace k P} (v : V) {p : P}, p ∈ s → (v +ᵥ p ∈ s ↔ v ∈ s.direction)
Adding a vector to a point in a subspace produces a point in the subspace if and only if the vector is in the direction.
theorem AffineSubspace.vadd_mem_iff_mem_of_mem_direction 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 : AffineSubspace k P} {v : V}, v ∈ s.direction → ∀ {p : P}, v +ᵥ p ∈ s ↔ p ∈ s
Adding a vector in the direction to a point produces a point in the subspace if and only if the original point is in the subspace.
theorem AffineSubspace.coe_direction_eq_vsub_set_right 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 : AffineSubspace k P} {p : P}, p ∈ s → ↑s.direction = (fun x ↦ x -ᵥ p) '' ↑s
Given a point in an affine subspace, the set of vectors in its direction equals the set of vectors subtracting that point on the right.
theorem AffineSubspace.coe_direction_eq_vsub_set_left 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 : AffineSubspace k P} {p : P}, p ∈ s → ↑s.direction = (fun x ↦ p -ᵥ x) '' ↑s
Given a point in an affine subspace, the set of vectors in its direction equals the set of vectors subtracting that point on the left.
theorem AffineSubspace.mem_direction_iff_eq_vsub_right 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 : AffineSubspace k P} {p : P}, p ∈ s → ∀ (v : V), v ∈ s.direction ↔ ∃ p₂ ∈ s, v = p₂ -ᵥ p
Given a point in an affine subspace, a vector is in its direction if and only if it results from subtracting that point on the right.
theorem AffineSubspace.mem_direction_iff_eq_vsub_left 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 : AffineSubspace k P} {p : P}, p ∈ s → ∀ (v : V), v ∈ s.direction ↔ ∃ p₂ ∈ s, v = p -ᵥ p₂
Given a point in an affine subspace, a vector is in its direction if and only if it results from subtracting that point on the left.
theorem AffineSubspace.direction_eq_self_iff_zero_mem E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
{s : AffineSubspace k V}, ↑s.direction = s ↔ 0 ∈ s
An affine subspace contains zero if and only if it equals its directions.
instance AffineSubspace.instCanLiftSubmoduleToAffineSubspaceMemOfNat E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V],
CanLift (AffineSubspace k V) (Submodule k V) (fun x ↦ ↑x) fun x ↦ 0 ∈ x
theorem AffineSubspace.le_of_direction_le 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₁ s₂ : AffineSubspace k P}, s₁.direction ≤ s₂.direction → (↑s₁ ∩ ↑s₂).Nonempty → s₁ ≤ s₂
theorem AffineSubspace.ext_of_direction_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] {s₁ s₂ : AffineSubspace k P}, s₁.direction = s₂.direction → (↑s₁ ∩ ↑s₂).Nonempty → s₁ = s₂
Two affine subspaces with the same direction and nonempty intersection are equal.
def AffineSubspace.mk' 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 → Submodule k V → AffineSubspace k P
Construct an affine subspace from a point and a direction.
theorem AffineSubspace.mem_mk' 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] {p q : P} {direction : Submodule k V},
q ∈ AffineSubspace.mk' p direction ↔ q -ᵥ p ∈ direction
A point lies in an affine subspace constructed from another point and a direction if and only if their difference is in that direction.
theorem AffineSubspace.self_mem_mk' 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) (direction : Submodule k V), p ∈ AffineSubspace.mk' p direction
An affine subspace constructed from a point and a direction contains that point.
theorem AffineSubspace.vadd_mem_mk' 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] {v : V} (p : P) {direction : Submodule k V},
v ∈ direction → v +ᵥ p ∈ AffineSubspace.mk' p direction
An affine subspace constructed from a point and a direction contains the result of adding a vector in that direction to that point.
theorem AffineSubspace.mk'_nonempty 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) (direction : Submodule k V), (↑(AffineSubspace.mk' p direction)).Nonempty
An affine subspace constructed from a point and a direction is nonempty.
instance AffineSubspace.instNonemptySubtypeMemMk' 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] (p : P) (direction : Submodule k V), Nonempty ↥(AffineSubspace.mk' p direction)
theorem AffineSubspace.direction_mk' 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] (p : P) (direction : Submodule k V), (AffineSubspace.mk' p direction).direction = direction
The direction of an affine subspace constructed from a point and a direction.
theorem AffineSubspace.mk'_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] {s : AffineSubspace k P} {p : P}, p ∈ s → AffineSubspace.mk' p s.direction = s
Constructing an affine subspace from a point in a subspace and that subspace's direction yields the original subspace.
theorem AffineSubspace.spanPoints_subset_coe_of_subset_coe 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} {s₁ : AffineSubspace k P}, s ⊆ ↑s₁ → spanPoints k s ⊆ ↑s₁
If an affine subspace contains a set of points, it contains the spanPoints of that set.
theorem Submodule.toAffineSubspace_direction E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (s : Submodule k V),
(↑s).direction = s
def affineSpan E3 #
(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] → Set P → AffineSubspace k P
The affine span of a set of points is the smallest affine subspace containing those points. (Actually defined here in terms of spans in modules.)
theorem coe_affineSpan 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), ↑(affineSpan k s) = spanPoints k s
The affine span, converted to a set, is spanPoints.
theorem mem_affineSpan_iff_exists 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] {p : P} {s : Set P}, p ∈ affineSpan k s ↔ ∃ p₁ ∈ s, ∃ v ∈ vectorSpan k s, p = v +ᵥ p₁
The condition for a point to be in the affine span, in terms of vectorSpan.
theorem subset_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] (s : Set P), s ⊆ ↑(affineSpan k s)
A set is contained in its affine span.
theorem direction_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] (s : Set P), (affineSpan k s).direction = vectorSpan k s
The direction of the affine span is the vectorSpan.
theorem mem_affineSpan 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] {p : P} {s : Set P}, p ∈ s → p ∈ affineSpan k s
A point in a set is in its affine span.
theorem vectorSpan_add_self E0 #
∀ (k : Type u_1) {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (s : Set V),
↑(vectorSpan k s) + s = ↑(affineSpan k s)
theorem vadd_mem_affineSpan_of_mem_affineSpan_of_mem_vectorSpan 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} {v : V},
p ∈ affineSpan k s → v ∈ vectorSpan k s → v +ᵥ p ∈ affineSpan k s
Adding a point in the affine span and a vector in the spanning submodule produces a point in the affine span.
theorem vsub_mem_vectorSpan_of_mem_affineSpan_of_mem_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] {s : Set P} {p₁ p₂ : P},
p₁ ∈ affineSpan k s → p₂ ∈ affineSpan k s → p₁ -ᵥ p₂ ∈ vectorSpan k s
Subtracting two points in the affine span produces a vector in the spanning submodule.
theorem affineSpan_le_of_subset_coe 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} {s₁ : AffineSubspace k P}, s ⊆ ↑s₁ → affineSpan k s ≤ s₁
If an affine subspace contains a set of points, it contains the affine span of that set.
instance AffineSubspace.instCompleteLattice 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] → [S : AddTorsor V P] → CompleteLattice (AffineSubspace k P)
instance AffineSubspace.instInhabited 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] → [S : AddTorsor V P] → Inhabited (AffineSubspace k P)
theorem AffineSubspace.le_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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), s₁ ≤ s₂ ↔ ↑s₁ ⊆ ↑s₂
The ≤ order on subspaces is the same as that on the corresponding sets.
theorem AffineSubspace.le_def' 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), s₁ ≤ s₂ ↔ ∀ p ∈ s₁, p ∈ s₂
One subspace is less than or equal to another if and only if all its points are in the second subspace.
theorem AffineSubspace.lt_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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), s₁ < s₂ ↔ ↑s₁ ⊂ ↑s₂
The < order on subspaces is the same as that on the corresponding sets.
theorem AffineSubspace.not_le_iff_exists 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), ¬s₁ ≤ s₂ ↔ ∃ p ∈ s₁, p ∉ s₂
One subspace is not less than or equal to another if and only if it has a point not in the second subspace.
theorem AffineSubspace.exists_of_lt 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P}, s₁ < s₂ → ∃ p ∈ s₂, p ∉ s₁
If a subspace is less than another, there is a point only in the second.
theorem AffineSubspace.lt_iff_le_and_exists 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), s₁ < s₂ ↔ s₁ ≤ s₂ ∧ ∃ p ∈ s₂, p ∉ s₁
A subspace is less than another if and only if it is less than or equal to the second subspace and there is a point only in the second.
instance AffineSubspace.nonempty_sup_left 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P) [Nonempty ↥s₁], Nonempty ↥(s₁ ⊔ s₂)
instance AffineSubspace.nonempty_sup_right 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P) [Nonempty ↥s₂], Nonempty ↥(s₁ ⊔ s₂)
theorem AffineSubspace.affineSpan_eq_sInf 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]
[S : AddTorsor V P] (s : Set P), affineSpan k s = sInf {s' | s ⊆ ↑s'}
The affine span is the sInf of subspaces containing the given points.
def AffineSubspace.gi 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] → [S : AddTorsor V P] → GaloisInsertion (affineSpan k) SetLike.coe
The Galois insertion formed by affineSpan and coercion back to a set.
theorem AffineSubspace.span_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]
[S : AddTorsor V P], affineSpan k ∅ = ⊥
The span of the empty set is ⊥.
theorem AffineSubspace.span_univ 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]
[S : AddTorsor V P], affineSpan k Set.univ = ⊤
The span of univ is ⊤.
theorem affineSpan_le 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]
[S : AddTorsor V P] {s : Set P} {Q : AffineSubspace k P}, affineSpan k s ≤ Q ↔ s ⊆ ↑Q
theorem AffineSubspace.span_union 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]
[S : AddTorsor V P] (s t : Set P), affineSpan k (s ∪ t) = affineSpan k s ⊔ affineSpan k t
The span of a union of sets is the sup of their spans.
theorem AffineSubspace.span_iUnion 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]
[S : AddTorsor V P] {ι : Type u_5} (s : ι → Set P), affineSpan k (⋃ i, s i) = ⨆ i, affineSpan k (s i)
The span of a union of an indexed family of sets is the sup of their spans.
theorem AffineSubspace.top_coe 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]
[S : AddTorsor V P], ↑⊤ = Set.univ
⊤, coerced to a set, is the whole set of points.
theorem AffineSubspace.mem_top 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]
[S : AddTorsor V P] (p : P), p ∈ ⊤
All points are in ⊤.
theorem AffineSubspace.mk'_top 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]
[S : AddTorsor V P] (p : P), AffineSubspace.mk' p ⊤ = ⊤
theorem AffineSubspace.direction_top 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]
[S : AddTorsor V P], ⊤.direction = ⊤
The direction of ⊤ is the whole module as a submodule.
theorem AffineSubspace.bot_coe 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]
[S : AddTorsor V P], ↑⊥ = ∅
⊥, coerced to a set, is the empty set.
theorem AffineSubspace.bot_ne_top 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]
[S : AddTorsor V P], ⊥ ≠ ⊤
instance AffineSubspace.instNontrivial 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]
[S : AddTorsor V P], Nontrivial (AffineSubspace k P)
theorem AffineSubspace.nonempty_of_affineSpan_eq_top 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]
[S : AddTorsor V P] {s : Set P}, affineSpan k s = ⊤ → s.Nonempty
theorem AffineSubspace.vectorSpan_eq_top_of_affineSpan_eq_top 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]
[S : AddTorsor V P] {s : Set P}, affineSpan k s = ⊤ → vectorSpan k s = ⊤
If the affine span of a set is ⊤, then the vector span of the same set is the ⊤.
theorem AffineSubspace.affineSpan_eq_top_iff_vectorSpan_eq_top_of_nonempty 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]
[S : AddTorsor V P] {s : Set P}, s.Nonempty → (affineSpan k s = ⊤ ↔ vectorSpan k s = ⊤)
For a nonempty set, the affine span is ⊤ iff its vector span is ⊤.
theorem AffineSubspace.affineSpan_eq_top_iff_vectorSpan_eq_top_of_nontrivial 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]
[S : AddTorsor V P] {s : Set P} [Nontrivial P], affineSpan k s = ⊤ ↔ vectorSpan k s = ⊤
For a non-trivial space, the affine span of a set is ⊤ iff its vector span is ⊤.
theorem AffineSubspace.card_pos_of_affineSpan_eq_top 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]
[S : AddTorsor V P] {ι : Type u_5} [inst_3 : Fintype ι] {p : ι → P},
affineSpan k (Set.range p) = ⊤ → 0 < Fintype.card ι
instance AffineSubspace.instNonemptySubtypeMemTop 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]
[S : AddTorsor V P], Nonempty ↥⊤
theorem AffineSubspace.notMem_bot 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]
[S : AddTorsor V P] (p : P), p ∉ ⊥
No points are in ⊥.
instance AffineSubspace.isEmpty_bot 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]
[S : AddTorsor V P], IsEmpty ↥⊥
theorem AffineSubspace.direction_bot 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]
[S : AddTorsor V P], ⊥.direction = ⊥
The direction of ⊥ is the submodule ⊥.
theorem AffineSubspace.coe_eq_bot_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]
[S : AddTorsor V P] (Q : AffineSubspace k P), ↑Q = ∅ ↔ Q = ⊥
theorem AffineSubspace.coe_eq_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]
[S : AddTorsor V P] (Q : AffineSubspace k P), ↑Q = Set.univ ↔ Q = ⊤
theorem AffineSubspace.nonempty_iff_ne_bot 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]
[S : AddTorsor V P] (Q : AffineSubspace k P), (↑Q).Nonempty ↔ Q ≠ ⊥
theorem AffineSubspace.toAffineSubspace_ne_bot E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (p : Submodule k V),
↑p ≠ ⊥
instance AffineSubspace.instIsSimpleOrderOfSubsingleton 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]
[S : AddTorsor V P] [Subsingleton P], IsSimpleOrder (AffineSubspace k P)
theorem AffineSubspace.direction_eq_top_iff_of_nonempty 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]
[S : AddTorsor V P] {s : AffineSubspace k P}, (↑s).Nonempty → (s.direction = ⊤ ↔ s = ⊤)
A nonempty affine subspace is ⊤ if and only if its direction is ⊤.
theorem AffineSubspace.coe_inf 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), ↑(s₁ ⊓ s₂) = ↑s₁ ∩ ↑s₂
The inf of two affine subspaces, coerced to a set, is the intersection of the two sets of points.
theorem AffineSubspace.mem_inf_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]
[S : AddTorsor V P] (p : P) (s₁ s₂ : AffineSubspace k P), p ∈ s₁ ⊓ s₂ ↔ p ∈ s₁ ∧ p ∈ s₂
A point is in the inf of two affine subspaces if and only if it is in both of them.
theorem AffineSubspace.direction_inf 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), (s₁ ⊓ s₂).direction ≤ s₁.direction ⊓ s₂.direction
The direction of the inf of two affine subspaces is less than or equal to the inf of their directions.
theorem AffineSubspace.direction_inf_of_mem 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P} {p : P},
p ∈ s₁ → p ∈ s₂ → (s₁ ⊓ s₂).direction = s₁.direction ⊓ s₂.direction
If two affine subspaces have a point in common, the direction of their inf equals the inf of their directions.
theorem AffineSubspace.direction_inf_of_mem_inf 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P} {p : P},
p ∈ s₁ ⊓ s₂ → (s₁ ⊓ s₂).direction = s₁.direction ⊓ s₂.direction
If two affine subspaces have a point in their inf, the direction of their inf equals the inf of their directions.
theorem AffineSubspace.coe_sInf 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]
[S : AddTorsor V P] (t : Set (AffineSubspace k P)), ↑(sInf t) = ⋂ s ∈ t, ↑s
theorem AffineSubspace.mem_sInf_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]
[S : AddTorsor V P] (p : P) (t : Set (AffineSubspace k P)), p ∈ sInf t ↔ ∀ s ∈ t, p ∈ s
theorem AffineSubspace.direction_sInf 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]
[S : AddTorsor V P] (t : Set (AffineSubspace k P)), (sInf t).direction ≤ ⨅ s ∈ t, s.direction
theorem AffineSubspace.direction_sInf_of_mem 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]
[S : AddTorsor V P] (t : Set (AffineSubspace k P)) (p : P),
(∀ s ∈ t, p ∈ s) → (sInf t).direction = ⨅ s ∈ t, s.direction
theorem AffineSubspace.direction_sInf_of_mem_sInf 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]
[S : AddTorsor V P] (t : Set (AffineSubspace k P)), ∀ p ∈ sInf t, (sInf t).direction = ⨅ s ∈ t, s.direction
theorem AffineSubspace.coe_iInf 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]
[S : AddTorsor V P] {ι : Sort u_4} (s : ι → AffineSubspace k P), ↑(iInf s) = ⋂ i, ↑(s i)
theorem AffineSubspace.mem_iInf_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]
[S : AddTorsor V P] {ι : Sort u_4} (s : ι → AffineSubspace k P) (p : P), p ∈ iInf s ↔ ∀ (i : ι), p ∈ s i
theorem AffineSubspace.direction_iInf 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]
[S : AddTorsor V P] {ι : Sort u_4} (s : ι → AffineSubspace k P), (iInf s).direction ≤ ⨅ i, (s i).direction
theorem AffineSubspace.direction_iInf_of_mem 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]
[S : AddTorsor V P] {ι : Sort u_4} (s : ι → AffineSubspace k P) (p : P),
(∀ (i : ι), p ∈ s i) → (iInf s).direction = ⨅ i, (s i).direction
theorem AffineSubspace.direction_iInf_of_mem_iInf 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]
[S : AddTorsor V P] {ι : Sort u_4} (s : ι → AffineSubspace k P),
∀ p ∈ iInf s, (iInf s).direction = ⨅ i, (s i).direction
theorem AffineSubspace.direction_le 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P}, s₁ ≤ s₂ → s₁.direction ≤ s₂.direction
If one affine subspace is less than or equal to another, the same applies to their directions.
theorem AffineSubspace.sup_direction_le 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]
[S : AddTorsor V P] (s₁ s₂ : AffineSubspace k P), s₁.direction ⊔ s₂.direction ≤ (s₁ ⊔ s₂).direction
The sup of the directions of two affine subspaces is less than or equal to the direction of their sup.
theorem AffineSubspace.sup_direction_lt_of_nonempty_of_inter_empty 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P},
(↑s₁).Nonempty → (↑s₂).Nonempty → ↑s₁ ∩ ↑s₂ = ∅ → s₁.direction ⊔ s₂.direction < (s₁ ⊔ s₂).direction
The sup of the directions of two nonempty affine subspaces with empty intersection is less than the direction of their sup.
theorem AffineSubspace.inter_nonempty_of_nonempty_of_sup_direction_eq_top 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P},
(↑s₁).Nonempty → (↑s₂).Nonempty → s₁.direction ⊔ s₂.direction = ⊤ → (↑s₁ ∩ ↑s₂).Nonempty
If the directions of two nonempty affine subspaces span the whole module, they have nonempty intersection.
theorem AffineSubspace.inter_eq_singleton_of_nonempty_of_isCompl 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]
[S : AddTorsor V P] {s₁ s₂ : AffineSubspace k P},
(↑s₁).Nonempty → (↑s₂).Nonempty → IsCompl s₁.direction s₂.direction → ∃ p, ↑s₁ ∩ ↑s₂ = {p}
If the directions of two nonempty affine subspaces are complements of each other, they intersect in exactly one point.
theorem AffineSubspace.affineSpan_coe 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]
[S : AddTorsor V P] (s : AffineSubspace k P), affineSpan k ↑s = s
Coercing a subspace to a set then taking the affine span produces the original subspace.
theorem AffineSubspace.mk'_le_mk'_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]
[S : AddTorsor V P] (p : P) {d₁ d₂ : Submodule k V}, AffineSubspace.mk' p d₁ ≤ AffineSubspace.mk' p d₂ ↔ d₁ ≤ d₂
theorem AffineSubspace.mk'_strictMono 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]
[S : AddTorsor V P] (p : P), StrictMono (AffineSubspace.mk' p)
theorem AffineSubspace.mk'_eq_mk'_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]
[S : AddTorsor V P] {p q : P} {s : Submodule k V}, AffineSubspace.mk' p s = AffineSubspace.mk' q s ↔ p -ᵥ q ∈ s
Two affine subspaces constructed from points and the same direction are equal if and only if the difference of the points lies in that direction.
theorem affineSpan_nonempty 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}, (↑(affineSpan k s)).Nonempty ↔ s.Nonempty
The affine span of a set is nonempty if and only if that set is.
theorem Set.Nonempty.affineSpan E3 #
∀ (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}, s.Nonempty → (↑(affineSpan k s)).Nonempty
Alias of the reverse direction of affineSpan_nonempty.
The affine span of a set is nonempty if and only if that set is.
instance instNonemptySubtypeMemAffineSubspaceAffineSpanOfElem 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} [Nonempty ↑s], Nonempty ↥(affineSpan k s)
The affine span of a nonempty set is nonempty.
instance instNonemptySubtypeMemAffineSubspaceSingleton 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] (x : P), Nonempty ↥{x}
The affine span of a singleton is nonempty.
theorem affineSpan_eq_bot 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}, affineSpan k s = ⊥ ↔ s = ∅
The affine span of a set is ⊥ if and only if that set is empty.
theorem bot_lt_affineSpan 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}, ⊥ < affineSpan k s ↔ s.Nonempty
theorem affineSpan_eq_top_iff_nonempty_of_subsingleton 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} [Subsingleton P], affineSpan k s = ⊤ ↔ s.Nonempty
theorem affineSpan_induction 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] {x : P} {s : Set P} {p : P → Prop},
x ∈ affineSpan k s → (∀ x ∈ s, p x) → (∀ (c : k) (u v w : P), p u → p v → p w → p (c • (u -ᵥ v) +ᵥ w)) → p x
An induction principle for span membership. If p holds for all elements of s and is
preserved under certain affine combinations, then p holds for all elements of the span of s.
theorem affineSpan_induction' 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 : (x : P) → x ∈ affineSpan k s → Prop},
(∀ (y : P) (hys : y ∈ s), p y ⋯) →
(∀ (c : k) (u : P) (hu : u ∈ affineSpan k s) (v : P) (hv : v ∈ affineSpan k s) (w : P) (hw : w ∈ affineSpan k s),
p u hu → p v hv → p w hw → p (c • (u -ᵥ v) +ᵥ w) ⋯) →
∀ {x : P} (h : x ∈ affineSpan k s), p x h
A dependent version of affineSpan_induction.
theorem vsub_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] (p₁ p₂ : P), p₁ -ᵥ p₂ ∈ vectorSpan k {p₁, p₂}
The difference between two points lies in their vectorSpan.
theorem vsub_rev_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] (p₁ p₂ : P), p₂ -ᵥ p₁ ∈ vectorSpan k {p₁, p₂}
The difference between two points (reversed) lies in their vectorSpan.
theorem smul_vsub_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] (r : k) (p₁ p₂ : P), r • (p₁ -ᵥ p₂) ∈ vectorSpan k {p₁, p₂}
A multiple of the difference between two points lies in their vectorSpan.
theorem smul_vsub_rev_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] (r : k) (p₁ p₂ : P), r • (p₂ -ᵥ p₁) ∈ vectorSpan k {p₁, p₂}
A multiple of the difference between two points (reversed) lies in their vectorSpan.
def «termLine[_,_,_]» E1 #
Lean.ParserDescr
The line between two points, as an affine subspace.
theorem left_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] (p₁ p₂ : P), p₁ ∈ line[k, p₁, p₂]
The first of two points lies in their affine span.
theorem right_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] (p₁ p₂ : P), p₂ ∈ line[k, p₁, p₂]
The second of two points lies in their affine span.
theorem affineSpan_pair_le_of_mem_of_mem 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} {s : AffineSubspace k P}, p₁ ∈ s → p₂ ∈ s → line[k, p₁, p₂] ≤ s
The span of two points that lie in an affine subspace is contained in that subspace.
theorem affineSpan_pair_le_of_left_mem 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}, p₁ ∈ line[k, p₂, p₃] → line[k, p₁, p₃] ≤ line[k, p₂, p₃]
One line is contained in another differing in the first point if the first point of the first line is contained in the second line.
theorem affineSpan_pair_le_of_right_mem 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}, p₁ ∈ line[k, p₂, p₃] → line[k, p₂, p₁] ≤ line[k, p₂, p₃]
One line is contained in another differing in the second point if the second point of the first line is contained in the second line.
theorem affineSpan_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₁ s₂ : Set P}, s₁ ⊆ s₂ → affineSpan k s₁ ≤ affineSpan k s₂
affineSpan is monotone.
theorem affineSpan_insert_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] (p : P) (ps : Set P), affineSpan k (insert p ↑(affineSpan k ps)) = affineSpan k (insert p ps)
Taking the affine span of a set, adding a point and taking the span again produces the same results as adding the point to the set and taking the span.
theorem affineSpan_insert_eq_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] {p : P} {ps : Set P}, p ∈ affineSpan k ps → affineSpan k (insert p ps) = affineSpan k ps
If a point is in the affine span of a set, adding it to that set does not change the affine span.
theorem vectorSpan_insert_eq_vectorSpan 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} {ps : Set P}, p ∈ affineSpan k ps → vectorSpan k (insert p ps) = vectorSpan k ps
If a point is in the affine span of a set, adding it to that set does not change the vector span.
theorem affineSpan_le_toAffineSubspace_span E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {s : Set V},
affineSpan k s ≤ ↑(Submodule.span k s)
When the affine space is also a vector space, the affine span is contained within the linear span.
theorem affineSpan_subset_span E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {s : Set V},
↑(affineSpan k s) ⊆ ↑(Submodule.span k s)
theorem affineSpan_insert_zero E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (s : Set V),
affineSpan k (insert 0 s) = ↑(Submodule.span k s)
theorem affineSpan_eq_span_iff_zero_mem E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {s : Set V},
affineSpan k s = ↑(Submodule.span k s) ↔ 0 ∈ affineSpan k s
theorem affineSpan_eq_span_of_zero_mem E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {s : Set V},
0 ∈ affineSpan k s → affineSpan k s = ↑(Submodule.span k s)
Alias of the reverse direction of affineSpan_eq_span_iff_zero_mem.
theorem Submodule.toAffineSubspace_top E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V], ↑⊤ = ⊤
theorem Submodule.toAffineSubspace_bot E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V], ↑⊥ = {0}
theorem Submodule.toAffineSubspace_inf E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (p q : Submodule k V),
↑(p ⊓ q) = ↑p ⊓ ↑q
theorem Submodule.toAffineSubspace_sInf E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
(s : Set (Submodule k V)), ↑(sInf s) = ⨅ p ∈ s, ↑p
theorem Submodule.toAffineSubspace_iInf E0 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_3}
(p : ι → Submodule k V), ↑(⨅ i, p i) = ⨅ i, ↑(p i)
theorem Submodule.toAffineSubspace_sSup E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V]
{s : Set (Submodule k V)}, s.Nonempty → ↑(sSup s) = ⨆ p ∈ s, ↑p
theorem Submodule.toAffineSubspace_iSup E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] {ι : Type u_3}
[Nonempty ι] (p : ι → Submodule k V), ↑(⨆ i, p i) = ⨆ i, ↑(p i)
theorem Submodule.toAffineSubspace_sup E1 #
∀ {k : Type u_1} {V : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V] [inst_2 : Module k V] (p q : Submodule k V),
↑(p ⊔ q) = ↑p ⊔ ↑q