The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Ray
104 declarations. Mathlib docs · Source
Rays in modules
This file defines rays in modules.
Main definitions
-
SameRay: two vectors belong to the same ray if they are proportional with a nonnegative coefficient. -
Module.Rayis a type for the equivalence class of nonzero vectors in a module with some common positive multiple.
theorem rayOfNeZero.congr_simp E1 #
∀ (R : Type u_1) [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (v v_1 : M) (e_v : v = v_1) (h : v ≠ 0),
rayOfNeZero R v h = rayOfNeZero R v_1 ⋯
theorem SameRay.congr_simp E1 #
∀ (R : Type u_1) [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (v₁ v₁_1 : M),
v₁ = v₁_1 → ∀ (v₂ v₂_1 : M), v₂ = v₂_1 → SameRay R v₁ v₂ = SameRay R v₁_1 v₂_1
def SameRay E3 #
(R : Type u_1) →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[IsStrictOrderedRing R] → {M : Type u_2} → [inst_3 : AddCommMonoid M] → [Module R M] → M → M → Prop
Two vectors are in the same ray if either one of them is zero or some positive multiples of them are equal (in the typical case over a field, this means one of them is a nonnegative multiple of the other).
def RayVector E1 #
Type u_1 → (M : Type u_2) → [Zero M] → Type (max 0 u_2)
Nonzero vectors, as used to define rays. This type depends on an unused argument R so that
RayVector.Setoid can be an instance.
def RayVector.equiv E1 #
(R : Type u_1) → (M : Type u_2) → [inst : Zero M] → RayVector R M ≃ { v // v ≠ 0 }
Equivalence between RayVector and non-zero vectors.
instance RayVector.coe E0 #
{R : Type u_1} → {M : Type u_2} → [inst : Zero M] → CoeOut (RayVector R M) M
theorem RayVector.coe_equiv_symm E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : Zero M] {v : M} (h : v ≠ 0),
↑((RayVector.equiv R M) ((RayVector.equiv R M).symm ⟨v, h⟩)) = v
theorem RayVector.ext_iff E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : Zero M] {x y : RayVector R M},
x = y ↔ ↑((RayVector.equiv R M) x) = ↑((RayVector.equiv R M) y)
theorem RayVector.ext E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : Zero M] {x y : RayVector R M},
↑((RayVector.equiv R M) x) = ↑((RayVector.equiv R M) y) → x = y
instance instNonemptyRayVectorOfNontrivial E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : Zero M] [Nontrivial M], Nonempty (RayVector R M)
theorem SameRay.zero_left E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (y : M), SameRay R 0 y
theorem SameRay.zero_right E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (x : M), SameRay R x 0
theorem SameRay.of_subsingleton E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] [Subsingleton M] (x y : M), SameRay R x y
theorem SameRay.of_subsingleton' E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] [Subsingleton R] (x y : M), SameRay R x y
theorem SameRay.refl E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (x : M), SameRay R x x
SameRay is reflexive.
theorem SameRay.rfl E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x : M}, SameRay R x x
theorem SameRay.symm E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M}, SameRay R x y → SameRay R y x
SameRay is symmetric.
theorem SameRay.exists_pos E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M},
SameRay R x y → x ≠ 0 → y ≠ 0 → ∃ r₁ r₂, 0 < r₁ ∧ 0 < r₂ ∧ r₁ • x = r₂ • y
If x and y are nonzero vectors on the same ray, then there exist positive numbers r₁ r₂
such that r₁ • x = r₂ • y.
theorem SameRay.sameRay_comm E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M}, SameRay R x y ↔ SameRay R y x
theorem SameRay.trans E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y z : M},
SameRay R x y → SameRay R y z → (y = 0 → x = 0 ∨ z = 0) → SameRay R x z
SameRay is transitive unless the vector in the middle is zero and both other vectors are
nonzero.
theorem SameRay.sameRay_nonneg_smul_right E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {S : Type u_4} [inst_5 : CommSemiring S] [inst_6 : PartialOrder S]
[inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M] {a : S} (v : M),
0 ≤ a → SameRay R v (a • v)
A vector is in the same ray as a nonnegative multiple of itself.
theorem SameRay.sameRay_nonneg_smul_left E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {S : Type u_4} [inst_5 : CommSemiring S] [inst_6 : PartialOrder S]
[inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M] {a : S} (v : M),
0 ≤ a → SameRay R (a • v) v
A nonnegative multiple of a vector is in the same ray as that vector.
theorem SameRay.sameRay_pos_smul_right E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {S : Type u_4} [inst_5 : CommSemiring S] [inst_6 : PartialOrder S]
[inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M] {a : S} (v : M),
0 < a → SameRay R v (a • v)
A vector is in the same ray as a positive multiple of itself.
theorem SameRay.sameRay_pos_smul_left E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {S : Type u_4} [inst_5 : CommSemiring S] [inst_6 : PartialOrder S]
[inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M] {a : S} (v : M),
0 < a → SameRay R (a • v) v
A positive multiple of a vector is in the same ray as that vector.
theorem SameRay.nonneg_smul_right E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M} {S : Type u_4} [inst_5 : CommSemiring S]
[inst_6 : PartialOrder S] [inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M]
{a : S}, SameRay R x y → 0 ≤ a → SameRay R x (a • y)
A vector is in the same ray as a nonnegative multiple of one it is in the same ray as.
theorem SameRay.nonneg_smul_left E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M} {S : Type u_4} [inst_5 : CommSemiring S]
[inst_6 : PartialOrder S] [inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M]
{a : S}, SameRay R x y → 0 ≤ a → SameRay R (a • x) y
A nonnegative multiple of a vector is in the same ray as one it is in the same ray as.
theorem SameRay.pos_smul_right E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M} {S : Type u_4} [inst_5 : CommSemiring S]
[inst_6 : PartialOrder S] [inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M]
{a : S}, SameRay R x y → 0 < a → SameRay R x (a • y)
A vector is in the same ray as a positive multiple of one it is in the same ray as.
theorem SameRay.pos_smul_left E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M} {S : Type u_4} [inst_5 : CommSemiring S]
[inst_6 : PartialOrder S] [inst_7 : Algebra S R] [inst_8 : Module S M] [SMulPosMono S R] [IsScalarTower S R M]
{a : S}, SameRay R x y → 0 < a → SameRay R (a • x) y
A positive multiple of a vector is in the same ray as one it is in the same ray as.
theorem SameRay.map E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
{x y : M} (f : M →ₗ[R] N), SameRay R x y → SameRay R (f x) (f y)
If two vectors are on the same ray then they remain so after applying a linear map.
theorem Function.Injective.sameRay_map_iff E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
{x y : M} {F : Type u_5} [inst_7 : FunLike F M N] [LinearMapClass F R M N] {f : F},
Function.Injective ⇑f → (SameRay R (f x) (f y) ↔ SameRay R x y)
The images of two vectors under an injective linear map are on the same ray if and only if the original vectors are on the same ray.
theorem SameRay.sameRay_map_iff E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
{x y : M} (e : M ≃ₗ[R] N), SameRay R (e x) (e y) ↔ SameRay R x y
The images of two vectors under a linear equivalence are on the same ray if and only if the original vectors are on the same ray.
theorem SameRay.smul E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y : M} {S : Type u_5} [inst_5 : Monoid S]
[inst_6 : DistribMulAction S M] [SMulCommClass R S M], SameRay R x y → ∀ (s : S), SameRay R (s • x) (s • y)
If two vectors are on the same ray then both scaled by the same action are also on the same ray.
theorem SameRay.add_left E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y z : M}, SameRay R x z → SameRay R y z → SameRay R (x + y) z
If x and y are on the same ray as z, then so is x + y.
theorem SameRay.add_right E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {x y z : M}, SameRay R x y → SameRay R x z → SameRay R x (y + z)
If y and z are on the same ray as x, then so is y + z.
instance SameRay.instRefl E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M], Std.Refl (SameRay R)
instance SameRay.instSymm E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M], Std.Symm (SameRay R)
theorem SameRay.sum_left E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {ι : Type u_5} {s : Finset ι} {v : ι → M} {z : M},
(∀ i ∈ s, SameRay R (v i) z) → SameRay R (∑ i ∈ s, v i) z
theorem SameRay.sum_right E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {ι : Type u_5} {s : Finset ι} {v : ι → M} {x : M},
(∀ i ∈ s, SameRay R x (v i)) → SameRay R x (∑ i ∈ s, v i)
theorem sameRay_sum_right_of_pairwise E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {ι : Type u_4} {s : Finset ι} {i : ι} {v : ι → M},
(↑s).Pairwise (Function.onFun (SameRay R) v) → i ∈ s → SameRay R (v i) (∑ j ∈ s, v j)
If the summands pairwise lie on a common ray, then each of them lies on the same ray as
their sum. This is the Finset.sum version of SameRay.add_right.
instance RayVector.Setoid E0 #
(R : Type u_1) →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[IsStrictOrderedRing R] → (M : Type u_2) → [inst_3 : AddCommMonoid M] → [Module R M] → Setoid (RayVector R M)
The setoid of the SameRay relation for the subtype of nonzero vectors.
def Module.Ray E3 #
(R : Type u_1) →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[IsStrictOrderedRing R] → (M : Type u_2) → [inst_3 : AddCommMonoid M] → [Module R M] → Type u_2
A ray (equivalence class of nonzero vectors with common positive multiples) in a module.
theorem equiv_iff_sameRay E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {v₁ v₂ : RayVector R M},
v₁ ≈ v₂ ↔ SameRay R ↑((RayVector.equiv R M) v₁) ↑((RayVector.equiv R M) v₂)
Equivalence of nonzero vectors, in terms of SameRay.
def rayOfNeZero E1 #
(R : Type u_1) →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} → [inst_3 : AddCommMonoid M] → [inst_4 : Module R M] → (v : M) → v ≠ 0 → Module.Ray R M
The ray given by a nonzero vector.
theorem Module.Ray.ind E1 #
∀ (R : Type u_1) [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {C : Module.Ray R M → Prop},
(∀ (v : M) (hv : v ≠ 0), C (rayOfNeZero R v hv)) → ∀ (x : Module.Ray R M), C x
An induction principle for Module.Ray, used as induction x using Module.Ray.ind.
instance instNonemptyRayOfNontrivial E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] [Nontrivial M], Nonempty (Module.Ray R M)
theorem ray_eq_iff E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {v₁ v₂ : M} (hv₁ : v₁ ≠ 0) (hv₂ : v₂ ≠ 0),
rayOfNeZero R v₁ hv₁ = rayOfNeZero R v₂ hv₂ ↔ SameRay R v₁ v₂
The rays given by two nonzero vectors are equal if and only if those vectors
satisfy SameRay.
theorem ray_pos_smul E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {v : M} (h : v ≠ 0) {r : R},
0 < r → ∀ (hrv : r • v ≠ 0), rayOfNeZero R (r • v) hrv = rayOfNeZero R v h
The ray given by a positive multiple of a nonzero vector.
def RayVector.mapLinearEquiv E1 #
{R : Type u_1} →
[inst : CommSemiring R] →
{M : Type u_2} →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
{N : Type u_3} →
[inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → (M ≃ₗ[R] N) → RayVector R M ≃ RayVector R N
An equivalence between modules implies an equivalence between ray vectors.
def Module.Ray.map E1 #
{R : Type u_1} →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} →
[inst_3 : AddCommMonoid M] →
[inst_4 : Module R M] →
{N : Type u_3} →
[inst_5 : AddCommMonoid N] → [inst_6 : Module R N] → (M ≃ₗ[R] N) → Module.Ray R M ≃ Module.Ray R N
An equivalence between modules implies an equivalence between rays.
theorem Module.Ray.map_apply E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
(e : M ≃ₗ[R] N) (v : M) (hv : v ≠ 0), (Module.Ray.map e) (rayOfNeZero R v hv) = rayOfNeZero R (e v) ⋯
theorem Module.Ray.map_refl E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M], Module.Ray.map (LinearEquiv.refl R M) = Equiv.refl (Module.Ray R M)
theorem Module.Ray.map_symm E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
(e : M ≃ₗ[R] N), (Module.Ray.map e).symm = Module.Ray.map e.symm
instance instMulActionRayVector E0 #
{M : Type u_2} →
[inst : AddCommMonoid M] →
{G : Type u_4} → [inst_1 : Group G] → [DistribMulAction G M] → {R : Type u_5} → MulAction G (RayVector R M)
Any invertible action preserves the non-zeroness of ray vectors. This is primarily of interest
when G = Rˣ
instance instMulActionRay E0 #
{R : Type u_1} →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} →
[inst_3 : AddCommMonoid M] →
[inst_4 : Module R M] →
{G : Type u_4} →
[inst_5 : Group G] →
[inst_6 : DistribMulAction G M] → [SMulCommClass R G M] → MulAction G (Module.Ray R M)
Any invertible action preserves the non-zeroness of rays. This is primarily of interest when
G = Rˣ
theorem Module.Ray.linearEquiv_smul_eq_map E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (e : M ≃ₗ[R] M) (v : Module.Ray R M), e • v = (Module.Ray.map e) v
The action via LinearEquiv.apply_distribMulAction corresponds to Module.Ray.map.
theorem smul_rayOfNeZero E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] {G : Type u_4} [inst_5 : Group G] [inst_6 : DistribMulAction G M]
[inst_7 : SMulCommClass R G M] (g : G) (v : M) (hv : v ≠ 0), g • rayOfNeZero R v hv = rayOfNeZero R (g • v) ⋯
theorem Module.Ray.units_smul_of_pos E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (u : Rˣ), 0 < ↑u → ∀ (v : Module.Ray R M), u • v = v
Scaling by a positive unit is a no-op.
def Module.Ray.someRayVector E1 #
{R : Type u_1} →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} → [inst_3 : AddCommMonoid M] → [inst_4 : Module R M] → Module.Ray R M → RayVector R M
An arbitrary RayVector giving a ray.
theorem Module.Ray.someRayVector_ray E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (x : Module.Ray R M), ⟦x.someRayVector⟧ = x
The ray of someRayVector.
def Module.Ray.someVector E1 #
{R : Type u_1} →
[inst : CommSemiring R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} → [inst_3 : AddCommMonoid M] → [inst_4 : Module R M] → Module.Ray R M → M
An arbitrary nonzero vector giving a ray.
theorem Module.Ray.someVector_ne_zero E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (x : Module.Ray R M), x.someVector ≠ 0
someVector is nonzero.
theorem Module.Ray.someVector_ray E0 #
∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] (x : Module.Ray R M), rayOfNeZero R x.someVector ⋯ = x
The ray of someVector.
theorem sameRay_neg_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R (-x) (-y) ↔ SameRay R x y
SameRay.neg as an iff.
theorem SameRay.neg E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R x y → SameRay R (-x) (-y)
Alias of the reverse direction of sameRay_neg_iff.
SameRay.neg as an iff.
theorem SameRay.of_neg E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R (-x) (-y) → SameRay R x y
Alias of the forward direction of sameRay_neg_iff.
SameRay.neg as an iff.
theorem sameRay_neg_swap E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R (-x) y ↔ SameRay R x (-y)
instance RayVector.instNeg E0 #
{M : Type u_2} → [inst : AddCommGroup M] → {R : Type u_4} → Neg (RayVector R M)
Negating a nonzero vector.
theorem RayVector.coe_neg E0 #
∀ {M : Type u_2} [inst : AddCommGroup M] {R : Type u_4} (v : RayVector R M),
↑((RayVector.equiv R M) (-v)) = -↑((RayVector.equiv R M) v)
Negating a nonzero vector commutes with coercion to the underlying module.
instance RayVector.instInvolutiveNeg E0 #
{M : Type u_2} → [inst : AddCommGroup M] → {R : Type u_4} → InvolutiveNeg (RayVector R M)
Negating a nonzero vector twice produces the original vector.
theorem RayVector.equiv_neg_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {v₁ v₂ : RayVector R M}, -v₁ ≈ -v₂ ↔ v₁ ≈ v₂
If two nonzero vectors are equivalent, so are their negations.
instance instNegRay E0 #
(R : Type u_1) →
[inst : CommRing R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} → [inst_3 : AddCommGroup M] → [inst_4 : Module R M] → Neg (Module.Ray R M)
Negating a ray.
theorem neg_rayOfNeZero E0 #
∀ (R : Type u_1) [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (v : M) (h : v ≠ 0), -rayOfNeZero R v h = rayOfNeZero R (-v) ⋯
The ray given by the negation of a nonzero vector.
instance Module.Ray.instInvolutiveNeg E0 #
{R : Type u_1} →
[inst : CommRing R] →
[inst_1 : PartialOrder R] →
[inst_2 : IsStrictOrderedRing R] →
{M : Type u_2} → [inst_3 : AddCommGroup M] → [inst_4 : Module R M] → InvolutiveNeg (Module.Ray R M)
Negating a ray twice produces the original ray.
theorem Module.Ray.ne_neg_self E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [IsDomain R] [Module.IsTorsionFree R M] (x : Module.Ray R M), x ≠ -x
A ray does not equal its own negation.
theorem Module.Ray.neg_units_smul E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (u : Rˣ) (v : Module.Ray R M), -u • v = -(u • v)
theorem Module.Ray.units_smul_of_neg E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (u : Rˣ), ↑u < 0 → ∀ (v : Module.Ray R M), u • v = -v
Scaling by a negative unit is negation.
theorem Module.Ray.map_neg E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
{N : Type u_3} [inst_3 : AddCommGroup M] [inst_4 : AddCommGroup N] [inst_5 : Module R M] [inst_6 : Module R N]
(f : M ≃ₗ[R] N) (v : Module.Ray R M), (Module.Ray.map f) (-v) = -(Module.Ray.map f) v
theorem sameRay_of_mem_orbit E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {v₁ v₂ : M},
v₁ ∈ MulAction.orbit (↥(Units.posSubgroup R)) v₂ → SameRay R v₁ v₂
SameRay follows from membership of MulAction.orbit for the Units.posSubgroup.
theorem units_inv_smul E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (u : Rˣ) (v : Module.Ray R M), u⁻¹ • v = u • v
Scaling by an inverse unit is the same as scaling by itself.
theorem sameRay_smul_smul_of_mul_nonneg E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {v : M} {c₁ c₂ : R}, 0 ≤ c₁ * c₂ → SameRay R (c₁ • v) (c₂ • v)
Two scalar multiples of a common vector whose coefficients have nonnegative product lie on a common ray.
theorem sameRay_smul_right_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M} {r : R},
SameRay R v (r • v) ↔ 0 ≤ r ∨ v = 0
theorem sameRay_smul_right_iff_of_ne E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M},
v ≠ 0 → ∀ {r : R}, r ≠ 0 → (SameRay R v (r • v) ↔ 0 < r)
A nonzero vector is in the same ray as a multiple of itself if and only if that multiple is positive.
theorem sameRay_smul_left_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M} {r : R},
SameRay R (r • v) v ↔ 0 ≤ r ∨ v = 0
theorem sameRay_smul_left_iff_of_ne E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M},
v ≠ 0 → ∀ {r : R}, r ≠ 0 → (SameRay R (r • v) v ↔ 0 < r)
A multiple of a nonzero vector is in the same ray as that vector if and only if that multiple is positive.
theorem sameRay_neg_smul_right_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M} {r : R},
SameRay R (-v) (r • v) ↔ r ≤ 0 ∨ v = 0
theorem sameRay_neg_smul_right_iff_of_ne E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M} {r : R},
v ≠ 0 → r ≠ 0 → (SameRay R (-v) (r • v) ↔ r < 0)
theorem sameRay_neg_smul_left_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M} {r : R},
SameRay R (r • v) (-v) ↔ r ≤ 0 ∨ v = 0
theorem sameRay_neg_smul_left_iff_of_ne E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {v : M} {r : R},
v ≠ 0 → r ≠ 0 → (SameRay R (r • v) (-v) ↔ r < 0)
theorem units_smul_eq_self_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {u : Rˣ} {v : Module.Ray R M},
u • v = v ↔ 0 < ↑u
theorem units_smul_eq_neg_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {u : Rˣ} {v : Module.Ray R M},
u • v = -v ↔ ↑u < 0
theorem sameRay_or_sameRay_neg_iff_not_linearIndependent E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {x y : M},
SameRay R x y ∨ SameRay R x (-y) ↔ ¬LinearIndependent R ![x, y]
Two vectors are in the same ray, or the first is in the same ray as the negation of the second, if and only if they are not linearly independent.
theorem sameRay_or_ne_zero_and_sameRay_neg_iff_not_linearIndependent E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [Module.IsTorsionFree R M] {x y : M},
SameRay R x y ∨ x ≠ 0 ∧ y ≠ 0 ∧ SameRay R x (-y) ↔ ¬LinearIndependent R ![x, y]
Two vectors are in the same ray, or they are nonzero and the first is in the same ray as the negation of the second, if and only if they are not linearly independent.
theorem SameRay.exists_pos_left E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R x y → x ≠ 0 → y ≠ 0 → ∃ r, 0 < r ∧ r • x = y
theorem SameRay.exists_pos_right E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R x y → x ≠ 0 → y ≠ 0 → ∃ r, 0 < r ∧ x = r • y
theorem SameRay.exists_nonneg_left E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R x y → x ≠ 0 → ∃ r, 0 ≤ r ∧ r • x = y
If a vector v₂ is on the same ray as a nonzero vector v₁, then it is equal to c • v₁ for
some nonnegative c.
theorem SameRay.exists_nonneg_right E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, SameRay R x y → y ≠ 0 → ∃ r, 0 ≤ r ∧ x = r • y
If a vector v₁ is on the same ray as a nonzero vector v₂, then it is equal to c • v₂ for
some nonnegative c.
theorem SameRay.exists_eq_smul_add E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {v₁ v₂ : M},
SameRay R v₁ v₂ → ∃ a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ v₁ = a • (v₁ + v₂) ∧ v₂ = b • (v₁ + v₂)
If vectors v₁ and v₂ are on the same ray, then for some nonnegative a b, a + b = 1, we
have v₁ = a • (v₁ + v₂) and v₂ = b • (v₁ + v₂).
theorem SameRay.exists_eq_smul E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {v₁ v₂ : M},
SameRay R v₁ v₂ → ∃ u a b, 0 ≤ a ∧ 0 ≤ b ∧ a + b = 1 ∧ v₁ = a • u ∧ v₂ = b • u
If vectors v₁ and v₂ are on the same ray, then they are nonnegative multiples of the same
vector. Actually, this vector can be assumed to be v₁ + v₂, see SameRay.exists_eq_smul_add.
theorem exists_pos_left_iff_sameRay E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, x ≠ 0 → y ≠ 0 → ((∃ r, 0 < r ∧ r • x = y) ↔ SameRay R x y)
theorem exists_pos_left_iff_sameRay_and_ne_zero E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, x ≠ 0 → ((∃ r, 0 < r ∧ r • x = y) ↔ SameRay R x y ∧ y ≠ 0)
theorem exists_nonneg_left_iff_sameRay E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, x ≠ 0 → ((∃ r, 0 ≤ r ∧ r • x = y) ↔ SameRay R x y)
theorem exists_pos_right_iff_sameRay E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, x ≠ 0 → y ≠ 0 → ((∃ r, 0 < r ∧ x = r • y) ↔ SameRay R x y)
theorem exists_pos_right_iff_sameRay_and_ne_zero E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, y ≠ 0 → ((∃ r, 0 < r ∧ x = r • y) ↔ SameRay R x y ∧ x ≠ 0)
theorem exists_nonneg_right_iff_sameRay E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
[inst_3 : AddCommGroup M] [inst_4 : Module R M] {x y : M}, y ≠ 0 → ((∃ r, 0 ≤ r ∧ x = r • y) ↔ SameRay R x y)