The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V22. Affine, Euclidean and convex geometry

Mathlib.Geometry.Euclidean.Angle.Oriented.Basic

127 declarations. Mathlib docs · Source

theorem Orientation.oangle.congr_simp E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o o_1 : Orientation ℝ V (Fin 2)),
  o = o_1 → ∀ (x x_1 : V), x = x_1 → ∀ (y y_1 : V), y = y_1 → o.oangle x y = o_1.oangle x_1 y_1

def Orientation.oangle E3 #

{V : Type u_1} →
  [inst : NormedAddCommGroup V] →
    [inst_1 : InnerProductSpace ℝ V] → [Fact (Module.finrank ℝ V = 2)] → Orientation ℝ V (Fin 2) → V → V → Real.Angle

The oriented angle from x to y, modulo 2 * π. If either vector is 0, this is 0. See InnerProductGeometry.angle for the corresponding unoriented angle definition.

theorem Orientation.continuousAt_oangle E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x : V × V}, x.1 ≠ 0 → x.2 ≠ 0 → ContinuousAt (fun y ↦ o.oangle y.1 y.2) x

Oriented angles are continuous when the vectors involved are nonzero.

theorem Orientation.oangle_zero_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V), o.oangle 0 x = 0

If the first vector passed to oangle is 0, the result is 0.

theorem Orientation.oangle_zero_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V), o.oangle x 0 = 0

If the second vector passed to oangle is 0, the result is 0.

theorem Orientation.oangle_self E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V), o.oangle x x = 0

If the two vectors passed to oangle are the same, the result is 0.

theorem Orientation.left_ne_zero_of_oangle_ne_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y ≠ 0 → x ≠ 0

If the angle between two vectors is nonzero, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_ne_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y ≠ 0 → y ≠ 0

If the angle between two vectors is nonzero, the second vector is nonzero.

theorem Orientation.ne_of_oangle_ne_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y ≠ 0 → x ≠ y

If the angle between two vectors is nonzero, the vectors are not equal.

theorem Orientation.left_ne_zero_of_oangle_eq_pi E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑Real.pi → x ≠ 0

If the angle between two vectors is π, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_eq_pi E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑Real.pi → y ≠ 0

If the angle between two vectors is π, the second vector is nonzero.

theorem Orientation.ne_of_oangle_eq_pi E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑Real.pi → x ≠ y

If the angle between two vectors is π, the vectors are not equal.

theorem Orientation.left_ne_zero_of_oangle_eq_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(Real.pi / 2) → x ≠ 0

If the angle between two vectors is π / 2, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_eq_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(Real.pi / 2) → y ≠ 0

If the angle between two vectors is π / 2, the second vector is nonzero.

theorem Orientation.ne_of_oangle_eq_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(Real.pi / 2) → x ≠ y

If the angle between two vectors is π / 2, the vectors are not equal.

theorem Orientation.left_ne_zero_of_oangle_eq_neg_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(-Real.pi / 2) → x ≠ 0

If the angle between two vectors is -π / 2, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_eq_neg_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(-Real.pi / 2) → y ≠ 0

If the angle between two vectors is -π / 2, the second vector is nonzero.

theorem Orientation.ne_of_oangle_eq_neg_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(-Real.pi / 2) → x ≠ y

If the angle between two vectors is -π / 2, the vectors are not equal.

theorem Orientation.left_ne_zero_of_oangle_sign_ne_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign ≠ 0 → x ≠ 0

If the sign of the angle between two vectors is nonzero, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_sign_ne_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign ≠ 0 → y ≠ 0

If the sign of the angle between two vectors is nonzero, the second vector is nonzero.

theorem Orientation.ne_of_oangle_sign_ne_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign ≠ 0 → x ≠ y

If the sign of the angle between two vectors is nonzero, the vectors are not equal.

theorem Orientation.left_ne_zero_of_oangle_sign_eq_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = 1 → x ≠ 0

