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.Congruence

6 declarations. Mathlib docs · Source

Triangle congruence

This file proves the classical triangle congruence criteria for (possibly degenerate) triangles in real inner product spaces and Euclidean affine spaces. We prove SSS, SAS, ASA, and AAS congruence.

Implementation notes

Side–Side–Side (SSS) congruence is proved using the definition of Congruent. Side–Angle–Side (SAS) congruence is proved via the law of cosines. Angle–Side–Angle (ASA) congruence is reduced to SAS using the law of sines. Angle–Angle–Side (AAS) congruence uses the fact that the sum of the angles in a triangle equals π, then reduces to ASA.

References

  • https://en.wikipedia.org/wiki/Congruence_(geometry)

theorem EuclideanGeometry.triangle_congruent_iff_dist_eq E3 #

∀ {P₁ : Type u_4} {P₂ : Type u_5} [inst : MetricSpace P₁] [inst_1 : MetricSpace P₂] {t₁ : Fin 3 → P₁} {t₂ : Fin 3 → P₂},
  Congruent t₁ t₂ ↔ ∀ (i j : Fin 3), dist (t₁ i) (t₁ j) = dist (t₂ i) (t₂ j)

theorem EuclideanGeometry.side_side_side E1 #

∀ {P₁ : Type u_4} {P₂ : Type u_5} [inst : MetricSpace P₁] [inst_1 : MetricSpace P₂] {a b c : P₁} {a' b' c' : P₂},
  dist a b = dist a' b' → dist b c = dist b' c' → dist c a = dist c' a' → Congruent ![a, b, c] ![a', b', c']

Side–Side–Side (SSS) congruence If all three corresponding sides of two triangles are equal, then the triangles are congruent. This holds even if the triangles are degenerate.

theorem EuclideanGeometry.side_angle_side E1 #

∀ {V₁ : Type u_2} {V₂ : Type u_3} {P₁ : Type u_4} {P₂ : Type u_5} [inst : NormedAddCommGroup V₁]
  [inst_1 : NormedAddCommGroup V₂] [inst_2 : InnerProductSpace ℝ V₁] [inst_3 : InnerProductSpace ℝ V₂]
  [inst_4 : MetricSpace P₁] [inst_5 : MetricSpace P₂] [inst_6 : NormedAddTorsor V₁ P₁] [inst_7 : NormedAddTorsor V₂ P₂]
  {a b c : P₁} {a' b' c' : P₂},
  EuclideanGeometry.angle a b c = EuclideanGeometry.angle a' b' c' →
    dist a b = dist a' b' → dist b c = dist b' c' → Congruent ![a, b, c] ![a', b', c']

Side–Angle–Side (SAS) congruence If two triangles have two sides and the included angle equal, then the triangles are congruent. This holds even if the triangles are degenerate.

theorem EuclideanGeometry.angle_side_angle E1 #

∀ {V₁ : Type u_2} {V₂ : Type u_3} {P₁ : Type u_4} {P₂ : Type u_5} [inst : NormedAddCommGroup V₁]
  [inst_1 : NormedAddCommGroup V₂] [inst_2 : InnerProductSpace ℝ V₁] [inst_3 : InnerProductSpace ℝ V₂]
  [inst_4 : MetricSpace P₁] [inst_5 : MetricSpace P₂] [inst_6 : NormedAddTorsor V₁ P₁] [inst_7 : NormedAddTorsor V₂ P₂]
  {a b c : P₁} {a' b' c' : P₂},
  ¬Collinear ℝ {a, b, c} →
    EuclideanGeometry.angle a b c = EuclideanGeometry.angle a' b' c' →
      dist b c = dist b' c' →
        EuclideanGeometry.angle b c a = EuclideanGeometry.angle b' c' a' → Congruent ![a, b, c] ![a', b', c']

Angle–Side–Angle (ASA) congruence If two triangles have two equal angles and the included side equal, then the triangles are congruent. We require that one of the triangles is non-degenerate, the non-collinearity of the other is then implied by the given equalities.

theorem EuclideanGeometry.angle_angle_side E1 #

∀ {V₁ : Type u_2} {V₂ : Type u_3} {P₁ : Type u_4} {P₂ : Type u_5} [inst : NormedAddCommGroup V₁]
  [inst_1 : NormedAddCommGroup V₂] [inst_2 : InnerProductSpace ℝ V₁] [inst_3 : InnerProductSpace ℝ V₂]
  [inst_4 : MetricSpace P₁] [inst_5 : MetricSpace P₂] [inst_6 : NormedAddTorsor V₁ P₁] [inst_7 : NormedAddTorsor V₂ P₂]
  {a b c : P₁} {a' b' c' : P₂},
  ¬Collinear ℝ {a, b, c} →
    EuclideanGeometry.angle a b c = EuclideanGeometry.angle a' b' c' →
      EuclideanGeometry.angle b c a = EuclideanGeometry.angle b' c' a' →
        dist c a = dist c' a' → Congruent ![a, b, c] ![a', b', c']

Angle–Angle–Side (AAS) congruence If two triangles have two equal angles and a non-included side equal, then the triangles are congruent. We require that one of the triangles is non-degenerate, the non-collinearity of the other is then implied by the given equalities.

theorem EuclideanGeometry.angle_eq_of_congruent E3 #

∀ {ι : Type u_1} {V₁ : Type u_2} {V₂ : Type u_3} {P₁ : Type u_4} {P₂ : Type u_5} [inst : NormedAddCommGroup V₁]
  [inst_1 : NormedAddCommGroup V₂] [inst_2 : InnerProductSpace ℝ V₁] [inst_3 : InnerProductSpace ℝ V₂]
  [inst_4 : MetricSpace P₁] [inst_5 : MetricSpace P₂] [inst_6 : NormedAddTorsor V₁ P₁] [inst_7 : NormedAddTorsor V₂ P₂]
  {v₁ : ι → P₁} {v₂ : ι → P₂},
  Congruent v₁ v₂ →
    ∀ (i j k : ι), EuclideanGeometry.angle (v₁ i) (v₁ j) (v₁ k) = EuclideanGeometry.angle (v₂ i) (v₂ j) (v₂ k)

Corresponding angles are equal for congruent triangles.