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 / V13. General topology

Mathlib.Topology.MetricSpace.Congruence

32 declarations and 6 deprecated aliases. Mathlib docs · Source

Congruences

This file defines Congruent, i.e., the equivalence between indexed families of points in a metric space where all corresponding pairwise distances are the same. The motivating example are triangles in the plane.

Implementation notes

After considering two possible approaches to defining congruence — either based on equal pairwise distances or the existence of an isometric equivalence — we have opted for the broader concept of equal pairwise distances. This notion is commonly employed in the literature across various metric spaces that lack an isometric equivalence.

For more details see the Zulip discussion.

Notation

  • v₁ ≅ v₂: for Congruent v₁ v₂.

def Congruent E1 #

{ι : Type u_1} →
  {P₁ : Type u_3} → {P₂ : Type u_4} → [PseudoEMetricSpace P₁] → [PseudoEMetricSpace P₂] → (ι → P₁) → (ι → P₂) → Prop

A congruence between indexed sets of vertices v₁ and v₂. Use open scoped Congruent to access the v₁ ≅ v₂ notation.

def Congruent.«term_≅_» E1 #

Lean.TrailingParserDescr

A congruence between indexed sets of vertices v₁ and v₂. Use open scoped Congruent to access the v₁ ≅ v₂ notation.

theorem congruent_iff_edist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], Congruent v₁ v₂ ↔ ∀ (i₁ i₂ : ι), edist (v₁ i₁) (v₁ i₂) = edist (v₂ i₁) (v₂ i₂)

Congruence holds if and only if all extended distances are the same.

theorem congruent_iff_pairwise_edist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], Congruent v₁ v₂ ↔ Pairwise fun i₁ i₂ ↦ edist (v₁ i₁) (v₁ i₂) = edist (v₂ i₁) (v₂ i₂)

Congruence holds if and only if all extended distances between points with different indices are the same.

theorem Congruent.edist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], Congruent v₁ v₂ → ∀ (i₁ i₂ : ι), edist (v₁ i₁) (v₁ i₂) = edist (v₂ i₁) (v₂ i₂)

A congruence preserves extended distance. Forward direction of congruent_iff_edist_eq.

theorem Congruent.of_edist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], (∀ (i₁ i₂ : ι), edist (v₁ i₁) (v₁ i₂) = edist (v₂ i₁) (v₂ i₂)) → Congruent v₁ v₂

Congruence follows from preserved extended distance. Backward direction of congruent_iff_edist_eq.

theorem Congruent.pairwise_edist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], Congruent v₁ v₂ → Pairwise fun i₁ i₂ ↦ edist (v₁ i₁) (v₁ i₂) = edist (v₂ i₁) (v₂ i₂)

A congruence pairwise preserves extended distance. Forward direction of congruent_iff_pairwise_edist_eq.

theorem Congruent.of_pairwise_edist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂],
  (Pairwise fun i₁ i₂ ↦ edist (v₁ i₁) (v₁ i₂) = edist (v₂ i₁) (v₂ i₂)) → Congruent v₁ v₂

Congruence follows from pairwise preserved extended distance. Backward direction of congruent_iff_pairwise_edist_eq.

theorem Congruent.refl E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} [inst : PseudoEMetricSpace P₁] (v₁ : ι → P₁), Congruent v₁ v₁

theorem Congruent.symm E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], Congruent v₁ v₂ → Congruent v₂ v₁

theorem congruent_comm E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂], Congruent v₁ v₂ ↔ Congruent v₂ v₁

theorem Congruent.trans E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {P₃ : Type u_5} {v₁ : ι → P₁} {v₂ : ι → P₂} {v₃ : ι → P₃}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂] [inst_2 : PseudoEMetricSpace P₃],
  Congruent v₁ v₂ → Congruent v₂ v₃ → Congruent v₁ v₃

theorem Congruent.index_map E1 #

