Documentation

Formalizations.Reusable.Geometry

Reusable layer: geometry #

Stable names for two classical geometry results of the archive. Each theorem is proved by the archive theorem it re-exposes (no proof is copied), so the provenance is the archive module.

Main results #

theorem Formalizations.Reusable.pappus_hexagon {R : Type u_1} [CommRing R] (A B C a b c : Fin 3 → R) (h₁ : A ⬝ᵥ (crossProduct B) C = 0) (h₂ : a ⬝ᵥ (crossProduct b) c = 0) :

Pappus's hexagon theorem (homogeneous coordinates, any commutative ring).

Points of the projective plane are vectors of R³; three points are collinear when their triple product A ⬝ᵥ (B ⨯₃ C) vanishes, and the meet of the lines PQ and RS is (P ⨯₃ Q) ⨯₃ (R ⨯₃ S). If A, B, C are collinear and a, b, c are collinear, then the three meets Ab ∩ aB, Ac ∩ aC, Bc ∩ bC are collinear. No non-degeneracy hypothesis is needed: the conclusion is an ideal-membership identity.

  • Archive: Pappus.pappus (Formalizations.Geometry.Projective.Pappus); no research paper.
  • Classical reference: Pappus of Alexandria, Collection, Book VII (c. 320 AD); R. Whitty, Theorem of the Day, «Pappus' Theorem».
  • Example: over ℤ, from h₁ : A ⬝ᵥ (B ⨯₃ C) = 0 and h₂ : a ⬝ᵥ (b ⨯₃ c) = 0, pappus_hexagon A B C a b c h₁ h₂ gives the collinearity of the three meets.
theorem Formalizations.Reusable.wolstenholme_defect_eq_sq_add_sq (x y z A B C : ℝ) (h : A + B + C = Real.pi) :
x ^ 2 + y ^ 2 + z ^ 2 - (2 * y * z * Real.cos A + 2 * z * x * Real.cos B + 2 * x * y * Real.cos C) = (x - z * Real.cos B - y * Real.cos C) ^ 2 + (z * Real.sin B - y * Real.sin C) ^ 2

Wolstenholme's inequality, defect form. If A + B + C = π then for all real x, y, z, x² + y² + z² − (2yz cos A + 2zx cos B + 2xy cos C) = (x − z cos B − y cos C)² + (z sin B − y sin C)². In particular 2yz cos A + 2zx cos B + 2xy cos C ≤ x² + y² + z² (Wolstenholme's inequality, archive WolstenholmeInequality.cos_le). No sign condition on the angles is needed.