Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Reflection in the line through two points

Definition
Esgk_TwoPairDistanceCarrierSymmetry

by mysticflounder · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometrygeometry

This constructs horizontal reflection as a linear and affine isometry. Conjugating it by a direct isometry that normalizes two distinct points defines reflection in their joining line.

Definition code
-- Extracted dependency interfaces and their necessary proofs.
import Definitions.Def_Esgk_BridgeIdentity
import Definitions.Def_Esgk_IrreduciblePlaneAffineNormalizationNonsingularLift
import Definitions.Def_Esgk_IrreduciblePlaneDistanceImageInfiniteCorrespondence
import Definitions.Def_Esgk_NormalizedDistancePairInfiniteProjection
import Definitions.Def_Esgk_SelfCurveDistancePairNormalization
import Definitions.Def_LeanFormalizations_PachDeZeeuw_AlgebraicPrelim
import Mathlib

/-
Copyright (c) 2026 Adam McKenna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
-/


noncomputable section

namespace Esgk

open EuclideanGeometry
open PachDeZeeuw.Algebraic
open IrreduciblePlanePolynomial

noncomputable def bundle_Esgk_TwoPairDistanceCarrierSymmetry_horizontalReflectionLinear : Point2 ≃ₗᵢ[ℝ] Point2 :=
  (ℝ ∙ xAxisPoint 1).reflection

noncomputable def bundle_Esgk_TwoPairDistanceCarrierSymmetry_horizontalReflectionAffine :
    Point2 ≃ᵃⁱ[ℝ] Point2 :=
  bundle_Esgk_TwoPairDistanceCarrierSymmetry_horizontalReflectionLinear.toAffineIsometryEquiv


noncomputable def bundle_Esgk_TwoPairDistanceCarrierSymmetry_targetReflection (b e : Point2) (hbe : b ≠ e) :
    Point2 ≃ᵃⁱ[ℝ] Point2 := by
  let r : ℝ := dist b e / 2
  have hr : 0 < r := by
    dsimp [r]
    exact div_pos (dist_pos.mpr hbe) (by norm_num)
  have htarget : dist b e = dist (xAxisPoint (-r)) (xAxisPoint r) := by
    rw [dist_xAxisPoint_neg_eq r hr.le]
    dsimp [r]
    ring
  let g : Point2 ≃ᵃⁱ[ℝ] Point2 :=
    directAffineIsometryEquivOfSendPair b e (xAxisPoint (-r))
      (xAxisPoint r) hbe htarget
  exact g.trans (bundle_Esgk_TwoPairDistanceCarrierSymmetry_horizontalReflectionAffine.trans g.symm)


end Esgk

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me