III.31 · Angle in a semicircle¶
Statement
An angle inscribed in a semicircle is a right angle.
Why this theorem: A theorem in one system is an axiom in another: in GeoCoq’s neutral geometry, Thales’ statement is one of the equivalent forms of the parallel postulate.
Realizations¶
Euclid
prose Elements III.31 — Euclid card
In a circle the angle in the semicircle is right, that in a greater segment less than
a right angle, and that in a less segment greater than a right angle; ...
Depends on I.32 (angle sum), hence on the parallel postulate.
Source: euclid/resources/heath/enunciations.json
GeoCoq
axiom thales_postulate — GeoCoq card
Definition thales_postulate := forall A B C M,
Midpoint M A B -> Cong M A M C -> Per A C B.
Proved equivalent to Euclid’s fifth postulate over neutral geometry — a postulate, not a lemma.
Source: parallel_postulates.v#L198-L199
mathlib4
theorem EuclideanGeometry.Sphere.angle_eq_pi_div_two_iff_mem_sphere_of_isDiameter — mathlib4 card
/-- **Thales' theorem**: The angle inscribed in a semicircle is a right angle. -/
theorem angle_eq_pi_div_two_iff_mem_sphere_of_isDiameter {p₁ p₂ p₃ : P} {s : Sphere P}
(hd : s.IsDiameter p₁ p₃) :
∠ p₁ p₂ p₃ = π / 2 ↔ p₂ ∈ s := by
Iff form, any dimension; proved from the inner product.
Source: Sphere.lean#L78-L81
AlphaGeometry
rule rules.txt r20 — AlphaGeometry card
circle O A B C, coll O A C => perp A B B C
An assumed inference rule.
Source: rules.txt
Newclid
rule R20_DIAMETER_IS_HYPOTENUSE — Newclid card
premises: circle O A B C, coll O A C
conclusions: perp A B B C
Inherited from AlphaGeometry r20.
Source: all_rules.py
LeanEuclid
absent — LeanEuclid card
LeanEuclid formalizes Book I only; III.31 is outside its benchmark.
geometor.model
witness verify._build_thales_semicircle — geometor.model card
O, A, B, P = m.set_point(0, 0), m.set_point(-5, 0), m.set_point(5, 0), m.set_point(3, 4)
m.assert_collinear(A, O, B, by="Given", label="AB is a diameter")
m.assert_perpendicular(m.construct_line(A, P), m.construct_line(B, P), by="III.31")
Exact check on the 3-4-5 point of the radius-5 circle (L1).
Source: codes/src/geometor/codes/verify.py
Climbing the ladder in GEOMETOR¶
L1 — exact instance. geometor.model builds one figure with exact coordinates and checks the conclusion by zero_test: Exact witness verified (5 points, 2 lines, 1 circles) (status verified). See the witness entry.
L2 — generic. Replace the coordinates by free symbols r, t. AB is a diameter of the circle radius r about the origin; P = r((1-t^2)/(1+t^2), 2t/(1+t^2)). The conclusion’s numerator reduces to 0, so the theorem holds for every configuration outside the degenerate set:
r != 0
t != 0 (P != B); t finite (P != A)
Computed at build time by geometor.codes.generic.generic_witness().