∀ {ι : Type u_1} {ι' : Type u_2} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂],
  Congruent v₁ v₂ → ∀ (f : ι' → ι), Congruent (v₁ ∘ f) (v₂ ∘ f)

Change the index set ι to an index ι' that maps to ι.

theorem Congruent.index_equiv E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {P₁ : Type u_3} {P₂ : Type u_4} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂] {E : Type u_7} [inst_2 : EquivLike E ι' ι] (f : E) (v₁ : ι → P₁) (v₂ : ι → P₂),
  Congruent (v₁ ∘ ⇑f) (v₂ ∘ ⇑f) ↔ Congruent v₁ v₂

Change between equivalent index sets ι and ι'.

theorem Congruent.of_subsingleton_index E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoEMetricSpace P₁]
  [inst_1 : PseudoEMetricSpace P₂] [Subsingleton ι], Congruent v₁ v₂

Families with at most a single point are always congruent.

theorem Congruent.comp_left E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {P₃ : Type u_5} {v₁ : ι → P₁} {v₂ : ι → P₂}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂] [inst_2 : PseudoEMetricSpace P₃] {f : P₁ → P₃},
  Isometry f → Congruent v₁ v₂ → Congruent (f ∘ v₁) v₂

theorem Congruent.comp_right E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {P₃ : Type u_5} {v₁ : ι → P₁} {v₂ : ι → P₂}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂] [inst_2 : PseudoEMetricSpace P₃] {f : P₂ → P₃},
  Isometry f → Congruent v₁ v₂ → Congruent v₁ (f ∘ v₂)

theorem Congruent.comp_left_iff E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {P₃ : Type u_5} {v₁ : ι → P₁} {v₂ : ι → P₂}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂] [inst_2 : PseudoEMetricSpace P₃] {f : P₁ → P₃},
  Isometry f → (Congruent (f ∘ v₁) v₂ ↔ Congruent v₁ v₂)

theorem Congruent.comp_right_iff E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {P₃ : Type u_5} {v₁ : ι → P₁} {v₂ : ι → P₂}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂] [inst_2 : PseudoEMetricSpace P₃] {f : P₂ → P₃},
  Isometry f → (Congruent v₁ (f ∘ v₂) ↔ Congruent v₁ v₂)

theorem Congruent.comp_dilation E1 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {P₃ : Type u_5} {P₄ : Type u_6} {v₁ : ι → P₁} {v₂ : ι → P₂}
  [inst : PseudoEMetricSpace P₁] [inst_1 : PseudoEMetricSpace P₂] [inst_2 : PseudoEMetricSpace P₃]
  [inst_3 : PseudoEMetricSpace P₄] {F₁ : Type u_7} {F₂ : Type u_8} [inst_4 : FunLike F₁ P₁ P₃]
  [inst_5 : DilationClass F₁ P₁ P₃] [inst_6 : FunLike F₂ P₂ P₄] [inst_7 : DilationClass F₂ P₂ P₄] {f₁ : F₁} {f₂ : F₂},
  Congruent v₁ v₂ → Dilation.ratio f₁ = Dilation.ratio f₂ → Congruent (⇑f₁ ∘ v₁) (⇑f₂ ∘ v₂)

Two sets of vertices remain congruent under a dilation if the dilations have equal ratios.

theorem congruent_iff_nnDist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], Congruent v₁ v₂ ↔ ∀ (i₁ i₂ : ι), nnDist (v₁ i₁) (v₁ i₂) = nnDist (v₂ i₁) (v₂ i₂)

Congruence holds if and only if all non-negative distances are the same.

theorem congruent_iff_pairwise_nnDist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂],
  Congruent v₁ v₂ ↔ Pairwise fun i₁ i₂ ↦ nnDist (v₁ i₁) (v₁ i₂) = nnDist (v₂ i₁) (v₂ i₂)

Congruence holds if and only if all non-negative distances between points with different indices are the same.

theorem congruent_iff_dist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], Congruent v₁ v₂ ↔ ∀ (i₁ i₂ : ι), dist (v₁ i₁) (v₁ i₂) = dist (v₂ i₁) (v₂ i₂)