If the sign of the angle between two vectors is positive, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_sign_eq_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = 1 → y ≠ 0

If the sign of the angle between two vectors is positive, the second vector is nonzero.

theorem Orientation.ne_of_oangle_sign_eq_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = 1 → x ≠ y

If the sign of the angle between two vectors is positive, the vectors are not equal.

theorem Orientation.left_ne_zero_of_oangle_sign_eq_neg_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = -1 → x ≠ 0

If the sign of the angle between two vectors is negative, the first vector is nonzero.

theorem Orientation.right_ne_zero_of_oangle_sign_eq_neg_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = -1 → y ≠ 0

If the sign of the angle between two vectors is negative, the second vector is nonzero.

theorem Orientation.ne_of_oangle_sign_eq_neg_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = -1 → x ≠ y

If the sign of the angle between two vectors is negative, the vectors are not equal.

theorem Orientation.oangle_rev E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), o.oangle y x = -o.oangle x y

Swapping the two vectors passed to oangle negates the angle.

theorem Orientation.oangle_add_oangle_rev E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), o.oangle x y + o.oangle y x = 0

Adding the angles between two vectors in each order results in 0.

theorem Orientation.oangle_neg_left E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → o.oangle (-x) y = o.oangle x y + ↑Real.pi

Negating the first vector passed to oangle adds π to the angle.

theorem Orientation.oangle_neg_right E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → o.oangle x (-y) = o.oangle x y + ↑Real.pi

Negating the second vector passed to oangle adds π to the angle.

theorem Orientation.two_zsmul_oangle_neg_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), 2 • o.oangle (-x) y = 2 • o.oangle x y

Negating the first vector passed to oangle does not change twice the angle.

theorem Orientation.two_zsmul_oangle_neg_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), 2 • o.oangle x (-y) = 2 • o.oangle x y

Negating the second vector passed to oangle does not change twice the angle.

theorem Orientation.oangle_neg_neg E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), o.oangle (-x) (-y) = o.oangle x y

Negating both vectors passed to oangle does not change the angle.

theorem Orientation.oangle_neg_left_eq_neg_right E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), o.oangle (-x) y = o.oangle x (-y)

Negating the first vector produces the same angle as negating the second vector.

theorem Orientation.oangle_neg_self_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x : V}, x ≠ 0 → o.oangle (-x) x = ↑Real.pi

The angle between the negation of a nonzero vector and that vector is π.

theorem Orientation.oangle_neg_self_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x : V}, x ≠ 0 → o.oangle x (-x) = ↑Real.pi

The angle between a nonzero vector and its negation is π.

theorem Orientation.two_zsmul_oangle_neg_self_left E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V), 2 • o.oangle (-x) x = 0

Twice the angle between the negation of a vector and that vector is 0.

theorem Orientation.two_zsmul_oangle_neg_self_right E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V), 2 • o.oangle x (-x) = 0

Twice the angle between a vector and its negation is 0.

theorem Orientation.oangle_add_oangle_rev_neg_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), o.oangle (-x) y + o.oangle (-y) x = 0

Adding the angles between two vectors in each order, with the first vector in each angle negated, results in 0.

theorem Orientation.oangle_add_oangle_rev_neg_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), o.oangle x (-y) + o.oangle y (-x) = 0

Adding the angles between two vectors in each order, with the second vector in each angle negated, results in 0.

theorem Orientation.oangle_smul_left_of_pos E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) {r : ℝ}, 0 < r → o.oangle (r • x) y = o.oangle x y

Multiplying the first vector passed to oangle by a positive real does not change the angle.

theorem Orientation.oangle_smul_right_of_pos E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) {r : ℝ}, 0 < r → o.oangle x (r • y) = o.oangle x y

Multiplying the second vector passed to oangle by a positive real does not change the angle.

theorem Orientation.oangle_smul_left_of_neg E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) {r : ℝ}, r < 0 → o.oangle (r • x) y = o.oangle (-x) y

