Documentation

Mathlib.Geometry.Euclidean.Angle.Unoriented.Affine

Angles between points #

This file defines unoriented angles in Euclidean affine spaces.

Main definitions #

TODO #

Prove the triangle inequality for the angle.

def EuclideanGeometry.angle {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] (p1 p2 p3 : P) :

The undirected angle at p2 between the line segments to p1 and p3. If either of those points equals p2, this is π/2. Use open scoped EuclideanGeometry to access the ∠ p1 p2 p3 notation.

Equations
Instances For

    The undirected angle at p2 between the line segments to p1 and p3. If either of those points equals p2, this is π/2. Use open scoped EuclideanGeometry to access the ∠ p1 p2 p3 notation.

    Equations
    Instances For
      theorem EuclideanGeometry.continuousAt_angle {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {x : P × P × P} (hx12 : x.1 x.2.1) (hx32 : x.2.2 x.2.1) :
      ContinuousAt (fun (y : P × P × P) => EuclideanGeometry.angle y.1 y.2.1 y.2.2) x
      @[simp]
      theorem AffineIsometry.angle_map {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {V₂ : Type u_3} {P₂ : Type u_4} [NormedAddCommGroup V₂] [InnerProductSpace V₂] [MetricSpace P₂] [NormedAddTorsor V₂ P₂] (f : P →ᵃⁱ[] P₂) (p₁ p₂ p₃ : P) :
      EuclideanGeometry.angle (f p₁) (f p₂) (f p₃) = EuclideanGeometry.angle p₁ p₂ p₃
      @[simp]
      theorem AffineSubspace.angle_coe {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {s : AffineSubspace P} (p₁ p₂ p₃ : s) :
      EuclideanGeometry.angle p₁ p₂ p₃ = EuclideanGeometry.angle p₁ p₂ p₃
      @[simp]
      theorem EuclideanGeometry.angle_const_vadd {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] (v : V) (p₁ p₂ p₃ : P) :
      EuclideanGeometry.angle (v +ᵥ p₁) (v +ᵥ p₂) (v +ᵥ p₃) = EuclideanGeometry.angle p₁ p₂ p₃

      Angles are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_vadd_const {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] (v₁ v₂ v₃ : V) (p : P) :
      EuclideanGeometry.angle (v₁ +ᵥ p) (v₂ +ᵥ p) (v₃ +ᵥ p) = EuclideanGeometry.angle v₁ v₂ v₃

      Angles are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_const_vsub {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] (p p₁ p₂ p₃ : P) :
      EuclideanGeometry.angle (p -ᵥ p₁) (p -ᵥ p₂) (p -ᵥ p₃) = EuclideanGeometry.angle p₁ p₂ p₃

      Angles are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_vsub_const {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] (p₁ p₂ p₃ p : P) :
      EuclideanGeometry.angle (p₁ -ᵥ p) (p₂ -ᵥ p) (p₃ -ᵥ p) = EuclideanGeometry.angle p₁ p₂ p₃

      Angles are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_add_const {V : Type u_1} [NormedAddCommGroup V] [InnerProductSpace V] (v₁ v₂ v₃ v : V) :
      EuclideanGeometry.angle (v₁ + v) (v₂ + v) (v₃ + v) = EuclideanGeometry.angle v₁ v₂ v₃

      Angles in a vector space are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_const_add {V : Type u_1} [NormedAddCommGroup V] [InnerProductSpace V] (v v₁ v₂ v₃ : V) :
      EuclideanGeometry.angle (v + v₁) (v + v₂) (v + v₃) = EuclideanGeometry.angle v₁ v₂ v₃

      Angles in a vector space are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_sub_const {V : Type u_1} [NormedAddCommGroup V] [InnerProductSpace V] (v₁ v₂ v₃ v : V) :
      EuclideanGeometry.angle (v₁ - v) (v₂ - v) (v₃ - v) = EuclideanGeometry.angle v₁ v₂ v₃

      Angles in a vector space are translation invariant

      @[simp]
      theorem EuclideanGeometry.angle_const_sub {V : Type u_1} [NormedAddCommGroup V] [InnerProductSpace V] (v v₁ v₂ v₃ : V) :
      EuclideanGeometry.angle (v - v₁) (v - v₂) (v - v₃) = EuclideanGeometry.angle v₁ v₂ v₃

      Angles in a vector space are invariant to inversion

      @[simp]
      theorem EuclideanGeometry.angle_neg {V : Type u_1} [NormedAddCommGroup V] [InnerProductSpace V] (v₁ v₂ v₃ : V) :
      EuclideanGeometry.angle (-v₁) (-v₂) (-v₃) = EuclideanGeometry.angle v₁ v₂ v₃

      Angles in a vector space are invariant to inversion

      The angle at a point does not depend on the order of the other two points.

      The angle at a point is nonnegative.

      The angle at a point is at most π.

      @[simp]

      The angle ∠AAB at a point is always π / 2.

      @[simp]

      The angle ∠ABB at a point is always π / 2.

      theorem EuclideanGeometry.angle_self_of_ne {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p p₀ : P} (h : p p₀) :

      The angle ∠ABA at a point is 0, unless A = B.

      @[deprecated EuclideanGeometry.angle_self_left]

      Alias of EuclideanGeometry.angle_self_left.


      The angle ∠AAB at a point is always π / 2.

      @[deprecated EuclideanGeometry.angle_self_right]

      Alias of EuclideanGeometry.angle_self_right.


      The angle ∠ABB at a point is always π / 2.

      @[deprecated EuclideanGeometry.angle_self_of_ne]
      theorem EuclideanGeometry.angle_eq_of_ne {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p p₀ : P} (h : p p₀) :

      Alias of EuclideanGeometry.angle_self_of_ne.


      The angle ∠ABA at a point is 0, unless A = B.

      If the angle ∠ABC at a point is π, the angle ∠BAC is 0.

      If the angle ∠ABC at a point is π, the angle ∠BCA is 0.

      If ∠BCD = π, then ∠ABC = ∠ABD.

      If ∠BCD = π, then ∠ACB + ∠ACD = π.

      Vertical Angles Theorem: angles opposite each other, formed by two intersecting straight lines, are equal.

      If ∠ABC = π then dist A B ≠ 0.

      If ∠ABC = π then dist C B ≠ 0.

      If ∠ABC = π, then (dist A C) = (dist A B) + (dist B C).

      theorem EuclideanGeometry.dist_eq_add_dist_iff_angle_eq_pi {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p1 p2 p3 : P} (hp1p2 : p1 p2) (hp3p2 : p3 p2) :
      dist p1 p3 = dist p1 p2 + dist p3 p2 EuclideanGeometry.angle p1 p2 p3 = Real.pi

      If A ≠ B and C ≠ B then ∠ABC = π if and only if (dist A C) = (dist A B) + (dist B C).

      theorem EuclideanGeometry.dist_eq_abs_sub_dist_of_angle_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p1 p2 p3 : P} (h : EuclideanGeometry.angle p1 p2 p3 = 0) :
      dist p1 p3 = |dist p1 p2 - dist p3 p2|

      If ∠ABC = 0, then (dist A C) = abs ((dist A B) - (dist B C)).

      theorem EuclideanGeometry.dist_eq_abs_sub_dist_iff_angle_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p1 p2 p3 : P} (hp1p2 : p1 p2) (hp3p2 : p3 p2) :
      dist p1 p3 = |dist p1 p2 - dist p3 p2| EuclideanGeometry.angle p1 p2 p3 = 0

      If A ≠ B and C ≠ B then ∠ABC = 0 if and only if (dist A C) = abs ((dist A B) - (dist B C)).

      If M is the midpoint of the segment AB, then ∠AMB = π.

      If M is the midpoint of the segment AB and C is the same distance from A as it is from B then ∠CMA = π / 2.

      If M is the midpoint of the segment AB and C is the same distance from A as it is from B then ∠CMB = π / 2.

      theorem Sbtw.angle₁₂₃_eq_pi {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Sbtw p₁ p₂ p₃) :

      If the second of three points is strictly between the other two, the angle at that point is π.

      theorem Sbtw.angle₃₂₁_eq_pi {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Sbtw p₁ p₂ p₃) :

      If the second of three points is strictly between the other two, the angle at that point (reversed) is π.

      theorem EuclideanGeometry.angle_eq_pi_iff_sbtw {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} :
      EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi Sbtw p₁ p₂ p₃

      The angle between three points is π if and only if the second point is strictly between the other two.

      theorem Wbtw.angle₂₁₃_eq_zero_of_ne {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Wbtw p₁ p₂ p₃) (hp₂p₁ : p₂ p₁) :
      EuclideanGeometry.angle p₂ p₁ p₃ = 0

      If the second of three points is weakly between the other two, and not equal to the first, the angle at the first point is zero.

      theorem Sbtw.angle₂₁₃_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Sbtw p₁ p₂ p₃) :
      EuclideanGeometry.angle p₂ p₁ p₃ = 0

      If the second of three points is strictly between the other two, the angle at the first point is zero.

      theorem Wbtw.angle₃₁₂_eq_zero_of_ne {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Wbtw p₁ p₂ p₃) (hp₂p₁ : p₂ p₁) :
      EuclideanGeometry.angle p₃ p₁ p₂ = 0

      If the second of three points is weakly between the other two, and not equal to the first, the angle at the first point (reversed) is zero.

      theorem Sbtw.angle₃₁₂_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Sbtw p₁ p₂ p₃) :
      EuclideanGeometry.angle p₃ p₁ p₂ = 0

      If the second of three points is strictly between the other two, the angle at the first point (reversed) is zero.

      theorem Wbtw.angle₂₃₁_eq_zero_of_ne {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Wbtw p₁ p₂ p₃) (hp₂p₃ : p₂ p₃) :
      EuclideanGeometry.angle p₂ p₃ p₁ = 0

      If the second of three points is weakly between the other two, and not equal to the third, the angle at the third point is zero.

      theorem Sbtw.angle₂₃₁_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Sbtw p₁ p₂ p₃) :
      EuclideanGeometry.angle p₂ p₃ p₁ = 0

      If the second of three points is strictly between the other two, the angle at the third point is zero.

      theorem Wbtw.angle₁₃₂_eq_zero_of_ne {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Wbtw p₁ p₂ p₃) (hp₂p₃ : p₂ p₃) :
      EuclideanGeometry.angle p₁ p₃ p₂ = 0

      If the second of three points is weakly between the other two, and not equal to the third, the angle at the third point (reversed) is zero.

      theorem Sbtw.angle₁₃₂_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Sbtw p₁ p₂ p₃) :
      EuclideanGeometry.angle p₁ p₃ p₂ = 0

      If the second of three points is strictly between the other two, the angle at the third point (reversed) is zero.

      theorem EuclideanGeometry.angle_eq_zero_iff_ne_and_wbtw {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} :
      EuclideanGeometry.angle p₁ p₂ p₃ = 0 p₁ p₂ Wbtw p₂ p₁ p₃ p₃ p₂ Wbtw p₂ p₃ p₁

      The angle between three points is zero if and only if one of the first and third points is weakly between the other two, and not equal to the second.

      theorem EuclideanGeometry.angle_eq_zero_iff_eq_and_ne_or_sbtw {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} :
      EuclideanGeometry.angle p₁ p₂ p₃ = 0 p₁ = p₃ p₁ p₂ Sbtw p₂ p₁ p₃ Sbtw p₂ p₃ p₁

      The angle between three points is zero if and only if one of the first and third points is strictly between the other two, or those two points are equal but not equal to the second.

      theorem EuclideanGeometry.collinear_iff_eq_or_eq_or_angle_eq_zero_or_angle_eq_pi {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} :
      Collinear {p₁, p₂, p₃} p₁ = p₂ p₃ = p₂ EuclideanGeometry.angle p₁ p₂ p₃ = 0 EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi

      Three points are collinear if and only if the first or third point equals the second or the angle between them is 0 or π.

      theorem EuclideanGeometry.collinear_of_angle_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : EuclideanGeometry.angle p₁ p₂ p₃ = 0) :
      Collinear {p₁, p₂, p₃}

      If the angle between three points is 0, they are collinear.

      theorem EuclideanGeometry.collinear_of_angle_eq_pi {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi) :
      Collinear {p₁, p₂, p₃}

      If the angle between three points is π, they are collinear.

      theorem EuclideanGeometry.angle_ne_zero_of_not_collinear {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : ¬Collinear {p₁, p₂, p₃}) :
      EuclideanGeometry.angle p₁ p₂ p₃ 0

      If three points are not collinear, the angle between them is nonzero.

      theorem EuclideanGeometry.angle_ne_pi_of_not_collinear {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : ¬Collinear {p₁, p₂, p₃}) :

      If three points are not collinear, the angle between them is not π.

      theorem EuclideanGeometry.angle_pos_of_not_collinear {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : ¬Collinear {p₁, p₂, p₃}) :
      0 < EuclideanGeometry.angle p₁ p₂ p₃

      If three points are not collinear, the angle between them is positive.

      theorem EuclideanGeometry.angle_lt_pi_of_not_collinear {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : ¬Collinear {p₁, p₂, p₃}) :

      If three points are not collinear, the angle between them is less than π.

      The cosine of the angle between three points is 1 if and only if the angle is 0.

      The cosine of the angle between three points is 0 if and only if the angle is π / 2.

      The cosine of the angle between three points is -1 if and only if the angle is π.

      The sine of the angle between three points is 0 if and only if the angle is 0 or π.

      The sine of the angle between three points is 1 if and only if the angle is π / 2.

      theorem EuclideanGeometry.collinear_iff_eq_or_eq_or_sin_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} :
      Collinear {p₁, p₂, p₃} p₁ = p₂ p₃ = p₂ Real.sin (EuclideanGeometry.angle p₁ p₂ p₃) = 0

      Three points are collinear if and only if the first or third point equals the second or the sine of the angle between three points is zero.

      theorem EuclideanGeometry.sin_pos_of_not_collinear {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : ¬Collinear {p₁, p₂, p₃}) :

      If three points are not collinear, the sine of the angle between them is positive.

      theorem EuclideanGeometry.sin_ne_zero_of_not_collinear {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : ¬Collinear {p₁, p₂, p₃}) :

      If three points are not collinear, the sine of the angle between them is nonzero.

      theorem EuclideanGeometry.collinear_of_sin_eq_zero {V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace V] [MetricSpace P] [NormedAddTorsor V P] {p₁ p₂ p₃ : P} (h : Real.sin (EuclideanGeometry.angle p₁ p₂ p₃) = 0) :
      Collinear {p₁, p₂, p₃}

      If the sine of the angle between three points is 0, they are collinear.