AFTD Auto-Formalizing Theoretical Domains

EuclideanGroup.RotationsAbout

defimported Lean

The subgroup of rotation about a spatial point p : EuclideanSpace ℝ (Fin n) consists of elements of the form T(p) * r * T(-p) with T(·) : translationVector.incl n (Multiplicative.ofAdd ·) and r : RotationGroup where r is viewed as a rotation about the origin. Note T(-p) = T(p)⁻¹.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {n} (p : EuclideanSpace ℝ (Fin n)) in
noncomputable def EuclideanGroup.RotationsAbout : Subgroup (EuclideanGroup n)
Defined in
Physlib, `EuclideanGroup.RotationsAbout`
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
none listed
Built on 8
Used by 7

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {n} (p : EuclideanSpace ℝ (Fin n)) in
/-- The subgroup of rotation about a spatial point `p : EuclideanSpace ℝ (Fin n)` consists of elements of the form T(p) * r * T(-p) with T(·) : translationVector.incl n (Multiplicative.ofAdd ·) and r : RotationGroup where r is viewed as a rotation about the origin. Note T(-p) = T(p)⁻¹. -/
noncomputable def EuclideanGroup.RotationsAbout : Subgroup (EuclideanGroup n) where
  carrier := {g | ∃ r : RotationGroup n, g = translationVector.incl n (Multiplicative.ofAdd p)
    * (r : EuclideanGroup n) * translationVector.incl n (Multiplicative.ofAdd (-p))}
  mul_mem' {a b} ha hb := by
    obtain ⟨r1, hr1⟩ := ha
    obtain ⟨r2, hr2⟩ := hb
    use r1 * r2
    rw [hr1, hr2]
    simp only [ofAdd_neg, map_inv, conj_mul, Subgroup.coe_mul]
  one_mem' := by
    simp; use 1
    constructor <;> simp
  inv_mem' {a} ha := by
    obtain ⟨ra, hra⟩ := ha
    use ra⁻¹
    rw [hra]
    simp [mul_inv_rev, mul_assoc]
See it in the graphDiscuss this resultChallenge it