EuclideanGroup.smul_vsub_smul
theoremverifiedformalizationimported Lean
The displacement between two points transforms by the orthogonal part alone: the translation cancels. This is the key lemma behind dist_smul.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open EuclideanGroup in variable {d : ℕ} in @[simp] lemma EuclideanGroup.smul_vsub_smul (g : EuclideanGroup d) (p q : Space d) : (g • p) -ᵥ (g • q) = g.linear • (p -ᵥ q)
- Formalizes
- Physlib, `EuclideanGroup.smul_vsub_smul`
- Lean proof
- By Shaopeng Zhu, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2026 Shaopeng Zhu. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.EuclideanGroup.smul_vsub_smul← EuclideanGroup.smul_vsub_smul (Physlib/SpaceAndTime/Space/EuclideanGroup/Action.lean:72): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 42
- Space.chartEuclidean_applySpace.chartEuclidean_apply
- Space.instPseudoMetricSpaceSpace.instPseudoMetricSpace
- EuclideanGroup.one_translationEuclideanGroup.one_translation
- EuclideanGroup.ofRotationTranslation_translationThe specialization projects back to the translation component.
- EuclideanGroup.instMulActionSpaceThe action of the Euclidean group on the affine space of points
Space d:g = ⟨t, Q⟩rotatespabout the coordinate origin by the… - SpaceThe type
Space dis the world-volume which corresponds toddimensional (flat) Euclidean space with a given (but arbitrary) choice of… - Space.instZeroSpace.instZero
- Space.vsub_applySpace.vsub_apply
- EuclideanGroup.ofRotationTranslation_linearThe specialization projects back to the linear (rotation) component.
- Space.vectorToSpace_vsub_zeroSpace.vectorToSpace_vsub_zero
- Space.instChartedSpaceEuclideanSpaceRealFinSpace.instChartedSpaceEuclideanSpaceRealFin
- Space.instMetricSpaceSpace.instMetricSpace
- EuclideanGroup.instGroupGroup structure on
E(n) = ℝ^n ⋊ O(n). The orthogonal component acts on translations by the inherited matrix-vector action on… - Space.instNonemptySpace.instNonempty
- EuclideanGroup.one_linearEuclideanGroup.one_linear
- EuclideanGroup.toAffineIsometryHom_applyUnfolds
toAffineIsometryHominto its translation and linear factors. - Space.instVAddEuclideanSpaceRealFinSpace.instVAddEuclideanSpaceRealFin
- EuclideanGroup.smul_applyCoordinate formula for the action:
(g • p) i = (Q • (p -ᵥ origin)) i + t i. - EuclideanGroup.ofRotationTranslation_decomposeAPI feature: the inclusion image decomposes as group product.
- Space.instSubsingletonOfNatNatSpace.instSubsingletonOfNatNat
- EuclideanGroup.toAffineIsometryMulEquiv_apply
toAffineIsometryMulEquivagrees withtoAffineIsometryHom. - Space.instVSubEuclideanSpaceRealFinSpace.instVSubEuclideanSpaceRealFin
- Space.instAddTorsorEuclideanSpaceRealFinSpace.instAddTorsorEuclideanSpaceRealFin
- Space.instNontrivialSpace.instNontrivial
- EuclideanGroupAn n-dimensional
Euclidean groupis a group of rotations, reflections, and translations. - EuclideanGroup.orthogonalToLinearIsometryEquiv_applyEuclideanGroup.orthogonalToLinearIsometryEquiv_apply
- Space.vectorToSpace_applySpace.vectorToSpace_apply
- Space.instNormedAddTorsorEuclideanSpaceRealFinSpace.instNormedAddTorsorEuclideanSpaceRealFin
- EuclideanGroup.orthogonalToLinearIsometryEquiv_left_inv
linearIsometryEquivToOrthogonalis a left inverse oforthogonalToLinearIsometryEquiv. Together with… - Space.zero_valSpace.zero_val
- Space.instCoeFunForallFinRealSpace.instCoeFunForallFinReal
- EuclideanGroup.linearIsometryEquiv_constVAdd_mulThe affine map
x ↦ t +ᵥ L x, projected to its linear isometry component, isL. Together with… - Space.vadd_valSpace.vadd_val
- Space.instIsManifoldRealEuclideanSpaceFinModelWithCornersSelfTopWithTopENatSpace.instIsManifoldRealEuclideanSpaceFinModelWithCornersSelfTopWithTopENat
- EuclideanGroup.orthogonalToLinearIsometryEquiv_right_inv
linearIsometryEquivToOrthogonalis a right inverse oforthogonalToLinearIsometryEquiv; this provesright_invof… - EuclideanGroup.mul_linearEuclideanGroup.mul_linear
- Space.vadd_applySpace.vadd_apply
- Space.instAddActionEuclideanSpaceRealFinSpace.instAddActionEuclideanSpaceRealFin
- EuclideanGroup.mul_translationEuclideanGroup.mul_translation
- Space.instDistSpace.instDist
- Space.zero_applySpace.zero_apply
- Space.val_eq_iffSpace.val_eq_iff
- Used by 6
- EuclideanGroup.rotation_dist_smulThe rotation group acts on
Space dby isometries (inherited fromdist_smul). - EuclideanGroup.chartEuclidean_smulUnder the standard chart, the Euclidean action on
Space dis the transport oftoAffineIsometryMulEquivacting onEuclideanSpace:… - EuclideanGroup.rotation_smul_vsub_originA rotation acts on the displacement from the origin by its orthogonal part, for every
p:(r • p) -ᵥ origin = Q • (p -ᵥ origin). - EuclideanGroup.rotation_smul_eqThe rotation-group action is the restriction of the Euclidean action:
r • p = ↑r • p(definitional). - EuclideanGroup.rotation_smul_originA rotation fixes the origin: its translation part vanishes (
RotationGroup ≤ OriginStabilizer), so↑r • 0 = 0. Stated in the↑rform… - EuclideanGroup.dist_smulThe Euclidean group acts on
Space dby isometries: every rigid motion preserves distance.
- EuclideanGroup.rotation_dist_smulThe rotation group acts on
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen EuclideanGroup invariable {d : ℕ} in/-- The displacement between two points transforms by the **orthogonal part alone**: the translation cancels. This is the key lemma behind `dist_smul`. -/@[simp] lemma EuclideanGroup.smul_vsub_smul (g : EuclideanGroup d) (p q : Space d) : (g • p) -ᵥ (g • q) = g.linear • (p -ᵥ q) := by show ((g.linear • (p -ᵥ (0 : Space d)) + g.translation) +ᵥ (0 : Space d)) -ᵥ ((g.linear • (q -ᵥ (0 : Space d)) + g.translation) +ᵥ (0 : Space d)) = g.linear • (p -ᵥ q) rw [vadd_vsub_vadd_cancel_right, add_sub_add_right_eq_sub, ← smul_sub, vsub_sub_vsub_cancel_right]