Zulip Chat Archive
Stream: maths
Topic: two vectors have the same direction
Yury G. Kudryashov (Feb 23 2022 at 06:00):
There are quite a few ways to say that two vectors in a real vector space have the same direction (or at least one of them is zero). Do we have some iff
/tfae
lemmas about this?
@Heather Macbeth @Frédéric Dupuis , you probably needed something like that in rayleigh*
Eric Wieser (Feb 23 2022 at 07:35):
docs#same_ray is perhaps one such spelling
Heather Macbeth (Feb 23 2022 at 12:20):
It was all quite cumbersome -- I think we tried to restrict to the sphere as soon as possible.
Yury G. Kudryashov (Feb 23 2022 at 12:55):
@Eric Wieser I want a similar relation, namely "same_ray
or one of the vectors is zero". How should I call it?
Yury G. Kudryashov (Feb 23 2022 at 12:57):
BTW, over the field it is equivalent to orbit_rel
for the induced action of positive elements, not for the action of the original field.
Eric Wieser (Feb 23 2022 at 13:08):
Yury G. Kudryashov said:
BTW, over the field it is equivalent to
orbit_rel
for the induced action of positive elements, not for the action of the original field.
To be clear, you're saying the current docstring is wrong, right? Indeed, docs#same_ray_setoid_eq_orbit_rel has the correct statement
Eric Wieser (Feb 23 2022 at 13:11):
Something like this?
import algebra.order.ring
import algebra.module
import linear_algebra.orientation
variables (R : Type*) [ordered_comm_semiring R] {M : Type*} [add_comm_monoid M] [module R M]
def same_ray₀ (v₁ v₂ : M) : Prop :=
∃ (r₁ r₂ : R), 0 < (r₁, r₂) ∧ r₁ • v₁ = r₂ • v₂
variables {R}
lemma same_ray.same_ray₀ {v₁ v₂ : M} : same_ray R v₁ v₂ → same_ray₀ R v₁ v₂ :=
Exists₂.imp $ λ r₁ r₂ ⟨hr₁, hr₂, h⟩, ⟨prod.mk_lt_mk.mpr $ or.inl ⟨hr₁, hr₂.le⟩, h⟩
Eric Wieser (Feb 23 2022 at 13:17):
Maybe we should just redefine same_ray
to mean that though?
Eric Wieser (Feb 23 2022 at 13:18):
I think all the uses of same_ray
are on docs#ray_vector anyway which is never zero, so the difference doesn't matter
Last updated: Dec 20 2023 at 11:08 UTC