Multiplying the first vector passed to oangle by a negative real produces the same angle as negating that vector.

theorem Orientation.oangle_smul_right_of_neg E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) {r : ℝ}, r < 0 → o.oangle x (r • y) = o.oangle x (-y)

Multiplying the second vector passed to oangle by a negative real produces the same angle as negating that vector.

theorem Orientation.oangle_smul_left_self_of_nonneg E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {r : ℝ}, 0 ≤ r → o.oangle (r • x) x = 0

The angle between a nonnegative multiple of a vector and that vector is 0.

theorem Orientation.oangle_smul_right_self_of_nonneg E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {r : ℝ}, 0 ≤ r → o.oangle x (r • x) = 0

The angle between a vector and a nonnegative multiple of that vector is 0.

theorem Orientation.oangle_smul_smul_self_of_nonneg E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {r₁ r₂ : ℝ}, 0 ≤ r₁ → 0 ≤ r₂ → o.oangle (r₁ • x) (r₂ • x) = 0

The angle between two nonnegative multiples of the same vector is 0.

theorem Orientation.two_zsmul_oangle_smul_left_of_ne_zero E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) {r : ℝ}, r ≠ 0 → 2 • o.oangle (r • x) y = 2 • o.oangle x y

Multiplying the first vector passed to oangle by a nonzero real does not change twice the angle.

theorem Orientation.two_zsmul_oangle_smul_right_of_ne_zero E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) {r : ℝ}, r ≠ 0 → 2 • o.oangle x (r • y) = 2 • o.oangle x y

Multiplying the second vector passed to oangle by a nonzero real does not change twice the angle.

theorem Orientation.two_zsmul_oangle_smul_left_self E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {r : ℝ}, 2 • o.oangle (r • x) x = 0

Twice the angle between a multiple of a vector and that vector is 0.

theorem Orientation.two_zsmul_oangle_smul_right_self E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {r : ℝ}, 2 • o.oangle x (r • x) = 0

Twice the angle between a vector and a multiple of that vector is 0.

theorem Orientation.two_zsmul_oangle_smul_smul_self E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {r₁ r₂ : ℝ}, 2 • o.oangle (r₁ • x) (r₂ • x) = 0

Twice the angle between two multiples of a vector is 0.

theorem Orientation.two_zsmul_oangle_of_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, ℝ ∙ x = ℝ ∙ y → 2 • o.oangle x y = 0

If the spans of two vectors are equal, twice angles with those vectors is zero

theorem Orientation.two_zsmul_oangle_left_of_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V} (z : V), ℝ ∙ x = ℝ ∙ y → 2 • o.oangle x z = 2 • o.oangle y z

If the spans of two vectors are equal, twice angles with those vectors on the left are equal.

theorem Orientation.two_zsmul_oangle_right_of_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x : V) {y z : V}, ℝ ∙ y = ℝ ∙ z → 2 • o.oangle x y = 2 • o.oangle x z

If the spans of two vectors are equal, twice angles with those vectors on the right are equal.

theorem Orientation.two_zsmul_oangle_of_span_eq_of_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {w x y z : V}, ℝ ∙ w = ℝ ∙ x → ℝ ∙ y = ℝ ∙ z → 2 • o.oangle w y = 2 • o.oangle x z

If the spans of two pairs of vectors are equal, twice angles between those vectors are equal.

theorem Orientation.oangle_eq_zero_iff_oangle_rev_eq_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = 0 ↔ o.oangle y x = 0

The oriented angle between two vectors is zero if and only if the angle with the vectors swapped is zero.

theorem Orientation.oangle_eq_zero_iff_sameRay E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = 0 ↔ SameRay ℝ x y

The oriented angle between two vectors is zero if and only if they are on the same ray.

theorem Orientation.oangle_eq_pi_iff_oangle_rev_eq_pi E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑Real.pi ↔ o.oangle y x = ↑Real.pi

The oriented angle between two vectors is π if and only if the angle with the vectors swapped is π.

