AFTD Auto-Formalizing Theoretical Domains

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.
Verified
10 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 42
Used by 6

Lean source view module on GitHub

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]
See it in the graphDiscuss this resultChallenge it