Congruence holds if and only if all distances are the same.

theorem congruent_iff_pairwise_dist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], Congruent v₁ v₂ ↔ Pairwise fun i₁ i₂ ↦ dist (v₁ i₁) (v₁ i₂) = dist (v₂ i₁) (v₂ i₂)

Congruence holds if and only if all non-negative distances between points with different indices are the same.

theorem Congruent.nnDist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], Congruent v₁ v₂ → ∀ (i₁ i₂ : ι), nnDist (v₁ i₁) (v₁ i₂) = nnDist (v₂ i₁) (v₂ i₂)

A congruence preserves non-negative distance. Forward direction of congruent_iff_nnDist_eq.

theorem Congruent.of_nnDist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], (∀ (i₁ i₂ : ι), nnDist (v₁ i₁) (v₁ i₂) = nnDist (v₂ i₁) (v₂ i₂)) → Congruent v₁ v₂

Congruence follows from preserved non-negative distance. Backward direction of congruent_iff_nnDist_eq.

theorem Congruent.dist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], Congruent v₁ v₂ → ∀ (i₁ i₂ : ι), dist (v₁ i₁) (v₁ i₂) = dist (v₂ i₁) (v₂ i₂)

A congruence preserves distance. Forward direction of congruent_iff_dist_eq.

theorem Congruent.of_dist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], (∀ (i₁ i₂ : ι), dist (v₁ i₁) (v₁ i₂) = dist (v₂ i₁) (v₂ i₂)) → Congruent v₁ v₂

Congruence follows from preserved distance. Backward direction of congruent_iff_dist_eq.

theorem Congruent.pairwise_nnDist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂],
  Congruent v₁ v₂ → Pairwise fun i₁ i₂ ↦ nnDist (v₁ i₁) (v₁ i₂) = nnDist (v₂ i₁) (v₂ i₂)

A congruence pairwise preserves non-negative distance. Forward direction of congruent_iff_pairwise_nnDist_eq.

theorem Congruent.of_pairwise_nnDist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂],
  (Pairwise fun i₁ i₂ ↦ nnDist (v₁ i₁) (v₁ i₂) = nnDist (v₂ i₁) (v₂ i₂)) → Congruent v₁ v₂

Congruence follows from pairwise preserved non-negative distance. Backward direction of congruent_iff_pairwise_nnDist_eq.

theorem Congruent.pairwise_dist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], Congruent v₁ v₂ → Pairwise fun i₁ i₂ ↦ dist (v₁ i₁) (v₁ i₂) = dist (v₂ i₁) (v₂ i₂)

A congruence pairwise preserves distance. Forward direction of congruent_iff_pairwise_dist_eq.

theorem Congruent.of_pairwise_dist_eq E0 #

∀ {ι : Type u_1} {P₁ : Type u_3} {P₂ : Type u_4} {v₁ : ι → P₁} {v₂ : ι → P₂} [inst : PseudoMetricSpace P₁]
  [inst_1 : PseudoMetricSpace P₂], (Pairwise fun i₁ i₂ ↦ dist (v₁ i₁) (v₁ i₂) = dist (v₂ i₁) (v₂ i₂)) → Congruent v₁ v₂

Congruence follows from pairwise preserved distance. Backward direction of congruent_iff_pairwise_dist_eq.

Deprecated aliases

NameNew nameSince
Congruent.nndist_eqCongruent.nnDist_eq2026-11-07
Congruent.of_nndist_eqCongruent.of_nnDist_eq2026-11-07
Congruent.of_pairwise_nndist_eqCongruent.of_pairwise_nnDist_eq2026-11-07
Congruent.pairwise_nndist_eqCongruent.pairwise_nnDist_eq2026-11-07
congruent_iff_nndist_eqcongruent_iff_nnDist_eq2026-11-07
congruent_iff_pairwise_nndist_eqcongruent_iff_pairwise_nnDist_eq2026-11-07