theorem Orientation.oangle_eq_pi_iff_sameRay_neg E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑Real.pi ↔ x ≠ 0 ∧ y ≠ 0 ∧ SameRay ℝ x (-y)

The oriented angle between two vectors is π if and only if they are nonzero and the first is on the same ray as the negation of the second.

theorem Orientation.oangle_eq_zero_or_eq_pi_iff_not_linearIndependent E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = 0 ∨ o.oangle x y = ↑Real.pi ↔ ¬LinearIndependent ℝ ![x, y]

The oriented angle between two vectors is zero or π if and only if those two vectors are not linearly independent.

theorem Orientation.oangle_eq_zero_or_eq_pi_iff_right_eq_smul E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = 0 ∨ o.oangle x y = ↑Real.pi ↔ x = 0 ∨ ∃ r, y = r • x

The oriented angle between two vectors is zero or π if and only if the first vector is zero or the second is a multiple of the first.

theorem Orientation.oangle_ne_zero_and_ne_pi_iff_linearIndependent E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y ≠ 0 ∧ o.oangle x y ≠ ↑Real.pi ↔ LinearIndependent ℝ ![x, y]

The oriented angle between two vectors is not zero or π if and only if those two vectors are linearly independent.

theorem Orientation.oangle_add E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle x y + o.oangle y z = o.oangle x z

Given three nonzero vectors, the angle between the first and the second plus the angle between the second and the third equals the angle between the first and the third.

theorem Orientation.oangle_add_swap E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle y z + o.oangle x y = o.oangle x z

Given three nonzero vectors, the angle between the second and the third plus the angle between the first and the second equals the angle between the first and the third.

theorem Orientation.oangle_sub_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle x z - o.oangle x y = o.oangle y z

Given three nonzero vectors, the angle between the first and the third minus the angle between the first and the second equals the angle between the second and the third.

theorem Orientation.oangle_sub_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle x z - o.oangle y z = o.oangle x y

Given three nonzero vectors, the angle between the first and the third minus the angle between the second and the third equals the angle between the first and the second.

theorem Orientation.oangle_add_cyc3 E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle x y + o.oangle y z + o.oangle z x = 0

Given three nonzero vectors, adding the angles between them in cyclic order results in 0.

theorem Orientation.oangle_add_cyc3_neg_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V},
  x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle (-x) y + o.oangle (-y) z + o.oangle (-z) x = ↑Real.pi

Given three nonzero vectors, adding the angles between them in cyclic order, with the first vector in each angle negated, results in π. If the vectors add to 0, this is a version of the sum of the angles of a triangle.

theorem Orientation.oangle_add_cyc3_neg_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V},
  x ≠ 0 → y ≠ 0 → z ≠ 0 → o.oangle x (-y) + o.oangle y (-z) + o.oangle z (-x) = ↑Real.pi

Given three nonzero vectors, adding the angles between them in cyclic order, with the second vector in each angle negated, results in π. If the vectors add to 0, this is a version of the sum of the angles of a triangle.

theorem Orientation.span_eq_of_two_zsmul_oangle_eq_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → 2 • o.oangle x y = 0 → ℝ ∙ x = ℝ ∙ y

If twice angles with two vectors are zero, the spans of two vectors are equal.

theorem Orientation.two_zsmul_oangle_eq_zero_iff_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → (2 • o.oangle x y = 0 ↔ ℝ ∙ x = ℝ ∙ y)

Twice angles with two vectors are zero if and only if the spans of two vectors are equal.

theorem Orientation.span_eq_of_two_zsmul_oangle_right E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → 2 • o.oangle x y = 2 • o.oangle x z → ℝ ∙ y = ℝ ∙ z

If twice angles with those non-zero vectors on the right are equal, the spans of two vectors are equal.

theorem Orientation.two_zsmul_oangle_right_iff_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V},
  x ≠ 0 → y ≠ 0 → z ≠ 0 → (2 • o.oangle x y = 2 • o.oangle x z ↔ ℝ ∙ y = ℝ ∙ z)

