The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Geometry.Euclidean.Angle.Sphere
42 declarations. Mathlib docs · Source
theorem Orientation.oangle_eq_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 z : V},
x ≠ y → x ≠ z → ‖x‖ = ‖y‖ → ‖x‖ = ‖z‖ → o.oangle y z = 2 • o.oangle (y - x) (z - x)
The angle at the center of a circle equals twice the angle at the circumference, oriented vector angle form.
theorem Orientation.oangle_eq_two_zsmul_oangle_sub_of_norm_eq_real 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 ≠ y → x ≠ z → ∀ {r : ℝ}, ‖x‖ = r → ‖y‖ = r → ‖z‖ = r → o.oangle y z = 2 • o.oangle (y - x) (z - x)
The angle at the center of a circle equals twice the angle at the circumference, oriented vector angle form with the radius specified.
theorem Orientation.two_zsmul_oangle_sub_eq_two_zsmul_oangle_sub_of_norm_eq E3 #
∀ {V : Type u_1} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : Fact (Module.finrank ℝ V = 2)]
(o : Orientation ℝ V (Fin 2)) {x₁ x₂ y z : V},
x₁ ≠ y →
x₁ ≠ z →
x₂ ≠ y →
x₂ ≠ z →
∀ {r : ℝ},
‖x₁‖ = r → ‖x₂‖ = r → ‖y‖ = r → ‖z‖ = r → 2 • o.oangle (y - x₁) (z - x₁) = 2 • o.oangle (y - x₂) (z - x₂)
Oriented vector angle version of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π (for which those are the same result), represented here as equality of twice the angles.
theorem EuclideanGeometry.Sphere.angle_eq_pi_div_two_iff_mem_sphere_of_isDiameter E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {p₁ p₂ p₃ : P} {s : EuclideanGeometry.Sphere P},
s.IsDiameter p₁ p₃ → (EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 ↔ p₂ ∈ s)
Thales' theorem: The angle inscribed in a semicircle is a right angle.
theorem EuclideanGeometry.Sphere.angle_eq_pi_div_two_iff_mem_sphere_ofDiameter E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {p₁ p₂ p₃ : P},
EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 ↔ p₂ ∈ EuclideanGeometry.Sphere.ofDiameter p₁ p₃
Thales' theorem: For three distinct points, the angle at the second point is a right angle if and only if the second point lies on the sphere having the first and third points as diameter endpoints.
theorem EuclideanGeometry.Sphere.thales_theorem E3 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {p₁ p₂ p₃ : P} {s : EuclideanGeometry.Sphere P},
s.IsDiameter p₁ p₃ → (EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 ↔ p₂ ∈ s)
Alias of EuclideanGeometry.Sphere.angle_eq_pi_div_two_iff_mem_sphere_of_isDiameter.
Thales' theorem: The angle inscribed in a semicircle is a right angle.
theorem EuclideanGeometry.Sphere.isDiameter_of_angle_eq_pi_div_two E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {p₁ p₂ p₃ : P} {s : EuclideanGeometry.Sphere P} [Fact (Module.finrank ℝ V = 2)],
p₁ ∈ s → p₂ ∈ s → p₃ ∈ s → p₁ ≠ p₂ → p₂ ≠ p₃ → EuclideanGeometry.angle p₁ p₂ p₃ = Real.pi / 2 → s.IsDiameter p₁ p₃
Converse of Thales' theorem in 2D: if three distinct points on a circle form a right angle, then the chord is a diameter.
theorem EuclideanGeometry.Sphere.angle_center_eq_pi_iff_isDiameter E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s → p₂ ∈ s → s.radius ≠ 0 → (EuclideanGeometry.angle p₁ s.center p₂ = Real.pi ↔ s.IsDiameter p₁ p₂)
On a sphere of nonzero radius, the central angle ∠ p₁ s.center p₂ equals π iff
p₁ and p₂ are diametrically opposite.
theorem EuclideanGeometry.Sphere.angle_center_eq_zero_iff_eq E0 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s → p₂ ∈ s → s.radius ≠ 0 → (EuclideanGeometry.angle p₁ s.center p₂ = 0 ↔ p₁ = p₂)
On a sphere of nonzero radius, the central angle ∠ p₁ s.center p₂ equals zero iff
p₁ = p₂.
theorem EuclideanGeometry.Sphere.IsTangentAt.angle_eq_pi_div_two E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p q : P} {as : AffineSubspace ℝ P},
s.IsTangentAt p as → q ∈ as → EuclideanGeometry.angle q p s.center = Real.pi / 2
For a tangent line to a sphere, the angle between the line and the radius at the tangent point
equals π / 2.
theorem EuclideanGeometry.Sphere.IsTangentAt_of_angle_eq_pi_div_two E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p q : P},
EuclideanGeometry.angle q p s.center = Real.pi / 2 → p ∈ s → s.IsTangentAt p line[ℝ, p, q]
If the angle between the line p q and the radius at p equals π / 2, then the line p q is
tangent to the sphere at p.
theorem EuclideanGeometry.Sphere.IsTangentAt_iff_angle_eq_pi_div_two E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] {s : EuclideanGeometry.Sphere P} {p q : P},
p ∈ s → (s.IsTangentAt p line[ℝ, p, q] ↔ EuclideanGeometry.angle q p s.center = Real.pi / 2)
A line through p is tangent to the sphere at p if and only if the angle between the line and
the radius at p equals π / 2.
theorem EuclideanGeometry.Sphere.oangle_center_eq_two_zsmul_oangle E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s → p₂ ≠ p₁ → p₂ ≠ p₃ → EuclideanGeometry.oangle p₁ s.center p₃ = 2 • EuclideanGeometry.oangle p₁ p₂ p₃
The angle at the center of a circle equals twice the angle at the circumference, oriented angle version.
theorem EuclideanGeometry.Sphere.angle_center_eq_two_mul_angle_of_two_mul_angle_le_pi E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] {s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s →
p₂ ≠ p₁ →
p₂ ≠ p₃ →
2 * EuclideanGeometry.angle p₁ p₂ p₃ ≤ Real.pi →
EuclideanGeometry.angle p₁ s.center p₃ = 2 * EuclideanGeometry.angle p₁ p₂ p₃
The angle at the center of a circle equals twice the angle at the circumference, unoriented
angle version, provided twice the angle at the circumference is at most π.
theorem EuclideanGeometry.Sphere.angle_center_eq_two_pi_sub_two_mul_angle_of_pi_le_two_mul_angle E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] {s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s →
p₂ ≠ p₁ →
p₂ ≠ p₃ →
Real.pi ≤ 2 * EuclideanGeometry.angle p₁ p₂ p₃ →
EuclideanGeometry.angle p₁ s.center p₃ = 2 * Real.pi - 2 * EuclideanGeometry.angle p₁ p₂ p₃
The angle at the center of a circle is 2 * π minus twice the angle at the circumference,
unoriented angle version, provided twice the angle at the circumference is at least π.
theorem EuclideanGeometry.Sphere.two_zsmul_oangle_eq E0 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ p₄ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s →
p₄ ∈ s →
p₂ ≠ p₁ →
p₂ ≠ p₄ → p₃ ≠ p₁ → p₃ ≠ p₄ → 2 • EuclideanGeometry.oangle p₁ p₂ p₄ = 2 • EuclideanGeometry.oangle p₁ p₃ p₄
Oriented angle version of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π (for which those are the same result), represented here as equality of twice the angles.
theorem EuclideanGeometry.Cospherical.two_zsmul_oangle_eq E0 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{p₁ p₂ p₃ p₄ : P},
EuclideanGeometry.Cospherical {p₁, p₂, p₃, p₄} →
p₂ ≠ p₁ →
p₂ ≠ p₄ → p₃ ≠ p₁ → p₃ ≠ p₄ → 2 • EuclideanGeometry.oangle p₁ p₂ p₄ = 2 • EuclideanGeometry.oangle p₁ p₃ p₄
Oriented angle version of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π (for which those are the same result), represented here as equality of twice the angles.
theorem EuclideanGeometry.Sphere.oangle_eq_pi_sub_two_zsmul_oangle_center_left E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s →
p₂ ∈ s → p₁ ≠ p₂ → EuclideanGeometry.oangle p₁ s.center p₂ = ↑Real.pi - 2 • EuclideanGeometry.oangle s.center p₂ p₁
The angle at the apex of an isosceles triangle is π minus twice a base angle, oriented
angle-at-point form where the apex is given as the center of a circle.
theorem EuclideanGeometry.Sphere.oangle_eq_pi_sub_two_zsmul_oangle_center_right E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s →
p₂ ∈ s → p₁ ≠ p₂ → EuclideanGeometry.oangle p₁ s.center p₂ = ↑Real.pi - 2 • EuclideanGeometry.oangle p₂ p₁ s.center
The angle at the apex of an isosceles triangle is π minus twice a base angle, oriented
angle-at-point form where the apex is given as the center of a circle.
theorem EuclideanGeometry.Sphere.two_zsmul_oangle_center_add_two_zsmul_oangle_eq_pi E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s →
p₂ ≠ p₁ →
p₂ ≠ p₃ →
p₁ ≠ p₃ → 2 • EuclideanGeometry.oangle p₃ p₁ s.center + 2 • EuclideanGeometry.oangle p₁ p₂ p₃ = ↑Real.pi
Twice a base angle of an isosceles triangle with apex at the center of a circle, plus twice
the angle at the apex of a triangle with the same base but apex on the circle, equals π.
theorem EuclideanGeometry.Sphere.IsTangentAt.two_zsmul_oangle_eq_pi E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p q : P} {as : AffineSubspace ℝ P},
s.IsTangentAt p as → s.radius ≠ 0 → q ∈ as → q ≠ p → 2 • EuclideanGeometry.oangle q p s.center = ↑Real.pi
For a tangent line to a sphere of nonzero radius, twice the oriented angle between the line
and the radius at the tangent point equals π.
theorem EuclideanGeometry.Sphere.two_zsmul_oangle_tangent_eq E0 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ p₄ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s →
s.IsTangentAt p₁ line[ℝ, p₁, p₄] →
p₄ ≠ p₁ → p₃ ≠ p₁ → p₃ ≠ p₂ → 2 • EuclideanGeometry.oangle p₄ p₁ p₂ = 2 • EuclideanGeometry.oangle p₁ p₃ p₂
Alternate segment theorem: Oriented angle version of "the angle between a tangent and a chord equals the inscribed angle subtending that chord", for oriented angles mod π, represented here as equality of twice the angles.
theorem EuclideanGeometry.Sphere.abs_oangle_center_left_toReal_lt_pi_div_two E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s → p₂ ∈ s → |(EuclideanGeometry.oangle s.center p₂ p₁).toReal| < Real.pi / 2
A base angle of an isosceles triangle with apex at the center of a circle is acute.
theorem EuclideanGeometry.Sphere.abs_oangle_center_right_toReal_lt_pi_div_two E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s → p₂ ∈ s → |(EuclideanGeometry.oangle p₂ p₁ s.center).toReal| < Real.pi / 2
A base angle of an isosceles triangle with apex at the center of a circle is acute.
theorem EuclideanGeometry.Sphere.tan_div_two_smul_rotation_pi_div_two_vadd_midpoint_eq_center E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s →
p₂ ∈ s →
p₁ ≠ p₂ →
((EuclideanGeometry.oangle p₂ p₁ s.center).tan / 2) •
(EuclideanGeometry.o.rotation ↑(Real.pi / 2)) (p₂ -ᵥ p₁) +ᵥ
midpoint ℝ p₁ p₂ =
s.center
Given two points on a circle, the center of that circle may be expressed explicitly as a
multiple (by half the tangent of the angle between the chord and the radius at one of those
points) of a π / 2 rotation of the vector between those points, plus the midpoint of those
points.
theorem EuclideanGeometry.Sphere.inv_tan_div_two_smul_rotation_pi_div_two_vadd_midpoint_eq_center E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s →
p₁ ≠ p₂ →
p₁ ≠ p₃ →
p₂ ≠ p₃ →
((EuclideanGeometry.oangle p₁ p₂ p₃).tan⁻¹ / 2) •
(EuclideanGeometry.o.rotation ↑(Real.pi / 2)) (p₃ -ᵥ p₁) +ᵥ
midpoint ℝ p₁ p₃ =
s.center
Given three points on a circle, the center of that circle may be expressed explicitly as a
multiple (by half the inverse of the tangent of the angle at one of those points) of a π / 2
rotation of the vector between the other two points, plus the midpoint of those points.
theorem EuclideanGeometry.Sphere.dist_div_cos_oangle_center_div_two_eq_radius E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s → p₂ ∈ s → p₁ ≠ p₂ → dist p₁ p₂ / (EuclideanGeometry.oangle p₂ p₁ s.center).cos / 2 = s.radius
Given two points on a circle, the radius of that circle may be expressed explicitly as half the distance between those two points divided by the cosine of the angle between the chord and the radius at one of those points.
theorem EuclideanGeometry.Sphere.dist_div_cos_oangle_center_eq_two_mul_radius E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ : P},
p₁ ∈ s → p₂ ∈ s → p₁ ≠ p₂ → dist p₁ p₂ / (EuclideanGeometry.oangle p₂ p₁ s.center).cos = 2 * s.radius
Given two points on a circle, twice the radius of that circle may be expressed explicitly as the distance between those two points divided by the cosine of the angle between the chord and the radius at one of those points.
theorem EuclideanGeometry.Sphere.dist_div_sin_oangle_div_two_eq_radius E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s → p₁ ≠ p₂ → p₁ ≠ p₃ → p₂ ≠ p₃ → dist p₁ p₃ / |(EuclideanGeometry.oangle p₁ p₂ p₃).sin| / 2 = s.radius
Given three points on a circle, the radius of that circle may be expressed explicitly as half the distance between two of those points divided by the absolute value of the sine of the angle at the third point (a version of the law of sines or sine rule).
theorem EuclideanGeometry.Sphere.dist_div_sin_oangle_eq_two_mul_radius E1 #
∀ {V : Type u_3} {P : Type u_4} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{s : EuclideanGeometry.Sphere P} {p₁ p₂ p₃ : P},
p₁ ∈ s →
p₂ ∈ s →
p₃ ∈ s → p₁ ≠ p₂ → p₁ ≠ p₃ → p₂ ≠ p₃ → dist p₁ p₃ / |(EuclideanGeometry.oangle p₁ p₂ p₃).sin| = 2 * s.radius
Given three points on a circle, twice the radius of that circle may be expressed explicitly as the distance between two of those points divided by the absolute value of the sine of the angle at the third point (a version of the law of sines or sine rule).
theorem Affine.Triangle.inv_tan_div_two_smul_rotation_pi_div_two_vadd_midpoint_eq_circumcenter E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
(t : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
((EuclideanGeometry.oangle (t.points i₁) (t.points i₂) (t.points i₃)).tan⁻¹ / 2) •
(EuclideanGeometry.o.rotation ↑(Real.pi / 2)) (t.points i₃ -ᵥ t.points i₁) +ᵥ
midpoint ℝ (t.points i₁) (t.points i₃) =
Affine.Simplex.circumcenter t
The circumcenter of a triangle may be expressed explicitly as a multiple (by half the inverse
of the tangent of the angle at one of the vertices) of a π / 2 rotation of the vector between
the other two vertices, plus the midpoint of those vertices.
theorem Affine.Triangle.dist_div_sin_oangle_div_two_eq_circumradius E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
(t : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
dist (t.points i₁) (t.points i₃) / |(EuclideanGeometry.oangle (t.points i₁) (t.points i₂) (t.points i₃)).sin| /
2 =
Affine.Simplex.circumradius t
The circumradius of a triangle may be expressed explicitly as half the length of a side divided by the absolute value of the sine of the angle at the third point (a version of the law of sines or sine rule).
theorem Affine.Triangle.dist_div_sin_oangle_eq_two_mul_circumradius E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
(t : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
dist (t.points i₁) (t.points i₃) / |(EuclideanGeometry.oangle (t.points i₁) (t.points i₂) (t.points i₃)).sin| =
2 * Affine.Simplex.circumradius t
Twice the circumradius of a triangle may be expressed explicitly as the length of a side divided by the absolute value of the sine of the angle at the third point (a version of the law of sines or sine rule).
theorem Affine.Triangle.circumsphere_eq_of_dist_of_oangle E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
(t : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
Affine.Simplex.circumsphere t =
{
center :=
((EuclideanGeometry.oangle (t.points i₁) (t.points i₂) (t.points i₃)).tan⁻¹ / 2) •
(EuclideanGeometry.o.rotation ↑(Real.pi / 2)) (t.points i₃ -ᵥ t.points i₁) +ᵥ
midpoint ℝ (t.points i₁) (t.points i₃),
radius :=
dist (t.points i₁) (t.points i₃) /
|(EuclideanGeometry.oangle (t.points i₁) (t.points i₂) (t.points i₃)).sin| /
2 }
The circumsphere of a triangle may be expressed explicitly in terms of two points and the angle at the third point.
theorem Affine.Triangle.circumsphere_eq_circumsphere_of_eq_of_eq_of_two_zsmul_oangle_eq E0 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{t₁ t₂ : Affine.Triangle ℝ P} {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
t₁.points i₁ = t₂.points i₁ →
t₁.points i₃ = t₂.points i₃ →
2 • EuclideanGeometry.oangle (t₁.points i₁) (t₁.points i₂) (t₁.points i₃) =
2 • EuclideanGeometry.oangle (t₂.points i₁) (t₂.points i₂) (t₂.points i₃) →
Affine.Simplex.circumsphere t₁ = Affine.Simplex.circumsphere t₂
If two triangles have two points the same, and twice the angle at the third point the same, they have the same circumsphere.
theorem Affine.Triangle.mem_circumsphere_of_two_zsmul_oangle_eq E0 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{t : Affine.Triangle ℝ P} {p : P} {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
2 • EuclideanGeometry.oangle (t.points i₁) p (t.points i₃) =
2 • EuclideanGeometry.oangle (t.points i₁) (t.points i₂) (t.points i₃) →
p ∈ Affine.Simplex.circumsphere t
Given a triangle, and a fourth point such that twice the angle between two points of the triangle at that fourth point equals twice the third angle of the triangle, the fourth point lies in the circumsphere of the triangle.
theorem Affine.Triangle.dist_div_sin_angle_div_two_eq_circumradius E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] (t : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
dist (t.points i₁) (t.points i₃) /
Real.sin (EuclideanGeometry.angle (t.points i₁) (t.points i₂) (t.points i₃)) /
2 =
Affine.Simplex.circumradius t
The circumradius of a triangle may be expressed explicitly as half the length of a side divided by the sine of the angle at the third point (a version of the law of sines or sine rule).
theorem Affine.Triangle.dist_div_sin_angle_eq_two_mul_circumradius E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] (t : Affine.Triangle ℝ P) {i₁ i₂ i₃ : Fin 3},
i₁ ≠ i₂ →
i₁ ≠ i₃ →
i₂ ≠ i₃ →
dist (t.points i₁) (t.points i₃) /
Real.sin (EuclideanGeometry.angle (t.points i₁) (t.points i₂) (t.points i₃)) =
2 * Affine.Simplex.circumradius t
Twice the circumradius of a triangle may be expressed explicitly as the length of a side divided by the sine of the angle at the third point (a version of the law of sines or sine rule).
theorem EuclideanGeometry.cospherical_of_two_zsmul_oangle_eq_of_not_collinear E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{p₁ p₂ p₃ p₄ : P},
2 • EuclideanGeometry.oangle p₁ p₂ p₄ = 2 • EuclideanGeometry.oangle p₁ p₃ p₄ →
¬Collinear ℝ {p₁, p₂, p₄} → EuclideanGeometry.Cospherical {p₁, p₂, p₃, p₄}
Converse of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π.
theorem EuclideanGeometry.concyclic_of_two_zsmul_oangle_eq_of_not_collinear E1 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{p₁ p₂ p₃ p₄ : P},
2 • EuclideanGeometry.oangle p₁ p₂ p₄ = 2 • EuclideanGeometry.oangle p₁ p₃ p₄ →
¬Collinear ℝ {p₁, p₂, p₄} → EuclideanGeometry.Concyclic {p₁, p₂, p₃, p₄}
Converse of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π, with a "concyclic" conclusion.
theorem EuclideanGeometry.cospherical_or_collinear_of_two_zsmul_oangle_eq E0 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{p₁ p₂ p₃ p₄ : P},
2 • EuclideanGeometry.oangle p₁ p₂ p₄ = 2 • EuclideanGeometry.oangle p₁ p₃ p₄ →
EuclideanGeometry.Cospherical {p₁, p₂, p₃, p₄} ∨ Collinear ℝ {p₁, p₂, p₃, p₄}
Converse of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π, with a "cospherical or collinear" conclusion.
theorem EuclideanGeometry.concyclic_or_collinear_of_two_zsmul_oangle_eq E0 #
∀ {V : Type u_1} {P : Type u_2} [inst : NormedAddCommGroup V] [inst_1 : InnerProductSpace ℝ V] [inst_2 : MetricSpace P]
[inst_3 : NormedAddTorsor V P] [hd2 : Fact (Module.finrank ℝ V = 2)] [inst_4 : Module.Oriented ℝ V (Fin 2)]
{p₁ p₂ p₃ p₄ : P},
2 • EuclideanGeometry.oangle p₁ p₂ p₄ = 2 • EuclideanGeometry.oangle p₁ p₃ p₄ →
EuclideanGeometry.Concyclic {p₁, p₂, p₃, p₄} ∨ Collinear ℝ {p₁, p₂, p₃, p₄}
Converse of "angles in same segment are equal" and "opposite angles of a cyclic quadrilateral add to π", for oriented angles mod π, with a "concyclic or collinear" conclusion.