AFTD Auto-Formalizing Theoretical Domains

EuclideanGroup.specialOrthogonal.toRotation

defimported Lean

The isomorphism's forward map: a special orthogonal matrix as a rotation about the origin.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {n} (p : EuclideanSpace ℝ (Fin n)) in
noncomputable def EuclideanGroup.specialOrthogonal.toRotation (n : ℕ) :
    Matrix.specialOrthogonalGroup (Fin n) ℝ →* RotationGroup n
Defined in
Physlib, `EuclideanGroup.specialOrthogonal.toRotation`
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 15
Used by 3

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 isomorphism's forward map: a special orthogonal matrix as a rotation about the origin. -/
noncomputable def EuclideanGroup.specialOrthogonal.toRotation (n : ℕ) :
    Matrix.specialOrthogonalGroup (Fin n) ℝ →* RotationGroup n where
  toFun g := ⟨ofRotation g, by
      refine ⟨?_, ?_⟩
      · show (ofRotation g).linear.val.det = 1
        exact (Matrix.mem_specialOrthogonalGroup_iff.mp g.property).right
      · show (ofRotation g).translation = 0
        rfl⟩
  map_one' := rfl
  map_mul' x y := by
    apply Subtype.ext
    refine EuclideanGroup.ext ?_ ?_
    · show (0 : EuclideanSpace ℝ (Fin n)) =
        0 + (specialOrthogonal.incl n x : Matrix.orthogonalGroup (Fin n) ℝ) • 0
      rw [smul_zero, add_zero]
    · show specialOrthogonal.incl n (x * y)
          = specialOrthogonal.incl n x * specialOrthogonal.incl n y
      rw [map_mul]
See it in the graphDiscuss this resultChallenge it