Twice angles with those non-zero vectors on the right are equal if and only if the spans of two non-zero vectors are equal.

theorem Orientation.span_eq_of_two_zsmul_oangle_left E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V}, x ≠ 0 → y ≠ 0 → z ≠ 0 → 2 • o.oangle x z = 2 • o.oangle y z → ℝ ∙ x = ℝ ∙ y

If twice angles with those non-zero vectors on the left are equal, the spans of two vectors are equal.

theorem Orientation.two_zsmul_oangle_left_iff_span_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V},
  x ≠ 0 → y ≠ 0 → z ≠ 0 → (2 • o.oangle x z = 2 • o.oangle y z ↔ ℝ ∙ x = ℝ ∙ y)

Twice angles with those non-zero vectors on the left are equal if and only if the spans of two non-zero vectors are equal.

theorem Orientation.oangle_sub_eq_oangle_sub_rev_of_norm_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, ‖x‖ = ‖y‖ → o.oangle x (x - y) = o.oangle (y - x) y

Pons asinorum, oriented vector angle form.

theorem Orientation.oangle_eq_pi_sub_two_zsmul_oangle_sub_of_norm_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ y → ‖x‖ = ‖y‖ → o.oangle y x = ↑Real.pi - 2 • o.oangle (y - x) y

The angle at the apex of an isosceles triangle is π minus twice a base angle, oriented vector angle form.

theorem Orientation.oangle_map E0 #

∀ {V : Type u_1} {V' : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : NormedAddCommGroup V']
  [inst_2 : InnerProductSpace ℝ V] [inst_3 : InnerProductSpace ℝ V'] [inst_4 : Fact (Module.finrank ℝ V = 2)]
  [inst_5 : Fact (Module.finrank ℝ V' = 2)] (o : Orientation ℝ V (Fin 2)) (x y : V') (f : V ≃ₗᵢ[ℝ] V'),
  ((Orientation.map (Fin 2) f.toLinearEquiv) o).oangle x y = o.oangle (f.symm x) (f.symm y)

The angle between two vectors, with respect to an orientation given by Orientation.map with a linear isometric equivalence, equals the angle between those two vectors, transformed by the inverse of that equivalence, with respect to the original orientation.

theorem Complex.oangle E0 #

∀ (w z : ℂ), Complex.orientation.oangle w z = ↑((starRingEnd ℂ) w * z).arg

theorem Orientation.oangle_map_complex E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (f : V ≃ₗᵢ[ℝ] ℂ),
  (Orientation.map (Fin 2) f.toLinearEquiv) o = Complex.orientation →
    ∀ (x y : V), o.oangle x y = ↑((starRingEnd ℂ) (f x) * f y).arg

The oriented angle on an oriented real inner product space of dimension 2 can be evaluated in terms of a complex-number representation of the space.

theorem Orientation.oangle_neg_orientation_eq_neg E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (-o).oangle x y = -o.oangle x y

Negating the orientation negates the value of oangle.

theorem Orientation.inner_eq_norm_mul_norm_mul_cos_oangle E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), inner ℝ x y = ‖x‖ * ‖y‖ * (o.oangle x y).cos

The inner product of two vectors is the product of the norms and the cosine of the oriented angle between the vectors.

theorem Orientation.cos_oangle_eq_inner_div_norm_mul_norm E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → (o.oangle x y).cos = inner ℝ x y / (‖x‖ * ‖y‖)

The cosine of the oriented angle between two nonzero vectors is the inner product divided by the product of the norms.

theorem Orientation.cos_oangle_eq_cos_angle E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V},
  x ≠ 0 → y ≠ 0 → (o.oangle x y).cos = Real.cos (InnerProductGeometry.angle x y)

The cosine of the oriented angle between two nonzero vectors equals that of the unoriented angle.

theorem Orientation.oangle_eq_angle_or_eq_neg_angle E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V},
  x ≠ 0 → y ≠ 0 → o.oangle x y = ↑(InnerProductGeometry.angle x y) ∨ o.oangle x y = -↑(InnerProductGeometry.angle x y)

