AFTD Auto-Formalizing Theoretical Domains

EuclideanGroup.instMulActionSpace

instanceimported Lean

The action of the Euclidean group on the affine space of points Space d: g = ⟨t, Q⟩ rotates p about the coordinate origin by the orthogonal part Q and then translates by t.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {d : ℕ} in
noncomputable instance EuclideanGroup.instMulActionSpace : MulAction (EuclideanGroup d) (Space d)
Defined in
Physlib, `EuclideanGroup.instMulActionSpace`
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
09 Oct 2026
Axioms
none listed
Built on 40
Used by 8

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {d : ℕ} in
/-- The action of the Euclidean group on the affine space of points `Space d`: `g = ⟨t, Q⟩` rotates `p` about the coordinate origin by the orthogonal part `Q` and then translates by `t`. -/
noncomputable instance EuclideanGroup.instMulActionSpace : MulAction (EuclideanGroup d) (Space d) where
  smul g p := (g.linear • (p -ᵥ (0 : Space d)) + g.translation) +ᵥ (0 : Space d)
  one_smul p := by
    show ((1 : Matrix.orthogonalGroup (Fin d) ℝ) • (p -ᵥ (0 : Space d)) + 0) +ᵥ (0 : Space d) = p
    simp
  mul_smul g h p := by
      show (((g * h).linear • (p -ᵥ (0 : Space d)) + (g * h).translation) +ᵥ (0 : Space d))
        = (((g.linear • (((h.linear • (p -ᵥ (0 : Space d)) + h.translation) +ᵥ (0 : Space d))
              -ᵥ (0 : Space d)))
            + g.translation) +ᵥ (0 : Space d))
      simp [vadd_vsub, add_comm, add_assoc, mul_smul]
See it in the graphDiscuss this resultChallenge it