The oriented angle between two nonzero vectors is plus or minus the unoriented angle.

theorem Orientation.angle_eq_abs_oangle_toReal E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → InnerProductGeometry.angle x y = |(o.oangle x y).toReal|

The unoriented angle between two nonzero vectors is the absolute value of the oriented angle, converted to a real.

theorem Orientation.two_mul_angle_eq_abs_two_zsmul_oangle_toReal E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V},
  x ≠ 0 →
    y ≠ 0 →
      InnerProductGeometry.angle x y ≤ Real.pi / 2 → 2 * InnerProductGeometry.angle x y = |(2 • o.oangle x y).toReal|

If the unoriented angle between two nonzero vectors is at most π / 2, twice that angle is the absolute value of twice the oriented angle, converted to a real.

theorem Orientation.two_mul_angle_eq_two_pi_sub_abs_two_zsmul_oangle_toReal E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V},
  x ≠ 0 →
    y ≠ 0 →
      Real.pi / 2 ≤ InnerProductGeometry.angle x y →
        2 * InnerProductGeometry.angle x y = 2 * Real.pi - |(2 • o.oangle x y).toReal|

If the unoriented angle between two nonzero vectors is at least π / 2, twice that angle is 2 * π minus the absolute value of twice the oriented angle, converted to a real.

theorem Orientation.oangle_eq_of_angle_eq_of_sign_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {w x y z : V},
  InnerProductGeometry.angle w x = InnerProductGeometry.angle y z →
    (o.oangle w x).sign = (o.oangle y z).sign → o.oangle w x = o.oangle y z

If two unoriented angles are equal, and the signs of the corresponding oriented angles are equal, then the oriented angles are equal (even in degenerate cases).

theorem Orientation.angle_eq_iff_oangle_eq_of_sign_eq E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {w x y z : V},
  w ≠ 0 →
    x ≠ 0 →
      y ≠ 0 →
        z ≠ 0 →
          (o.oangle w x).sign = (o.oangle y z).sign →
            (InnerProductGeometry.angle w x = InnerProductGeometry.angle y z ↔ o.oangle w x = o.oangle y z)

If the signs of two oriented angles between nonzero vectors are equal, the oriented angles are equal if and only if the unoriented angles are equal.

theorem Orientation.oangle_eq_neg_of_angle_eq_of_sign_eq_neg E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {w x y z : V},
  InnerProductGeometry.angle w x = InnerProductGeometry.angle y z →
    (o.oangle w x).sign = -(o.oangle y z).sign → o.oangle w x = -o.oangle y z

If two unoriented angles are equal, and the signs of the corresponding oriented angles are negations of each other, then the oriented angles are negations of each other (even in degenerate cases).

theorem Orientation.angle_eq_iff_oangle_eq_neg_of_sign_eq_neg E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {w x y z : V},
  w ≠ 0 →
    x ≠ 0 →
      y ≠ 0 →
        z ≠ 0 →
          (o.oangle w x).sign = -(o.oangle y z).sign →
            (InnerProductGeometry.angle w x = InnerProductGeometry.angle y z ↔ o.oangle w x = -o.oangle y z)

If the signs of two oriented angles between nonzero vectors are negations of each other, the oriented angles are negations of each other if and only if the unoriented angles are equal.

theorem Orientation.oangle_eq_angle_of_sign_eq_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = 1 → o.oangle x y = ↑(InnerProductGeometry.angle x y)

The oriented angle between two vectors equals the unoriented angle if the sign is positive.

theorem Orientation.oangle_eq_neg_angle_of_sign_eq_neg_one E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, (o.oangle x y).sign = -1 → o.oangle x y = -↑(InnerProductGeometry.angle x y)

The oriented angle between two vectors equals minus the unoriented angle if the sign is negative.

theorem Orientation.oangle_eq_zero_iff_angle_eq_zero E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, x ≠ 0 → y ≠ 0 → (o.oangle x y = 0 ↔ InnerProductGeometry.angle x y = 0)

The oriented angle between two nonzero vectors is zero if and only if the unoriented angle is zero.

theorem Orientation.oangle_eq_pi_iff_angle_eq_pi E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑Real.pi ↔ InnerProductGeometry.angle x y = Real.pi

The oriented angle between two vectors is π if and only if the unoriented angle is π.

theorem Orientation.inner_eq_zero_of_oangle_eq_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(Real.pi / 2) → inner ℝ x y = 0

If the oriented angle between two vectors is π / 2, the inner product of those vectors is zero.

theorem Orientation.inner_rev_eq_zero_of_oangle_eq_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(Real.pi / 2) → inner ℝ y x = 0

If the oriented angle between two vectors is π / 2, the inner product of those vectors (reversed) is zero.

theorem Orientation.inner_eq_zero_of_oangle_eq_neg_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(-Real.pi / 2) → inner ℝ x y = 0

If the oriented angle between two vectors is -π / 2, the inner product of those vectors is zero.

theorem Orientation.inner_rev_eq_zero_of_oangle_eq_neg_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, o.oangle x y = ↑(-Real.pi / 2) → inner ℝ y x = 0

If the oriented angle between two vectors is -π / 2, the inner product of those vectors (reversed) is zero.

theorem Orientation.oangle_sign_neg_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle (-x) y).sign = -(o.oangle x y).sign

Negating the first vector passed to oangle negates the sign of the angle.

theorem Orientation.oangle_sign_neg_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle x (-y)).sign = -(o.oangle x y).sign

Negating the second vector passed to oangle negates the sign of the angle.

theorem Orientation.oangle_sign_smul_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle (r • x) y).sign = SignType.sign r * (o.oangle x y).sign

Multiplying the first vector passed to oangle by a real multiplies the sign of the angle by the sign of the real.

theorem Orientation.oangle_sign_smul_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle x (r • y)).sign = SignType.sign r * (o.oangle x y).sign

Multiplying the second vector passed to oangle by a real multiplies the sign of the angle by the sign of the real.

theorem Orientation.oangle_smul_add_right_eq_zero_or_eq_pi_iff E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V} (r : ℝ),
  o.oangle x (r • x + y) = 0 ∨ o.oangle x (r • x + y) = ↑Real.pi ↔ o.oangle x y = 0 ∨ o.oangle x y = ↑Real.pi

Auxiliary lemma for the proof of oangle_sign_smul_add_right; not intended to be used outside of that proof.

theorem Orientation.oangle_sign_smul_add_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle x (r • x + y)).sign = (o.oangle x y).sign

Adding a multiple of the first vector passed to oangle to the second vector does not change the sign of the angle.

theorem Orientation.oangle_sign_add_smul_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle (x + r • y) y).sign = (o.oangle x y).sign

Adding a multiple of the second vector passed to oangle to the first vector does not change the sign of the angle.

theorem Orientation.oangle_sign_sub_smul_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle x (y - r • x)).sign = (o.oangle x y).sign

Subtracting a multiple of the first vector passed to oangle from the second vector does not change the sign of the angle.

theorem Orientation.oangle_sign_sub_smul_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle (x - r • y) y).sign = (o.oangle x y).sign

Subtracting a multiple of the second vector passed to oangle from the first vector does not change the sign of the angle.

theorem Orientation.oangle_sign_add_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle x (x + y)).sign = (o.oangle x y).sign

Adding the first vector passed to oangle to the second vector does not change the sign of the angle.

theorem Orientation.oangle_sign_add_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle (x + y) y).sign = (o.oangle x y).sign

Adding the second vector passed to oangle to the first vector does not change the sign of the angle.

theorem Orientation.oangle_sign_sub_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle x (y - x)).sign = (o.oangle x y).sign

Subtracting the first vector passed to oangle from the second vector does not change the sign of the angle.

theorem Orientation.oangle_sign_sub_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle (x - y) y).sign = (o.oangle x y).sign

Subtracting the second vector passed to oangle from the first vector does not change the sign of the angle.

theorem Orientation.oangle_sign_smul_sub_right E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle x (r • x - y)).sign = -(o.oangle x y).sign

Subtracting the second vector passed to oangle from a multiple of the first vector negates the sign of the angle.

theorem Orientation.oangle_sign_smul_sub_left E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r : ℝ), (o.oangle (r • y - x) y).sign = -(o.oangle x y).sign

Subtracting the first vector passed to oangle from a multiple of the second vector negates the sign of the angle.

theorem Orientation.oangle_sign_sub_right_eq_neg E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle x (x - y)).sign = -(o.oangle x y).sign

Subtracting the second vector passed to oangle from the first vector negates the sign of the angle.

theorem Orientation.oangle_sign_sub_left_eq_neg E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle (y - x) y).sign = -(o.oangle x y).sign

Subtracting the first vector passed to oangle from the second vector negates the sign of the angle.

theorem Orientation.oangle_sign_sub_right_swap E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle y (y - x)).sign = (o.oangle x y).sign

Subtracting the first vector passed to oangle from the second vector then swapping the vectors does not change the sign of the angle.

theorem Orientation.oangle_sign_sub_left_swap E0 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V), (o.oangle (x - y) x).sign = (o.oangle x y).sign

Subtracting the second vector passed to oangle from the first vector then swapping the vectors does not change the sign of the angle.

theorem Orientation.oangle_sign_smul_add_smul_right E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r₁ r₂ : ℝ),
  (o.oangle x (r₁ • x + r₂ • y)).sign = SignType.sign r₂ * (o.oangle x y).sign

The sign of the angle between a vector, and a linear combination of that vector with a second vector, is the sign of the factor by which the second vector is multiplied in that combination multiplied by the sign of the angle between the two vectors.

theorem Orientation.oangle_sign_smul_add_smul_left E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r₁ r₂ : ℝ),
  (o.oangle (r₁ • x + r₂ • y) y).sign = SignType.sign r₁ * (o.oangle x y).sign

The sign of the angle between a linear combination of two vectors and the second vector is the sign of the factor by which the first vector is multiplied in that combination multiplied by the sign of the angle between the two vectors.

theorem Orientation.oangle_sign_smul_add_smul_smul_add_smul E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) (x y : V) (r₁ r₂ r₃ r₄ : ℝ),
  (o.oangle (r₁ • x + r₂ • y) (r₃ • x + r₄ • y)).sign = SignType.sign (r₁ * r₄ - r₂ * r₃) * (o.oangle x y).sign

The sign of the angle between two linear combinations of two vectors is the sign of the determinant of the factors in those combinations multiplied by the sign of the angle between the two vectors.

theorem Orientation.abs_oangle_sub_left_toReal_lt_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, ‖x‖ = ‖y‖ → |(o.oangle (y - x) y).toReal| < Real.pi / 2

A base angle of an isosceles triangle is acute, oriented vector angle form.

theorem Orientation.abs_oangle_sub_right_toReal_lt_pi_div_two E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y : V}, ‖x‖ = ‖y‖ → |(o.oangle x (x - y)).toReal| < Real.pi / 2

A base angle of an isosceles triangle is acute, oriented vector angle form.

theorem Orientation.angle_eq_iff_oangle_eq_or_sameRay E1 #

∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
  (o : Orientation ℝ V (Fin 2)) {x y z : V},
  x ≠ 0 →
    z ≠ 0 →
      (InnerProductGeometry.angle x y = InnerProductGeometry.angle y z ↔ o.oangle x y = o.oangle y z ∨ SameRay ℝ x z)

y has equal unoriented angles to x and z if and only if it has equal oriented angles (bisects the angle) or x and z are on the same ray.